33 lines
627 B
Nix
33 lines
627 B
Nix
{
|
|
stdenv,
|
|
writeShellScriptBin,
|
|
appimage-run
|
|
}:
|
|
let
|
|
src = ./HueForge_Linux_v0.9.3.1.AppImage;
|
|
wrapperScript = writeShellScriptBin "hueforge" ''
|
|
exec ${appimage-run}/bin/appimage-run ${src} "$@"
|
|
'';
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
inherit src;
|
|
pname = "hueforge";
|
|
version = "0.9.3.1";
|
|
|
|
dontUnpack = true;
|
|
dontConfigure = true;
|
|
dontPatch = true;
|
|
dontFixup = true;
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/{share,bin}
|
|
|
|
cp $src $out/share/HueForge_Linux_v0.9.3.1.AppImage
|
|
cp ${wrapperScript}/bin/hueforge $out/bin/hueforge
|
|
|
|
runHook postInstall
|
|
'';
|
|
}
|