1 { lib, stdenv, fetchFromGitHub, makeWrapper, git, gnused }:
3 stdenv.mkDerivation rec {
4 pname = "git-reparent";
5 version = "unstable-2017-09-03";
7 src = fetchFromGitHub {
10 rev = "a99554a32524a86421659d0f61af2a6c784b7715";
11 sha256 = "0v0yxydpw6r4awy0hb7sbnh520zsk86ibzh1xjf3983yhsvkfk5v";
14 nativeBuildInputs = [ makeWrapper ];
19 install -m755 -Dt $out/bin git-reparent
23 wrapProgram $out/bin/git-reparent --prefix PATH : "${lib.makeBinPath [ git gnused ]}"
27 inherit (src.meta) homepage;
28 description = "Git command to recommit HEAD with a new set of parents";
29 maintainers = [ maintainers.marsam ];
30 license = licenses.gpl2;
31 platforms = platforms.unix;