Merge pull request #24107 from calvertvl/update-src

Update src
This commit is contained in:
Daniel Peebles 2017-03-20 01:01:41 -04:00 committed by GitHub
commit 67b32d2c89
2 changed files with 15 additions and 7 deletions

View File

@ -82,6 +82,7 @@
bzizou = "Bruno Bzeznik <Bruno@bzizou.net>";
c0dehero = "CodeHero <codehero@nerdpol.ch>";
calrama = "Moritz Maxeiner <moritz@ucworks.org>";
calvertvl = "Victor Calvert <calvertvl@gmail.com>";
campadrenalin = "Philip Horger <campadrenalin@gmail.com>";
canndrew = "Andrew Cann <shum@canndrew.org>";
carlsverre = "Carl Sverre <accounts@carlsverre.com>";

View File

@ -1,14 +1,15 @@
{ stdenv, fetchurl, python, rcs, git }:
{ stdenv, fetchurl, python, rcs, git, makeWrapper }:
stdenv.mkDerivation rec {
name = "src-1.11";
name = "src-${version}";
version = "1.12";
src = fetchurl {
url = "http://www.catb.org/~esr/src/${name}.tar.gz";
sha256 = "07kj0ri0s0vn8s54yvkyzaag332spxs0379r718b80y31c4mgbyl";
sha256 = "1m6rjbizx9win3jkciyx176sfy98r5arb1g3l6aqnqam9gpr44zm";
};
buildInputs = [ python rcs git ];
buildInputs = [ python rcs git makeWrapper ];
preConfigure = ''
patchShebangs .
@ -16,10 +17,16 @@ stdenv.mkDerivation rec {
makeFlags = [ "prefix=$(out)" ];
meta = {
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/;
license = stdenv.lib.licenses.bsd3;
platforms = stdenv.lib.platforms.all;
license = licenses.bsd3;
platforms = platforms.all;
maintainers = with maintainers; [ calvertvl ];
};
}