https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
11 lines
125 B
Nix
11 lines
125 B
Nix
{ lib, ... }:
|
|
{
|
|
|
|
imports = [
|
|
"${builtins.toFile "drv" "{}"}"
|
|
./declare-enable.nix
|
|
./define-enable.nix
|
|
];
|
|
|
|
}
|
|
|