-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
49 lines (42 loc) · 1.1 KB
/
default.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{ resholve, bash, coreutils, dotnet-sdk_7, findutils, steamPackages, ... }:
let
wine-steam-run-pkg = steamPackages.steam-fhsenv.override {
steam = null;
extraLibraries = pkgs: [ pkgs.libunwind pkgs.gnutls ];
};
wine-steam-run = "${wine-steam-run-pkg.passthru.run}/bin/steam-run";
in
resholve.mkDerivation rec {
pname = "dalamud-linux-scripts";
version = "0.0.2";
src = ./.;
dontConfigure = true;
dontBuild = true;
installPhase = ''
mkdir -p $out/bin
cp $src/dalamud-linux-* $out/bin
substituteInPlace $out/bin/* --replace "WINECMDPREFIX=\"\"" "WINECMDPREFIX=\"${wine-steam-run}\""
'';
solutions = {
default = {
scripts = [
"bin/dalamud-linux-build"
"bin/dalamud-linux-clean"
"bin/dalamud-linux-inject"
"bin/dalamud-linux-paths"
];
interpreter = "${bash}/bin/bash";
inputs = [
coreutils
findutils
dotnet-sdk_7
];
keep = {
"$WINECMDPREFIX" = true;
"$WINELOADER" = true;
"$XLCORE_WINE" = true;
source = [ "$SCRIPT_FOLDER" ];
};
};
};
}