linyaps: 1.11.1 -> 1.11.2

Added versionCheckHook, because upstream didn't update the version in
previous releases.
This commit is contained in:
HHR2020
2026-02-03 11:36:01 +08:00
parent cb369ef2ef
commit 06fdae93e2
+6 -2
View File
@@ -24,6 +24,7 @@
uncrustify,
xz,
yaml-cpp,
versionCheckHook,
bash,
binutils,
coreutils,
@@ -38,13 +39,13 @@
stdenv.mkDerivation (finalAttrs: {
pname = "linyaps";
version = "1.11.1";
version = "1.11.2";
src = fetchFromGitHub {
owner = "OpenAtom-Linyaps";
repo = finalAttrs.pname;
tag = finalAttrs.version;
hash = "sha256-iGdZc+i1l/+raI7Pjpj3LOtxvSJ37fUth3VsKaV54u0=";
hash = "sha256-FpmsrH4Xphf4QKtAJEaoVdE9S7hWlCayDbEnYZ9o4iI=";
};
patches = [
@@ -99,6 +100,9 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeBool "CPM_LOCAL_PACKAGES_ONLY" true)
];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
postInstall = ''
# move to the right location for systemd.packages option
# https://github.com/NixOS/nixpkgs/blob/85dbfc7aaf52ecb755f87e577ddbe6dbbdbc1054/nixos/modules/system/boot/systemd.nix#L605