Skip to content

Commit

Permalink
Merge pull request #24107 from calvertvl/update-src
Browse files Browse the repository at this point in the history
Update src
  • Loading branch information
copumpkin authored Mar 20, 2017
2 parents 93446a2 + 6e587c2 commit 67b32d2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
1 change: 1 addition & 0 deletions lib/maintainers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
bzizou = "Bruno Bzeznik <[email protected]>";
c0dehero = "CodeHero <[email protected]>";
calrama = "Moritz Maxeiner <[email protected]>";
calvertvl = "Victor Calvert <[email protected]>";
campadrenalin = "Philip Horger <[email protected]>";
canndrew = "Andrew Cann <[email protected]>";
carlsverre = "Carl Sverre <[email protected]>";
Expand Down
21 changes: 14 additions & 7 deletions pkgs/applications/version-management/src/default.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
{ 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 .
'';

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 ];
};
}

0 comments on commit 67b32d2

Please sign in to comment.