-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpackage.nix
More file actions
72 lines (66 loc) · 1.31 KB
/
Copy pathpackage.nix
File metadata and controls
72 lines (66 loc) · 1.31 KB
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
71
72
{
lib,
stdenv,
fetchurl,
dpkg,
autoPatchelfHook,
wrapGAppsHook4,
libadwaita,
libzip,
libnice,
swift,
adwaita-icon-theme,
hicolor-icon-theme,
libgee,
libxml2,
atk,
sqlite,
glib-networking,
libffi,
openssl,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "luma";
version = "1.2.3";
src = fetchurl {
url = "https://github.com/frida/luma/releases/download/${finalAttrs.version}/luma-${finalAttrs.version}-ubuntu-24.04-x86_64.deb";
hash = "sha256-7MG/70fVez9MOHc3FlSnbXCxE+8cB2czq1BFQrCT/B4=";
};
nativeBuildInputs = [
dpkg
autoPatchelfHook
wrapGAppsHook4
];
buildInputs = [
libadwaita
libzip
libnice
swift
adwaita-icon-theme
hicolor-icon-theme
libgee
libxml2
atk
sqlite
glib-networking
libffi
openssl
];
unpackPhase = "dpkg-deb -x $src .";
installPhase = ''
runHook preInstall
mkdir -p $out
cp -r usr/. $out/
patchelf --replace-needed libzip.so.4 libzip.so $out/bin/luma
patchelf --replace-needed libxml2.so.2 libxml2.so \
$out/lib/luma/swift/libFoundationXML.so
runHook postInstall
'';
meta = {
description = "The official Frida GUI";
homepage = "https://luma.frida.re/";
license = lib.licenses.mit;
platforms = [ "x86_64-linux" ];
mainProgram = "luma";
};
})