-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathshell.nix
More file actions
26 lines (24 loc) · 781 Bytes
/
shell.nix
File metadata and controls
26 lines (24 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# This file is to let "legacy" nix-shell command work in addition to `nix develop`
let
flakeManifest = [
./flake.lock
./flake.nix
./overlay.nix
./package.nix
./pyproject.toml
];
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
flake-compat = fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
};
nix-filter = import (fetchTarball {
url = "https://github.com/numtide/nix-filter/archive/${lock.nodes.filter.locked.rev}.tar.gz";
sha256 = lock.nodes.filter.locked.narHash;
});
src = nix-filter {
root = ./.;
include = flakeManifest;
};
in
(import flake-compat { inherit src; }).shellNix.default