From 14a89aa8cdc4cf9d22187a34513a6f9709be0c5d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 15 Oct 2019 19:53:29 +0200 Subject: Fix 'nix flake init' --- src/nix/flake-template.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/nix') 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; }; } -- cgit v1.2.3