nixpkgs-update/default.nix
Ryan Mulligan 9630bde0bb fix default.nix
deleting .default made it not return a drv in the non-shell case
2020-10-24 14:33:53 -07:00

17 lines
454 B
Nix

{returnShellEnv ? false } :
let
flake-compat =
(import (
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash; }
) {
src = ./.;
});
in
if returnShellEnv
then flake-compat.shellNix
else flake-compat.defaultNix.default