garage/nix/common.nix
Alex Auvolat 5efcdc0de3
All checks were successful
continuous-integration/drone Build is passing
Update rust toolchain to 1.68 and simplify Nix stuff
2023-04-25 14:46:47 +02:00

14 lines
496 B
Nix

let
lock = builtins.fromJSON (builtins.readFile ../flake.lock);
flakeCompatRev = lock.nodes.flake-compat.locked.rev;
flakeCompat = fetchTarball {
url =
"https://github.com/edolstra/flake-compat/archive/${flakeCompatRev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
};
flake = ((import flakeCompat) { src = ../.; }).defaultNix;
in rec {
pkgsSrc = flake.inputs.nixpkgs;
cargo2nix = flake.inputs.cargo2nix;
cargo2nixOverlay = cargo2nix.overlays.default;
}