presenterm: 0.9.0 -> 0.10.0 (#378946)
[NixPkgs.git] / pkgs / by-name / nv / nvd / package.nix
blob2cc7afa9f97e4c92f7ce3201fafd5a4a3ac33502
2   fetchFromSourcehut,
3   installShellFiles,
4   lib,
5   python3,
6   stdenv,
7 }:
9 stdenv.mkDerivation (finalAttrs: {
10   pname = "nvd";
11   version = "0.2.4";
13   src = fetchFromSourcehut {
14     owner = "~khumba";
15     repo = "nvd";
16     rev = "v${finalAttrs.version}";
17     hash = "sha256-3Fb6MDz4z41at3XpjLVng8NBwUJn/N7QBgU6Cbh0w98=";
18   };
20   buildInputs = [
21     python3
22   ];
24   nativeBuildInputs = [
25     installShellFiles
26   ];
28   installPhase = ''
29     runHook preInstall
30     install -m555 -Dt $out/bin src/nvd
31     installManPage src/nvd.1
32     runHook postInstall
33   '';
35   meta = {
36     description = "Nix/NixOS package version diff tool";
37     homepage = "https://khumba.net/projects/nvd";
38     license = lib.licenses.asl20;
39     mainProgram = "nvd";
40     maintainers = with lib.maintainers; [ khumba ];
41     platforms = lib.platforms.all;
42   };