nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 buildPackages,
6 diffutils,
7 ed,
8 lzip,
9}:
10
11stdenv.mkDerivation rec {
12 pname = "rcs";
13 version = "5.10.1";
14
15 src = fetchurl {
16 url = "mirror://gnu/rcs/${pname}-${version}.tar.lz";
17 sha256 = "sha256-Q93+EHJKi4XiRo9kA7YABzcYbwHmDgvWL95p2EIjTMU=";
18 };
19
20 ac_cv_path_ED = "${ed}/bin/ed";
21 DIFF = "${diffutils}/bin/diff";
22 DIFF3 = "${diffutils}/bin/diff3";
23
24 disallowedReferences = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
25 buildPackages.diffutils
26 buildPackages.ed
27 ];
28
29 env.NIX_CFLAGS_COMPILE = "-std=c99";
30
31 hardeningDisable = lib.optional stdenv.cc.isClang "format";
32
33 nativeBuildInputs = [ lzip ];
34
35 meta = {
36 homepage = "https://www.gnu.org/software/rcs/";
37 description = "Revision control system";
38 longDescription = ''
39 The GNU Revision Control System (RCS) manages multiple revisions of
40 files. RCS automates the storing, retrieval, logging,
41 identification, and merging of revisions. RCS is useful for text
42 that is revised frequently, including source code, programs,
43 documentation, graphics, papers, and form letters.
44 '';
45
46 license = lib.licenses.gpl3Plus;
47 maintainers = [ ];
48 platforms = lib.platforms.unix;
49 };
50}