From 5a6d57f61d7fecfc119126520ed4e7a59310affd Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Sun, 16 Jan 2022 19:10:56 -0500 Subject: [PATCH] Update nixpkgs --- README.md | 2 +- flake.lock | 8 ++++---- flake.nix | 9 +++++---- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index efe0c31..3e37aed 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ cd .. && mv haskell-template ${NAME} && cd ${NAME} ## Tips -- Run `nix flake update` to update all flake inputs. nixpkgs is pinned to a specific a rev, which you can advance to the latest rev reported in [status.nixos.org](https://status.nixos.org). +- Run `nix flake update` to update all flake inputs. nixpkgs is pinned to a specific a rev in `flake.nix`, which you can advance to the latest rev reported in [status.nixos.org](https://status.nixos.org). ## Alternatives diff --git a/flake.lock b/flake.lock index 2531751..4f11b86 100644 --- a/flake.lock +++ b/flake.lock @@ -33,17 +33,17 @@ }, "nixpkgs": { "locked": { - "lastModified": 1642069818, - "narHash": "sha256-666w6j8wl/bojfgpp0k58/UJ5rbrdYFbI2RFT2BXbSQ=", + "lastModified": 1642104392, + "narHash": "sha256-m71b7MgMh9FDv4MnI5sg9MiBVW6DhE1zq+d/KlLWSC8=", "owner": "nixos", "repo": "nixpkgs", - "rev": "46821ea01c8f54d2a20f5a503809abfc605269d7", + "rev": "5aaed40d22f0d9376330b6fa413223435ad6fee5", "type": "github" }, "original": { "owner": "nixos", "repo": "nixpkgs", - "rev": "46821ea01c8f54d2a20f5a503809abfc605269d7", + "rev": "5aaed40d22f0d9376330b6fa413223435ad6fee5", "type": "github" } }, diff --git a/flake.nix b/flake.nix index 8515f40..4b0731e 100644 --- a/flake.nix +++ b/flake.nix @@ -1,7 +1,7 @@ { description = "haskell-template's description"; inputs = { - nixpkgs.url = "github:nixos/nixpkgs/46821ea01c8f54d2a20f5a503809abfc605269d7"; + nixpkgs.url = "github:nixos/nixpkgs/5aaed40d22f0d9376330b6fa413223435ad6fee5"; flake-utils.url = "github:numtide/flake-utils"; flake-compat = { url = "github:edolstra/flake-compat"; @@ -14,9 +14,10 @@ overlays = [ ]; pkgs = import nixpkgs { inherit system overlays; config.allowBroken = true; }; + hp = pkgs.haskellPackages; # pkgs.haskell.packages.ghc921; # https://github.com/NixOS/nixpkgs/issues/140774#issuecomment-976899227 m1MacHsBuildTools = - pkgs.haskellPackages.override { + hp.override { overrides = self: super: let workaround140774 = hpkg: with pkgs.haskell.lib; @@ -30,7 +31,7 @@ }; }; project = returnShellEnv: - pkgs.haskellPackages.developPackage { + hp.developPackage { inherit returnShellEnv; name = "haskell-template"; root = ./.; @@ -46,7 +47,7 @@ pkgs.haskell.lib.addBuildTools drv (with (if system == "aarch64-darwin" then m1MacHsBuildTools - else pkgs.haskellPackages); [ + else hp); [ # Specify your build/dev dependencies here. cabal-fmt cabal-install