tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
guymager: init at 0.8.13
D3vil0p3r
1 year ago
bceebe87
168d5617
+79
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
gu
guymager
package.nix
+79
pkgs/by-name/gu/guymager/package.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
stdenv,
4
4
+
fetchurl,
5
5
+
libsForQt5,
6
6
+
dpkg,
7
7
+
parted,
8
8
+
udev,
9
9
+
libewf-legacy,
10
10
+
libbfio,
11
11
+
libguytools,
12
12
+
}:
13
13
+
14
14
+
stdenv.mkDerivation (finalAttrs: {
15
15
+
pname = "guymager";
16
16
+
version = "0.8.13";
17
17
+
18
18
+
src = fetchurl {
19
19
+
url = "mirror://sourceforge/project/guymager/guymager/LatestSource/guymager-${finalAttrs.version}.tar.gz";
20
20
+
hash = "sha256-xDsQ/d6fyfLOr4uXpdoqMljfFrVgQTUu0t2e5opcaRg=";
21
21
+
};
22
22
+
23
23
+
enableParallelBuilding = true;
24
24
+
25
25
+
nativeBuildInputs = [
26
26
+
dpkg
27
27
+
libsForQt5.qmake
28
28
+
libsForQt5.qttools
29
29
+
libsForQt5.wrapQtAppsHook
30
30
+
];
31
31
+
buildInputs = [
32
32
+
libsForQt5.qtbase
33
33
+
libewf-legacy
34
34
+
libbfio
35
35
+
libguytools
36
36
+
parted
37
37
+
udev
38
38
+
];
39
39
+
40
40
+
postPatch = ''
41
41
+
patchShebangs compileinfo.sh
42
42
+
substituteInPlace manuals/guymager_body.1 config.cpp \
43
43
+
--replace-fail "/etc/guymager/guymager.cfg" "$out/share/guymager/guymager.cfg"
44
44
+
substituteInPlace compileinfo.sh \
45
45
+
--replace-fail " debian/changelog" "" \
46
46
+
--replace-fail "dpkg-parsechangelog" "dpkg-parsechangelog -l changelog"
47
47
+
substituteInPlace threadscan.cpp \
48
48
+
--replace-fail '/lib,/usr/lib,/usr/lib64,/usr/local/lib' '${
49
49
+
builtins.replaceStrings [ ":" ] [ "," ] (
50
50
+
lib.makeLibraryPath [
51
51
+
udev
52
52
+
parted
53
53
+
]
54
54
+
)
55
55
+
}'
56
56
+
substituteInPlace org.freedesktop.guymager.policy guymager.pro main.cpp guymager.cfg \
57
57
+
--replace-fail /usr $out
58
58
+
'';
59
59
+
60
60
+
installPhase = ''
61
61
+
runHook preInstall
62
62
+
mkdir -p $out/{bin,share}
63
63
+
make clean
64
64
+
rm -rf *.cpp *.h *.pro
65
65
+
cp -aR . "$out/share/guymager/"
66
66
+
makeWrapper $out/share/guymager/guymager $out/bin/guymager
67
67
+
runHook postInstall
68
68
+
'';
69
69
+
70
70
+
meta = {
71
71
+
description = "Forensic imager for media acquisition";
72
72
+
mainProgram = "guymager";
73
73
+
homepage = "https://guymager.sourceforge.io";
74
74
+
maintainers = with lib.maintainers; [ d3vil0p3r ];
75
75
+
platforms = lib.platforms.linux;
76
76
+
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
77
77
+
license = lib.licenses.gpl2Only;
78
78
+
};
79
79
+
})