src: wrap to properly resolve rcs at runtime

This commit is contained in:
Victor Calvert 2017-03-20 00:27:49 -04:00
parent bae9315a33
commit 6e587c29dc

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, python, rcs, git }:
{ stdenv, fetchurl, python, rcs, git, makeWrapper }:
stdenv.mkDerivation rec {
name = "src-${version}";
@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
sha256 = "1m6rjbizx9win3jkciyx176sfy98r5arb1g3l6aqnqam9gpr44zm";
};
buildInputs = [ python rcs git ];
buildInputs = [ python rcs git makeWrapper ];
preConfigure = ''
patchShebangs .
@ -17,6 +17,11 @@ stdenv.mkDerivation rec {
makeFlags = [ "prefix=$(out)" ];
postInstall = ''
wrapProgram $out/bin/src \
--suffix PATH ":" "${rcs}/bin"
'';
meta = with stdenv.lib; {
description = "Simple single-file revision control";
homepage = http://www.catb.org/~esr/src/;