-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
z64decompress: init at 1.0.3-unstable-2023-12-21
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
lib, | ||
stdenv, | ||
fetchFromGitHub, | ||
unstableGitUpdater, | ||
}: | ||
|
||
stdenv.mkDerivation (finalAttrs: { | ||
pname = "z64decompress"; | ||
version = "1.0.3-unstable-2023-12-21"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "z64tools"; | ||
repo = "z64decompress"; | ||
rev = "e2b3707271994a2a1b3afc6c3997a7cf6b479765"; | ||
hash = "sha256-PHiOeEB9njJPsl6ScdoDVwJXGqOdIIJCZRbIXSieBIY="; | ||
}; | ||
|
||
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ]; | ||
|
||
installPhase = '' | ||
runHook preInstall | ||
install -Dm755 -t $out/bin z64decompress | ||
install -Dm644 -t $out/share/licenses/${finalAttrs.pname} LICENSE | ||
runHook postInstall | ||
''; | ||
|
||
passthru.updateScript = unstableGitUpdater { }; | ||
|
||
meta = { | ||
description = "Zelda 64 rom decompressor"; | ||
homepage = "https://github.com/z64tools/z64decompress"; | ||
license = with lib.licenses; [ | ||
gpl3Only | ||
|
||
# Reverse engineering | ||
unfree | ||
]; | ||
maintainers = with lib.maintainers; [ qubitnano ]; | ||
mainProgram = "z64decompress"; | ||
platforms = lib.platforms.linux; | ||
hydraPlatforms = [ ]; | ||
}; | ||
}) |