tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
libfrida-core: init at 17.2.17
NilaTheDragon
5 months ago
8c198068
6752813c
+52
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
li
libfrida-core
package.nix
+52
pkgs/by-name/li/libfrida-core/package.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{
2
+
lib,
3
+
stdenvNoCC,
4
+
fetchurl,
5
+
}:
6
+
let
7
+
inherit (stdenvNoCC.hostPlatform) system;
8
+
version = "17.2.17";
9
+
source =
10
+
{
11
+
x86_64-linux = {
12
+
url = "https://github.com/frida/frida/releases/download/${version}/frida-core-devkit-${version}-linux-x86_64.tar.xz";
13
+
hash = "sha256-9elOokCY1bxzG2iL4iOODC/7qavwn77a0zOEBpAtT8Q=";
14
+
};
15
+
aarch64-linux = {
16
+
url = "https://github.com/frida/frida/releases/download/${version}/frida-core-devkit-${version}-linux-arm64.tar.xz";
17
+
hash = "sha256-jk8BKmp3VNvCYK6kgGouFOBECoDaGiWQ8EzZvBwL7cc=";
18
+
};
19
+
}
20
+
.${system} or (throw "Unsupported system: ${system}");
21
+
in
22
+
stdenvNoCC.mkDerivation (finalAttrs: {
23
+
pname = "libfrida-core";
24
+
inherit version;
25
+
26
+
src = fetchurl {
27
+
inherit (source) url hash;
28
+
};
29
+
dontUnpack = true;
30
+
31
+
installPhase = ''
32
+
runHook preInstall
33
+
mkdir -p $out/include $out/lib
34
+
tar -xf $src -C .
35
+
install -Dm755 libfrida-core.a -t $out/lib
36
+
install -Dm644 frida-core.h -t $out/include
37
+
runHook postInstall
38
+
'';
39
+
40
+
meta = {
41
+
description = "Frida core library intended for static linking into bindings";
42
+
homepage = "https://frida.re/";
43
+
changelog = "https://frida.re/news/";
44
+
license = lib.licenses.wxWindowsException31;
45
+
maintainers = with lib.maintainers; [ nilathedragon ];
46
+
platforms = [
47
+
"x86_64-linux"
48
+
"aarch64-linux"
49
+
];
50
+
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
51
+
};
52
+
})