Skip to content

Commit

Permalink
nix: Update to latest nixpkgs#master
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangwalther committed Apr 20, 2024
1 parent eeee1e9 commit 30309a1
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 48 deletions.
10 changes: 2 additions & 8 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ let
sha256 = tarballHash;
};

nixpkgs-patched = (import nixpkgs { inherit overlays system; }).applyPatches {
name = "nixpkgs-patched";
src = nixpkgs;
patches = [ nix/split-sections-cross.patch ];
};

allOverlays =
import nix/overlays;

Expand All @@ -52,7 +46,7 @@ let

# Evaluated expression of the Nixpkgs repository.
pkgs =
import nixpkgs-patched { inherit overlays system; };
import nixpkgs { inherit overlays system; };

postgresqlVersions =
[
Expand Down Expand Up @@ -88,7 +82,7 @@ let
inherit (pkgs.haskell) lib;
in
rec {
inherit nixpkgs-patched pkgs;
inherit nixpkgs pkgs;

# Derivation for the PostgREST Haskell package, including the executable,
# libraries and documentation. We disable running the test suite on Nix
Expand Down
6 changes: 3 additions & 3 deletions nix/nixpkgs-version.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
owner = "NixOS";
repo = "nixpkgs";
date = "2024-01-06";
rev = "4bbf5a2eb6046c54f7a29a0964c642ebfe912cbc";
tarballHash = "03p45qdcxqxc41mmzmmyzbkff29vv95vv643z0kd3mf1s2nnsy5b";
date = "2024-04-20";
rev = "92d295f588631b0db2da509f381b4fb1e74173c5";
tarballHash = "162w28y4i5c8g5qhjvs827qxphf2a8n4c8fwhcywzl1j1a35h2im";
}
28 changes: 6 additions & 22 deletions nix/overlays/haskell-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,37 +44,21 @@ let
# + For stack.yml.lock, CI should report an error with the correct lock, copy/paste that one into the file
# - To modify and try packages locally, see "Working with locally modified Haskell packages" in the Nix README.

configurator-pg =
prev.callHackageDirect
{
pkg = "configurator-pg";
ver = "0.2.9";
sha256 = "sha256-UqFiOgPlksbIdHBVO0wYhCnboB+mxKJcXVhY9C1V7Hg=";
}
{ };

# Before upgrading fuzzyset to 0.3, check: https://github.com/PostgREST/postgrest/issues/3329
fuzzyset =
prev.callHackageDirect
# jailbreak, because hspec limit for tests
fuzzyset = lib.doJailbreak
(prev.callHackageDirect
{
pkg = "fuzzyset";
ver = "0.2.4";
sha256 = "sha256-lpkrTFcR0B4rT/P6x7ui31Twgq7BBj6KIvjKyqXKdpc=";
}
{ };
{ });

hasql-pool =
lib.dontCheck (prev.callHackageDirect
{
pkg = "hasql-pool";
ver = "1.0.1";
sha256 = "sha256-Hf1f7lX0LWkjrb25SDBovCYPRdmUP1H6pAxzi7kT4Gg=";
}
{ }
);
hasql-pool = lib.dontCheck prev.hasql-pool_1_0_1;

postgresql-libpq = lib.dontCheck
(prev.postgresql-libpq_0_10_0_0.override {
(prev.postgresql-libpq.override {
postgresql = super.libpq;
});

Expand Down
14 changes: 0 additions & 14 deletions nix/split-sections-cross.patch

This file was deleted.

2 changes: 1 addition & 1 deletion postgrest.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ library
, mtl >= 2.2.2 && < 2.4
, network >= 2.6 && < 3.2
, network-uri >= 2.6.1 && < 2.8
, optparse-applicative >= 0.13 && < 0.18
, optparse-applicative >= 0.13 && < 0.19
, parsec >= 3.1.11 && < 3.2
, postgresql-libpq >= 0.10
, protolude >= 0.3.1 && < 0.4
Expand Down

0 comments on commit 30309a1

Please sign in to comment.