-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refine nix integration with development
- Loading branch information
1 parent
1c03f3e
commit b0e1472
Showing
5 changed files
with
53 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
use flake | ||
watch_file flake.lock | ||
watch_file rust-toolchain.toml | ||
|
||
use flake || use nix | ||
eval "$shellHook" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# use flake's packages.default for non-flake-enabled nix instances | ||
let | ||
lock = builtins.fromJSON (builtins.readFile ./flake.lock); | ||
nodeName = lock.nodes.root.inputs.flake-compat; | ||
compat = fetchTarball { | ||
url = | ||
lock.nodes.${nodeName}.locked.url | ||
or "https://github.com/edolstra/flake-compat/archive/${lock.nodes.${nodeName}.locked.rev}.tar.gz"; | ||
sha256 = lock.nodes.${nodeName}.locked.narHash; | ||
}; | ||
in | ||
(import compat { src = ./.; }).defaultNix |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# use flake's devShells.default for non-flake-enabled nix instances | ||
let | ||
lock = builtins.fromJSON (builtins.readFile ./flake.lock); | ||
nodeName = lock.nodes.root.inputs.flake-compat; | ||
compat = fetchTarball { | ||
url = | ||
lock.nodes.${nodeName}.locked.url | ||
or "https://github.com/edolstra/flake-compat/archive/${lock.nodes.${nodeName}.locked.rev}.tar.gz"; | ||
sha256 = lock.nodes.${nodeName}.locked.narHash; | ||
}; | ||
in | ||
(import compat { src = ./.; }).shellNix.default |