Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 43 lines 875 B view raw
1{ 2 lib, 3 stdenv, 4 python3, 5 perl, 6 fetchFromGitHub, 7 installShellFiles, 8}: 9stdenv.mkDerivation (finalAttrs: { 10 pname = "git-publish"; 11 version = "1.8.2"; 12 13 src = fetchFromGitHub { 14 owner = "stefanha"; 15 repo = "git-publish"; 16 tag = "v${finalAttrs.version}"; 17 hash = "sha256-jjpbr+ZqG4U8/z0PurnXR+IUKQkG3QB8YqhDkH8uu2Y="; 18 }; 19 20 nativeBuildInputs = [ 21 perl 22 installShellFiles 23 ]; 24 buildInputs = [ python3 ]; 25 26 installPhase = '' 27 runHook preInstall 28 29 install -Dm0755 git-publish $out/bin/git-publish 30 pod2man git-publish.pod > git-publish.1 31 installManPage git-publish.1 32 33 runHook postInstall 34 ''; 35 36 meta = { 37 description = "Prepare and store patch revisions as git tags"; 38 license = lib.licenses.mit; 39 maintainers = [ ]; 40 homepage = "https://github.com/stefanha/git-publish"; 41 mainProgram = "git-publish"; 42 }; 43})