-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
69 lines (48 loc) · 1.99 KB
/
flake.nix
File metadata and controls
69 lines (48 loc) · 1.99 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
{
description = "suckless-cong: sexp based configs";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
haskell-flake-utils.url = "github:ivanovs-4/haskell-flake-utils";
fuzzy.url =
# "git+http://git.hbs2/GmcLB9gEPT4tbx9eyQiECwsu8oPyEh6qKEpQDtyBWVPA?ref=sexp-parser&rev=bd3a38904864d5cc333974e7b029412607b46871";
"git+http://git.hbs2.net/GmcLB9gEPT4tbx9eyQiECwsu8oPyEh6qKEpQDtyBWVPA?rev=9e41a735a8bdb02b2b5c405341d8b3b98242f021";
};
outputs = { self, fuzzy, nixpkgs, haskell-flake-utils, ... }@inputs:
haskell-flake-utils.lib.simpleCabal2flake {
inherit self nixpkgs;
# systems = [ "x86_64-linux" ];
# wtf = import fetcher-flake.out.outPath;
# project-b = import fuzzy.out.outPath;
name = "suckless-conf";
## Optional parameters follow
# nixpkgs config
# config = { };
# Add another haskell flakes as requirements
# haskellFlakes = [ inputs.another-simple-haskell-flake ];
# Use this to load other flakes overlays to supplement nixpkgs
# preOverlays = [ ];
# Pass either a function or a file
# preOverlay = ./overlay.nix;
# Override haskell packages
# hpPreOverrides = { pkgs }: new: old:
# with pkgs.haskell.lib; with haskell-flake-utils.lib;
# tunePackages pkgs old {
# some-haskellPackages-package = [ dontHaddock ];
# } // {
# some-cabal-pkg = ((jailbreakUnbreak pkgs) (dontCheck (old.callCabal2nix "some-cabal-pkg" inputs.some-cabal-pkg {})));
# };
# Arguments for callCabal2nix
# cabal2nixArgs = {pkgs}: {
# };
# Maps to the devShell output. Pass in a shell.nix file or function
haskellFlakes = with inputs; [
fuzzy
];
# Additional build intputs of the default shell
shellExtBuildInputs = {pkgs}: with pkgs; [
haskellPackages.haskell-language-server
];
# Wether to build hoogle in the default shell
# shellWithHoogle = true;
};
}