53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
libX11,
|
|
libXinerama,
|
|
}:
|
|
|
|
let
|
|
rpathLibs = [
|
|
libXinerama
|
|
libX11
|
|
];
|
|
in
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "leftwm";
|
|
version = "0.5.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "leftwm";
|
|
repo = "leftwm";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-3voGKM6MKisc+ZVdZ5sCrs3XVfeRayozIk4SXNjw820=";
|
|
};
|
|
|
|
cargoHash = "sha256-w8qgNXxd6tZ1eMpQQqDoax76zYxTVHgVAlchQaRnMCc=";
|
|
|
|
buildInputs = rpathLibs;
|
|
|
|
postInstall = ''
|
|
for p in $out/bin/left*; do
|
|
patchelf --set-rpath "${lib.makeLibraryPath rpathLibs}" $p
|
|
done
|
|
|
|
install -D -m 0555 leftwm/doc/leftwm.1 $out/share/man/man1/leftwm.1
|
|
'';
|
|
|
|
dontPatchELF = true;
|
|
|
|
meta = {
|
|
description = "Tiling window manager for the adventurer";
|
|
homepage = "https://github.com/leftwm/leftwm";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = with lib.maintainers; [
|
|
vuimuich
|
|
yanganto
|
|
];
|
|
changelog = "https://github.com/leftwm/leftwm/blob/${version}/CHANGELOG.md";
|
|
mainProgram = "leftwm";
|
|
};
|
|
}
|