mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
src: wrap to properly resolve rcs at runtime
This commit is contained in:
parent
bae9315a33
commit
6e587c29dc
1 changed files with 7 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchurl, python, rcs, git }:
|
{ stdenv, fetchurl, python, rcs, git, makeWrapper }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "src-${version}";
|
name = "src-${version}";
|
||||||
|
@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "1m6rjbizx9win3jkciyx176sfy98r5arb1g3l6aqnqam9gpr44zm";
|
sha256 = "1m6rjbizx9win3jkciyx176sfy98r5arb1g3l6aqnqam9gpr44zm";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ python rcs git ];
|
buildInputs = [ python rcs git makeWrapper ];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
patchShebangs .
|
patchShebangs .
|
||||||
|
@ -17,6 +17,11 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
makeFlags = [ "prefix=$(out)" ];
|
makeFlags = [ "prefix=$(out)" ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram $out/bin/src \
|
||||||
|
--suffix PATH ":" "${rcs}/bin"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Simple single-file revision control";
|
description = "Simple single-file revision control";
|
||||||
homepage = http://www.catb.org/~esr/src/;
|
homepage = http://www.catb.org/~esr/src/;
|
||||||
|
|
Loading…
Reference in a new issue