-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
35 lines (30 loc) · 875 Bytes
/
flake.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
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = { self, nixpkgs }: let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
# what am I doing
joinLDPaths =
l: pkgs.lib.strings.concatStringsSep ":" (map (d: "${d}/lib") l);
in {
packages.x86_64-linux.hello = nixpkgs.legacyPackages.x86_64-linux.hello;
packages.x86_64-linux.default = self.packages.x86_64-linux.hello;
devShells.x86_64-linux.default = pkgs.mkShell {
name = "minesweeper-hs";
# this just doesn't work lol idk will figure it out later
buildInputs = with pkgs.haskellPackages; [
cabal-install
ghc
];
LD_LIBRARY_PATH = joinLDPaths [
pkgs.zlib
pkgs.zstd.out
pkgs.SDL2
pkgs.xz.out
pkgs.bzip2.out
];
};
};
}