mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-09-11 14:35:30 +03:00
add flake template
This commit is contained in:
parent
84135ea205
commit
f59346d1d6
@ -296,5 +296,12 @@
|
||||
};
|
||||
};
|
||||
}));
|
||||
|
||||
templates = {
|
||||
simple = {
|
||||
description = "Simple dream2nix flake";
|
||||
path = ./simple;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
16
templates/simple/flake.nix
Normal file
16
templates/simple/flake.nix
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
inputs.dream2nix.url = "github:nix-community/dream2nix";
|
||||
outputs = {
|
||||
self,
|
||||
dream2nix,
|
||||
} @ inputs: let
|
||||
dream2nix = inputs.dream2nix.lib.init {
|
||||
# modify according to your supported systems
|
||||
systems = ["x86_64-linux"];
|
||||
config.projectRoot = ./.;
|
||||
};
|
||||
in
|
||||
dream2nix.makeFlakeOutputs {
|
||||
source = ./.;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user