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 1, 2024
1 parent 1afd678 commit d9104b4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 52 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
8 changes: 4 additions & 4 deletions nix/nixpkgs-version.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Pinned version of Nixpkgs, generated with postgrest-nixpkgs-upgrade.
{
owner = "NixOS";
owner = "wolfgangwalther";
repo = "nixpkgs";
date = "2024-01-06";
rev = "4bbf5a2eb6046c54f7a29a0964c642ebfe912cbc";
tarballHash = "03p45qdcxqxc41mmzmmyzbkff29vv95vv643z0kd3mf1s2nnsy5b";
date = "2024-03-31";
rev = "5e0eeb362bcfa4017e6e57b091c95a0dcb8ba571";
tarballHash = "1avw37yx5254mqcjsm1lrgkbmxwfs60s56g6wcqdfz2yngy2cr59";
}
27 changes: 2 additions & 25 deletions nix/overlays/haskell-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,35 +40,12 @@ let
# - 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=";
}
{ };

# Marked as broken (?)
fuzzyset = lib.markUnbroken prev.fuzzyset;

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

hasql-pool = lib.dontCheck prev.hasql-pool_0_10;

hasql-notifications = lib.dontCheck (prev.callHackageDirect
{
pkg = "hasql-notifications";
ver = "0.2.1.0";
sha256 = "sha256-MEIirDKR81KpiBOnWJbVInWevL6Kdb/XD1Qtd8e6KsQ=";
}
{ }
);

hasql-notifications = lib.dontCheck prev.hasql-notifications_0_2_1_0;
};
in
{
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 d9104b4

Please sign in to comment.