Files
nixpkgs/pkgs/by-name/na/namaka/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

51 lines
1.1 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
installShellFiles,
pkg-config,
oniguruma,
}:
rustPlatform.buildRustPackage rec {
pname = "namaka";
version = "0.2.1";
src = fetchFromGitHub {
owner = "nix-community";
repo = "namaka";
rev = "v${version}";
hash = "sha256-1ka+5B90UAt7D5kkT9dOExGLJjtLM8dqLeBdFRoeuWg=";
};
cargoHash = "sha256-0Hblz7Ri7QxWXDz9z235cNUYb0W/2IPA7E4AreisY9c=";
nativeBuildInputs = [
installShellFiles
pkg-config
];
buildInputs = [
oniguruma
];
env = {
GEN_ARTIFACTS = "artifacts";
RUSTONIG_SYSTEM_LIBONIG = true;
};
postInstall = ''
installManPage artifacts/*.1
installShellCompletion artifacts/namaka.{bash,fish} --zsh artifacts/_namaka
'';
meta = with lib; {
description = "Snapshot testing tool for Nix based on haumea";
mainProgram = "namaka";
homepage = "https://github.com/nix-community/namaka";
changelog = "https://github.com/nix-community/namaka/blob/${src.rev}/CHANGELOG.md";
license = licenses.mpl20;
maintainers = with maintainers; [ figsoda ];
};
}