nix/flake.nix
Eelco Dolstra c996e04aca Allow relative paths in flakerefs
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.
2019-04-08 23:52:09 +02:00

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