571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitLab
|
|
, installShellFiles
|
|
, pandoc
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "shikane";
|
|
version = "1.0.1";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "w0lff";
|
|
repo = "shikane";
|
|
rev = "v${version}";
|
|
hash = "sha256-Chc1+JUHXzuLl26NuBGVxSiXiaE4Ns1FXb0dBs6STVk=";
|
|
};
|
|
|
|
cargoHash = "sha256-uuQBTAyWczzc4Ez2Tq4Ps6NPonXqHrXAP2AZFzgsvo4=";
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
pandoc
|
|
];
|
|
|
|
postBuild = ''
|
|
bash ./scripts/build-docs.sh man
|
|
'';
|
|
|
|
postInstall = ''
|
|
installManPage ./build/shikane.*
|
|
'';
|
|
|
|
# upstream has no tests
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Dynamic output configuration tool that automatically detects and configures connected outputs based on a set of profiles";
|
|
homepage = "https://gitlab.com/w0lff/shikane";
|
|
changelog = "https://gitlab.com/w0lff/shikane/-/tags/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ michaelpachec0 natsukium ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "shikane";
|
|
};
|
|
}
|