about summary refs log tree commit diff
path: root/pkgs/by-name/ji/jigdo/package.nix
blob: 2bf1e193e5de671f06a0fa2a1e5bfe0b2c538298 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ lib
, stdenv
, fetchurl
, gettext
, bzip2
, db
, zlib
}:

stdenv.mkDerivation rec {
  pname = "jigdo";
  version = "0.8.2";

  src = fetchurl {
    url = "https://www.einval.com/~steve/software/jigdo/download/jigdo-${version}.tar.xz";
    hash = "sha256-NvKG2T+mtr94hfSJnJl4lNIdo6YhdlkqwWLZxqhkT54=";
  };

  # unable to parse jigdo-file.sgml
  postPatch = ''
    sed \
      -e "s@.*cd doc.*@@g" \
      -e "s@.*/man1.*@\t\t:@g" \
      -i Makefile.in
  '';

  strictDeps = true;

  nativeBuildInputs = [
    gettext
  ];

  buildInputs = [
    bzip2
    db
    zlib
  ];

  meta = with lib; {
    description = "Download utility that can fetch files from several sources simultaneously";
    homepage = "https://www.einval.com/~steve/software/jigdo/";
    changelog = "https://git.einval.com/cgi-bin/gitweb.cgi?p=jigdo.git;a=blob;f=changelog;hb=refs/tags/${version}";
    license = licenses.gpl2Only;
    maintainers = with maintainers; [ wegank ];
    platforms = platforms.unix;
  };
}