summary refs log tree commit diff
path: root/pkgs/tools/misc/apt-offline/default.nix
blob: 219cb2139f58ae29dd91608d2ac0652e9b95424c (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
{ stdenv, fetchurl, bash, buildPythonPackage }:

buildPythonPackage rec {
  version = "1.3";
  name = "apt-offline-${version}";

  src = fetchurl {
    #url = "https://alioth.debian.org/frs/download.php/file/3855/${name}.tar.gz";
    # The above URL has two problems: it requires one to be logged in, and it
    # uses a CA that curl doesn't know about.  Instead, we use this mirror:
    url = "http://www.falsifian.org/a/cFi5/${name}.tar.gz";
    sha256 = "1sp7ai2abzhbg9y84700qziybphvpzl2nk3mz1d1asivzyjvxlxy";
  };

  buildInputs = [ ];

  doCheck = false;

  # Requires python-qt4 (feel free to get it working).
  preFixup = ''rm "$out/bin/apt-offline-gui"'';

  meta = with stdenv.lib; {
    description = "offline APT package manager";
    license = licenses.gpl3;
    maintainers = [ maintainers.falsifian ];
    platforms = platforms.linux;
  };
}