summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/debmirror
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2016-11-09 16:57:39 +0100
committermakefu <github@syntax-fehler.de>2016-11-09 16:58:52 +0100
commit8161fcfe3a558b12fb2cf5dec135d26eadacd767 (patch)
tree0f17ff406df5c69cd956754778afac232ddd6ccf /makefu/5pkgs/debmirror
parentdbb25f7288be2c9d2afe796d63d1a070e353daca (diff)
m 5 debmirror: init
Diffstat (limited to 'makefu/5pkgs/debmirror')
-rw-r--r--makefu/5pkgs/debmirror/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/makefu/5pkgs/debmirror/default.nix b/makefu/5pkgs/debmirror/default.nix
new file mode 100644
index 000000000..67b34b6ee
--- /dev/null
+++ b/makefu/5pkgs/debmirror/default.nix
@@ -0,0 +1,41 @@
+{ stdenv, pkgs, fetchgit }:
+
+pkgs.perlPackages.buildPerlPackage rec {
+ name = "debmirror-${version}";
+ version = "2.25";
+
+ enableParallelBuilding = true;
+
+ src = fetchgit {
+ url = "https://anonscm.debian.org/git/collab-maint/debmirror.git";
+ rev = "c77e5caa15a4ab6497db5d819614387e647ccf4e";
+ sha256 = "1zp8ff9ajw22b4wradnw1hnfcpbyx5ibqzqgk6kp79nsj1dzmm0d";
+ };
+ preConfigure = ''
+ touch Makefile.PL
+ '';
+
+ outputs = [ "out" ];
+
+ buildPhase = ''
+ make
+ '';
+
+ doCheck = false;
+
+ installPhase = ''
+ mkdir -p $out/bin $out/share/man/man1/
+ cp debmirror mirror-size $out/bin
+ cp debmirror.1 $out/share/man/man1/
+ '';
+ propagatedBuildInputs = (with pkgs.perlPackages; [ LockFileSimple LWP]) ++
+ (with pkgs; [ rsync patch ed gzip diffutils findutils gnupg1 xz ]);
+
+ meta = {
+ description = "mirror apt repos";
+ homepage = https://tracker.debian.org/pkg/debmirror;
+ license = stdenv.lib.licenses.gpl2;
+ platforms = stdenv.lib.platforms.linux;
+ maintainers = with stdenv.lib.maintainers; [ makefu ];
+ };
+}