Skip to content

Commit 5a00f51

Browse files
authored
Merge pull request #164 from input-output-hk/nixos-cleanup
Direnv + some flake cleanup
2 parents 0d43013 + d2a8d7b commit 5a00f51

File tree

6 files changed

+33
-2
lines changed

6 files changed

+33
-2
lines changed

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ qr-code.svg
77

88
/target
99
/venv
10-
.pre-commit-config.yaml
10+
/.direnv
11+
/.pre-commit-config.yaml
12+
/result*

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/nix/store/540bkwrxhyfgmxm55bhhsf6mdvs4ymzn-pre-commit-config.json

default.nix

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

flake.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
extensions = [
5454
"rust-src"
5555
"rust-analysis"
56-
"rls-preview"
5756
"rustfmt-preview"
5857
"clippy-preview"
5958
];

shell.nix

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

0 commit comments

Comments
 (0)