depot/third_party/nixpkgs/pkgs/tools/wayland/shikane/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

46 lines
1 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";
};
}