mirror of
https://github.com/nix-community/nixpkgs-update.git
synced 2024-11-27 01:34:25 +03:00
9630bde0bb
deleting .default made it not return a drv in the non-shell case
17 lines
454 B
Nix
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
|