mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 09:17:07 +03:00
Merge pull request #249725 from NixOS/nvd/add-meta-mainProgram
nvd: use `finalAttrs` pattern, add `meta.mainProgram`, reformat
This commit is contained in:
commit
02bba6c619
@ -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;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user