nixpkgs/pkgs/by-name/nx/nxengine-evo/assets.nix
2024-05-01 23:59:19 -03:00

38 lines
909 B
Nix

{ lib
, stdenvNoCC
, fetchzip
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "nxengine-assets";
version = "2.6.5-1";
src = fetchzip {
url = "https://github.com/nxengine/nxengine-evo/releases/download/v${finalAttrs.version}/NXEngine-Evo-v${finalAttrs.version}-Win64.zip";
hash = "sha256-+PjjhJYL1yk67QJ7ixfpCRg1coQnSPpXDUIwsqp9aIM=";
};
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/nxengine/
cp -r data/ $out/share/nxengine/data
runHook postInstall
'';
meta = {
homepage = "https://github.com/nxengine/nxengine-evo";
description = "Assets for nxengine-evo";
license = with lib.licenses; [
unfreeRedistributable
];
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.all;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
};
})