From fc73e7d43ca5dfa38f6c1431471da8a3c35eb1d2 Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Fri, 31 Mar 2023 16:37:14 +0000 Subject: [PATCH] chore(nix): update flake.nix --- flake.lock | 52 +++++++++++++--------------------------------------- flake.nix | 29 +++++++++++++++++------------ 2 files changed, 30 insertions(+), 51 deletions(-) diff --git a/flake.lock b/flake.lock index a88b407ef..a76f4bc30 100644 --- a/flake.lock +++ b/flake.lock @@ -325,22 +325,6 @@ } }, "flake-utils": { - "locked": { - "lastModified": 1678901627, - "narHash": "sha256-U02riOqrKKzwjsxc/400XnElV+UtPUQWpANPlyazjH0=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "93a2b84fc4b70d9e089d029deacc3583435c2ed6", - "type": "github" - }, - "original": { - "owner": "numtide", - "ref": "main", - "repo": "flake-utils", - "type": "github" - } - }, - "flake-utils_2": { "locked": { "lastModified": 1679360468, "narHash": "sha256-LGnza3cfXF10Biw3ZTg0u9o9t7s680Ww200t5KkHTh8=", @@ -356,7 +340,7 @@ "type": "github" } }, - "flake-utils_3": { + "flake-utils_2": { "locked": { "lastModified": 1653893745, "narHash": "sha256-0jntwV3Z8//YwuOjzhV2sgJJPt+HY6KhU7VZUL0fKZQ=", @@ -371,7 +355,7 @@ "type": "github" } }, - "flake-utils_4": { + "flake-utils_3": { "locked": { "lastModified": 1659877975, "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=", @@ -446,7 +430,7 @@ "cabal-36": "cabal-36", "cardano-shell": "cardano-shell", "flake-compat": "flake-compat", - "flake-utils": "flake-utils_2", + "flake-utils": "flake-utils", "ghc-8.6.5-iohk": "ghc-8.6.5-iohk", "hackage": "hackage", "hpc-coveralls": "hpc-coveralls", @@ -713,7 +697,7 @@ }, "nix2container": { "inputs": { - "flake-utils": "flake-utils_3", + "flake-utils": "flake-utils_2", "nixpkgs": "nixpkgs_3" }, "locked": { @@ -940,22 +924,6 @@ "type": "github" } }, - "nixpkgs_5": { - "locked": { - "lastModified": 1624788075, - "narHash": "sha256-xzO2aL5gGejNvey2jKGnbnFXbo99pdytlY5FF/IhvAE=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "4ba70da807359ed01d662763a96c7b442762e5ef", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "master", - "repo": "nixpkgs", - "type": "github" - } - }, "nosys": { "locked": { "lastModified": 1667881534, @@ -998,12 +966,18 @@ "docker-nixpkgs": "docker-nixpkgs", "encoding": "encoding", "esqueleto": "esqueleto", - "flake-utils": "flake-utils", + "flake-utils": [ + "haskell-nix", + "flake-utils" + ], "haskell-nix": "haskell-nix", "ldap-client": "ldap-client", "memcached-binary": "memcached-binary", "minio-hs": "minio-hs", - "nixpkgs": "nixpkgs_5", + "nixpkgs": [ + "haskell-nix", + "nixpkgs-unstable" + ], "serversession": "serversession", "xss-sanitize": "xss-sanitize", "yesod": "yesod", @@ -1054,7 +1028,7 @@ "blank": "blank", "devshell": "devshell", "dmerge": "dmerge", - "flake-utils": "flake-utils_4", + "flake-utils": "flake-utils_3", "incl": "incl", "makes": [ "haskell-nix", diff --git a/flake.nix b/flake.nix index 3db59a866..c1c3b00b5 100644 --- a/flake.nix +++ b/flake.nix @@ -7,22 +7,27 @@ rec { haskell-nix = { url = "github:input-output-hk/haskell.nix"; }; - nixpkgs = { - type = "github"; - owner = "NixOS"; - repo = "nixpkgs"; - ref = "master"; - }; + + # nixpkgs = { + # type = "github"; + # owner = "NixOS"; + # repo = "nixpkgs"; + # ref = "master"; + # }; + # flake-utils = { + # type = "github"; + # owner = "numtide"; + # repo = "flake-utils"; + # ref = "main"; + # }; + + nixpkgs.follows = "haskell-nix/nixpkgs-unstable"; + flake-utils.follows = "haskell-nix/flake-utils"; + docker-nixpkgs = { url = "github:nix-community/docker-nixpkgs"; flake = false; }; - flake-utils = { - type = "github"; - owner = "numtide"; - repo = "flake-utils"; - ref = "main"; - }; encoding = { url = "git+https://gitlab.ifi.lmu.de/uni2work/haskell/encoding.git?ref=uni2work";