mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +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.
46 lines
1.0 KiB
Nix
46 lines
1.0 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
linux-pam,
|
|
rustPlatform,
|
|
testers,
|
|
lemurs,
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "lemurs";
|
|
version = "0.3.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "coastalwhite";
|
|
repo = "lemurs";
|
|
rev = "v${version}";
|
|
hash = "sha256-YDopY+wdWlVL2X+/wc1tLSSqFclAkt++JXMK3VodD4s=";
|
|
};
|
|
|
|
patches = [
|
|
# part of https://github.com/coastalwhite/lemurs/commit/09003a830400250ec7745939399fc942c505e6c6, but including the rest of the commit may be breaking
|
|
./0001-fix-static-lifetime-string.patch
|
|
];
|
|
|
|
cargoHash = "sha256-uuHPJe+1VsnLRGbHtgTMrib6Tk359cwTDVfvtHnDToo=";
|
|
|
|
buildInputs = [
|
|
linux-pam
|
|
];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = lemurs;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Customizable TUI display/login manager written in Rust";
|
|
homepage = "https://github.com/coastalwhite/lemurs";
|
|
license = with licenses; [
|
|
asl20
|
|
mit
|
|
];
|
|
maintainers = with maintainers; [ jeremiahs ];
|
|
mainProgram = "lemurs";
|
|
};
|
|
}
|