2015-05-15 14:42:01 +00:00
|
|
|
{ lib, ... }:
|
2015-05-07 12:38:29 +00:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
nixpkgs.url = mkOption {
|
2015-06-28 11:53:42 +00:00
|
|
|
type = types.str;
|
|
|
|
description = "URL of the nixpkgs repository.";
|
2015-05-07 12:38:29 +00:00
|
|
|
};
|
2015-06-28 11:53:42 +00:00
|
|
|
nixpkgs.rev = mkOption {
|
|
|
|
type = types.str;
|
2015-06-28 13:04:45 +00:00
|
|
|
default = "origin/master";
|
2015-06-28 11:53:42 +00:00
|
|
|
description = "Revision of the remote repository.";
|
2015-05-07 12:38:29 +00:00
|
|
|
};
|
2015-06-28 13:04:45 +00:00
|
|
|
nixpkgs.dirty = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
description = ''
|
|
|
|
If nixpkgs.url is a local path, then use that as it is.
|
|
|
|
TODO this break if URL is not a local path.
|
|
|
|
'';
|
|
|
|
};
|
2015-05-07 12:38:29 +00:00
|
|
|
};
|
|
|
|
}
|