dream2nix/examples/packages/basics/derivation/default.nix

21 lines
336 B
Nix

{
config,
dream2nix,
lib,
...
}: {
# select builtins.derivation as a backend for this package
imports = [
dream2nix.modules.dream2nix.builtins-derivation
];
name = "test";
# set options
builtins-derivation = {
builder = "/bin/sh";
args = ["-c" "echo $name > $out"];
system = "x86_64-linux";
};
}