-
Notifications
You must be signed in to change notification settings - Fork 10
/
default.nix
19 lines (19 loc) · 904 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# This is just a compat shim for nix flakes: to add things to the expression,
# look in `flake.nix` instead.
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
flake-compat = import (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 = ./.; };
pkgs = import (fetchTarball {
url =
"https://github.com/NixOS/nixpkgs/archive/${lock.nodes.nixpkgs.locked.rev}.tar.gz";
sha256 = lock.nodes.nixpkgs.locked.narHash;
}) { };
legacyPackages = flake-compat.defaultNix.legacyPackages.${pkgs.stdenv.system};
flakePackages = flake-compat.defaultNix.packages.${pkgs.stdenv.system};
# Expose full package set for commands like `nix run`, giving priority to
# anything defined in the flake package set.
in legacyPackages // flakePackages