Merge pull request #225614 from figsoda/namaka

This commit is contained in:
figsoda 2023-04-12 11:03:40 -04:00 committed by GitHub
commit 35e09a8ba9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,48 @@
{ lib
, rustPlatform
, fetchFromGitHub
, installShellFiles
, pkg-config
, oniguruma
}:
rustPlatform.buildRustPackage rec {
pname = "namaka";
version = "0.1.0";
src = fetchFromGitHub {
owner = "nix-community";
repo = "namaka";
rev = "v${version}";
hash = "sha256-1B9FWdRxDM9PykfK9LKGZcwIc+sJNAZlvBh6G9dCHW4=";
};
cargoHash = "sha256-k9FDpugRCdvJ3E+gI1tO73RXRef8lg/txOAPDrE0+XM=";
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";
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 ];
};
}

View file

@ -32603,6 +32603,8 @@ with pkgs;
mle = callPackage ../applications/editors/mle { };
namaka = callPackage ../development/tools/misc/namaka { };
nano = callPackage ../applications/editors/nano { };
nanoblogger = callPackage ../applications/misc/nanoblogger { };