dream2nix/tests/nix-unit/fixtures.nix
2023-10-22 21:42:07 +00:00

19 lines
414 B
Nix

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