From 6df1126c4c9cbb574acdec973fe9e5d5a134296d Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sun, 16 Jul 2017 16:36:28 +0300 Subject: Allow building and installing local packages --- README.md | 9 ++++++++- pkgs/default.nix | 16 ++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 pkgs/default.nix diff --git a/README.md b/README.md index e85612f..4a5a119 100644 --- a/README.md +++ b/README.md @@ -26,11 +26,18 @@ For example: modules/pkgs/writeXML.nix => pkgs.writeXML modules/pkgs/rdsdump/default.nix => pkgs.rdsdump -You can use this technics in your own projects. You can take out any modules +You can use this techniques in your own projects. You can take out any modules or packages and put them into your project with your modifications without maintaning a fork of Nixsap. When taking modules you have to change the `nixsap` namespace to something different to avoid conflicts. +It is also possible to build and install packages that are overridden +by Nixsap, for example: + +``` +nix-env -I nixpkgs=/path/to/vanila/nixpkgs -f /path/to/nixsap/pkgs -i nodejs-sass +``` + Automatic unix user id ----------------------- diff --git a/pkgs/default.nix b/pkgs/default.nix new file mode 100644 index 0000000..60159f8 --- /dev/null +++ b/pkgs/default.nix @@ -0,0 +1,16 @@ +let + + inherit (import ) evalModules; + + + evaluated = evalModules { + modules = [ + { nixpkgs.system = builtins.currentSystem; } + (import ) + (import ../modules/pkgs) + ]; + }; + + inherit (evaluated.config._module.args) pkgs; + +in pkgs -- cgit v1.2.3