Skip to content
This repository was archived by the owner on May 20, 2024. It is now read-only.

Commit 89ed4c8

Browse files
committed
Add flake-compat
1 parent c5638fc commit 89ed4c8

File tree

4 files changed

+44
-3
lines changed

4 files changed

+44
-3
lines changed

default.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
(import
2+
(
3+
let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in
4+
fetchTarball {
5+
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
6+
sha256 = lock.nodes.flake-compat.locked.narHash;
7+
}
8+
)
9+
{ src = ./.; }
10+
).defaultNix

flake.lock

Lines changed: 20 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
url = "github:input-output-hk/iohk-nix";
1212
inputs.nixpkgs.follows = "nixpkgs";
1313
};
14+
flake-compat = {
15+
url = "github:edolstra/flake-compat";
16+
flake = false;
17+
};
1418
};
1519

1620
outputs = { self, nixpkgs, flake-utils, haskell-nix, CHaP, iohk-nix }:

shell.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
(import
2+
(
3+
let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in
4+
fetchTarball {
5+
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
6+
sha256 = lock.nodes.flake-compat.locked.narHash;
7+
}
8+
)
9+
{ src = ./.; }
10+
).shellNix

0 commit comments

Comments
 (0)