Use legacyPackages; and update nixpkgs
This commit is contained in:
parent
86787f812a
commit
881ad2913c
2 changed files with 9 additions and 8 deletions
8
flake.lock
generated
8
flake.lock
generated
|
@ -33,17 +33,17 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1645013224,
|
"lastModified": 1647350163,
|
||||||
"narHash": "sha256-b7OEC8vwzJv3rsz9pwnTX2LQDkeOWz2DbKypkVvNHXc=",
|
"narHash": "sha256-OcMI+PFEHTONthXuEQNddt16Ml7qGvanL3x8QOl2Aao=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "b66b39216b1fef2d8c33cc7a5c72d8da80b79970",
|
"rev": "3eb07eeafb52bcbf02ce800f032f18d666a9498d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "b66b39216b1fef2d8c33cc7a5c72d8da80b79970",
|
"rev": "3eb07eeafb52bcbf02ce800f032f18d666a9498d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
description = "haskell-template's description";
|
description = "haskell-template's description";
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/b66b39216b1fef2d8c33cc7a5c72d8da80b79970";
|
nixpkgs.url = "github:nixos/nixpkgs/3eb07eeafb52bcbf02ce800f032f18d666a9498d";
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
flake-utils.inputs.nixpkgs.follows = "nixpkgs";
|
flake-utils.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
flake-compat.url = "github:edolstra/flake-compat";
|
flake-compat.url = "github:edolstra/flake-compat";
|
||||||
|
@ -11,12 +11,13 @@
|
||||||
outputs = inputs@{ self, nixpkgs, flake-utils, ... }:
|
outputs = inputs@{ self, nixpkgs, flake-utils, ... }:
|
||||||
flake-utils.lib.eachDefaultSystem (system:
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
let
|
let
|
||||||
overlays = [ ];
|
# Because: https://zimbatm.com/notes/1000-instances-of-nixpkgs
|
||||||
pkgs =
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
import nixpkgs { inherit system overlays; config.allowBroken = true; };
|
|
||||||
# Change GHC version here. To get the appropriate value, run:
|
# Change GHC version here. To get the appropriate value, run:
|
||||||
# nix-env -f "<nixpkgs>" -qaP -A haskell.compiler
|
# nix-env -f "<nixpkgs>" -qaP -A haskell.compiler
|
||||||
hp = pkgs.haskellPackages; # pkgs.haskell.packages.ghc921;
|
hp = pkgs.haskellPackages; # pkgs.haskell.packages.ghc921;
|
||||||
|
|
||||||
project = returnShellEnv:
|
project = returnShellEnv:
|
||||||
hp.developPackage {
|
hp.developPackage {
|
||||||
inherit returnShellEnv;
|
inherit returnShellEnv;
|
||||||
|
|
Loading…
Reference in a new issue