blob: 560afe32b8a1977b839427c3c9a1cde594d625f6 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
{ lib
, stdenv
, fetchFromGitLab
, curl
, dialog
, installShellFiles
, perl
, python3
}:
stdenv.mkDerivation rec {
pname = "debian-goodies";
version = "0.88";
src = fetchFromGitLab {
domain = "salsa.debian.org";
owner = "debian";
repo = "debian-goodies";
rev = "debian/${version}";
sha256 = "sha256-SDGWRGwRuryCJSWjuYB+Cg/Pl8q4VP4zcisUOn/GhJY=";
};
postPatch = ''
substituteInPlace debmany/debmany \
--replace "/usr/bin/dialog" "${dialog}/bin/dialog" \
--replace "/usr/bin/whiptail" "${python3.pkgs.snack}/bin/whiptail"
substituteInPlace dman \
--replace "curl" "${curl}/bin/curl"
'';
nativeBuildInputs = [
installShellFiles
];
buildInputs = [
perl
python3
];
installPhase = ''
runHook preInstall
# see https://salsa.debian.org/debian/debian-goodies/-/blob/master/debian/install
for bin in checkrestart dgrep dglob debget dpigs debman dman popbugs which-pkg-broke which-pkg-broke-build dhomepage debmany/debmany check-enhancements find-dbgsym-packages; do
install -Dm755 $bin -t $out/bin
done
install -Dm644 find-dbgsym-packages-templates/* -t $out/share/debian-goodies/find-dbgsym-packages-templates/
installShellCompletion --bash \
debmany/bash_completion/debmany \
debian/bash-completion
installManPage \
*.1 \
debmany/man/*.1 \
*.8
runHook postInstall
'';
meta = with lib; {
description = "Small toolbox-style utilities for Debian systems";
homepage = "https://salsa.debian.org/debian/debian-goodies";
license = licenses.gpl2Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
|