stockholm/old/modules/common/nixpkgs.nix

26 lines
549 B
Nix
Raw Normal View History

2015-05-15 14:42:01 +00:00
{ lib, ... }:
with lib;
{
options = {
nixpkgs.url = mkOption {
2015-06-28 11:53:42 +00:00
type = types.str;
description = "URL of the nixpkgs repository.";
};
2015-06-28 11:53:42 +00:00
nixpkgs.rev = mkOption {
type = types.str;
default = "origin/master";
2015-06-28 11:53:42 +00:00
description = "Revision of the remote repository.";
};
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.
'';
};
};
}