Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, git, perl, makeWrapper }: 2 3with lib; 4 5stdenv.mkDerivation rec { 6 pname = "git-octopus"; 7 version = "1.4"; 8 9 installFlags = [ "prefix=$(out)" ]; 10 11 nativeBuildInputs = [ makeWrapper ]; 12 13 # perl provides shasum 14 postInstall = '' 15 for f in $out/bin/*; do 16 wrapProgram $f --prefix PATH : ${makeBinPath [ git perl ]} 17 done 18 ''; 19 20 src = fetchFromGitHub { 21 owner = "lesfurets"; 22 repo = "git-octopus"; 23 rev = "v${version}"; 24 sha256 = "14p61xk7jankp6gc26xciag9fnvm7r9vcbhclcy23f4ghf4q4sj1"; 25 }; 26 27 meta = { 28 homepage = "https://github.com/lesfurets/git-octopus"; 29 description = "The continuous merge workflow"; 30 license = licenses.lgpl3; 31 platforms = platforms.unix; 32 maintainers = [maintainers.mic92]; 33 }; 34}