From 1959a35163a0d48a3c147396265c056922a731c1 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 18 Apr 2018 14:33:08 +0200 Subject: Pack for NixOS --- nix/default.nix | 20 +++++++++++--------- nix/module.nix | 7 +++++++ 2 files changed, 18 insertions(+), 9 deletions(-) create mode 100644 nix/module.nix (limited to 'nix') diff --git a/nix/default.nix b/nix/default.nix index a40d8f6..5e5a536 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -1,11 +1,13 @@ -{}: +pkgs: let - pkgs = import {}; -in rec { - cliparg = pkgs.callPackage ./cliparg.nix {}; - rebuild-system = pkgs.callPackage ./rebuild-system.nix {}; - pulseaudio-ctl = pkgs.callPackage ./pulseaudio-ctl.nix {}; - monitor-uucp = pkgs.callPackage ./monitor-uucp.nix {}; - rolling-directory = pkgs.callPackage ./rolling-directory.nix {}; -} + callPackage = pkgs.callPackageWith (pkgs // self); + + self = { + cliparg = callPackage ./cliparg.nix {}; + rebuild-system = callPackage ./rebuild-system.nix {}; + pulseaudio-ctl = callPackage ./pulseaudio-ctl.nix {}; + monitor-uucp = callPackage ./monitor-uucp.nix {}; + rolling-directory = callPackage ./rolling-directory.nix {}; + }; +in self diff --git a/nix/module.nix b/nix/module.nix new file mode 100644 index 0000000..c70d7e0 --- /dev/null +++ b/nix/module.nix @@ -0,0 +1,7 @@ +{ ... }: + +{ + config = { + nixpkgs.config.packageOverrides = import ./default.nix; + }; +} -- cgit v1.2.3