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;
|
|
};
|
|
}
|