blob: ab1ea0dd9a8e97e4393b352f0b34f460f92df8d1 (
plain)
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
|
{
lib,
stdenv,
fetchFromGitHub,
installShellFiles,
unstableGitUpdater,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "z64decompress";
version = "1.0.3-unstable-2023-12-21";
src = fetchFromGitHub {
owner = "z64dev";
repo = "z64decompress";
rev = "e2b3707271994a2a1b3afc6c3997a7cf6b479765";
hash = "sha256-PHiOeEB9njJPsl6ScdoDVwJXGqOdIIJCZRbIXSieBIY=";
};
nativeBuildInputs = [ installShellFiles ];
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
installPhase = ''
runHook preInstall
installBin z64decompress
install -Dm644 -t $out/share/licenses/z64decompress LICENSE
runHook postInstall
'';
passthru.updateScript = unstableGitUpdater {
tagPrefix = "v";
};
meta = {
description = "Zelda 64 rom decompressor";
homepage = "https://github.com/z64dev/z64decompress";
license = with lib.licenses; [
gpl3Only
# Reverse engineering
unfree
];
maintainers = with lib.maintainers; [ qubitnano ];
mainProgram = "z64decompress";
platforms = lib.platforms.linux;
hydraPlatforms = [ ];
};
})
|