diff options
author | Theodore Ni <3806110+tjni@users.noreply.github.com> | 2023-08-18 16:02:27 -0700 |
---|---|---|
committer | Theodore Ni <3806110+tjni@users.noreply.github.com> | 2023-08-18 16:02:27 -0700 |
commit | ece0953571afe22091788a5e10bb6087b51fe653 (patch) | |
tree | 4d96b4f987589b45979e78c3708d61e29cc39858 /pkgs/tools/package-management | |
parent | 8e6c0c14a47046fb9424aaf9371ec743bcc0f9c2 (diff) | |
parent | 1949ef20809fcb8fc4bef910b2cbac9b0ca7fb9e (diff) |
Merge branch 'staging-next' into staging
Diffstat (limited to 'pkgs/tools/package-management')
-rw-r--r-- | pkgs/tools/package-management/nvd/default.nix | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/pkgs/tools/package-management/nvd/default.nix b/pkgs/tools/package-management/nvd/default.nix index 066b23cbd8d8e..8f33b4a5fbfa5 100644 --- a/pkgs/tools/package-management/nvd/default.nix +++ b/pkgs/tools/package-management/nvd/default.nix @@ -1,19 +1,28 @@ -{ fetchFromGitLab, installShellFiles, lib, python3, stdenv }: +{ fetchFromGitLab +, installShellFiles +, lib +, python3 +, stdenv +}: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "nvd"; version = "0.2.3"; src = fetchFromGitLab { owner = "khumba"; - repo = pname; - rev = "refs/tags/v${version}"; - sha256 = "sha256:005nh24j01s0hd5j0g0qp67wpivpjwryxyyh6y44jijb4arrfrjf"; + repo = "nvd"; + rev = "refs/tags/v${finalAttrs.version}"; + hash = "sha256-TmaXsyJLRkmIN9D77jOXd8fLj7kYPCBLg0AHIImAtgA="; }; - buildInputs = [ python3 ]; + buildInputs = [ + python3 + ]; - nativeBuildInputs = [ installShellFiles ]; + nativeBuildInputs = [ + installShellFiles + ]; installPhase = '' runHook preInstall @@ -22,11 +31,12 @@ stdenv.mkDerivation rec { runHook postInstall ''; - meta = with lib; { + meta = { description = "Nix/NixOS package version diff tool"; homepage = "https://gitlab.com/khumba/nvd"; - license = licenses.asl20; - maintainers = with maintainers; [ khumba ]; - platforms = platforms.all; + license = lib.licenses.asl20; + mainProgram = "nvd"; + maintainers = with lib.maintainers; [ khumba ]; + platforms = lib.platforms.all; }; -} +}) |