Merge branch 'master' into staging

A few thousand rebuilds from master.
This commit is contained in:
Vladimír Čunát 2017-05-19 08:48:32 +02:00
commit 5aa530f2a8
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
30 changed files with 1688 additions and 1532 deletions

View File

@ -196,6 +196,7 @@
garrison = "Jim Garrison <jim@garrison.cc>"; garrison = "Jim Garrison <jim@garrison.cc>";
gavin = "Gavin Rogers <gavin@praxeology.co.uk>"; gavin = "Gavin Rogers <gavin@praxeology.co.uk>";
gebner = "Gabriel Ebner <gebner@gebner.org>"; gebner = "Gabriel Ebner <gebner@gebner.org>";
georgewhewell = "George Whewell <georgerw@gmail.com>";
gilligan = "Tobias Pflug <tobias.pflug@gmail.com>"; gilligan = "Tobias Pflug <tobias.pflug@gmail.com>";
giogadi = "Luis G. Torres <lgtorres42@gmail.com>"; giogadi = "Luis G. Torres <lgtorres42@gmail.com>";
gleber = "Gleb Peregud <gleber.p@gmail.com>"; gleber = "Gleb Peregud <gleber.p@gmail.com>";

View File

@ -1,4 +1,4 @@
{ config, lib, ... }: { config, lib, pkgs, ... }:
with lib; with lib;
@ -6,7 +6,11 @@ let
enabled = elem "displaylink" config.services.xserver.videoDrivers; enabled = elem "displaylink" config.services.xserver.videoDrivers;
displaylink = config.boot.kernelPackages.displaylink; evdi = config.boot.kernelPackages.evdi;
displaylink = pkgs.displaylink.override {
inherit evdi;
};
in in
@ -14,15 +18,11 @@ in
config = mkIf enabled { config = mkIf enabled {
boot.extraModulePackages = [ displaylink ]; boot.extraModulePackages = [ evdi ];
boot.kernelModules = [ "evdi" ];
# Those are taken from displaylink-installer.sh and from Arch Linux AUR package. # Those are taken from displaylink-installer.sh and from Arch Linux AUR package.
services.udev.extraRules = '' services.udev.packages = [ displaylink ];
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="17e9", ATTR{bNumInterfaces}=="*5", TAG+="uaccess"
'';
powerManagement.powerDownCommands = '' powerManagement.powerDownCommands = ''
#flush any bytes in pipe #flush any bytes in pipe
@ -32,7 +32,10 @@ in
echo "S" > /tmp/PmMessagesPort_in echo "S" > /tmp/PmMessagesPort_in
#wait until suspend of DisplayLinkManager finish #wait until suspend of DisplayLinkManager finish
read -n 1 -t 10 SUSPEND_RESULT < /tmp/PmMessagesPort_out if [ -f /tmp/PmMessagesPort_out ]; then
#wait until suspend of DisplayLinkManager finish
read -n 1 -t 10 SUSPEND_RESULT < /tmp/PmMessagesPort_out
fi
''; '';
powerManagement.resumeCommands = '' powerManagement.resumeCommands = ''
@ -40,10 +43,11 @@ in
echo "R" > /tmp/PmMessagesPort_in echo "R" > /tmp/PmMessagesPort_in
''; '';
systemd.services.displaylink = { systemd.services.dlm = {
description = "DisplayLink Manager Service"; description = "DisplayLink Manager Service";
after = [ "display-manager.service" ]; after = [ "display-manager.service" ];
wantedBy = [ "graphical.target" ]; conflicts = [ "getty@tty7.service" ];
path = [ pkgs.kmod ];
serviceConfig = { serviceConfig = {
ExecStart = "${displaylink}/bin/DisplayLinkManager"; ExecStart = "${displaylink}/bin/DisplayLinkManager";
@ -53,6 +57,7 @@ in
preStart = '' preStart = ''
mkdir -p /var/log/displaylink mkdir -p /var/log/displaylink
modprobe evdi
''; '';
}; };

View File

@ -614,6 +614,7 @@
./services/x11/window-managers/windowlab.nix ./services/x11/window-managers/windowlab.nix
./services/x11/window-managers/wmii.nix ./services/x11/window-managers/wmii.nix
./services/x11/window-managers/xmonad.nix ./services/x11/window-managers/xmonad.nix
./services/x11/xautolock.nix
./services/x11/xbanish.nix ./services/x11/xbanish.nix
./services/x11/xfs.nix ./services/x11/xfs.nix
./services/x11/xserver.nix ./services/x11/xserver.nix

View File

@ -20,7 +20,7 @@ in
services.miredo = { services.miredo = {
enable = mkEnableOption "Whether miredo should be run on startup."; enable = mkEnableOption "the Miredo IPv6 tunneling service.";
package = mkOption { package = mkOption {
type = types.package; type = types.package;

View File

@ -0,0 +1,72 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.xserver.xautolock;
in
{
options = {
services.xserver.xautolock = {
enable = mkEnableOption "xautolock";
enableNotifier = mkEnableOption "xautolock.notify" // {
description = ''
Whether to enable the notifier feature of xautolock.
This publishes a notification before the autolock.
'';
};
time = mkOption {
default = 15;
type = types.int;
description = ''
Idle time to wait until xautolock locks the computer.
'';
};
locker = mkOption {
default = "xlock"; # default according to `man xautolock`
example = "i3lock -i /path/to/img";
type = types.string;
description = ''
The script to use when locking the computer.
'';
};
notify = mkOption {
default = 10;
type = types.int;
description = ''
Time (in seconds) before the actual lock when the notification about the pending lock should be published.
'';
};
notifier = mkOption {
default = "notify-send 'Locking in 10 seconds'";
type = types.string;
description = ''
Notification script to be used to warn about the pending autolock.
'';
};
};
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ xautolock ];
services.xserver.displayManager.sessionCommands = with builtins; with pkgs; ''
${xautolock}/bin/xautolock \
${concatStringsSep " \\\n" ([
"-time ${toString(cfg.time)}"
"-locker ${cfg.locker}"
] ++ optional cfg.enableNotifier (concatStringsSep " " [
"-notify ${toString(cfg.notify)}"
"-notifier \"${cfg.notifier}\""
]))} &
'';
};
}

View File

@ -20,11 +20,11 @@ let
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
name = "nano-${version}"; name = "nano-${version}";
version = "2.8.2"; version = "2.8.3";
src = fetchurl { src = fetchurl {
url = "mirror://gnu/nano/${name}.tar.xz"; url = "mirror://gnu/nano/${name}.tar.xz";
sha256 = "1q5rxkvsv974085xrd2k11ffazadabcb9cnpfra0shmj71xqlgh2"; sha256 = "0m8g1f1c09kjmy7w6dxq30yw373nsv1ylj7986xyv4a0jddybf32";
}; };
nativeBuildInputs = [ texinfo ] ++ optional enableNls gettext; nativeBuildInputs = [ texinfo ] ++ optional enableNls gettext;

View File

@ -1 +1 @@
WGET_ARGS=( http://download.kde.org/stable/applications/17.04.0/ -A '*.tar.xz' ) WGET_ARGS=( http://download.kde.org/stable/applications/17.04.1/ -A '*.tar.xz' )

View File

@ -10,187 +10,141 @@ in
lib.mapAttrs (name: attr: recurseIntoAttrs attr) { lib.mapAttrs (name: attr: recurseIntoAttrs attr) {
ar = { ar = {
qt4 = callPackage (kdeLocale4 "ar" {}) {}; qt4 = callPackage (kdeLocale4 "ar" {}) {};
qt5 = callPackage (kdeLocale5 "ar" {}) {};
}; };
bg = { bg = {
qt4 = callPackage (kdeLocale4 "bg" {}) {}; qt4 = callPackage (kdeLocale4 "bg" {}) {};
qt5 = callPackage (kdeLocale5 "bg" {}) {};
}; };
bs = { bs = {
qt4 = callPackage (kdeLocale4 "bs" {}) {}; qt4 = callPackage (kdeLocale4 "bs" {}) {};
qt5 = callPackage (kdeLocale5 "bs" {}) {};
}; };
ca = { ca = {
qt4 = callPackage (kdeLocale4 "ca" {}) {}; qt4 = callPackage (kdeLocale4 "ca" {}) {};
qt5 = callPackage (kdeLocale5 "ca" {}) {};
}; };
ca_valencia = { ca_valencia = {
qt4 = callPackage (kdeLocale4 "ca_valencia" {}) {}; qt4 = callPackage (kdeLocale4 "ca_valencia" {}) {};
qt5 = callPackage (kdeLocale5 "ca_valencia" {}) {};
}; };
cs = { cs = {
qt4 = callPackage (kdeLocale4 "cs" {}) {}; qt4 = callPackage (kdeLocale4 "cs" {}) {};
qt5 = callPackage (kdeLocale5 "cs" {}) {};
}; };
da = { da = {
qt4 = callPackage (kdeLocale4 "da" {}) {}; qt4 = callPackage (kdeLocale4 "da" {}) {};
qt5 = callPackage (kdeLocale5 "da" {}) {};
}; };
de = { de = {
qt4 = callPackage (kdeLocale4 "de" {}) {}; qt4 = callPackage (kdeLocale4 "de" {}) {};
qt5 = callPackage (kdeLocale5 "de" {}) {};
}; };
el = { el = {
qt4 = callPackage (kdeLocale4 "el" {}) {}; qt4 = callPackage (kdeLocale4 "el" {}) {};
qt5 = callPackage (kdeLocale5 "el" {}) {};
}; };
en_GB = { en_GB = {
qt4 = callPackage (kdeLocale4 "en_GB" {}) {}; qt4 = callPackage (kdeLocale4 "en_GB" {}) {};
qt5 = callPackage (kdeLocale5 "en_GB" {}) {};
}; };
eo = { eo = {
qt4 = callPackage (kdeLocale4 "eo" {}) {}; qt4 = callPackage (kdeLocale4 "eo" {}) {};
qt5 = callPackage (kdeLocale5 "eo" {}) {};
}; };
es = { es = {
qt4 = callPackage (kdeLocale4 "es" {}) {}; qt4 = callPackage (kdeLocale4 "es" {}) {};
qt5 = callPackage (kdeLocale5 "es" {}) {};
}; };
et = { et = {
qt4 = callPackage (kdeLocale4 "et" {}) {}; qt4 = callPackage (kdeLocale4 "et" {}) {};
qt5 = callPackage (kdeLocale5 "et" {}) {};
}; };
eu = { eu = {
qt4 = callPackage (kdeLocale4 "eu" {}) {}; qt4 = callPackage (kdeLocale4 "eu" {}) {};
qt5 = callPackage (kdeLocale5 "eu" {}) {};
}; };
fa = { fa = {
qt4 = callPackage (kdeLocale4 "fa" {}) {}; qt4 = callPackage (kdeLocale4 "fa" {}) {};
qt5 = callPackage (kdeLocale5 "fa" {}) {};
}; };
fi = { fi = {
qt4 = callPackage (kdeLocale4 "fi" {}) {}; qt4 = callPackage (kdeLocale4 "fi" {}) {};
qt5 = callPackage (kdeLocale5 "fi" {}) {};
}; };
fr = { fr = {
qt4 = callPackage (kdeLocale4 "fr" {}) {}; qt4 = callPackage (kdeLocale4 "fr" {}) {};
qt5 = callPackage (kdeLocale5 "fr" {}) {};
}; };
ga = { ga = {
qt4 = callPackage (kdeLocale4 "ga" {}) {}; qt4 = callPackage (kdeLocale4 "ga" {}) {};
qt5 = callPackage (kdeLocale5 "ga" {}) {};
}; };
gl = { gl = {
qt4 = callPackage (kdeLocale4 "gl" {}) {}; qt4 = callPackage (kdeLocale4 "gl" {}) {};
qt5 = callPackage (kdeLocale5 "gl" {}) {};
}; };
he = { he = {
qt4 = callPackage (kdeLocale4 "he" {}) {}; qt4 = callPackage (kdeLocale4 "he" {}) {};
qt5 = callPackage (kdeLocale5 "he" {}) {};
}; };
hi = { hi = {
qt4 = callPackage (kdeLocale4 "hi" {}) {}; qt4 = callPackage (kdeLocale4 "hi" {}) {};
qt5 = callPackage (kdeLocale5 "hi" {}) {};
}; };
hr = { hr = {
qt4 = callPackage (kdeLocale4 "hr" {}) {}; qt4 = callPackage (kdeLocale4 "hr" {}) {};
qt5 = callPackage (kdeLocale5 "hr" {}) {};
}; };
hu = { hu = {
qt4 = callPackage (kdeLocale4 "hu" {}) {}; qt4 = callPackage (kdeLocale4 "hu" {}) {};
qt5 = callPackage (kdeLocale5 "hu" {}) {};
}; };
ia = { ia = {
qt4 = callPackage (kdeLocale4 "ia" {}) {}; qt4 = callPackage (kdeLocale4 "ia" {}) {};
qt5 = callPackage (kdeLocale5 "ia" {}) {};
}; };
id = { id = {
qt4 = callPackage (kdeLocale4 "id" {}) {}; qt4 = callPackage (kdeLocale4 "id" {}) {};
qt5 = callPackage (kdeLocale5 "id" {}) {};
}; };
is = { is = {
qt4 = callPackage (kdeLocale4 "is" {}) {}; qt4 = callPackage (kdeLocale4 "is" {}) {};
qt5 = callPackage (kdeLocale5 "is" {}) {};
}; };
it = { it = {
qt4 = callPackage (kdeLocale4 "it" {}) {}; qt4 = callPackage (kdeLocale4 "it" {}) {};
qt5 = callPackage (kdeLocale5 "it" {}) {};
}; };
ja = { ja = {
qt4 = callPackage (kdeLocale4 "ja" {}) {}; qt4 = callPackage (kdeLocale4 "ja" {}) {};
qt5 = callPackage (kdeLocale5 "ja" {}) {};
}; };
kk = { kk = {
qt4 = callPackage (kdeLocale4 "kk" {}) {}; qt4 = callPackage (kdeLocale4 "kk" {}) {};
qt5 = callPackage (kdeLocale5 "kk" {}) {};
}; };
km = { km = {
qt4 = callPackage (kdeLocale4 "km" {}) {}; qt4 = callPackage (kdeLocale4 "km" {}) {};
qt5 = callPackage (kdeLocale5 "km" {}) {};
}; };
ko = { ko = {
qt4 = callPackage (kdeLocale4 "ko" {}) {}; qt4 = callPackage (kdeLocale4 "ko" {}) {};
qt5 = callPackage (kdeLocale5 "ko" {}) {};
}; };
lt = { lt = {
qt4 = callPackage (kdeLocale4 "lt" {}) {}; qt4 = callPackage (kdeLocale4 "lt" {}) {};
qt5 = callPackage (kdeLocale5 "lt" {}) {};
}; };
lv = { lv = {
qt4 = callPackage (kdeLocale4 "lv" {}) {}; qt4 = callPackage (kdeLocale4 "lv" {}) {};
qt5 = callPackage (kdeLocale5 "lv" {}) {};
}; };
mr = { mr = {
qt4 = callPackage (kdeLocale4 "mr" {}) {}; qt4 = callPackage (kdeLocale4 "mr" {}) {};
qt5 = callPackage (kdeLocale5 "mr" {}) {};
}; };
nb = { nb = {
qt4 = callPackage (kdeLocale4 "nb" {}) {}; qt4 = callPackage (kdeLocale4 "nb" {}) {};
qt5 = callPackage (kdeLocale5 "nb" {}) {};
}; };
nds = { nds = {
qt4 = callPackage (kdeLocale4 "nds" {}) {}; qt4 = callPackage (kdeLocale4 "nds" {}) {};
qt5 = callPackage (kdeLocale5 "nds" {}) {};
}; };
nl = { nl = {
qt4 = callPackage (kdeLocale4 "nl" {}) {}; qt4 = callPackage (kdeLocale4 "nl" {}) {};
qt5 = callPackage (kdeLocale5 "nl" {}) {};
}; };
nn = { nn = {
qt4 = callPackage (kdeLocale4 "nn" {}) {}; qt4 = callPackage (kdeLocale4 "nn" {}) {};
qt5 = callPackage (kdeLocale5 "nn" {}) {};
}; };
pa = { pa = {
qt4 = callPackage (kdeLocale4 "pa" {}) {}; qt4 = callPackage (kdeLocale4 "pa" {}) {};
qt5 = callPackage (kdeLocale5 "pa" {}) {};
}; };
pl = { pl = {
qt4 = callPackage (kdeLocale4 "pl" {}) {}; qt4 = callPackage (kdeLocale4 "pl" {}) {};
qt5 = callPackage (kdeLocale5 "pl" {}) {};
}; };
pt = { pt = {
qt4 = callPackage (kdeLocale4 "pt" {}) {}; qt4 = callPackage (kdeLocale4 "pt" {}) {};
qt5 = callPackage (kdeLocale5 "pt" {}) {};
}; };
pt_BR = { pt_BR = {
qt4 = callPackage (kdeLocale4 "pt_BR" {}) {}; qt4 = callPackage (kdeLocale4 "pt_BR" {}) {};
qt5 = callPackage (kdeLocale5 "pt_BR" {}) {};
}; };
ro = { ro = {
qt4 = callPackage (kdeLocale4 "ro" {}) {}; qt4 = callPackage (kdeLocale4 "ro" {}) {};
qt5 = callPackage (kdeLocale5 "ro" {}) {};
}; };
ru = { ru = {
qt4 = callPackage (kdeLocale4 "ru" {}) {}; qt4 = callPackage (kdeLocale4 "ru" {}) {};
qt5 = callPackage (kdeLocale5 "ru" {}) {};
}; };
sk = { sk = {
qt4 = callPackage (kdeLocale4 "sk" {}) {}; qt4 = callPackage (kdeLocale4 "sk" {}) {};
qt5 = callPackage (kdeLocale5 "sk" {}) {};
}; };
sl = { sl = {
qt4 = callPackage (kdeLocale4 "sl" {}) {}; qt4 = callPackage (kdeLocale4 "sl" {}) {};
qt5 = callPackage (kdeLocale5 "sl" {}) {};
}; };
sr = { sr = {
qt4 = callPackage (kdeLocale4 "sr" { qt4 = callPackage (kdeLocale4 "sr" {
@ -203,39 +157,26 @@ lib.mapAttrs (name: attr: recurseIntoAttrs attr) {
4/sr/sr@ijekavianlatin/scripts/ts-pmap-compile.py 4/sr/sr@ijekavianlatin/scripts/ts-pmap-compile.py
''; '';
}) {}; }) {};
qt5 = callPackage (kdeLocale5 "sr" {
preConfigure = ''
patchShebangs 5/sr/cmake_modules/resolve-sr-hybrid
sed -e 's/add_subdirectory(kdesdk)//' -i 5/sr/data/CMakeLists.txt
'';
}) {};
}; };
sv = { sv = {
qt4 = callPackage (kdeLocale4 "sv" {}) {}; qt4 = callPackage (kdeLocale4 "sv" {}) {};
qt5 = callPackage (kdeLocale5 "sv" {}) {};
}; };
tr = { tr = {
qt4 = callPackage (kdeLocale4 "tr" {}) {}; qt4 = callPackage (kdeLocale4 "tr" {}) {};
qt5 = callPackage (kdeLocale5 "tr" {}) {};
}; };
ug = { ug = {
qt4 = callPackage (kdeLocale4 "ug" {}) {}; qt4 = callPackage (kdeLocale4 "ug" {}) {};
qt5 = callPackage (kdeLocale5 "ug" {}) {};
}; };
uk = { uk = {
qt4 = callPackage (kdeLocale4 "uk" {}) {}; qt4 = callPackage (kdeLocale4 "uk" {}) {};
qt5 = callPackage (kdeLocale5 "uk" {}) {};
}; };
wa = { wa = {
qt4 = callPackage (kdeLocale4 "wa" {}) {}; qt4 = callPackage (kdeLocale4 "wa" {}) {};
qt5 = callPackage (kdeLocale5 "wa" {}) {};
}; };
zh_CN = { zh_CN = {
qt4 = callPackage (kdeLocale4 "zh_CN" {}) {}; qt4 = callPackage (kdeLocale4 "zh_CN" {}) {};
qt5 = callPackage (kdeLocale5 "zh_CN" {}) {};
}; };
zh_TW = { zh_TW = {
qt4 = callPackage (kdeLocale4 "zh_TW" {}) {}; qt4 = callPackage (kdeLocale4 "zh_TW" {}) {};
qt5 = callPackage (kdeLocale5 "zh_TW" {}) {};
}; };
} }

File diff suppressed because it is too large Load Diff

View File

@ -31,8 +31,8 @@ in stdenv.mkDerivation rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jp9000"; owner = "jp9000";
repo = "obs-studio"; repo = "obs-studio";
rev = "26c28b45"; rev = "2bf9d548";
sha256 = "06rr70z2p2l8prxmd075pnlc759ddlqn3jprn8ns148x6s2vqik2"; sha256 = "036l29m3dlqadvaazj0nmgi2lcji8zckdvx3gjrx1kp96yd5myqd";
}; };
patches = [ ./find-xcb.patch ]; patches = [ ./find-xcb.patch ];

View File

@ -2,12 +2,12 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "go-font-${version}"; name = "go-font-${version}";
version = "2016-11-17"; version = "2017-03-30";
src = fetchgit { src = fetchgit {
url = "https://go.googlesource.com/image"; url = "https://go.googlesource.com/image";
rev = "d2f07f8aaaa906f1a64eee0e327fc681cdb2944f"; rev = "f03a046406d4d7fbfd4ed29f554da8f6114049fc";
sha256 = "1kmsipa4cyrwx86acc695c281hchrz9k9ni8r7giyggvdi577iga"; sha256 = "1aq6mnjayks55gd9ahavk6jfydlq5lm4xm0xk4pd5sqa74p5p74d";
}; };
installPhase = '' installPhase = ''

View File

@ -688,9 +688,6 @@ self: super: {
# It makes no sense to have intero-nix-shim in Hackage, so we publish it here only. # It makes no sense to have intero-nix-shim in Hackage, so we publish it here only.
intero-nix-shim = self.callPackage ../tools/haskell/intero-nix-shim {}; intero-nix-shim = self.callPackage ../tools/haskell/intero-nix-shim {};
# The latest Hoogle needs versions not yet in LTS Haskell 7.x.
hoogle = super.hoogle.override { haskell-src-exts = self.haskell-src-exts_1_19_1; };
# https://github.com/Philonous/hs-stun/pull/1 # https://github.com/Philonous/hs-stun/pull/1
# Remove if a version > 0.1.0.1 ever gets released. # Remove if a version > 0.1.0.1 ever gets released.
stunclient = overrideCabal super.stunclient (drv: { stunclient = overrideCabal super.stunclient (drv: {

View File

@ -17,6 +17,7 @@
, multithreadBuild ? true # Multithreading via pthreads/win32 threads , multithreadBuild ? true # Multithreading via pthreads/win32 threads
, networkBuild ? true # Network support , networkBuild ? true # Network support
, pixelutilsBuild ? true # Pixel utils in libavutil , pixelutilsBuild ? true # Pixel utils in libavutil
, enableLto ? false # build with link-time optimization
/* /*
* Program options * Program options
*/ */
@ -257,6 +258,7 @@ stdenv.mkDerivation rec {
(if stdenv.cc.isClang then "--cc=clang" else null) (if stdenv.cc.isClang then "--cc=clang" else null)
(enableFeature smallBuild "small") (enableFeature smallBuild "small")
(enableFeature runtimeCpuDetectBuild "runtime-cpudetect") (enableFeature runtimeCpuDetectBuild "runtime-cpudetect")
(enableFeature enableLto "lto")
(enableFeature grayBuild "gray") (enableFeature grayBuild "gray")
(enableFeature swscaleAlphaBuild "swscale-alpha") (enableFeature swscaleAlphaBuild "swscale-alpha")
(enableFeature hardcodedTablesBuild "hardcoded-tables") (enableFeature hardcodedTablesBuild "hardcoded-tables")

View File

@ -55,6 +55,8 @@ let
# Disable dependency that needs fixes before it will work on Darwin or Arm # Disable dependency that needs fixes before it will work on Darwin or Arm
disDarwinOrArmFix = origArg: minVer: fixArg: if ((isDarwin || isArm) && reqMin minVer) then fixArg else origArg; disDarwinOrArmFix = origArg: minVer: fixArg: if ((isDarwin || isArm) && reqMin minVer) then fixArg else origArg;
vaapiSupport = reqMin "0.6" && ((isLinux || isFreeBSD) && !isArm);
in in
assert openglSupport -> mesa != null; assert openglSupport -> mesa != null;
@ -121,7 +123,7 @@ stdenv.mkDerivation rec {
"--enable-libmp3lame" "--enable-libmp3lame"
(ifMinVer "1.2" "--enable-iconv") (ifMinVer "1.2" "--enable-iconv")
"--enable-libtheora" "--enable-libtheora"
(ifMinVer "0.6" (enableFeature (isLinux || isFreeBSD) "vaapi")) (ifMinVer "0.6" (enableFeature vaapiSupport "vaapi"))
"--enable-vdpau" "--enable-vdpau"
"--enable-libvorbis" "--enable-libvorbis"
(disDarwinOrArmFix (ifMinVer "0.6" "--enable-libvpx") "0.6" "--disable-libvpx") (disDarwinOrArmFix (ifMinVer "0.6" "--enable-libvpx") "0.6" "--disable-libvpx")
@ -197,8 +199,7 @@ stdenv.mkDerivation rec {
installFlags = [ "install-man" ]; installFlags = [ "install-man" ];
passthru = { passthru = {
vaapiSupport = if reqMin "0.6" && ((isLinux || isFreeBSD) && !isArm) then true else false; inherit vaapiSupport vdpauSupport;
inherit vdpauSupport;
}; };
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ setupHook perl pkgconfig gettext ]; nativeBuildInputs = [ setupHook perl pkgconfig gettext ];
patches = [ ./2.0-immodules.cache.patch ]; patches = [ ./2.0-immodules.cache.patch ./gtk2-theme-paths.patch ];
propagatedBuildInputs = with xorg; propagatedBuildInputs = with xorg;
[ glib cairo pango gdk_pixbuf atk ] [ glib cairo pango gdk_pixbuf atk ]

View File

@ -0,0 +1,40 @@
Subject: [PATCHv2] gtk: Patch GTK+ to look for themes in profiles.
To: guix-devel@gnu.org
Date: Sun, 13 Mar 2016 15:17:37 +1100
Url: https://lists.gnu.org/archive/html/guix-devel/2016-03/msg00492.html
diff -Naur gtk+-2.24.28.new/gtk/gtkrc.c gtk+-2.24.28/gtk/gtkrc.c
--- gtk+-2.24.28.new/gtk/gtkrc.c 2016-03-13 10:31:14.413644362 +1100
+++ gtk+-2.24.28/gtk/gtkrc.c 2016-03-13 12:51:34.723398423 +1100
@@ -808,6 +808,8 @@
gchar *path = NULL;
const gchar *home_dir;
gchar *subpath;
+ const gchar * const *xdg_data_dirs;
+ gint i;
if (type)
subpath = g_strconcat ("gtk-2.0-", type,
@@ -830,6 +832,22 @@
}
if (!path)
+ {
+ xdg_data_dirs = g_get_system_data_dirs ();
+ for (i = 0; xdg_data_dirs[i]; i++)
+ {
+ path = g_build_filename (xdg_data_dirs[i], "themes", name, subpath, NULL);
+ if (g_file_test (path, G_FILE_TEST_EXISTS))
+ break;
+ else
+ {
+ g_free (path);
+ path = NULL;
+ }
+ }
+ }
+
+ if (!path)
{
gchar *theme_dir = gtk_rc_get_theme_dir ();
path = g_build_filename (theme_dir, name, subpath, NULL);

View File

@ -6,7 +6,8 @@
, buildMultimedia ? stdenv.isLinux, alsaLib, gstreamer, gst-plugins-base , buildMultimedia ? stdenv.isLinux, alsaLib, gstreamer, gst-plugins-base
, buildWebkit ? (stdenv.isLinux || stdenv.isDarwin) , buildWebkit ? (stdenv.isLinux || stdenv.isDarwin)
, flashplayerFix ? false, gdk_pixbuf , flashplayerFix ? false, gdk_pixbuf
, gtkStyle ? false, libgnomeui, gtk2, GConf, gnome_vfs , gtkStyle ? true, gtk2
, gnomeStyle ? false, libgnomeui, GConf, gnome_vfs
, developerBuild ? false , developerBuild ? false
, docs ? false , docs ? false
, examples ? false , examples ? false
@ -73,14 +74,15 @@ stdenv.mkDerivation rec {
glibc = stdenv.cc.libc.out; glibc = stdenv.cc.libc.out;
openglDriver = if mesaSupported then mesa.driverLink else "/no-such-path"; openglDriver = if mesaSupported then mesa.driverLink else "/no-such-path";
}) })
] ++ stdenv.lib.optional gtkStyle (substituteAll { ] ++ stdenv.lib.optional gtkStyle (substituteAll ({
src = ./dlopen-gtkstyle.diff; src = ./dlopen-gtkstyle.diff;
# substituteAll ignores env vars starting with capital letter # substituteAll ignores env vars starting with capital letter
gconf = GConf.out;
gtk = gtk2.out; gtk = gtk2.out;
} // stdenv.lib.optionalAttrs gnomeStyle {
gconf = GConf.out;
libgnomeui = libgnomeui.out; libgnomeui = libgnomeui.out;
gnome_vfs = gnome_vfs.out; gnome_vfs = gnome_vfs.out;
}) }))
++ stdenv.lib.optional flashplayerFix (substituteAll { ++ stdenv.lib.optional flashplayerFix (substituteAll {
src = ./dlopen-webkit-nsplugin.diff; src = ./dlopen-webkit-nsplugin.diff;
gtk = gtk2.out; gtk = gtk2.out;

View File

@ -5,6 +5,7 @@
, blas , blas
, boost , boost
, python , python
, ocl-icd
, cudatoolkit , cudatoolkit
, nvidia_x11 , nvidia_x11
, gtest , gtest
@ -51,6 +52,7 @@ stdenv.mkDerivation rec {
gfortran gfortran
blas blas
python python
ocl-icd
cudatoolkit cudatoolkit
nvidia_x11 nvidia_x11
gtest gtest

View File

@ -1,8 +1,8 @@
{ stdenv, fetchurl, jdk, zip, unzip, bash, makeWrapper }: { stdenv, fetchurl, jdk, zip, unzip, bash, makeWrapper, which }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "0.4.4"; version = "0.4.5";
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://github.com/bazelbuild/bazel/; homepage = http://github.com/bazelbuild/bazel/;
@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
src = fetchurl { src = fetchurl {
url = "https://github.com/bazelbuild/bazel/releases/download/${version}/bazel-${version}-dist.zip"; url = "https://github.com/bazelbuild/bazel/releases/download/${version}/bazel-${version}-dist.zip";
sha256 = "1fwfahkqi680zyxmdriqj603lpacyh6cg6ff25bn9bkilbfj2anm"; sha256 = "0asmq3kxnl4326zhgh13mvcrc8jvmiswjj4ymrq0943q4vj7nwrb";
}; };
sourceRoot = "."; sourceRoot = ".";
@ -42,6 +42,7 @@ stdenv.mkDerivation rec {
zip zip
unzip unzip
makeWrapper makeWrapper
which
]; ];
# These must be propagated since the dependency is hidden in a compressed # These must be propagated since the dependency is hidden in a compressed
@ -58,6 +59,10 @@ stdenv.mkDerivation rec {
buildPhase = '' buildPhase = ''
export TMPDIR=/tmp export TMPDIR=/tmp
./compile.sh ./compile.sh
./output/bazel --output_user_root=/tmp/.bazel build //scripts:bash_completion \
--spawn_strategy=standalone \
--genrule_strategy=standalone
cp bazel-bin/scripts/bazel-complete.bash output/
''; '';
# Build the CPP and Java examples to verify that Bazel works. # Build the CPP and Java examples to verify that Bazel works.
@ -76,6 +81,9 @@ stdenv.mkDerivation rec {
mkdir -p $out/bin mkdir -p $out/bin
mv output/bazel $out/bin mv output/bazel $out/bin
wrapProgram "$out/bin/bazel" --prefix PATH : "${stdenv.cc}/bin:${jdk}/bin" wrapProgram "$out/bin/bazel" --prefix PATH : "${stdenv.cc}/bin:${jdk}/bin"
mkdir -p $out/share/bash-completion/completions $out/share/zsh/site-functions
mv output/bazel-complete.bash $out/share/bash-completion/completions/
cp scripts/zsh_completion/_bazel $out/share/zsh/site-functions/
''; '';
dontStrip = true; dontStrip = true;

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "flat-plat-gtk-theme-${version}"; name = "flat-plat-gtk-theme-${version}";
version = "20170323"; version = "20170515";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nana-4"; owner = "nana-4";
repo = "Flat-Plat"; repo = "Flat-Plat";
rev = "v${version}"; rev = "v${version}";
sha256 = "18s05x5qkl9cwywd01498xampyya1lnpjyyknj61qxxw5rsgay9y"; sha256 = "0z0l9ch6symcjhbfkj1q5i46ajbn7l7slhjgrcjm0ppqh05xc4y7";
}; };
nativeBuildInputs = [ gnome3.glib libxml2 ]; nativeBuildInputs = [ gnome3.glib libxml2 ];

View File

@ -1,64 +1,47 @@
{ stdenv, lib, fetchurl, fetchFromGitHub, unzip, kernel, utillinux, libdrm, libusb1, makeWrapper }: { stdenv, lib, fetchurl, unzip, utillinux, libusb1, evdi, systemd, makeWrapper }:
let let
arch = arch =
if stdenv.system == "x86_64-linux" then "x64" if stdenv.system == "x86_64-linux" then "x64"
else if stdenv.system == "i686-linux" then "x86" else if stdenv.system == "i686-linux" then "x86"
else throw "Unsupported architecture"; else throw "Unsupported architecture";
libPath = lib.makeLibraryPath [ stdenv.cc.cc utillinux libusb1 ]; bins = "${arch}-ubuntu-1604";
libPath = lib.makeLibraryPath [ stdenv.cc.cc utillinux libusb1 evdi ];
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
name = "displaylink-${version}"; name = "displaylink-${version}";
version = "1.1.62"; version = "1.3.52";
src = fetchFromGitHub { src = fetchurl {
owner = "DisplayLink";
repo = "evdi";
rev = "fe779940ff9fc7b512019619e24a5b22e4070f6a";
sha256 = "02hw83f6lscms8hssjzf30hl9zly3b28qcxwmxvnqwfhx1q491z9";
};
daemon = fetchurl {
name = "displaylink.zip"; name = "displaylink.zip";
url = "http://www.displaylink.com/downloads/file?id=607"; url = "http://www.displaylink.com/downloads/file?id=744";
sha256 = "0jky3xk4dfzbzg386qya9l9952i4m8zhf55fdl06pi9r82k2iijx"; sha256 = "0ridpsxcf761vym0nlpq702qa46ynddzci17bjmyax2pph7khr0k";
}; };
nativeBuildInputs = [ unzip makeWrapper ]; nativeBuildInputs = [ unzip makeWrapper ];
buildInputs = [ kernel libdrm ];
buildCommand = '' buildCommand = ''
unpackPhase unzip $src
cd $sourceRoot
unzip $daemon
chmod +x displaylink-driver-${version}.run chmod +x displaylink-driver-${version}.run
./displaylink-driver-${version}.run --target daemon --noexec ./displaylink-driver-${version}.run --target . --noexec
( cd module sed -i "s,/opt/displaylink/udev.sh,$out/lib/udev/displaylink.sh,g" udev-installer.sh
export makeFlags="$makeFlags KVER=${kernel.modDirVersion} KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" ( source udev-installer.sh
export hardeningDisable="pic format" mkdir -p $out/lib/udev/rules.d
buildPhase main systemd "$out/lib/udev/rules.d/99-displaylink.rules" "$out/lib/udev/displaylink.sh"
install -Dm755 evdi.ko $out/lib/modules/${kernel.modDirVersion}/kernel/drivers/gpu/drm/evdi/evdi.ko
) )
sed -i '2iPATH=${systemd}/bin:$PATH' $out/lib/udev/displaylink.sh
( cd library install -Dt $out/lib/displaylink *.spkg
buildPhase install -Dm755 ${bins}/DisplayLinkManager $out/bin/DisplayLinkManager
install -Dm755 libevdi.so $out/lib/libevdi.so patchelf \
) --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) \
--set-rpath ${libPath} \
$out/bin/DisplayLinkManager
wrapProgram $out/bin/DisplayLinkManager \
--run "cd $out/lib/displaylink"
fixupPhase fixupPhase
( cd daemon
install -Dt $out/lib/displaylink *.spkg
install -Dm755 ${arch}/DisplayLinkManager $out/bin/DisplayLinkManager
patchelf \
--set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) \
--set-rpath $out/lib:${libPath} \
$out/bin/DisplayLinkManager
wrapProgram $out/bin/DisplayLinkManager \
--run "cd $out/lib/displaylink"
)
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -0,0 +1,31 @@
{ stdenv, fetchFromGitHub, kernel, libdrm }:
stdenv.mkDerivation rec {
name = "evdi-${version}";
version = "1.4.1";
src = fetchFromGitHub {
owner = "DisplayLink";
repo = "evdi";
rev = "v${version}";
sha256 = "176cq83qlmhc4c00dwfnqgd021l7s4gyj8604m5zmxbz0r5mnawv";
};
buildInputs = [ kernel libdrm ];
makeFlags = [ "KVER=${kernel.modDirVersion}" "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" ];
hardeningDisable = [ "pic" "format" ];
installPhase = ''
install -Dm755 module/evdi.ko $out/lib/modules/${kernel.modDirVersion}/kernel/drivers/gpu/drm/evdi/evdi.ko
install -Dm755 library/libevdi.so $out/lib/libevdi.so
'';
meta = with stdenv.lib; {
description = "Extensible Virtual Display Interface";
platforms = platforms.linux;
license = licenses.gpl2;
homepage = "http://www.displaylink.com/";
};
}

View File

@ -29,6 +29,7 @@ ${optionalString (versionAtLeast version "4.10") ''
DEBUG_CREDENTIALS y DEBUG_CREDENTIALS y
DEBUG_NOTIFIERS y DEBUG_NOTIFIERS y
DEBUG_LIST y DEBUG_LIST y
DEBUG_SG y
HARDENED_USERCOPY y # Bounds check usercopy HARDENED_USERCOPY y # Bounds check usercopy

View File

@ -0,0 +1,36 @@
{ stdenv, lib, fetchFromGitHub, autoreconfHook, makeWrapper, pkgconfig
, zlib, lzma, bzip2, mtools, dosfstools, zip, unzip, libconfuse, libsodium
, libarchive, darwin, coreutils }:
stdenv.mkDerivation rec {
name = "fwup-${version}";
version = "0.14.2";
src = fetchFromGitHub {
owner = "fhunleth";
repo = "fwup";
rev = "v${version}";
sha256 = "0ddyiprq4qnqpdhh48bivl8c5yrh21p4r99qs0d1rjiwx5h9p21l";
};
doCheck = true;
patches = lib.optional stdenv.isDarwin [ ./fix-testrunner-darwin.patch ];
nativeBuildInputs = [ pkgconfig autoreconfHook makeWrapper ];
buildInputs = [ zlib lzma bzip2 libconfuse libsodium libarchive ]
++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.DiskArbitration
];
propagatedBuildInputs = [ zip unzip mtools dosfstools coreutils ];
# segfaults on darwin without
NIX_LDFLAGS = lib.optional stdenv.isDarwin "-F/System/Library/Frameworks";
meta = with stdenv.lib; {
description = "Configurable embedded Linux firmware update creator and runner";
homepage = https://github.com/fhunleth/fwup;
license = licenses.asl20;
maintainers = [ maintainers.georgewhewell ];
platforms = platforms.all;
};
}

View File

@ -0,0 +1,25 @@
diff --git a/tests/common-orig.sh b/tests/common.sh
index 1f2673f..79dcf74 100755
--- a/tests/common-orig.sh
+++ b/tests/common.sh
@@ -21,20 +21,6 @@ else
fi
case "$HOST_OS" in
- Darwin)
- # BSD stat
- STAT_FILESIZE_FLAGS="-f %z"
-
- # Not -d?
- BASE64_DECODE=-D
-
- READLINK=/usr/local/bin/greadlink
- [ -e $READLINK ] || ( echo "Please run 'brew install coreutils' to install greadlink"; exit 1 )
- [ -e /usr/local/bin/mdir ] || ( echo "Please run 'brew install mtools' to install mdir"; exit 1 )
-
- FSCK_FAT=fsck_msdos
- TIMEOUT=gtimeout
- ;;
FreeBSD|NetBSD|OpenBSD|DragonFly)
# BSD stat
STAT_FILESIZE_FLAGS="-f %z"

View File

@ -5,9 +5,7 @@
python2Packages.buildPythonApplication { python2Packages.buildPythonApplication {
name = "nixops-${version}"; name = "nixops-${version}";
namePrefix = ""; inherit version src;
src = src;
buildInputs = [ libxslt ]; buildInputs = [ libxslt ];
@ -31,23 +29,22 @@ python2Packages.buildPythonApplication {
doCheck = false; doCheck = false;
postInstall = postInstall = ''
'' make -C doc/manual install nixops.1 docbookxsl=${docbook5_xsl}/xml/xsl/docbook \
make -C doc/manual install nixops.1 docbookxsl=${docbook5_xsl}/xml/xsl/docbook \ docdir=$out/share/doc/nixops mandir=$out/share/man
docdir=$out/share/doc/nixops mandir=$out/share/man
mkdir -p $out/share/nix/nixops mkdir -p $out/share/nix/nixops
cp -av "nix/"* $out/share/nix/nixops cp -av "nix/"* $out/share/nix/nixops
# Add openssh to nixops' PATH. On some platforms, e.g. CentOS and RHEL # Add openssh to nixops' PATH. On some platforms, e.g. CentOS and RHEL
# the version of openssh is causing errors when have big networks (40+) # the version of openssh is causing errors when have big networks (40+)
wrapProgram $out/bin/nixops --prefix PATH : "${openssh}/bin" wrapProgram $out/bin/nixops --prefix PATH : "${openssh}/bin"
''; '';
meta = { meta = {
homepage = https://github.com/NixOS/nixops; homepage = https://github.com/NixOS/nixops;
description = "NixOS cloud provisioning and deployment tool"; description = "NixOS cloud provisioning and deployment tool";
maintainers = [ lib.maintainers.eelco lib.maintainers.rob ]; maintainers = with lib.maintainers; [ eelco rob domenkozar ];
platforms = lib.platforms.unix; platforms = lib.platforms.unix;
}; };
} }

View File

@ -1,9 +1,10 @@
{ callPackage, fetchurl }: { callPackage, fetchurl }:
callPackage ./generic.nix (rec { callPackage ./generic.nix (rec {
version = "1.5"; version = "2017-05-15";
src = fetchurl { src = fetchurl {
url = "http://nixos.org/releases/nixops/nixops-${version}/nixops-${version}.tar.bz2"; # Sadly hydra doesn't offer download links
sha256 = "0z4pzc55wjab8v4bkrff94f8qp1g9ydgxxpl2dvy5130bg1s52wd"; url = "https://static.domenkozar.com/nixops-tarball-1.5.1pre2165_b2fdc43.tar.bz2";
sha256 = "1x8jiskxynx0rzw356sz406bi2vl0vjs7747sbacq0bp1jlnpb2n";
}; };
}) })

View File

@ -15,6 +15,10 @@ stdenv.mkDerivation rec {
outputs = [ "out" "man" "doc" ]; outputs = [ "out" "man" "doc" ];
postPatch = ''
sed -i src/TARGETS -e '/^chkshsgr/d'
'';
configurePhase = '' configurePhase = ''
echo "$NIX_CC/bin/cc $NIX_CFLAGS_COMPILE" >src/conf-cc echo "$NIX_CC/bin/cc $NIX_CFLAGS_COMPILE" >src/conf-cc
echo "$NIX_CC/bin/cc -s" >src/conf-ld echo "$NIX_CC/bin/cc -s" >src/conf-ld

View File

@ -954,6 +954,8 @@ with pkgs;
fsmark = callPackage ../tools/misc/fsmark { }; fsmark = callPackage ../tools/misc/fsmark { };
fwup = callPackage ../tools/misc/fwup { };
fzf = callPackage ../tools/misc/fzf { }; fzf = callPackage ../tools/misc/fzf { };
fzy = callPackage ../tools/misc/fzy { }; fzy = callPackage ../tools/misc/fzy { };
@ -11520,6 +11522,10 @@ with pkgs;
disk_indicator = callPackage ../os-specific/linux/disk-indicator { }; disk_indicator = callPackage ../os-specific/linux/disk-indicator { };
displaylink = callPackage ../os-specific/linux/displaylink {
inherit (linuxPackages) evdi;
};
dmidecode = callPackage ../os-specific/linux/dmidecode { }; dmidecode = callPackage ../os-specific/linux/dmidecode { };
dmtcp = callPackage ../os-specific/linux/dmtcp { }; dmtcp = callPackage ../os-specific/linux/dmtcp { };
@ -11882,12 +11888,12 @@ with pkgs;
cpupower = callPackage ../os-specific/linux/cpupower { }; cpupower = callPackage ../os-specific/linux/cpupower { };
displaylink = callPackage ../os-specific/linux/displaylink { };
dpdk = callPackage ../os-specific/linux/dpdk { }; dpdk = callPackage ../os-specific/linux/dpdk { };
exfat-nofuse = callPackage ../os-specific/linux/exfat { }; exfat-nofuse = callPackage ../os-specific/linux/exfat { };
evdi = callPackage ../os-specific/linux/evdi { };
pktgen = callPackage ../os-specific/linux/pktgen { }; pktgen = callPackage ../os-specific/linux/pktgen { };
odp-dpdk = callPackage ../os-specific/linux/odp-dpdk { }; odp-dpdk = callPackage ../os-specific/linux/odp-dpdk { };

View File

@ -17,12 +17,12 @@ let
gmp = nativePlatforms; gmp = nativePlatforms;
}; };
gnuCommon = common // { gnuCommon = lib.recursiveUpdate common {
buildPackages.gccCrossStageFinal = nativePlatforms; buildPackages.gccCrossStageFinal = nativePlatforms;
coreutils = nativePlatforms; coreutils = nativePlatforms;
}; };
linuxCommon = gnuCommon // { linuxCommon = lib.recursiveUpdate gnuCommon {
buildPackages.gdbCross = nativePlatforms; buildPackages.gdbCross = nativePlatforms;
bison = nativePlatforms; bison = nativePlatforms;
@ -33,7 +33,7 @@ let
patch = nativePlatforms; patch = nativePlatforms;
}; };
windowsCommon = gnuCommon // { windowsCommon = lib.recursiveUpdate gnuCommon {
boehmgc = nativePlatforms; boehmgc = nativePlatforms;
guile_1_8 = nativePlatforms; guile_1_8 = nativePlatforms;
libffi = nativePlatforms; libffi = nativePlatforms;