nixpkgs/pkgs/by-name/ny/nyan/package.nix
Ethan Carter Edwards 448a53ad54
nyan: enable and fix strictDeps build
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
2025-05-30 17:44:14 -04:00

55 lines
1.0 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
clang,
cmake,
flex,
nix-update-script,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "nyan";
version = "0.3.1";
src = fetchFromGitHub {
owner = "SFTtech";
repo = "nyan";
tag = "v${finalAttrs.version}";
hash = "sha256-BtvMZaQutcPqTSCN5gxYUU3CQTyCns1ldkcnjwJOFa8=";
};
strictDeps = true;
nativeBuildInputs = [
clang
cmake
flex
];
buildInputs = [
flex
];
nativeInstallCheckHooks = [
versionCheckHook
];
versionCheckProgram = "${placeholder "out"}/bin/nyancat";
doInstallCheck = true;
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Typesafe hierarchical key-value database";
homepage = "https://openage.sft.mx";
changelog = "https://github.com/SFTtech/nyan/releases/tag/v${finalAttrs.version}";
license = lib.licenses.lgpl3Plus;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ ethancedwards8 ];
mainProgram = "nyancat";
};
})