-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
34 lines (30 loc) · 832 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
{
inputs = {
nixpkgs.url =
# Sat Nov 23 05:11:19 PM CET 2024
"https://github.com/NixOS/nixpkgs/archive/057f63b6dc1a2c67301286152eb5af20747a9cb4.tar.gz";
flake-utils.url = "github:numtide/flake-utils";
};
nixConfig.bash-prompt = "[dev] ";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
let
pkgs = nixpkgs.legacyPackages.${system};
tete = import ./. {
inherit pkgs;
isShell = false;
};
in {
packages = {
tete = tete;
default =
pkgs.haskell.lib.justStaticExecutables self.packages.${system}.tete;
};
devShells = {
default = import ./. {
inherit pkgs;
isShell = true;
};
};
});
}