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