about summary refs log tree commit diff
path: root/pkgs/by-name/nx/nxengine-evo/assets.nix
blob: 96c2e5f1e70b4bfb429e527572310b42dd7e5894 (plain) (blame)
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
{ 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 ];
  };
})