-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrelease.nix
33 lines (27 loc) · 829 Bytes
/
release.nix
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
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
let
#pkgsWin = pkgs.pkgsCross.mingwW64;
pkgsWin = import <nixpkgs> {
crossSystem = {
config = "x86_64-w64-mingw32";
libc = "msvcrt"; # This distinguishes the mingw (non posix) toolchain
};
};
in
#llvmPackages_13.stdenv.mkDerivation {
pkgsWin.stdenv.mkDerivation {
pname = "nether-pathfinder";
version = "master";
src = ./.;
nativeBuildInputs = [ cmake jdk ];
LIBRARY_PATH = "${pkgsWin.windows.pthreads}";
#cmakeFlags = "-DSHARED_LIBRARY=1";
installPhase = ''
mkdir -p $out/bin
#cp libnether_pathfinder.so $out/bin
#cp libnether_pathfinder.dll $out/bin
cp nether_pathfinder.exe $out/bin
#cp ${pkgsWin.windows.mcfgthreads}/bin/mcfgthread-12.dll $out/bin
'';
}