aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-04-16 16:29:44 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-04-16 16:29:44 +0200
commit939bee06cd7c68af1508fab127202689fc63c22e (patch)
treed7e064007ec3f88e800920de4b742536eb14659e /flake.nix
parent3ddb6d1833a94e3d141116f3e579e66ebef04111 (diff)
Pass a flake to itself as "self"
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/flake.nix b/flake.nix
index 695f67fa4..95ec5d952 100644
--- a/flake.nix
+++ b/flake.nix
@@ -3,13 +3,15 @@
description = "The purely functional package manager";
- requires = [ flake:nixpkgs ];
+ epoch = 2019;
- provides = flakes: rec {
+ requires = [ "nixpkgs" ];
+
+ provides = deps: rec {
hydraJobs = import ./release.nix {
- nix = flakes.nix; # => flakes.self?
- nixpkgs = flakes.nixpkgs;
+ nix = deps.self;
+ nixpkgs = deps.nixpkgs;
};
packages.nix = hydraJobs.build.x86_64-linux;