aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-10-15 19:53:29 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-10-15 19:53:29 +0200
commit14a89aa8cdc4cf9d22187a34513a6f9709be0c5d (patch)
tree80c176adc10bca52e8034a89ee60e0ece31ceb4b /src/nix
parent7d38060a0da2698052e84a0cfee422d409a38187 (diff)
Fix 'nix flake init'
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/flake-template.nix10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/nix/flake-template.nix b/src/nix/flake-template.nix
index bec613f6c..eb8eb14fc 100644
--- a/src/nix/flake-template.nix
+++ b/src/nix/flake-template.nix
@@ -1,15 +1,11 @@
{
- name = "hello";
-
description = "A flake for building Hello World";
- epoch = 201906;
-
- requires = [ "nixpkgs" ];
+ edition = 201909;
- provides = deps: rec {
+ outputs = { self, nixpkgs }: {
- packages.hello = deps.nixpkgs.provides.packages.hello;
+ packages.x86_64-linux.hello = nixpkgs.packages.x86_64-linux.hello;
};
}