-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathshell.nix
More file actions
67 lines (59 loc) · 1.43 KB
/
shell.nix
File metadata and controls
67 lines (59 loc) · 1.43 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
{pkgs ? import <nixpkgs> {}}:
let
llvmMingw = pkgs.stdenv.mkDerivation rec {
name = "llvm-mingw";
version = "20230517";
src = pkgs.fetchurl {
url = "https://github.com/mstorsjo/llvm-mingw/releases/download/${version}/llvm-mingw-${version}-ucrt-ubuntu-20.04-x86_64.tar.xz";
hash = "sha256-AykvzWa5/blLOQ9IWZ/y65wCTQU1c7qQiDR6nE4WHs0=";
};
dontStrip = true;
dontPatchELF = true;
nativeBuildInputs = with pkgs; [
];
buildInputs = with pkgs; [
stdenv.cc.cc.lib
zlib
];
installPhase = ''
runHook preInstall
mkdir -p $out
cp -r ./* $out
runHook postInstall
'';
};
in
pkgs.mkShell /*.override {stdenv = pkgs.llvmPackages_latest.stdenv;}*/ {
NIX_LD = pkgs.lib.fileContents "${pkgs.stdenv.cc}/nix-support/dynamic-linker";
LLVM_MINGW_SYSROOT = llvmMingw; /* Use as -DMINGW_SYSROOT_PATH=$LLVM_MINGW_SYSROOT */
NIX_HARDENING_ENABLE = "0"; /* Disable hardening */
nativeBuildInputs = with pkgs; [
autoconf
automake
autogen
flex
bison
libtool
gtk-doc
gettext
pkg-config
gperf
glslang
libtasn1
python3Packages.python
python3Packages.mako
python3Packages.ply
python3Packages.setuptools
libev
freetype
xorg.libX11
vulkan-headers
jq
perl
];
depsBuildBuild = with pkgs; [
ninja
cmake
meson
];
}