Repository navigation
Expand file tree
/
Copy pathshell.nix
More file actions
70 lines (60 loc) · 1.35 KB
/
Copy pathshell.nix
File metadata and controls
70 lines (60 loc) · 1.35 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
let
nixpkgs = fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/78e34d1667d32d8a0ffc3eba4591ff256e80576e.tar.gz";
};
pkgs = import nixpkgs {};
# Build MLKit package using the fetched source
mlkitPinned = pkgs.stdenv.mkDerivation {
name = "mlkit-pinned";
version = "git-4858b8b";
# Fetch MLKit from GitHub at specific commit
src = pkgs.fetchFromGitHub {
owner = "melsman";
repo = "mlkit";
rev = "55af1d1921c122d52da8fdcea664e6ca2a495a2d";
sha256 = "0ihijkdwxjsi6glj1vlf3sji76irsqazw817hcy39h7vl3n18v8f";
};
nativeBuildInputs = [
pkgs.mlton
pkgs.autoreconfHook
];
buildFlags = [
"mlkit"
"mlkit_libs"
];
doCheck = true;
# MLKit intentionally has some of these in its test suite.
# Since the test suite is available in `$out/share/mlkit/test`, we must disable this check.
dontCheckForBrokenSymlinks = true;
};
in
pkgs.stdenv.mkDerivation {
name = "specialeMikkel";
buildInputs =
with pkgs;
[ autoreconfHook
cacert
curl
futhark
gcc9
ghostscript
git
gnumake42
lima
mlkitPinned
mlton
nettools
smlpkg
tshark
tunctl
unzip
xen
];
shellHook = ''
export NIX_ENFORCE_PURITY=0
export CC=${pkgs.gcc9}/bin/gcc
export CXX=${pkgs.gcc9}/bin/g++
export PATH=${pkgs.gcc9}/bin:$PATH
fish
'';
}