tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
reposurgeon: 3.44 -> 4.26
David Guibert
4 years ago
374ce1b1
4d8d9971
+28
-50
1 changed file
expand all
collapse all
unified
split
pkgs
applications
version-management
reposurgeon
default.nix
+28
-50
pkgs/applications/version-management/reposurgeon/default.nix
···
1
-
{ lib, stdenv, fetchurl, makeWrapper, python27Packages, git
2
-
, docbook_xml_dtd_412, docbook_xsl, asciidoc, xmlto, pypy
3
-
, breezy ? null, cvs ? null, darcs ? null, fossil ? null
4
-
, mercurial ? null, monotone ? null, rcs ? null
5
-
, subversion ? null, cvs_fast_export ? null }:
6
7
-
with stdenv; with lib;
8
-
let
9
-
inherit (python27Packages) python;
10
-
in mkDerivation rec {
11
-
name = "reposurgeon-${meta.version}";
12
-
meta = {
13
-
description = "A tool for editing version-control repository history";
14
-
version = "3.44";
15
-
license = licenses.bsd3;
16
-
homepage = "http://www.catb.org/esr/reposurgeon/";
17
-
maintainers = with maintainers; [ dfoxfranke ];
18
-
platforms = platforms.all;
19
-
};
20
21
src = fetchurl {
22
-
url = "http://www.catb.org/~esr/reposurgeon/reposurgeon-3.44.tar.xz";
23
-
sha256 = "0il6hwrsm2qgg0vp5fcjh478y2x4zyw3mx2apcwc7svfj86pf7pn";
24
};
25
26
-
# install fails because the files README.md, NEWS, and TODO were not included in the source distribution
27
-
patches = [ ./fix-makefile.patch ];
28
29
-
buildInputs =
30
-
[ docbook_xml_dtd_412 docbook_xsl asciidoc xmlto makeWrapper pypy ];
31
32
-
preBuild = ''
33
-
makeFlagsArray=(
34
-
XML_CATALOG_FILES="${docbook_xml_dtd_412}/xml/dtd/docbook/catalog.xml ${docbook_xsl}/xml/xsl/docbook/catalog.xml"
35
-
prefix="$out"
36
-
pyinclude="-I${python}/include/python2.7"
37
-
pylib="-L${python}/lib -lpython2.7"
38
-
)
39
'';
40
41
-
postInstall =
42
-
let
43
-
binpath = makeBinPath (
44
-
filter (x: x != null)
45
-
[ out git breezy cvs darcs fossil mercurial
46
-
monotone rcs src subversion cvs_fast_export ]
47
-
);
48
-
pythonpath = makeSearchPathOutput "lib" python.sitePackages (
49
-
filter (x: x != null)
50
-
[ python27Packages.readline or null python27Packages.hglib or null ]
51
-
);
52
-
in ''
53
-
for prog in reposurgeon repodiffer repotool; do
54
-
wrapProgram $out/bin/$prog \
55
-
--prefix PATH : "${binpath}" \
56
-
--prefix PYTHONPATH : "${pythonpath}"
57
-
done
58
-
''
59
-
;
60
}
···
1
+
{ lib, stdenv, fetchurl, makeWrapper, buildGoModule, git
2
+
, asciidoctor, ruby
3
+
}:
0
0
4
5
+
buildGoModule rec {
6
+
pname = "reposurgeon";
7
+
version = "4.26";
0
0
0
0
0
0
0
0
0
0
8
9
src = fetchurl {
10
+
url = "http://www.catb.org/~esr/reposurgeon/reposurgeon-${version}.tar.xz";
11
+
sha256 = "sha256-FuL5pvIM468hEm6rUBKGW6+WlYv4DPHNnpwpRGzMwlY=";
12
};
13
14
+
vendorSha256 = "sha256-KpdXI2Znhe0iCp0DjSZXzUYDZIz2KBRv1/SpaRTFMAc=";
0
15
16
+
subPackages = [ "." ];
0
17
18
+
runVend = true;
19
+
20
+
nativeBuildInputs = [ asciidoctor ruby ];
21
+
22
+
postBuild = ''
23
+
patchShebangs .
24
+
make all HTMLFILES=
25
'';
26
27
+
postInstall = ''
28
+
make install prefix=$out HTMLFILES=
29
+
'';
30
+
31
+
meta = {
32
+
description = "A tool for editing version-control repository history";
33
+
license = lib.licenses.bsd3;
34
+
homepage = "http://www.catb.org/esr/reposurgeon/";
35
+
maintainers = with lib.maintainers; [ dfoxfranke ];
36
+
platforms = lib.platforms.all;
37
+
};
0
0
0
0
0
0
0
0
38
}