mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
34 lines
814 B
Nix
34 lines
814 B
Nix
{ lib, stdenv, fetchFromGitHub, makeWrapper, perl, wdiff }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.7.2";
|
|
pname = "pkgdiff";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lvc";
|
|
repo = "pkgdiff";
|
|
rev = version;
|
|
sha256 = "1ahknyx0s54frbd3gqh070lkv3j1b344jrs6m6p1s1lgwbd70vnb";
|
|
};
|
|
|
|
buildInputs = [ perl ];
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
dontBuild = true;
|
|
|
|
makeFlags = [ "prefix=$(out)" ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/pkgdiff --prefix PATH : ${lib.makeBinPath [ wdiff ]}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Tool for visualizing changes in Linux software packages";
|
|
homepage = "https://lvc.github.io/pkgdiff/";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ sweber ];
|
|
platforms = platforms.unix;
|
|
mainProgram = "pkgdiff";
|
|
};
|
|
}
|