nix: Update nixpkgs to latest unstable version
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ let
|
|||||||
"postgrest";
|
"postgrest";
|
||||||
|
|
||||||
compiler =
|
compiler =
|
||||||
"ghc8104";
|
"ghc8107";
|
||||||
|
|
||||||
# PostgREST source files, filtered based on the rules in the .gitignore files
|
# PostgREST source files, filtered based on the rules in the .gitignore files
|
||||||
# and file extensions. We want to include as litte as possible, as the files
|
# and file extensions. We want to include as litte as possible, as the files
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Pinned version of Nixpkgs, generated with postgrest-nixpkgs-upgrade.
|
# Pinned version of Nixpkgs, generated with postgrest-nixpkgs-upgrade.
|
||||||
{
|
{
|
||||||
date = "2021-07-17";
|
date = "2021-10-31";
|
||||||
rev = "d00b5a5fa6fe8bdf7005abb06c46ae0245aec8b5";
|
rev = "9303cc044586dd40599233454f1fd79176584c0f";
|
||||||
tarballHash = "08497wbpnf3w5dalcasqzymw3fmcn8qrnbkf8rxxwwvyjdnczxdv";
|
tarballHash = "0bgdk4zw9m42i3cva55a2bp2z16kd6xchz08vl0zg8d0mr3kk0q3";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,16 +2,18 @@ self: super:
|
|||||||
# Overlay that adds future versions of PostgreSQL that are supported by
|
# Overlay that adds future versions of PostgreSQL that are supported by
|
||||||
# PostgREST.
|
# PostgREST.
|
||||||
{
|
{
|
||||||
postgresql_14 =
|
## Example for including a postgresql version from a specific nixpks commit:
|
||||||
let
|
##
|
||||||
rev = "76b1e16c6659ccef7187ca69b287525fea133244";
|
# postgresql_14 =
|
||||||
tarballHash = "1vsahpcx80k2bgslspb0sa6j4bmhdx77sw6la455drqcrqhdqj6a";
|
# let
|
||||||
|
# rev = "76b1e16c6659ccef7187ca69b287525fea133244";
|
||||||
pinnedPkgs =
|
# tarballHash = "1vsahpcx80k2bgslspb0sa6j4bmhdx77sw6la455drqcrqhdqj6a";
|
||||||
builtins.fetchTarball {
|
#
|
||||||
url = "https://github.com/nixos/nixpkgs/archive/${rev}.tar.gz";
|
# pinnedPkgs =
|
||||||
sha256 = tarballHash;
|
# builtins.fetchTarball {
|
||||||
};
|
# url = "https://github.com/nixos/nixpkgs/archive/${rev}.tar.gz";
|
||||||
in
|
# sha256 = tarballHash;
|
||||||
(import pinnedPkgs { }).pkgs.postgresql_14;
|
# };
|
||||||
|
# in
|
||||||
|
# (import pinnedPkgs { }).pkgs.postgresql_14;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,16 +39,29 @@ let
|
|||||||
|
|
||||||
overlays =
|
overlays =
|
||||||
[
|
[
|
||||||
|
allOverlays.postgresql-future
|
||||||
|
allOverlays.postgresql-default
|
||||||
(allOverlays.haskell-packages { inherit compiler extraOverrides; })
|
(allOverlays.haskell-packages { inherit compiler extraOverrides; })
|
||||||
|
# Disable failing tests for postgresql on musl that should have no impact
|
||||||
|
# on the libpq that we need (collate.icu.utf8 and foreign regression
|
||||||
|
# tests)
|
||||||
|
(self: super:
|
||||||
|
{ postgresql = super.postgresql.overrideAttrs (_: { doCheck = false; }); }
|
||||||
|
)
|
||||||
];
|
];
|
||||||
|
|
||||||
# Apply our overlay to the given pkgs.
|
# Apply our overlay to the given pkgs.
|
||||||
normalPkgs =
|
normalPkgs =
|
||||||
import patchedNixpkgs { inherit overlays; };
|
import patchedNixpkgs { inherit overlays; };
|
||||||
|
|
||||||
|
defaultCabalPackageVersionComingWithGhc =
|
||||||
|
{
|
||||||
|
ghc8107 = "Cabal_3_2_1_0";
|
||||||
|
}."${compiler}";
|
||||||
|
|
||||||
# The static-haskell-nix 'survey' derives a full static set of Haskell
|
# The static-haskell-nix 'survey' derives a full static set of Haskell
|
||||||
# packages, applying fixes where necessary.
|
# packages, applying fixes where necessary.
|
||||||
survey =
|
survey =
|
||||||
import "${patched-static-haskell-nix}/survey" { inherit normalPkgs compiler; };
|
import "${patched-static-haskell-nix}/survey" { inherit normalPkgs compiler defaultCabalPackageVersionComingWithGhc; };
|
||||||
in
|
in
|
||||||
survey.haskellPackages."${name}"
|
survey.haskellPackages."${name}"
|
||||||
|
|||||||
Reference in New Issue
Block a user