-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate nix files into {default, shell, nixpkgs}.nix (#43)
This helps in extending `default.nix` in any way we want to - `nix-build` uses `default.nix` - `nix-shell` uses `shell.nix` So it's all separated and if need be, only update the files as required and if `nixpkgs` version is to be changed then `nixpkgs.nix` it is
- Loading branch information
1 parent
4e4e395
commit 67dc9e3
Showing
4 changed files
with
33 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
let | ||
nixpkgs = builtins.fetchTarball { | ||
url = "https://github.com/NixOS/nixpkgs/archive/db858b4d3032aec35be7e98a65eb9b91b63671ef"; | ||
sha256 = "0gqcbf5nyqff1a4ps6szcrv59ay97fr26jdwrs7qp8fijzcpdnkh"; | ||
}; | ||
in nixpkgs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
let | ||
drv = import ./default.nix { withHoogle = true; }; | ||
pkgs = drv.pkgs; | ||
in drv.fencer.env.overrideAttrs (attrs: { | ||
buildInputs = [ | ||
pkgs.haskellPackages.cabal-install | ||
pkgs.haskellPackages.cabal2nix | ||
pkgs.haskellPackages.ghcid | ||
pkgs.haskellPackages.hlint | ||
] ++ [ | ||
pkgs.haskellPackages.zlib | ||
] ++ [ | ||
pkgs.wget | ||
] ++ attrs.buildInputs; | ||
}) |