Skip to content

Commit

Permalink
Trim down flake-compat usage (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed May 30, 2022
1 parent 1127faa commit 18b6248
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 44 deletions.
16 changes: 0 additions & 16 deletions default.nix

This file was deleted.

17 changes: 0 additions & 17 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs.follows = "nixpkgs";
flake-compat.url = "github:edolstra/flake-compat";
flake-compat.flake = false;
flake-compat.inputs.nixpkgs.follows = "nixpkgs";
haskell-flake.url = "github:srid/haskell-flake";
};

Expand Down
12 changes: 4 additions & 8 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
# This file exists for legacy Nix installs (nix-build & nix-env)
# https://nixos.wiki/wiki/Flakes#Using_flakes_project_from_a_legacy_Nix
# You generally do *not* have to modify this ever.
# TODO: Remove this after https://github.com/srid/haskell-template/issues/23

(import
(
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in
fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
url = "https://github.com/edolstra/flake-compat/archive/b4a34015c698c7793d592d66adbab377907a2be8.tar.gz";
sha256 = "sha256-Z+s0J8/r907g149rllvwhb4pKi8Wam5ij0st8PwAh+E=";
}
)
{
Expand Down

0 comments on commit 18b6248

Please sign in to comment.