Skip to content

Commit 14b868d

Browse files
googleson78Bodigrim
authored andcommitted
Add a nix shell for building
1 parent 1fc89c0 commit 14b868d

File tree

3 files changed

+97
-0
lines changed

3 files changed

+97
-0
lines changed

flake.lock

Lines changed: 42 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Note that this is probably an overestimation.
2+
{
3+
description = "Build dependencies for clc-stackage";
4+
inputs = {
5+
flake-compat = {
6+
url = "github:edolstra/flake-compat";
7+
flake = false;
8+
};
9+
};
10+
11+
outputs = { self, nixpkgs, ... }:
12+
with nixpkgs.legacyPackages.x86_64-linux;
13+
{
14+
devShell.x86_64-linux = mkShell {
15+
buildInputs = [
16+
cabal-install
17+
libffi.dev
18+
libGL
19+
xorg.libX11
20+
zlib
21+
pkg-config
22+
xorg.libXcursor
23+
xorg.libXrandr
24+
xorg.libXxf86vm
25+
xorg.libXi
26+
bzip2
27+
curl
28+
libGLU
29+
xorg.libXau
30+
xorg.libXinerama
31+
blas
32+
pcre
33+
icu
34+
lzlib
35+
xz
36+
lapack
37+
expat
38+
file
39+
systemdMinimal
40+
elfutils
41+
xorg.libXext.dev
42+
];
43+
};
44+
};
45+
}

shell.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
(import
2+
(
3+
let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in
4+
fetchTarball {
5+
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
6+
sha256 = lock.nodes.flake-compat.locked.narHash;
7+
}
8+
)
9+
{ src = ./.; }
10+
).shellNix

0 commit comments

Comments
 (0)