diff --git a/pkgs/by-name/le/lemurs/package.nix b/pkgs/by-name/le/lemurs/package.nix index 0d5095feaa64..1f61fc809df0 100644 --- a/pkgs/by-name/le/lemurs/package.nix +++ b/pkgs/by-name/le/lemurs/package.nix @@ -2,25 +2,24 @@ fetchFromGitHub, lib, bash, - lemurs, linux-pam, rustPlatform, systemdMinimal, - testers, + versionCheckHook, }: -rustPlatform.buildRustPackage { +rustPlatform.buildRustPackage rec { pname = "lemurs"; - version = "0.3.2-unstable-2024-07-24"; + version = "0.4.0"; src = fetchFromGitHub { owner = "coastalwhite"; repo = "lemurs"; - rev = "1d4be7d0c3f528a0c1e9326ac77f1e8a17161c83"; - hash = "sha256-t/riJpgy0bD5CU8Zkzket4Gks2JXXSLRreMlrxlok0c="; + tag = "v${version}"; + hash = "sha256-dtAmgzsUhn3AfafWbCaaog0S1teIy+8eYtaHBhvLfLI="; }; useFetchCargoVendor = true; - cargoHash = "sha256-Cwgu30rGe1/Mm4FEEH11OTtTHUlBNwl5jVzmJg5qQe8="; + cargoHash = "sha256-XoGtIHYCGXNuwnpDTU7NbZAs6rCO+69CAG89VCv9aAc="; buildInputs = [ bash @@ -28,11 +27,8 @@ rustPlatform.buildRustPackage { systemdMinimal ]; - passthru.tests.version = testers.testVersion { - package = lemurs; - # Package version is now different from the version that lemurs reports itself as. - version = "0.3.2"; - }; + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; meta = { description = "Customizable TUI display/login manager written in Rust";