summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/default.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2017-05-23 23:44:17 +0200
committertv <tv@krebsco.de>2017-05-23 23:44:17 +0200
commit061e702a6fc0e6046d39c3975c9034a69499c45f (patch)
tree01986721603c9f640f2fbb2aab539c0f2cf68891 /krebs/5pkgs/default.nix
parent2d2550c5b5bdb10e4c2958425add337572347a11 (diff)
turn krebs/5pkgs into an overlay
Diffstat (limited to 'krebs/5pkgs/default.nix')
-rw-r--r--krebs/5pkgs/default.nix14
1 files changed, 4 insertions, 10 deletions
diff --git a/krebs/5pkgs/default.nix b/krebs/5pkgs/default.nix
index 8bb244cd3..81481e14b 100644
--- a/krebs/5pkgs/default.nix
+++ b/krebs/5pkgs/default.nix
@@ -1,11 +1,6 @@
-{ config, lib, pkgs, ... }@args:
+pkgs: oldpkgs:
with import <stockholm/lib>;
-{
- imports = [
- ./writers.nix
- ];
- nixpkgs.config.packageOverrides = oldpkgs: let
-
+ let
# This callPackage will try to detect obsolete overrides.
callPackage = path: args: let
override = pkgs.callPackage path args;
@@ -16,8 +11,8 @@ with import <stockholm/lib>;
compareVersions upstream.name override.name != -1
then trace "Upstream `${upstream.name}' gets overridden by `${override.name}'." override
else override;
-
in {}
+ // import ./writers.nix pkgs oldpkgs
// mapAttrs (_: flip callPackage {})
(filterAttrs (_: dir: pathExists (dir + "/default.nix"))
(subdirsOf ./.))
@@ -60,5 +55,4 @@ with import <stockholm/lib>;
test = {
infest-cac-centos7 = callPackage ./test/infest-cac-centos7 {};
};
- };
-}
+ }