forked from eser/hayalet-sevgilim-sarki-sozleri
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
42 lines (35 loc) · 1.31 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
# SPDX-FileCopyrightText: 2021 Serokell <https://serokell.io/>
#
# SPDX-License-Identifier: CC0-1.0
{
description = "Hayalet Sevgilim Sarki Sozleri";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/haskell-updates";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
haskellPackages = pkgs.haskellPackages.override {
overrides = hself: hsuper: {
${packageName} =
hself.callCabal2nix packageName ./. { };
ormolu = pkgs.haskell.lib.overrideCabal hsuper.ormolu (_: {
enableSeparateBinOutput = false;
});
ghcid = pkgs.haskell.lib.overrideCabal hsuper.ghcid (_: {
enableSeparateBinOutput = false;
});
};
};
packageName = "hayalet-sevgilim-sarki-sozleri";
in {
packages.${packageName} = haskellPackages.${packageName};
defaultPackage = self.packages.${system}.${packageName};
devShell = haskellPackages.shellFor {
packages = p: [p.${packageName}];
buildInputs = [haskellPackages.haskell-language-server haskellPackages.cabal-install haskellPackages.ghcid];
};
});
}