-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump nixpkgs and simplify/clean up nix setup (#1529)
* Refactor tests and fix README * fix linting hints from new hlint version * postgrest-style with new nixpkgs-fmt
- Loading branch information
1 parent
e6874c8
commit 48c9ac3
Showing
27 changed files
with
268 additions
and
344 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
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Pinned version of Nixpkgs, generated with nixpkgs-upgrade. | ||
{ | ||
date = "2020-04-19"; | ||
rev = "10100a97c8964e82b30f180fda41ade8e6f69e41"; | ||
tarballHash = "011f36kr3c1ria7rag7px26bh73d1b0xpqadd149bysf4hg17rln"; | ||
date = "2020-05-19"; | ||
rev = "0f5ce2fac0c726036ca69a5524c59a49e2973dd4"; | ||
tarballHash = "0nkk492aa7pr0d30vv1aw192wc16wpa1j02925pldc09s9m9i0r3"; | ||
} |
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
File renamed without changes.
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 |
---|---|---|
@@ -1,11 +1,37 @@ | ||
{ compiler, static ? false }: | ||
|
||
self: super: | ||
let | ||
lib = | ||
self.haskell.lib; | ||
|
||
overrides = | ||
final: prev: | ||
rec { | ||
protolude = | ||
prev.callHackageDirect | ||
{ | ||
pkg = "protolude"; | ||
ver = "0.3.0"; | ||
sha256 = "0iwh4wsjhb7pms88lw1afhdal9f86nrrkkvv65f9wxbd1b159n72"; | ||
} { }; | ||
|
||
cabal2nix = | ||
if static then | ||
# cabal2nix depends on Cabal 3.0.*, while our pinned version of | ||
# Nixpkgs only provides 2.4 or 3.2. So we pinned 3.0.0.0 in | ||
# ./Cabal.nix | ||
prev.cabal2nix.overrideScope (self: super: { Cabal = self.callPackage ./Cabal.nix { }; }) | ||
else | ||
prev.cabal2nix; | ||
}; | ||
in | ||
{ | ||
haskellPackages = | ||
super.haskellPackages.override { | ||
overrides = | ||
final: prev: rec { | ||
protolude = prev.callPackage ./protolude.nix {}; | ||
}; | ||
haskell = | ||
super.haskell // { | ||
packages = super.haskell.packages // { | ||
"${compiler}" = | ||
super.haskell.packages."${compiler}".override { inherit overrides; }; | ||
}; | ||
}; | ||
} |
Oops, something went wrong.