Something went wrong. Try again.
Flake for GDSDecomp
Something went wrong. Try again.
gdsdecomp-flake default.nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162{ pkgs ? import <nixpkgs> {} }:
let runtimeLibs = with pkgs; [ stdenv.cc.cc.lib libx11 libxcursor libxrandr libxi libxinerama libxext libxrender wayland libGL zlib ];inpkgs.stdenv.mkDerivation rec { pname = "gdsdecomp"; version = "2.7.4";
src = pkgs.fetchurl { url = "https://github.com/GDRETools/gdsdecomp/releases/download/v${version}/GDRE_tools-v${version}-linux.zip"; sha256 = "sha256-PcTxJE3aYuQeDJUqwApp5g4H87DVohEWSAa/nUGlR1g="; };
dontUnpack = true;
nativeBuildInputs = with pkgs; [ unzip makeWrapper copyDesktopItems ];
desktopItems = [ (pkgs.makeDesktopItem { name = pname; exec = pname; icon = pname; desktopName = "GDRETools gdsdecomp"; comment = "Godot Engine game asset decompiler"; categories = [ "Development" "Utility" ]; }) ];
installPhase = '' runHook preInstall mkdir -p $out/bin $out/libexec/gdsdecomp unzip $src -d $out/libexec/gdsdecomp/ chmod +x $out/libexec/gdsdecomp/gdre_tools.x86_64 makeWrapper $out/libexec/gdsdecomp/gdre_tools.x86_64 $out/bin/gdsdecomp \ --prefix LD_LIBRARY_PATH : "${pkgs.lib.makeLibraryPath runtimeLibs}" \ --add-flags "--main-pack $out/libexec/gdsdecomp/gdre_tools.pck" runHook postInstall '';
meta.mainProgram = "gdsdecomp";}