nixpkgs/pkgs/applications/window-managers/leftwm/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.0 KiB
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
, rustPlatform
, libX11
, libXinerama
}:
2019-05-23 15:08:30 +00:00
let
2021-07-10 08:24:32 +00:00
rpathLibs = [ libXinerama libX11 ];
2019-05-23 15:08:30 +00:00
in
rustPlatform.buildRustPackage rec {
pname = "leftwm";
version = "0.5.1";
src = fetchFromGitHub {
owner = "leftwm";
repo = "leftwm";
rev = "refs/tags/${version}";
hash = "sha256-wn5DurPWFwSUtc5naEL4lBSQpKWTJkugpN9mKx+Ed2Y=";
};
cargoHash = "sha256-TylRxdpAVuGtZ3Lm8je6FZ0JUwetBi6mOGRoT2M3Jyk=";
2021-07-10 08:24:32 +00:00
buildInputs = rpathLibs;
postInstall = ''
for p in $out/bin/left*; do
2021-07-10 08:24:32 +00:00
patchelf --set-rpath "${lib.makeLibraryPath rpathLibs}" $p
done
install -D -m 0555 leftwm/doc/leftwm.1 $out/share/man/man1/leftwm.1
'';
2021-07-10 08:24:32 +00:00
dontPatchELF = true;
meta = {
description = "A tiling window manager for the adventurer";
homepage = "https://github.com/leftwm/leftwm";
license = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ yanganto ];
changelog = "https://github.com/leftwm/leftwm/blob/${version}/CHANGELOG.md";
2023-12-11 09:28:01 +00:00
mainProgram = "leftwm";
};
2019-05-23 15:08:30 +00:00
}