tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
reposurgeon: init at 3.28
Daniel Fox Franke
10 years ago
686fec3c
2194295f
+80
3 changed files
expand all
collapse all
unified
split
pkgs
applications
version-management
reposurgeon
default.nix
fix-preserve-type.patch
top-level
all-packages.nix
+66
pkgs/applications/version-management/reposurgeon/default.nix
···
1
1
+
{stdenv, fetchurl, makeWrapper, python27, python27Packages, git,
2
2
+
docbook_xml_dtd_412, docbook_xml_xslt, asciidoc, xmlto,
3
3
+
cython ? null,
4
4
+
bazaar ? null, cvs ? null, darcs ? null, fossil ? null,
5
5
+
mercurial ? null, monotone ? null, rcs ? null, src ? null,
6
6
+
subversion ? null, cvs_fast_export ? null }:
7
7
+
with stdenv; with lib;
8
8
+
mkDerivation rec {
9
9
+
name = "reposurgeon-${meta.version}";
10
10
+
meta = {
11
11
+
description = "A tool for editing version-control repository history";
12
12
+
version = "3.28";
13
13
+
license = licenses.bsd3;
14
14
+
homepage = "http://www.catb.org/esr/reposurgeon/";
15
15
+
maintainers = with maintainers; [ dfoxfranke ];
16
16
+
platforms = platforms.all;
17
17
+
};
18
18
+
19
19
+
src = fetchurl {
20
20
+
url = "http://www.catb.org/~esr/reposurgeon/reposurgeon-3.28.tar.gz";
21
21
+
sha256 = "3225b44109b8630310a0ea6fe63a3485d27aa46deaf80e8d07820e01a6f62626";
22
22
+
};
23
23
+
24
24
+
# See https://gitlab.com/esr/reposurgeon/issues/17
25
25
+
patches = [ ./fix-preserve-type.patch ];
26
26
+
27
27
+
buildInputs =
28
28
+
[ docbook_xml_dtd_412 docbook_xml_xslt asciidoc xmlto makeWrapper ] ++
29
29
+
optional (cython != null) cython
30
30
+
;
31
31
+
32
32
+
preBuild = ''
33
33
+
makeFlagsArray=(
34
34
+
XML_CATALOG_FILES="${docbook_xml_dtd_412}/xml/dtd/docbook/catalog.xml ${docbook_xml_xslt}/xml/xsl/docbook/catalog.xml"
35
35
+
prefix="$out"
36
36
+
pyinclude="-I${python27}/include/python2.7"
37
37
+
pylib="-L${python27}/lib -lpython2.7"
38
38
+
)
39
39
+
'';
40
40
+
41
41
+
buildFlags = "all" + (if cython != null then " cyreposurgeon" else "");
42
42
+
43
43
+
installTargets =
44
44
+
"install" + (if cython != null then " install-cyreposurgeon" else "")
45
45
+
;
46
46
+
47
47
+
postInstall =
48
48
+
let
49
49
+
binpath = makeSearchPath "bin" (
50
50
+
filter (x: x != null)
51
51
+
[ out git bazaar cvs darcs fossil mercurial
52
52
+
monotone rcs src subversion cvs_fast_export ]
53
53
+
);
54
54
+
pythonpath = makeSearchPath (python27.sitePackages) (
55
55
+
filter (x: x != null)
56
56
+
[ python27Packages.readline or null python27Packages.hglib or null ]
57
57
+
);
58
58
+
in ''
59
59
+
for prog in reposurgeon repodiffer repotool; do
60
60
+
wrapProgram $out/bin/$prog \
61
61
+
--prefix PATH : "${binpath}" \
62
62
+
--prefix PYTHONPATH : "${pythonpath}"
63
63
+
done
64
64
+
''
65
65
+
;
66
66
+
}
+12
pkgs/applications/version-management/reposurgeon/fix-preserve-type.patch
···
1
1
+
diff -Nru reposurgeon-3.28/reposurgeon reposurgeon-3.28-new/reposurgeon
2
2
+
--- reposurgeon-3.28/reposurgeon 2015-07-05 15:17:13.000000000 -0400
3
3
+
+++ reposurgeon-3.28-new/reposurgeon 2015-08-25 18:23:11.347591137 -0400
4
4
+
@@ -193,7 +193,7 @@
5
5
+
importer=b"git fast-import --quiet",
6
6
+
checkout=b"git checkout",
7
7
+
lister=b"git ls-files",
8
8
+
- preserve=(b'.git/config', b'.git/hooks'),
9
9
+
+ preserve=set((b'.git/config', b'.git/hooks')),
10
10
+
authormap=b".git/cvs-authors",
11
11
+
ignorename=b".gitignore",
12
12
+
dfltignores=b"", # Has none
+2
pkgs/top-level/all-packages.nix
···
2842
2842
2843
2843
replace = callPackage ../tools/text/replace { };
2844
2844
2845
2845
+
reposurgeon = callPackage ../applications/version-management/reposurgeon { };
2846
2846
+
2845
2847
reptyr = callPackage ../os-specific/linux/reptyr {};
2846
2848
2847
2849
rescuetime = callPackage ../applications/misc/rescuetime { };