2016-07-23 13:41:06 +02:00
|
|
|
{ config, pkgs, ... }:
|
2016-10-20 20:54:38 +02:00
|
|
|
with import <stockholm/lib>;
|
2015-08-29 00:19:52 +02:00
|
|
|
{
|
2016-10-22 14:54:19 +02: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 03:47:26 +01:00
|
|
|
# TODO use XDG_RUNTIME_DIR?
|
2016-06-13 02:04:22 +02:00
|
|
|
cr = pkgs.writeDashBin "cr" ''
|
2016-02-11 03:47:26 +01: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 11:46:24 +02:00
|
|
|
"$@"
|
2016-02-11 03:47:26 +01:00
|
|
|
'';
|
2016-10-22 14:54:19 +02:00
|
|
|
ejabberd = callPackage ./ejabberd {
|
2016-02-11 03:47:26 +01:00
|
|
|
erlang = pkgs.erlangR16;
|
|
|
|
};
|
2016-07-23 11:47:46 +02:00
|
|
|
ff = pkgs.writeDashBin "ff" ''
|
|
|
|
exec ${pkgs.firefoxWrapper}/bin/firefox "$@"
|
|
|
|
'';
|
2016-11-24 22:48:35 +01:00
|
|
|
gnupg = pkgs.gnupg21;
|
2016-01-18 00:48:00 +01:00
|
|
|
};
|
2015-07-16 18:31:34 +02:00
|
|
|
}
|