Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / window-managers / leftwm / default.nix
blobbbf1cefacd4ca003f4a16eb128cb53c89ddec881
1 { lib
2 , fetchFromGitHub
3 , rustPlatform
4 , libX11
5 , libXinerama
6 }:
8 let
9   rpathLibs = [ libXinerama libX11 ];
12 rustPlatform.buildRustPackage rec {
13   pname = "leftwm";
14   version = "0.5.1";
16   src = fetchFromGitHub {
17     owner = "leftwm";
18     repo = "leftwm";
19     rev = "refs/tags/${version}";
20     hash = "sha256-wn5DurPWFwSUtc5naEL4lBSQpKWTJkugpN9mKx+Ed2Y=";
21   };
23   cargoHash = "sha256-TylRxdpAVuGtZ3Lm8je6FZ0JUwetBi6mOGRoT2M3Jyk=";
25   buildInputs = rpathLibs;
27   postInstall = ''
28     for p in $out/bin/left*; do
29       patchelf --set-rpath "${lib.makeLibraryPath rpathLibs}" $p
30     done
32     install -D -m 0555 leftwm/doc/leftwm.1 $out/share/man/man1/leftwm.1
33   '';
35   dontPatchELF = true;
37   meta = {
38     description = "A tiling window manager for the adventurer";
39     homepage = "https://github.com/leftwm/leftwm";
40     license = lib.licenses.mit;
41     platforms = lib.platforms.linux;
42     maintainers = with lib.maintainers; [ yanganto ];
43     changelog = "https://github.com/leftwm/leftwm/blob/${version}/CHANGELOG.md";
44   };