From 2e6221e095c0086674248526bae3e1ad03efc064 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') diff --git a/modules/common/nixpkgs.nix b/modules/common/nixpkgs.nix index 36ebbb07..486cf020 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