diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-04-08 23:39:38 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-04-08 23:39:38 +0200 |
commit | 507da65900ccb3c6356673e93ad2271c58e43b07 (patch) | |
tree | 9a7e0ca0442500107170efeee982486b7638d656 /src/nix/flake.cc | |
parent | 47727252ff4e536dd47b73949033d3349923fbbb (diff) |
Move flake template into a separate file
Diffstat (limited to 'src/nix/flake.cc')
-rw-r--r-- | src/nix/flake.cc | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc index 01385ff8d..3d2fb7832 100644 --- a/src/nix/flake.cc +++ b/src/nix/flake.cc @@ -207,23 +207,8 @@ struct CmdFlakeInit : virtual Args, Command throw Error("file '%s' already exists", flakePath); writeFile(flakePath, -R"str( -{ - name = "hello"; - - description = "A flake for building Hello World"; - - epoch = 2019; - - requires = [ "nixpkgs" ]; - - provides = deps: rec { - - packages.hello = deps.nixpkgs.provides.packages.hello; - - }; -} -)str"); +#include "flake-template.nix.gen.hh" + ); } }; |