-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
64 lines (58 loc) · 1.71 KB
/
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
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
{
description = "Nix Flake template using the 'nixpkgs-unstable' branch and 'flake-utils'";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system: let
goMigrateSqlite = self: super: {
go-migrate = super.go-migrate.overrideAttrs (old: {
tags = old.tags ++ ["sqlite3"];
});
};
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [goMigrateSqlite];
};
in rec {
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
coreutils
moreutils
jq
go-migrate
awscli2
sqlite-interactive
litestream
flyctl
alejandra
terraform
nodePackages.typescript-language-server
nodePackages.prettier
cabal2nix
haskellPackages.ormolu
haskellPackages.ghcid
haskellPackages.cabal-install
haskellPackages.cabal-fmt
haskellPackages.hlint
haskellPackages.fast-tags
ghc
# Failed to build zlib-0.6.3.0. The failure occurred during the configure step.
# Build log ( /Users/fbs/.cache/cabal/logs/ghc-8.10.7/zlb-0.6.3.0-47c3bb32.log
# ):
# Configuring library for zlib-0.6.3.0..
# Error: .cabal-wrapped: Missing dependency on a foreign library:
# * Missing (or bad) C library: z
zlib
];
};
}
);
}