mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-26 22:31:39 +03:00
19 lines
414 B
Nix
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";
|
|
};
|
|
};
|
|
}
|