From 530d385ac9b8ca19f8f78ff6da098d668ac8ed9a Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 28 Jun 2015 15:04:45 +0200 Subject: fetchgit: allow using dirty local work trees --- modules/common/nixpkgs.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/common') diff --git a/modules/common/nixpkgs.nix b/modules/common/nixpkgs.nix index 36ebbb0..486cf02 100644 --- a/modules/common/nixpkgs.nix +++ b/modules/common/nixpkgs.nix @@ -10,7 +10,16 @@ with lib; }; nixpkgs.rev = mkOption { type = types.str; + default = "origin/master"; 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. + ''; + }; }; } -- cgit v1.2.3