mirror of
https://github.com/NixOS/nix.git
synced 2024-10-30 13:50:51 +00:00
c996e04aca
Also allow "." as an installable to refer to the flake in the current directory. E.g. $ nix build . will build 'provides.defaultPackage' in the flake in the current directory.
20 lines
351 B
Nix
20 lines
351 B
Nix
{
|
|
name = "nix";
|
|
|
|
description = "The purely functional package manager";
|
|
|
|
requires = [ flake:nixpkgs ];
|
|
|
|
provides = flakes: rec {
|
|
|
|
hydraJobs = import ./release.nix {
|
|
nix = flakes.nix; # => flakes.self?
|
|
nixpkgs = flakes.nixpkgs;
|
|
};
|
|
|
|
packages.nix = hydraJobs.build.x86_64-linux;
|
|
|
|
defaultPackage = packages.nix;
|
|
};
|
|
}
|