2016-07-23 11:41:06 +00:00
|
|
|
{ config, pkgs, ... }:
|
2016-10-20 18:54:38 +00:00
|
|
|
with import <stockholm/lib>;
|
2015-08-28 22:19:52 +00:00
|
|
|
{
|
2016-10-22 12:54:19 +00:00
|
|
|
nixpkgs.config.packageOverrides = super: let
|
|
|
|
|
|
|
|
# This callPackage will try to detect obsolete overrides.
|
|
|
|
callPackage = path: args: let
|
|
|
|
override = super.callPackage path args;
|
|
|
|
upstream = optionalAttrs (override ? "name")
|
|
|
|
(super.${(parseDrvName override.name).name} or {});
|
|
|
|
in if upstream ? "name" &&
|
|
|
|
override ? "name" &&
|
|
|
|
compareVersions upstream.name override.name != -1
|
|
|
|
then trace "Upstream `${upstream.name}' gets overridden by `${override.name}'." override
|
|
|
|
else override;
|
|
|
|
|
|
|
|
in {}
|
|
|
|
// mapAttrs (_: flip callPackage {})
|
|
|
|
(filterAttrs (_: dir: pathExists (dir + "/default.nix"))
|
|
|
|
(subdirsOf ./.))
|
|
|
|
// {
|
2016-02-11 02:47:26 +00:00
|
|
|
# TODO use XDG_RUNTIME_DIR?
|
2016-06-13 00:04:22 +00:00
|
|
|
cr = pkgs.writeDashBin "cr" ''
|
2016-02-11 02:47:26 +00:00
|
|
|
set -efu
|
|
|
|
export LC_TIME=de_DE.utf8
|
|
|
|
exec ${pkgs.chromium}/bin/chromium \
|
|
|
|
--ssl-version-min=tls1 \
|
|
|
|
--disk-cache-dir=/tmp/chromium-disk-cache_"$LOGNAME" \
|
|
|
|
--disk-cache-size=50000000 \
|
2016-07-23 09:46:24 +00:00
|
|
|
"$@"
|
2016-02-11 02:47:26 +00:00
|
|
|
'';
|
2016-10-22 12:54:19 +00:00
|
|
|
ejabberd = callPackage ./ejabberd {
|
2016-02-11 02:47:26 +00:00
|
|
|
erlang = pkgs.erlangR16;
|
|
|
|
};
|
2016-07-23 09:47:46 +00:00
|
|
|
ff = pkgs.writeDashBin "ff" ''
|
|
|
|
exec ${pkgs.firefoxWrapper}/bin/firefox "$@"
|
|
|
|
'';
|
2016-06-29 23:34:25 +00:00
|
|
|
gnupg =
|
|
|
|
if elem config.krebs.build.host.name ["xu" "wu"]
|
|
|
|
then super.gnupg21
|
|
|
|
else super.gnupg;
|
2016-01-17 23:48:00 +00:00
|
|
|
};
|
2015-07-16 16:31:34 +00:00
|
|
|
}
|