You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.nix 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. { stdenv, fetchurl, python, rcs, git, makeWrapper }:
  2. stdenv.mkDerivation rec {
  3. pname = "src";
  4. version = "1.27";
  5. src = fetchurl {
  6. url = "http://www.catb.org/~esr/src/${pname}-${version}.tar.gz";
  7. sha256 = "0764kcyh54plzmvfyhh086wpszh67nv1nsxgk95n9bxxinr7sn3x";
  8. };
  9. nativeBuildInputs = [ makeWrapper ];
  10. buildInputs = [ python rcs git ];
  11. preConfigure = ''
  12. patchShebangs .
  13. '';
  14. makeFlags = [ "prefix=${placeholder "out"}" ];
  15. postInstall = ''
  16. wrapProgram $out/bin/src \
  17. --suffix PATH ":" "${rcs}/bin"
  18. '';
  19. meta = with stdenv.lib; {
  20. description = "Simple single-file revision control";
  21. longDescription = ''
  22. SRC, acronym of Simple Revision Control, is RCS/SCCS reloaded with a
  23. modern UI, designed to manage single-file solo projects kept more than one
  24. to a directory. Use it for FAQs, ~/bin directories, config files, and the
  25. like. Features integer sequential revision numbers, a command set that
  26. will seem familiar to Subversion/Git/hg users, and no binary blobs
  27. anywhere.
  28. '';
  29. homepage = "http://www.catb.org/esr/src/";
  30. changelog = "https://gitlab.com/esr/src/raw/${version}/NEWS";
  31. license = licenses.bsd2;
  32. platforms = platforms.all;
  33. maintainers = with maintainers; [ calvertvl AndersonTorres ];
  34. };
  35. }