-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
31 lines (30 loc) · 920 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
{
inputs.nixpkgs.url = github:poscat0x04/nixpkgs/dev;
inputs.flake-utils.url = github:poscat0x04/flake-utils;
outputs = { self, nixpkgs, flake-utils, ... }: with flake-utils;
eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; overlays = [ self.overlay ]; };
in
with pkgs;
{
devShell = telegram-types-dev.envFunc { withHoogle = true; };
defaultPackage = telegram-types;
}
) // {
overlay = self: super:
let
hpkgs = super.haskellPackages;
telegram-types = hpkgs.callCabal2nix "telegram-types" ./. {};
in
with super; with haskell.lib;
{
inherit telegram-types;
telegram-types-dev = addBuildTools telegram-types [
haskell-language-server
cabal-install
];
};
};
}