Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 40 lines 957 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 makeWrapper, 6 git, 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "git-standup"; 11 version = "2.3.2"; 12 13 src = fetchFromGitHub { 14 owner = "kamranahmedse"; 15 repo = "git-standup"; 16 rev = finalAttrs.version; 17 hash = "sha256-x7Z4w4UzshXYc25ag6HopRrKbP+/ELkFPdsUBaUE1vY="; 18 }; 19 20 nativeBuildInputs = [ makeWrapper ]; 21 22 dontBuild = true; 23 24 installPhase = '' 25 install -Dm755 -t $out/bin git-standup 26 27 wrapProgram $out/bin/git-standup \ 28 --prefix PATH : "${lib.makeBinPath [ git ]}" 29 ''; 30 31 meta = { 32 description = "Recall what you did on the last working day"; 33 homepage = "https://github.com/kamranahmedse/git-standup"; 34 changelog = "https://github.com/kamranahmedse/git-standup/releases/tag/${finalAttrs.src.rev}"; 35 license = lib.licenses.mit; 36 maintainers = with lib.maintainers; [ sigmanificient ]; 37 platforms = lib.platforms.all; 38 mainProgram = "git-standup"; 39 }; 40})