-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathflake.nix
More file actions
86 lines (63 loc) · 2.52 KB
/
Copy pathflake.nix
File metadata and controls
86 lines (63 loc) · 2.52 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
description = "BRender";
inputs.nixpkgs.url = github:NixOS/nixpkgs;
outputs = { self, nixpkgs, ... }: let
forAllSystems = function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
mkShells = packages: builtins.mapAttrs (k: v: v.overrideAttrs(old: {
hardeningDisable = [ "all" ];
nativeBuildInputs = old.nativeBuildInputs ++ v.devTools;
})) (nixpkgs.lib.removeAttrs packages [ "wineserverHook" "uasm" "uasm-static" ]);
in {
packages = forAllSystems(pkgs: rec {
wineserverHook = pkgs.callPackage ./nix/wineserver-hook.nix { };
uasm = pkgs.callPackage ./nix/uasm { };
uasm-static = pkgs.pkgsStatic.callPackage ./nix/uasm { };
brender = pkgs.callPackage ./nix/brender.nix {
inherit wineserverHook uasm;
version = self.lastModifiedDate;
};
brender-samples = brender.override { withExamples = true; };
brender-samples-clang = brender-samples.override { stdenv = pkgs.clangStdenv; };
default = brender;
brender-samples-win32 = pkgs.pkgsCross.mingw32.callPackage ./nix/brender.nix {
inherit wineserverHook uasm;
version = self.lastModifiedDate;
withExamples = true;
};
brender-samples-win64 = pkgs.pkgsCross.mingwW64.callPackage ./nix/brender.nix {
inherit wineserverHook uasm;
version = self.lastModifiedDate;
withExamples = true;
};
brender-samples-linux32 = pkgs.pkgsi686Linux.callPackage ./nix/brender.nix {
inherit wineserverHook uasm;
version = self.lastModifiedDate;
withExamples = true;
};
brender-dos-i686 = pkgs.callPackage ./nix/dos.nix {
inherit wineserverHook uasm;
version = self.lastModifiedDate;
systemProcessor = "i686";
djgpp = pkgs.djgpp_i686;
djgppPrefix = "i686-pc-msdosdjgpp-";
};
brender-dos-i586 = pkgs.callPackage ./nix/dos.nix {
inherit wineserverHook uasm;
version = self.lastModifiedDate;
systemProcessor = "i586";
djgpp = pkgs.djgpp_i586;
djgppPrefix = "i586-pc-msdosdjgpp-";
};
});
devShells.x86_64-linux = mkShells self.packages.x86_64-linux;
devShells.aarch64-linux = mkShells self.packages.aarch64-linux;
devShells.x86_64-darwin = mkShells self.packages.x86_64-darwin;
devShells.aarch64-darwin = mkShells self.packages.aarch64-darwin;
};
}