mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
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
|
|
, 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";
|
|
};
|
|
}
|