dream2nix/tests/nix-unit/fixtures.nix

20 lines
437 B
Nix
Raw Normal View History

2023-10-23 00:36:24 +03:00
{dream2nix}: rec {
basic-derivation = named-derivation "hello";
named-derivation = name: {
2023-09-28 20:19:40 +03:00
# select builtins.derivation as a backend for this package
imports = [
dream2nix.modules.dream2nix.builtins-derivation
];
2023-10-23 00:36:24 +03:00
inherit name;
version = "1.0.0";
2023-09-28 20:19:40 +03:00
# set options
builtins-derivation = {
builder = "/bin/sh";
args = ["-c" "echo $name > $out"];
system = "x86_64-linux";
};
};
}