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 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'nix/default.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 -- cgit v1.2.3