mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
20 lines
362 B
Nix
20 lines
362 B
Nix
{ lib, ... }: let
|
|
pkgs.hello = {
|
|
type = "derivation";
|
|
pname = "hello";
|
|
};
|
|
in {
|
|
options = {
|
|
package = lib.mkPackageOption pkgs "hello" { };
|
|
|
|
undefinedPackage = lib.mkPackageOption pkgs "hello" {
|
|
default = null;
|
|
};
|
|
|
|
nullablePackage = lib.mkPackageOption pkgs "hello" {
|
|
nullable = true;
|
|
default = null;
|
|
};
|
|
};
|
|
}
|