nvd: reformat using nixpkgs-fmt
and update minor things
This commit is contained in:
parent
5da7c5adee
commit
fbedb8d6e0
1 changed files with 18 additions and 9 deletions
|
@ -1,4 +1,9 @@
|
|||
{ fetchFromGitLab, installShellFiles, lib, python3, stdenv }:
|
||||
{ fetchFromGitLab
|
||||
, installShellFiles
|
||||
, lib
|
||||
, python3
|
||||
, stdenv
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "nvd";
|
||||
|
@ -6,14 +11,18 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
|
||||
src = fetchFromGitLab {
|
||||
owner = "khumba";
|
||||
repo = finalAttrs.pname;
|
||||
repo = "nvd";
|
||||
rev = "refs/tags/v${finalAttrs.version}";
|
||||
sha256 = "sha256:005nh24j01s0hd5j0g0qp67wpivpjwryxyyh6y44jijb4arrfrjf";
|
||||
hash = "sha256-TmaXsyJLRkmIN9D77jOXd8fLj7kYPCBLg0AHIImAtgA=";
|
||||
};
|
||||
|
||||
buildInputs = [ python3 ];
|
||||
buildInputs = [
|
||||
python3
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
@ -22,12 +31,12 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Nix/NixOS package version diff tool";
|
||||
homepage = "https://gitlab.com/khumba/nvd";
|
||||
license = licenses.asl20;
|
||||
license = lib.licenses.asl20;
|
||||
mainProgram = "nvd";
|
||||
maintainers = with maintainers; [ khumba ];
|
||||
platforms = platforms.all;
|
||||
maintainers = with lib.maintainers; [ khumba ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue