Merge remote-tracking branch 'upstream/master' into staging

This commit is contained in:
Tuomas Tynkkynen 2017-04-10 01:41:49 +03:00
commit a05959e191
139 changed files with 2690 additions and 2092 deletions

View File

@ -60,6 +60,7 @@
bachp = "Pascal Bach <pascal.bach@nextrem.ch>"; bachp = "Pascal Bach <pascal.bach@nextrem.ch>";
badi = "Badi' Abdul-Wahid <abdulwahidc@gmail.com>"; badi = "Badi' Abdul-Wahid <abdulwahidc@gmail.com>";
balajisivaraman = "Balaji Sivaraman<sivaraman.balaji@gmail.com>"; balajisivaraman = "Balaji Sivaraman<sivaraman.balaji@gmail.com>";
basvandijk = "Bas van Dijk <v.dijk.bas@gmail.com>";
Baughn = "Svein Ove Aas <sveina@gmail.com>"; Baughn = "Svein Ove Aas <sveina@gmail.com>";
bcarrell = "Brandon Carrell <brandoncarrell@gmail.com>"; bcarrell = "Brandon Carrell <brandoncarrell@gmail.com>";
bcdarwin = "Ben Darwin <bcdarwin@gmail.com>"; bcdarwin = "Ben Darwin <bcdarwin@gmail.com>";
@ -105,6 +106,7 @@
codsl = "codsl <codsl@riseup.net>"; codsl = "codsl <codsl@riseup.net>";
codyopel = "Cody Opel <codyopel@gmail.com>"; codyopel = "Cody Opel <codyopel@gmail.com>";
colemickens = "Cole Mickens <cole.mickens@gmail.com>"; colemickens = "Cole Mickens <cole.mickens@gmail.com>";
colescott = "Cole Scott <colescottsf@gmail.com>";
copumpkin = "Dan Peebles <pumpkingod@gmail.com>"; copumpkin = "Dan Peebles <pumpkingod@gmail.com>";
corngood = "David McFarland <corngood@gmail.com>"; corngood = "David McFarland <corngood@gmail.com>";
coroa = "Jonas Hörsch <jonas@chaoflow.net>"; coroa = "Jonas Hörsch <jonas@chaoflow.net>";
@ -160,6 +162,7 @@
eleanor = "Dejan Lukan <dejan@proteansec.com>"; eleanor = "Dejan Lukan <dejan@proteansec.com>";
elitak = "Eric Litak <elitak@gmail.com>"; elitak = "Eric Litak <elitak@gmail.com>";
ellis = "Ellis Whitehead <nixos@ellisw.net>"; ellis = "Ellis Whitehead <nixos@ellisw.net>";
eperuffo = "Emanuele Peruffo <info@emanueleperuffo.com>";
epitrochoid = "Mabry Cervin <mpcervin@uncg.edu>"; epitrochoid = "Mabry Cervin <mpcervin@uncg.edu>";
ericbmerritt = "Eric Merritt <eric@afiniate.com>"; ericbmerritt = "Eric Merritt <eric@afiniate.com>";
ericsagnes = "Eric Sagnes <eric.sagnes@gmail.com>"; ericsagnes = "Eric Sagnes <eric.sagnes@gmail.com>";
@ -217,6 +220,7 @@
ianwookim = "Ian-Woo Kim <ianwookim@gmail.com>"; ianwookim = "Ian-Woo Kim <ianwookim@gmail.com>";
igsha = "Igor Sharonov <igor.sharonov@gmail.com>"; igsha = "Igor Sharonov <igor.sharonov@gmail.com>";
ikervagyok = "Balázs Lengyel <ikervagyok@gmail.com>"; ikervagyok = "Balázs Lengyel <ikervagyok@gmail.com>";
infinisil = "Silvan Mosberger <infinisil@icloud.com";
ivan-tkatchev = "Ivan Tkatchev <tkatchev@gmail.com>"; ivan-tkatchev = "Ivan Tkatchev <tkatchev@gmail.com>";
j-keck = "Jürgen Keck <jhyphenkeck@gmail.com>"; j-keck = "Jürgen Keck <jhyphenkeck@gmail.com>";
jagajaga = "Arseniy Seroka <ars.seroka@gmail.com>"; jagajaga = "Arseniy Seroka <ars.seroka@gmail.com>";

View File

@ -63,6 +63,15 @@ in
<literal>none</literal> disables the substitutions. <literal>none</literal> disables the substitutions.
''; '';
}; };
preset = mkOption {
type = types.enum ["ultimate1" "ultimate2" "ultimate3" "ultimate4" "ultimate5" "osx" "windowsxp"];
default = "ultimate3";
description = ''
FreeType rendering settings preset. Any of the presets may be
customized by setting environment variables.
'';
};
}; };
}; };
}; };
@ -72,6 +81,7 @@ in
config = mkIf (config.fonts.fontconfig.enable && cfg.enable) { config = mkIf (config.fonts.fontconfig.enable && cfg.enable) {
fonts.fontconfig.confPackages = [ confPkg ]; fonts.fontconfig.confPackages = [ confPkg ];
environment.variables."INFINALITY_FT" = cfg.preset;
}; };

View File

@ -37,6 +37,7 @@ with lib;
pkgs.xorg.fontbhlucidatypewriter75dpi pkgs.xorg.fontbhlucidatypewriter75dpi
pkgs.dejavu_fonts pkgs.dejavu_fonts
pkgs.freefont_ttf pkgs.freefont_ttf
pkgs.gyre-fonts # TrueType substitutes for standard PostScript fonts
pkgs.liberation_ttf pkgs.liberation_ttf
pkgs.xorg.fontbh100dpi pkgs.xorg.fontbh100dpi
pkgs.xorg.fontmiscmisc pkgs.xorg.fontmiscmisc

View File

@ -168,9 +168,6 @@ in
${cfg.extraInit} ${cfg.extraInit}
# The setuid/setcap wrappers override other bin directories.
export PATH="${config.security.wrapperDir}:$PATH"
# ~/bin if it exists overrides other bin directories. # ~/bin if it exists overrides other bin directories.
export PATH="$HOME/bin:$PATH" export PATH="$HOME/bin:$PATH"
''; '';

View File

@ -130,6 +130,7 @@
./services/audio/liquidsoap.nix ./services/audio/liquidsoap.nix
./services/audio/mpd.nix ./services/audio/mpd.nix
./services/audio/mopidy.nix ./services/audio/mopidy.nix
./services/audio/slimserver.nix
./services/audio/squeezelite.nix ./services/audio/squeezelite.nix
./services/audio/ympd.nix ./services/audio/ympd.nix
./services/backup/almir.nix ./services/backup/almir.nix
@ -247,6 +248,7 @@
./services/mail/rmilter.nix ./services/mail/rmilter.nix
./services/misc/apache-kafka.nix ./services/misc/apache-kafka.nix
./services/misc/autofs.nix ./services/misc/autofs.nix
./services/misc/autorandr.nix
./services/misc/bepasty.nix ./services/misc/bepasty.nix
./services/misc/canto-daemon.nix ./services/misc/canto-daemon.nix
./services/misc/calibre-server.nix ./services/misc/calibre-server.nix

View File

@ -39,7 +39,8 @@ in
example = "mail.example.org"; example = "mail.example.org";
description = '' description = ''
The host name of the default mail server to use to deliver The host name of the default mail server to use to deliver
e-mail. e-mail. Can also contain a port number (ex: mail.example.org:587),
defaults to port 25 if no port is given.
''; '';
}; };
@ -95,6 +96,25 @@ in
example = "correctHorseBatteryStaple"; example = "correctHorseBatteryStaple";
description = '' description = ''
Password used for SMTP auth. (STORED PLAIN TEXT, WORLD-READABLE IN NIX STORE) Password used for SMTP auth. (STORED PLAIN TEXT, WORLD-READABLE IN NIX STORE)
It's recommended to use <option>authPassFile</option>
which takes precedence over <option>authPass</option>.
'';
};
authPassFile = mkOption {
type = types.nullOr types.str;
default = null;
example = "/run/keys/ssmtp-authpass";
description = ''
Path to a file that contains the password used for SMTP auth. The file
should not contain a trailing newline, if the password does not contain one.
This file should be readable by the users that need to execute ssmtp.
<option>authPassFile</option> takes precedence over <option>authPass</option>.
Warning: when <option>authPass</option> is non-empty <option>authPassFile</option>
defaults to a file in the WORLD-READABLE Nix store containing that password.
''; '';
}; };
@ -111,17 +131,24 @@ in
config = mkIf cfg.directDelivery { config = mkIf cfg.directDelivery {
networking.defaultMailServer.authPassFile = mkIf (cfg.authPass != "")
(mkDefault (toString (pkgs.writeTextFile {
name = "ssmtp-authpass";
text = cfg.authPass;
})));
environment.etc."ssmtp/ssmtp.conf".text = environment.etc."ssmtp/ssmtp.conf".text =
let yesNo = yes : if yes then "YES" else "NO"; in
'' ''
MailHub=${cfg.hostName} MailHub=${cfg.hostName}
FromLineOverride=YES FromLineOverride=YES
${if cfg.root != "" then "root=${cfg.root}" else ""} ${optionalString (cfg.root != "") "root=${cfg.root}"}
${if cfg.domain != "" then "rewriteDomain=${cfg.domain}" else ""} ${optionalString (cfg.domain != "") "rewriteDomain=${cfg.domain}"}
UseTLS=${if cfg.useTLS then "YES" else "NO"} UseTLS=${yesNo cfg.useTLS}
UseSTARTTLS=${if cfg.useSTARTTLS then "YES" else "NO"} UseSTARTTLS=${yesNo cfg.useSTARTTLS}
#Debug=YES #Debug=YES
${if cfg.authUser != "" then "AuthUser=${cfg.authUser}" else ""} ${optionalString (cfg.authUser != "") "AuthUser=${cfg.authUser}"}
${if cfg.authPass != "" then "AuthPass=${cfg.authPass}" else ""} ${optionalString (!isNull cfg.authPassFile) "AuthPassFile=${cfg.authPassFile}"}
''; '';
environment.systemPackages = [pkgs.ssmtp]; environment.systemPackages = [pkgs.ssmtp];

View File

@ -0,0 +1,69 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.slimserver;
in {
options = {
services.slimserver = {
enable = mkOption {
type = types.bool;
default = false;
description = ''
Whether to enable slimserver.
'';
};
package = mkOption {
type = types.package;
default = pkgs.slimserver;
defaultText = "pkgs.slimserver";
description = "Slimserver package to use.";
};
dataDir = mkOption {
type = types.path;
default = "/var/lib/slimserver";
description = ''
The directory where slimserver stores its state, tag cache,
playlists etc.
'';
};
};
};
###### implementation
config = mkIf cfg.enable {
systemd.services.slimserver = {
after = [ "network.target" ];
description = "Slim Server for Logitech Squeezebox Players";
wantedBy = [ "multi-user.target" ];
preStart = "mkdir -p ${cfg.dataDir} && chown -R slimserver:slimserver ${cfg.dataDir}";
serviceConfig = {
User = "slimserver";
PermissionsStartOnly = true;
ExecStart = "${cfg.package}/slimserver.pl --logdir ${cfg.dataDir}/logs --prefsdir ${cfg.dataDir}/prefs --cachedir ${cfg.dataDir}/cache";
};
};
users = {
users.slimserver = {
description = "Slimserver daemon user";
home = cfg.dataDir;
group = "slimserver";
};
groups.slimserver = {};
};
};
}

View File

@ -0,0 +1,43 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.autorandr;
in {
options = {
services.autorandr = {
enable = mkEnableOption "handling of hotplug and sleep events by autorandr";
};
};
config = mkIf cfg.enable {
services.udev.packages = [ pkgs.autorandr ];
environment.systemPackages = [ pkgs.autorandr ];
# systemd.unitPackages = [ pkgs.autorandr ];
systemd.services.autorandr = {
unitConfig = {
Description = "autorandr execution hook";
After = [ "sleep.target" ];
StartLimitInterval = "5";
StartLimitBurst = "1";
};
serviceConfig = {
ExecStart = "${pkgs.autorandr}/bin/autorandr --batch --change --default default";
Type = "oneshot";
RemainAfterExit = false;
};
wantedBy = [ "sleep.target" ];
};
};
}

View File

@ -7,32 +7,32 @@ let
cfg = config.services.avahi; cfg = config.services.avahi;
yesNo = yes : if yes then "yes" else "no";
avahiDaemonConf = with cfg; pkgs.writeText "avahi-daemon.conf" '' avahiDaemonConf = with cfg; pkgs.writeText "avahi-daemon.conf" ''
[server] [server]
${# Users can set `networking.hostName' to the empty string, when getting ${# Users can set `networking.hostName' to the empty string, when getting
# a host name from DHCP. In that case, let Avahi take whatever the # a host name from DHCP. In that case, let Avahi take whatever the
# current host name is; setting `host-name' to the empty string in # current host name is; setting `host-name' to the empty string in
# `avahi-daemon.conf' would be invalid. # `avahi-daemon.conf' would be invalid.
if hostName != "" optionalString (hostName != "") "host-name=${hostName}"}
then "host-name=${hostName}"
else ""}
browse-domains=${concatStringsSep ", " browseDomains} browse-domains=${concatStringsSep ", " browseDomains}
use-ipv4=${if ipv4 then "yes" else "no"} use-ipv4=${yesNo ipv4}
use-ipv6=${if ipv6 then "yes" else "no"} use-ipv6=${yesNo ipv6}
${optionalString (interfaces!=null) "allow-interfaces=${concatStringsSep "," interfaces}"} ${optionalString (interfaces!=null) "allow-interfaces=${concatStringsSep "," interfaces}"}
${optionalString (domainName!=null) "domain-name=${domainName}"} ${optionalString (domainName!=null) "domain-name=${domainName}"}
allow-point-to-point=${if allowPointToPoint then "yes" else "no"} allow-point-to-point=${yesNo allowPointToPoint}
[wide-area] [wide-area]
enable-wide-area=${if wideArea then "yes" else "no"} enable-wide-area=${yesNo wideArea}
[publish] [publish]
disable-publishing=${if publish.enable then "no" else "yes"} disable-publishing=${yesNo (!publish.enable)}
disable-user-service-publishing=${if publish.userServices then "no" else "yes"} disable-user-service-publishing=${yesNo (!publish.userServices)}
publish-addresses=${if publish.userServices || publish.addresses then "yes" else "no"} publish-addresses=${yesNo (publish.userServices || publish.addresses)}
publish-hinfo=${if publish.hinfo then "yes" else "no"} publish-hinfo=${yesNo publish.hinfo}
publish-workstation=${if publish.workstation then "yes" else "no"} publish-workstation=${yesNo publish.workstation}
publish-domain=${if publish.domain then "yes" else "no"} publish-domain=${yesNo publish.domain}
''; '';
in in

View File

@ -162,9 +162,9 @@ in {
type = types.listOf (types.submodule { type = types.listOf (types.submodule {
options = { options = {
source = mkOption { source = mkOption {
type = types.str; type = types.path;
description = '' description = ''
A script source. A script.
''; '';
}; };
@ -224,7 +224,7 @@ in {
target = "NetworkManager/dispatcher.d/02overridedns"; target = "NetworkManager/dispatcher.d/02overridedns";
} }
++ lib.imap (i: s: { ++ lib.imap (i: s: {
text = s.source; inherit (s) source;
target = "NetworkManager/dispatcher.d/${dispatcherTypesSubdirMap.${s.type}}03userscript${lib.fixedWidthNumber 4 i}"; target = "NetworkManager/dispatcher.d/${dispatcherTypesSubdirMap.${s.type}}03userscript${lib.fixedWidthNumber 4 i}";
}) cfg.dispatcherScripts; }) cfg.dispatcherScripts;

View File

@ -83,7 +83,7 @@ in {
"focused = 1" "focused = 1"
]; ];
description = '' description = ''
List of condition of windows that should have no shadow. List of conditions of windows that should not be faded.
See <literal>compton(1)</literal> man page for more examples. See <literal>compton(1)</literal> man page for more examples.
''; '';
}; };
@ -123,7 +123,7 @@ in {
"focused = 1" "focused = 1"
]; ];
description = '' description = ''
List of condition of windows that should have no shadow. List of conditions of windows that should have no shadow.
See <literal>compton(1)</literal> man page for more examples. See <literal>compton(1)</literal> man page for more examples.
''; '';
}; };

View File

@ -1,20 +0,0 @@
#include <sys/statvfs.h>
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char ** argv) {
struct statvfs stat;
if (argc != 2) {
fprintf(stderr, "Usage: %s PATH", argv[0]);
exit(2);
}
if (statvfs(argv[1], &stat) != 0) {
perror("statvfs");
exit(3);
}
if (stat.f_flag & ST_RDONLY)
exit(0);
else
exit(1);
}

View File

@ -2,7 +2,22 @@
systemConfig=@systemConfig@ systemConfig=@systemConfig@
export HOME=/root export HOME=/root PATH="@path@"
# Process the kernel command line.
for o in $(</proc/cmdline); do
case $o in
boot.debugtrace)
# Show each command.
set -x
;;
resume=*)
set -- $(IFS==; echo $o)
resumeDevice=$2
;;
esac
done
# Print a greeting. # Print a greeting.
@ -11,21 +26,6 @@ echo -e "\e[1;32m<<< NixOS Stage 2 >>>\e[0m"
echo echo
# Set the PATH.
setPath() {
local dirs="$1"
export PATH=/empty
for i in $dirs; do
PATH=$PATH:$i/bin
if test -e $i/sbin; then
PATH=$PATH:$i/sbin
fi
done
}
setPath "@path@"
# Normally, stage 1 mounts the root filesystem read/writable. # Normally, stage 1 mounts the root filesystem read/writable.
# However, in some environments, stage 2 is executed directly, and the # However, in some environments, stage 2 is executed directly, and the
# root is read-only. So make it writable here. # root is read-only. So make it writable here.
@ -61,7 +61,9 @@ echo "booting system configuration $systemConfig" > /dev/kmsg
chown -f 0:30000 /nix/store chown -f 0:30000 /nix/store
chmod -f 1775 /nix/store chmod -f 1775 /nix/store
if [ -n "@readOnlyStore@" ]; then if [ -n "@readOnlyStore@" ]; then
if ! readonly-mountpoint /nix/store; then if ! [[ "$(findmnt --noheadings --output OPTIONS /nix/store)" =~ ro(,|$) ]]; then
# FIXME when linux < 4.5 is EOL, switch to atomic bind mounts
#mount /nix/store /nix/store -o bind,remount,ro
mount --bind /nix/store /nix/store mount --bind /nix/store /nix/store
mount -o remount,ro,bind /nix/store mount -o remount,ro,bind /nix/store
fi fi
@ -75,31 +77,12 @@ rm -f /etc/mtab* # not that we care about stale locks
ln -s /proc/mounts /etc/mtab ln -s /proc/mounts /etc/mtab
# Process the kernel command line.
for o in $(cat /proc/cmdline); do
case $o in
boot.debugtrace)
# Show each command.
set -x
;;
resume=*)
set -- $(IFS==; echo $o)
resumeDevice=$2
;;
esac
done
# More special file systems, initialise required directories. # More special file systems, initialise required directories.
[ -e /proc/bus/usb ] && mount -t usbfs usbfs /proc/bus/usb # UML doesn't have USB by default [ -e /proc/bus/usb ] && mount -t usbfs usbfs /proc/bus/usb # UML doesn't have USB by default
mkdir -m 01777 -p /tmp mkdir -m 01777 -p /tmp
mkdir -m 0755 -p /var /var/log /var/lib /var/db mkdir -m 0755 -p /var/{log,lib,db} /nix/var /etc/nixos/ \
mkdir -m 0755 -p /nix/var /run/lock /home /bin # for the /bin/sh symlink
mkdir -m 0700 -p /root install -m 0700 -d /root
chmod 0700 /root
mkdir -m 0755 -p /bin # for the /bin/sh symlink
mkdir -m 0755 -p /home
mkdir -m 0755 -p /etc/nixos
# Miscellaneous boot time cleanup. # Miscellaneous boot time cleanup.
@ -111,9 +94,6 @@ rm -f /etc/{group,passwd,shadow}.lock
rm -rf /nix/var/nix/gcroots/tmp /nix/var/nix/temproots rm -rf /nix/var/nix/gcroots/tmp /nix/var/nix/temproots
mkdir -m 0755 -p /run/lock
# For backwards compatibility, symlink /var/run to /run, and /var/lock # For backwards compatibility, symlink /var/run to /run, and /var/lock
# to /run/lock. # to /run/lock.
ln -s /run /var/run ln -s /run /var/run
@ -127,8 +107,8 @@ fi
# Use /etc/resolv.conf supplied by systemd-nspawn, if applicable. # Use /etc/resolv.conf supplied by systemd-nspawn, if applicable.
if [ -n "@useHostResolvConf@" -a -e /etc/resolv.conf ]; then if [ -n "@useHostResolvConf@" ] && [ -e /etc/resolv.conf ]; then
cat /etc/resolv.conf | resolvconf -m 1000 -a host resolvconf -m 1000 -a host </etc/resolv.conf
fi fi
# Log the script output to /dev/kmsg or /run/log/stage-2-init.log. # Log the script output to /dev/kmsg or /run/log/stage-2-init.log.

View File

@ -7,15 +7,6 @@ let
kernel = config.boot.kernelPackages.kernel; kernel = config.boot.kernelPackages.kernel;
activateConfiguration = config.system.activationScripts.script; activateConfiguration = config.system.activationScripts.script;
readonlyMountpoint = pkgs.stdenv.mkDerivation {
name = "readonly-mountpoint";
unpackPhase = "true";
installPhase = ''
mkdir -p $out/bin
cc -O3 ${./readonly-mountpoint.c} -o $out/bin/readonly-mountpoint
'';
};
bootStage2 = pkgs.substituteAll { bootStage2 = pkgs.substituteAll {
src = ./stage-2-init.sh; src = ./stage-2-init.sh;
shellDebug = "${pkgs.bashInteractive}/bin/bash"; shellDebug = "${pkgs.bashInteractive}/bin/bash";
@ -23,11 +14,11 @@ let
inherit (config.nix) readOnlyStore; inherit (config.nix) readOnlyStore;
inherit (config.networking) useHostResolvConf; inherit (config.networking) useHostResolvConf;
inherit (config.system.build) earlyMountScript; inherit (config.system.build) earlyMountScript;
path = path = lib.makeBinPath [
[ pkgs.coreutils pkgs.coreutils
pkgs.utillinux pkgs.utillinux
pkgs.openresolv pkgs.openresolv
] ++ optional config.nix.readOnlyStore readonlyMountpoint; ];
postBootCommands = pkgs.writeText "local-cmds" postBootCommands = pkgs.writeText "local-cmds"
'' ''
${config.boot.postBootCommands} ${config.boot.postBootCommands}

View File

@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
homepage = "http://yasr.sourceforge.net"; homepage = "http://yasr.sourceforge.net";
description = "A general-purpose console screen reader"; description = "A general-purpose console screen reader";
longDescription = "Yasr is a general-purpose console screen reader for GNU/Linux and other Unix-like operating systems."; longDescription = "Yasr is a general-purpose console screen reader for GNU/Linux and other Unix-like operating systems.";
platforms = stdenv.lib.platforms.unix; platforms = stdenv.lib.platforms.linux;
license = stdenv.lib.licenses.gpl2; license = stdenv.lib.licenses.gpl2;
maintainers = with stdenv.lib.maintainers; [ jhhuh ]; maintainers = with stdenv.lib.maintainers; [ jhhuh ];
}; };

View File

@ -43,11 +43,11 @@ let
# These lists are taken from the Makefile. # These lists are taken from the Makefile.
scintilla_tgz = "scintilla367.tgz"; scintilla_tgz = "scintilla373.tgz";
tre_zip = "cdce45e8dd7a3b36954022b4a4d3570e1ac5a4f8.zip"; tre_zip = "cdce45e8dd7a3b36954022b4a4d3570e1ac5a4f8.zip";
scinterm_zip = "scinterm_1.8.zip"; scinterm_zip = "scinterm_1.8.zip";
scintillua_zip = "scintillua_3.6.7-1.zip"; scintillua_zip = "33298b6cbce3.zip";
lua_tgz = "lua-5.3.3.tar.gz"; lua_tgz = "lua-5.3.4.tar.gz";
lpeg_tgz = "lpeg-1.0.0.tar.gz"; lpeg_tgz = "lpeg-1.0.0.tar.gz";
lfs_zip = "v_1_6_3.zip"; lfs_zip = "v_1_6_3.zip";
lspawn_zip = "lspawn_1.5.zip"; lspawn_zip = "lspawn_1.5.zip";
@ -60,7 +60,8 @@ let
scinterm_url = "http://foicica.com/scinterm/download/" + scinterm_zip; scinterm_url = "http://foicica.com/scinterm/download/" + scinterm_zip;
tre_url = "https://github.com/laurikari/tre/archive/" + tre_zip; tre_url = "https://github.com/laurikari/tre/archive/" + tre_zip;
scintillua_url = "http://foicica.com/scintillua/download/" + scintillua_zip; #scintillua_url = "http://foicica.com/scintillua/download/" + scintillua_zip;
scintillua_url = "http://foicica.com/hg/scintillua/archive/" + scintillua_zip;
gtdialog_url = "http://foicica.com/gtdialog/download/" + gtdialog_zip; gtdialog_url = "http://foicica.com/gtdialog/download/" + gtdialog_zip;
lspawn_url = "http://foicica.com/lspawn/download/" + lspawn_zip; lspawn_url = "http://foicica.com/lspawn/download/" + lspawn_zip;
@ -75,11 +76,11 @@ let
termkey_url = "http://www.leonerd.org.uk/code/libtermkey/" + termkey_tgz; termkey_url = "http://www.leonerd.org.uk/code/libtermkey/" + termkey_tgz;
get_scintilla = get_url scintilla_url "0rh1xgd06qcnj4l0vi8g4i94vi63s76366b8hhqky3iqdjgwsxpi"; get_scintilla = get_url scintilla_url "0rkczxzj6bqxks4jcbxbyrarjhfjh95nwxxiqprfid1kaamgkfm2";
get_tre = get_url tre_url "0mw8npwk5nnhc33352j4akannhpx77kqvfam8jdq1n4yf8js1gi7"; get_tre = get_url tre_url "0mw8npwk5nnhc33352j4akannhpx77kqvfam8jdq1n4yf8js1gi7";
get_scinterm = get_url scinterm_url "02ax6cjpxylfz7iqp1cjmsl323in066a38yklmsyzdl3w7761nxi"; get_scinterm = get_url scinterm_url "02ax6cjpxylfz7iqp1cjmsl323in066a38yklmsyzdl3w7761nxi";
get_scintillua = get_url scintillua_url "0fhyjrkfj2cvxnql65687nx1d0sfyg5lbrxmylyzhnfh4s4jnwmq"; get_scintillua = get_url scintillua_url "1kx113dpjby1p9jcsqlnlzwj01z94f9szw4b38077qav3bj4lk6g";
get_lua = get_url lua_url "18mcfbbmjyp8f2l9yy7n6dzk066nq6man0kpwly4bppphilc04si"; get_lua = get_url lua_url "0320a8dg3aci4hxla380dx1ifkw8gj4gbw5c4dz41g1kh98sm0gn";
get_lpeg = get_url lpeg_url "13mz18s359wlkwm9d9iqlyyrrwjc6iqfpa99ai0icam2b3khl68h"; get_lpeg = get_url lpeg_url "13mz18s359wlkwm9d9iqlyyrrwjc6iqfpa99ai0icam2b3khl68h";
get_lfs = get_url_zip lfs_url "1hxcnqj53540ysyw8fzax7f09pl98b8f55s712gsglcdxp2g2pri"; get_lfs = get_url_zip lfs_url "1hxcnqj53540ysyw8fzax7f09pl98b8f55s712gsglcdxp2g2pri";
get_lspawn = get_url lspawn_url "09c6v9irblay2kv1n7i59pyj9g4xb43c6rfa7ba5m353lymcwwqi"; get_lspawn = get_url lspawn_url "09c6v9irblay2kv1n7i59pyj9g4xb43c6rfa7ba5m353lymcwwqi";
@ -87,7 +88,7 @@ let
get_libluajit = get_url libluajit_url "1nhvcdjpqrhd5qbihdm3bxpw84irfvnw2vmfqnsy253ay3dxzrgy"; get_libluajit = get_url libluajit_url "1nhvcdjpqrhd5qbihdm3bxpw84irfvnw2vmfqnsy253ay3dxzrgy";
get_gtdialog = get_url gtdialog_url "0nvcldyhj8abr8jny9pbyfjwg8qfp9f2h508vjmrvr5c5fqdbbm0"; get_gtdialog = get_url gtdialog_url "0nvcldyhj8abr8jny9pbyfjwg8qfp9f2h508vjmrvr5c5fqdbbm0";
get_cdk = get_url cdk_url "0j74l874y33i26y5kjg3pf1vswyjif8k93pqhi0iqykpbxfsg382"; get_cdk = get_url cdk_url "0j74l874y33i26y5kjg3pf1vswyjif8k93pqhi0iqykpbxfsg382";
get_bombay = get_url_zip bombay_url "05fnh1imxdb4sb076fzqywqszp31whdbkzmpkqxc8q2r1m5vj3hg" get_bombay = get_url_zip bombay_url "0illabngrrxidkprgz268wgjqknrds34nhm6hav95xc1nmsdr6jj"
+ "mv tip.zip bombay.zip\n"; + "mv tip.zip bombay.zip\n";
get_termkey = get_url termkey_url "12gkrv1ldwk945qbpprnyawh0jz7rmqh18fyndbxiajyxmj97538"; get_termkey = get_url termkey_url "12gkrv1ldwk945qbpprnyawh0jz7rmqh18fyndbxiajyxmj97538";
@ -108,7 +109,7 @@ let
+ get_termkey; + get_termkey;
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "9.0"; version = "9.3";
name = "textadept-${version}"; name = "textadept-${version}";
buildInputs = [ buildInputs = [
@ -118,7 +119,7 @@ stdenv.mkDerivation rec {
src = fetchhg { src = fetchhg {
url = http://foicica.com/hg/textadept; url = http://foicica.com/hg/textadept;
rev = "textadept_${version}"; rev = "textadept_${version}";
sha256 = "1fkxblf2db4i0kbfww94xwps7nbn88qc4fwghrm4dcszcq32jlfi"; sha256 = "18x79pazm86agn1khdxfnf87la6kli3xasi7dcjx7l6yyz19y14d";
}; };
preConfigure = '' preConfigure = ''

View File

@ -44,6 +44,9 @@ stdenv.mkDerivation rec {
postInstall = '' postInstall = ''
# Make sure PyXML modules can be found at run-time. # Make sure PyXML modules can be found at run-time.
rm "$out/share/icons/hicolor/icon-theme.cache" rm "$out/share/icons/hicolor/icon-theme.cache"
'' + stdenv.lib.optionalString stdenv.isDarwin ''
install_name_tool -change $out/lib/libinkscape_base.dylib $out/lib/inkscape/libinkscape_base.dylib $out/bin/inkscape
install_name_tool -change $out/lib/libinkscape_base.dylib $out/lib/inkscape/libinkscape_base.dylib $out/bin/inkview
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -2,21 +2,22 @@
}: }:
with pythonPackages; buildPythonApplication rec { with pythonPackages; buildPythonApplication rec {
version = "2.8"; version = "2.9";
name = "buku-${version}"; name = "buku-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jarun"; owner = "jarun";
repo = "buku"; repo = "buku";
rev = "v${version}"; rev = "v${version}";
sha256 = "1gazvij0072lca0jh84i8mhnaxiwg56hcxmrmk2clxd2x213zyjm"; sha256 = "0ylq0j5w8jvzys4bj9m08bfr1sgf8h2b4fiax6hs6lcwn2882jbr";
}; };
buildInputs = [ propagatedBuildInputs = [
cryptography cryptography
beautifulsoup4 beautifulsoup4
requests2
urllib3
]; ];
propagatedBuildInputs = [ beautifulsoup4 ];
phases = [ "unpackPhase" "installPhase" "fixupPhase" ]; phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
@ -31,7 +32,7 @@ with pythonPackages; buildPythonApplication rec {
homepage = https://github.com/jarun/Buku; homepage = https://github.com/jarun/Buku;
license = licenses.gpl3; license = licenses.gpl3;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ matthiasbeyer ]; maintainers = with maintainers; [ matthiasbeyer infinisil ];
}; };
} }

View File

@ -1,29 +1,73 @@
{ stdenv, fetchurl, qtbase, openssl, boost, cmake, scons, python, pcre, bzip2 }: { stdenv, fetchurl, zlib, glib, xorg, dbus, fontconfig,
freetype, xkeyboard_config, makeDesktopItem, makeWrapper }:
stdenv.mkDerivation { let
name = "robomongo-0.8.4"; ldLibraryPath = stdenv.lib.makeLibraryPath [
stdenv.cc.cc
zlib
glib
xorg.libXi
xorg.libxcb
xorg.libXrender
xorg.libX11
xorg.libSM
xorg.libICE
xorg.libXext
dbus
fontconfig
freetype
];
icon = fetchurl {
url = "https://github.com/Studio3T/robomongo/raw/v0.9.0/trash/install/linux/robomongo.png";
sha256 = "15li8536x600kkfkb3h6mw7y0f2ljkv951pc45dpiw036vldibv2";
};
in
stdenv.mkDerivation {
name = "robomongo-0.9.0";
src = fetchurl { src = fetchurl {
url = https://github.com/paralect/robomongo/archive/v0.8.4.tar.gz; url = "https://download.robomongo.org/0.9.0/linux/robomongo-0.9.0-linux-x86_64-0786489.tar.gz";
sha256 = "199fb08701wrw3ky7gcqyvb3z4027qjcqdnzrx5y7yi3rb4gvkzc"; sha256 = "1q8ahdz3afcw002p8dl2pybzkq4srk6bnikrz216yx1gswivdcad";
}; };
patches = [ ./robomongo.patch ]; desktopItem = makeDesktopItem {
name = "robomongo";
exec = "robomongo";
icon = icon;
comment = "Query GUI for mongodb";
desktopName = "Robomongo";
genericName = "MongoDB management tool";
categories = "Development;IDE;mongodb;";
};
postPatch = '' buildInputs = [makeWrapper];
rm ./cmake/FindOpenSSL.cmake # remove outdated bundled CMake file
installPhase = ''
mkdir -p $out/bin
cp bin/* $out/bin
mkdir -p $out/lib
cp -r lib/* $out/lib
mkdir -p $out/share/applications
cp $desktopItem/share/applications/* $out/share/applications
mkdir -p $out/share/icons
cp ${icon} $out/share/icons/robomongo.png
patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 $out/bin/robomongo
wrapProgram $out/bin/robomongo \
--suffix LD_LIBRARY_PATH : ${ldLibraryPath} \
--suffix QT_XKB_CONFIG_ROOT : ${xkeyboard_config}/share/X11/xkb
''; '';
NIX_CFLAGS_COMPILE = "-fno-stack-protector";
buildInputs = [ cmake boost scons qtbase openssl python pcre bzip2 ];
meta = { meta = {
homepage = "http://robomongo.org/"; homepage = "https://robomongo.org/";
description = "Query GUI for mongodb"; description = "Query GUI for mongodb";
platforms = stdenv.lib.platforms.linux; platforms = stdenv.lib.intersectLists stdenv.lib.platforms.linux stdenv.lib.platforms.x86_64;
license = stdenv.lib.licenses.gpl3; license = stdenv.lib.licenses.gpl3;
maintainers = [ stdenv.lib.maintainers.amorsillo ]; maintainers = [ stdenv.lib.maintainers.eperuffo ];
broken = true;
}; };
} }

View File

@ -1,61 +0,0 @@
Remove check for QT_NO_STYLE_GTK to avoid building with QCleanlooksStyle which results in error due to missing QCleanlooksStyle
Ensure environment is preserved for scons build -- scons clears the env but we want to keep the nix build environment
Fix typo in cmakelists
Add stdint.h include to mongo driver src
diff -rupN robomongo-0.8.3/CMakeLists.txt robomongo-0.8.3-patched/CMakeLists.txt
--- robomongo-0.8.3/CMakeLists.txt 2013-10-01 10:55:00.000000000 -0400
+++ robomongo-0.8.3-patched/CMakeLists.txt 2013-12-06 12:22:06.070659856 -0500
@@ -133,7 +133,7 @@ ELSE()
ENDIF()
##################################DEFAULT VALUES##########################################
-IF(NOT CMAKE_INSTALL_PREFIX})
+IF(NOT CMAKE_INSTALL_PREFIX)
SET(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install")
ENDIF()
diff -rupN robomongo-0.8.3/src/robomongo/gui/AppStyle.h robomongo-0.8.3-patched/src/robomongo/gui/AppStyle.h
--- robomongo-0.8.3/src/robomongo/gui/AppStyle.h 2013-10-01 10:55:00.000000000 -0400
+++ robomongo-0.8.3-patched/src/robomongo/gui/AppStyle.h 2013-12-06 12:20:57.417297186 -0500
@@ -8,13 +8,8 @@
#include <QProxyStyle>
typedef QProxyStyle OsStyle;
#elif defined OS_LINUX
- #if !defined(QT_NO_STYLE_GTK)
- #include <QProxyStyle>
- typedef QProxyStyle OsStyle;
- #else
- #include <QCleanlooksStyle>
- typedef QCleanlooksStyle OsStyle;
- #endif
+ #include <QProxyStyle>
+ typedef QProxyStyle OsStyle;
#endif
namespace Robomongo
diff -rupN robomongo-0.8.3/src/third-party/mongodb/SConstruct robomongo-0.8.3-patched/src/third-party/mongodb/SConstruct
--- robomongo-0.8.3/src/third-party/mongodb/SConstruct 2013-10-01 10:55:00.000000000 -0400
+++ robomongo-0.8.3-patched/src/third-party/mongodb/SConstruct 2013-12-06 12:21:45.705255731 -0500
@@ -283,7 +283,8 @@ usePCH = has_option( "usePCH" )
justClientLib = (COMMAND_LINE_TARGETS == ['mongoclient'])
-env = Environment( BUILD_DIR=variantDir,
+env = Environment( ENV=os.environ,
+ BUILD_DIR=variantDir,
CLIENT_ARCHIVE='${CLIENT_DIST_BASENAME}${DIST_ARCHIVE_SUFFIX}',
CLIENT_DIST_BASENAME=get_option('client-dist-basename'),
CLIENT_LICENSE='#distsrc/client/LICENSE.txt',
diff -rupN robomongo-0.8.4/src/third-party/mongodb/src/mongo/pch.h robomongo-0.8.4-patched/src/third-party/mongodb/src/mongo/pch.h
--- robomongo-0.8.4/src/third-party/mongodb/src/mongo/pch.h 2013-12-13 12:56:35.000000000 -0500
+++ robomongo-0.8.4-patched/src/third-party/mongodb/src/mongo/pch.h 2014-08-20 18:16:31.788396489 -0400
@@ -39,6 +39,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
+#include <stdint.h>
#include "time.h"
#include "string.h"

View File

@ -0,0 +1,24 @@
{ stdenv, fetchurl, pkgconfig, libgnomeui, libxml2 }:
stdenv.mkDerivation rec {
name = "verbiste-${version}";
version = "0.1.44";
src = fetchurl {
url = "http://perso.b2b2c.ca/~sarrazip/dev/${name}.tar.gz";
sha256 = "0vmjr8w3qc64y312a0sj0ask309mmmlmyxp2fsii0ji35ls7m9sw";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libgnomeui libxml2 ];
meta = with stdenv.lib; {
homepage = http://sarrazip.com/dev/verbiste.html;
description = "French and Italian verb conjugator";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ orivej ];
};
}

View File

@ -10,22 +10,19 @@ let
# (presumably because we don't have some static system libraries it wants), and cross-compiling cgo on Darwin is a nightmare. # (presumably because we don't have some static system libraries it wants), and cross-compiling cgo on Darwin is a nightmare.
# #
# Note that minikube can download (and cache) versions of localkube it needs on demand. Unfortunately, minikube's knowledge # Note that minikube can download (and cache) versions of localkube it needs on demand. Unfortunately, minikube's knowledge
# of where it can download versions of localkube seems to rely on a json file that doesn't get updated as often as we'd like, # of where it can download versions of localkube seems to rely on a json file that doesn't get updated as often as we'd like. So
# so for example it doesn't know about v1.5.3 even though there's a perfectly good version of localkube hosted there. So
# instead, we download localkube ourselves and shove it into the minikube binary. The versions URL that minikube uses is # instead, we download localkube ourselves and shove it into the minikube binary. The versions URL that minikube uses is
# currently https://storage.googleapis.com/minikube/k8s_releases.json. Note that we can't use 1.5.3 with minikube 0.17.1 # currently https://storage.googleapis.com/minikube/k8s_releases.json
# expects to be able to pass it a command-line argument that it doesn't understand. v1.5.4 and higher should be fine. There
# doesn't seem to ae any official release of localkube for 1.5.4 yet so I'm temporarily grabbing a version built from the localkube-version = "1.6.0";
# minikube CI server.
localkube-binary = fetchurl { localkube-binary = fetchurl {
url = "https://storage.googleapis.com/minikube-builds/1216/localkube"; url = "https://storage.googleapis.com/minikube/k8sReleases/v${localkube-version}/localkube-linux-amd64";
# url = "https://storage.googleapis.com/minikube/k8sReleases/v${kubernetes.version}/localkube-linux-amd64"; sha256 = "0zx0c9fwairvga1g1112l5g5pspm2m9wxb42qgfxfgyidywvirha";
sha256 = "1vqrsak7n045ci6af3rpgs2qwjnrqk8k7c3ax6wzli4m8vhsiv57";
}; };
in buildGoPackage rec { in buildGoPackage rec {
pname = "minikube"; pname = "minikube";
name = "${pname}-${version}"; name = "${pname}-${version}";
version = "0.17.1"; version = "0.18.0";
goPackagePath = "k8s.io/minikube"; goPackagePath = "k8s.io/minikube";
@ -33,7 +30,7 @@ in buildGoPackage rec {
owner = "kubernetes"; owner = "kubernetes";
repo = "minikube"; repo = "minikube";
rev = "v${version}"; rev = "v${version}";
sha256 = "1m61yipn0p3cfavjddhrg1rcmr0hv6k3zxvqqd9fisl79g0sdfsr"; sha256 = "0r8184xfsw7vvvmzhc18si582q41cnzka4ry151hwy56gmp2jyiw";
}; };
# kubernetes is here only to shut up a loud warning when generating the completions below. minikube checks very eagerly # kubernetes is here only to shut up a loud warning when generating the completions below. minikube checks very eagerly

View File

@ -64,6 +64,11 @@ in {
}) })
]; ];
postPatch = ''
rm builtin/providers/dns/data_dns_cname_record_set_test.go
rm builtin/providers/vsphere/resource_vsphere_file_test.go
'';
doCheck = true; doCheck = true;
}; };
} }

View File

@ -23,11 +23,11 @@
let let
# NOTE: When updating, please also update in current stable, # NOTE: When updating, please also update in current stable,
# as older versions stop working # as older versions stop working
version = "22.4.24"; version = "23.4.17";
sha256 = sha256 =
{ {
"x86_64-linux" = "1353mwk8hjqfc9a87zrp12klsc4anrxr7ccai4cffnq0yw2pnbfp"; "x86_64-linux" = "047i6afghb2nphwwc8sd6dxcbfi9cdyb1w4ssvwfkmbf3mznpfrh";
"i686-linux" = "07gpdxq61qkj3c4aywh61zwj34w7j24gcv5y2xf2qgcwn8bykks2"; "i686-linux" = "186z540iv4gq2gmis3mjly070y09lsfwvk9ygmjrh6y7pd9dqa5n";
}."${stdenv.system}" or (throw "system ${stdenv.system} not supported"); }."${stdenv.system}" or (throw "system ${stdenv.system} not supported");
arch = arch =

View File

@ -10,13 +10,13 @@ let
}; };
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
name = "purple-facebook-0.9.0"; name = "purple-facebook-0.9.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "dequis"; owner = "dequis";
repo = "purple-facebook"; repo = "purple-facebook";
rev = "v0.9.0-c9b74a765767"; rev = "v0.9.3-c9b74a765767";
sha256 = "1f7jhmaj15p3c9s4xmfygrpav9c8wq0vilbi5cj4jysb7xgndlqv"; sha256 = "10ncvg0arcxnd3cpb0nxry1plbws0mw9vhzjrhb40sv2i563dywb";
}; };
postPatch = '' postPatch = ''

View File

@ -3,25 +3,23 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "astroid-${version}"; name = "astroid-${version}";
version = "0.7"; version = "0.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "astroidmail"; owner = "astroidmail";
repo = "astroid"; repo = "astroid";
rev = "v${version}"; rev = "v${version}";
sha256 = "0r3hqwwr68bjhqaa1r3l9brbmvdp11pf8vhsjlvm5zv520z5y1rf"; sha256 = "1gjrdls1mz8y8bca7s8l965l0m7s2sb6g7a90gy848admjsyav7h";
}; };
patches = [ ./propagate-environment.patch ];
nativeBuildInputs = [ scons pkgconfig wrapGAppsHook ]; nativeBuildInputs = [ scons pkgconfig wrapGAppsHook ];
buildInputs = [ gnome3.gtkmm gmime webkitgtk24x libsass gnome3.libpeas buildInputs = [ gnome3.gtkmm gmime webkitgtk24x libsass gnome3.libpeas
notmuch boost gnome3.gsettings_desktop_schemas notmuch boost gnome3.gsettings_desktop_schemas
gnome3.adwaita-icon-theme ]; gnome3.adwaita-icon-theme ];
buildPhase = "scons --prefix=$out build"; buildPhase = "scons --propagate-environment --prefix=$out build";
installPhase = "scons --prefix=$out install"; installPhase = "scons --propagate-environment --prefix=$out install";
meta = { meta = {
homepage = "https://astroidmail.github.io/"; homepage = "https://astroidmail.github.io/";

View File

@ -1,13 +0,0 @@
diff --git a/SConstruct b/SConstruct
index a80bca3..ed2cd6d 100644
--- a/SConstruct
+++ b/SConstruct
@@ -5,7 +5,7 @@ from subprocess import *
def getGitDesc():
return Popen('git describe --abbrev=8 --tags --always', stdout=PIPE, shell=True).stdout.read ().strip ()
-env = Environment ()
+env = Environment(ENV = os.environ)
AddOption ("--release", action="store", dest="release", default="git", help="Make a release (default: git describe output)")
AddOption ("--enable-debug", action="store", dest="debug", default=None, help="Enable the -g flag for debugging (default: true when release is git)")

View File

@ -45,7 +45,6 @@ stdenv.mkDerivation rec {
(enableFeature withSidebar "sidebar") (enableFeature withSidebar "sidebar")
"--enable-smtp" "--enable-smtp"
"--enable-pop" "--enable-pop"
"--enable-imap"
"--with-mailpath=" "--with-mailpath="
# Look in $PATH at runtime, instead of hardcoding /usr/bin/sendmail # Look in $PATH at runtime, instead of hardcoding /usr/bin/sendmail

View File

@ -1,14 +1,14 @@
{ stdenv, lib, fetchFromGitHub, go, pkgs, removeReferencesTo }: { stdenv, lib, fetchFromGitHub, go, pkgs, removeReferencesTo }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "0.14.25"; version = "0.14.26";
name = "syncthing-${version}"; name = "syncthing-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "syncthing"; owner = "syncthing";
repo = "syncthing"; repo = "syncthing";
rev = "v${version}"; rev = "v${version}";
sha256 = "1if92y32h1wp5sz2lnlw5fqibzbik7bklq850j9wcxfvr6ahck0w"; sha256 = "1ny41fj8gg555awqcsyvsjs1zghjlwciwhyxjh5ly16hzaixn499";
}; };
buildInputs = [ go removeReferencesTo ]; buildInputs = [ go removeReferencesTo ];

View File

@ -9,11 +9,11 @@ with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "gitkraken-${version}"; name = "gitkraken-${version}";
version = "2.3.1"; version = "2.3.3";
src = fetchurl { src = fetchurl {
url = "https://release.gitkraken.com/linux/v${version}.deb"; url = "https://release.gitkraken.com/linux/v${version}.deb";
sha256 = "ddb9eec34232e830646633c43bc9adc61afa0eee79500af29918b62780093b2a"; sha256 = "a6e235ab1a4c1da755af8218ad819fcac6bc89b1a324aa2c0e430f3805cb1a16";
}; };
libPath = makeLibraryPath [ libPath = makeLibraryPath [

View File

@ -58,6 +58,8 @@ stdenv.mkDerivation rec {
done done
''; '';
separateDebugInfo = true;
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A tiling window manager"; description = "A tiling window manager";
homepage = "http://i3wm.org"; homepage = "http://i3wm.org";

View File

@ -36,7 +36,10 @@ stdenv.mkDerivation rec {
xcbutilwm xcbutilwm
]; ];
sourceRoot = "spectrwm-SPECTRWM_2_7_2/linux"; sourceRoot = let
subdir = if stdenv.isDarwin then "osx" else "linux";
in "spectrwm-SPECTRWM_2_7_2/${subdir}";
makeFlags="PREFIX=$(out)"; makeFlags="PREFIX=$(out)";
installPhase = "PREFIX=$out make install"; installPhase = "PREFIX=$out make install";

View File

@ -1,6 +1,6 @@
{ stdenv, fetchFromGitHub }: { stdenv, fetchFromGitHub }:
let version = "0.3.2"; in let version = "0.3.3"; in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "fontconfig-penultimate-${version}"; name = "fontconfig-penultimate-${version}";
@ -8,7 +8,7 @@ stdenv.mkDerivation {
owner = "ttuegel"; owner = "ttuegel";
repo = "fontconfig-penultimate"; repo = "fontconfig-penultimate";
rev = version; rev = version;
sha256 = "01cgqdmgpqahkg71lnvr3yzsmka9q1kgkbiz6w5ds1fhrpcswj7p"; sha256 = "0392lw31jps652dcjazln77ihb6bl7gk201gb7wb9i223avp86w9";
}; };
installPhase = '' installPhase = ''

View File

@ -1,7 +1,7 @@
{ fetchurl, stdenv, pkgconfig, gnome3, intltool, glib, libnotify, lcms2, libXtst { fetchurl, stdenv, pkgconfig, gnome3, intltool, glib, libnotify, lcms2, libXtst
, libxkbfile, libpulseaudio, libcanberra_gtk3, upower, colord, libgweather, polkit , libxkbfile, libpulseaudio, libcanberra_gtk3, upower, colord, libgweather, polkit
, geoclue2, librsvg, xf86_input_wacom, udev, libgudev, libwacom, libxslt, libtool, networkmanager , geoclue2, librsvg, xf86_input_wacom, udev, libgudev, libwacom, libxslt, libtool, networkmanager
, docbook_xsl, docbook_xsl_ns, makeWrapper, ibus, xkeyboard_config }: , docbook_xsl, docbook_xsl_ns, wrapGAppsHook, ibus, xkeyboard_config }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
inherit (import ./src.nix fetchurl) name src; inherit (import ./src.nix fetchurl) name src;
@ -14,15 +14,7 @@ stdenv.mkDerivation rec {
libnotify gnome_desktop lcms2 libXtst libxkbfile libpulseaudio libnotify gnome_desktop lcms2 libXtst libxkbfile libpulseaudio
libcanberra_gtk3 upower colord libgweather xkeyboard_config libcanberra_gtk3 upower colord libgweather xkeyboard_config
polkit geocode_glib geoclue2 librsvg xf86_input_wacom udev libgudev libwacom libxslt polkit geocode_glib geoclue2 librsvg xf86_input_wacom udev libgudev libwacom libxslt
libtool docbook_xsl docbook_xsl_ns makeWrapper gnome_themes_standard ]; libtool docbook_xsl docbook_xsl_ns wrapGAppsHook gnome_themes_standard ];
# FIXME: glib binaries shouldn't be in .dev!
preFixup = ''
wrapProgram "$out/libexec/gnome-settings-daemon-localeexec" \
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
--prefix PATH : "${glib.dev}/bin" \
--prefix XDG_DATA_DIRS : "$out/share:$GSETTINGS_SCHEMAS_PATH"
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
platforms = platforms.linux; platforms = platforms.linux;

View File

@ -0,0 +1,98 @@
{stdenv, fetchurl
, arm-frc-linux-gnueabi-binutils, arm-frc-linux-gnueabi-eglibc, arm-frc-linux-gnueabi-linux-api-headers
, elfutils
, libmpc, gmp, mpfr, zlib, isl_0_15, cloog}:
stdenv.mkDerivation rec {
_target = "arm-frc-linux-gnueabi";
version = "4.9.4";
name = "${_target}-gcc-${version}";
src = fetchurl {
url = "ftp://gcc.gnu.org/pub/gcc/releases/gcc-${version}/gcc-${version}.tar.bz2";
sha256 = "6c11d292cd01b294f9f84c9a59c230d80e9e4a47e5c6355f046bb36d4f358092";
};
patches = [
./minorSOname.patch
./no-nested-deprecated-warnings.patch
];
hardeningDisable = [ "format" ];
buildInputs = [
arm-frc-linux-gnueabi-binutils
arm-frc-linux-gnueabi-eglibc
arm-frc-linux-gnueabi-linux-api-headers
elfutils
libmpc
gmp
mpfr
zlib
isl_0_15
cloog
];
configurePhase = ''
mkdir gcc-build
cd gcc-build
../configure \
--prefix=$out \
--host=$CHOST \
--build=$CHOST \
--program-prefix=${_target}- \
--target=${_target} \
--enable-shared \
--disable-nls \
--enable-threads=posix \
--enable-languages=c,c++ \
--disable-multilib \
--disable-multiarch \
--with-sysroot=${arm-frc-linux-gnueabi-eglibc}/${_target} \
--with-build-sysroot=${arm-frc-linux-gnueabi-eglibc}/${_target} \
--with-as=${arm-frc-linux-gnueabi-binutils}/${_target}/bin/as \
--with-ld=${arm-frc-linux-gnueabi-binutils}/${_target}/bin/ld \
--with-cpu=cortex-a9 \
--with-float=softfp \
--with-fpu=vfp \
--with-specs='%{save-temps:-fverbose-asm} %{funwind-tables|fno-unwind-tables|mabi=*|ffreestanding|nostdlib:;:-funwind-tables}' \
--enable-lto \
--with-pkgversion='GCC-for-FRC' \
--with-cloog \
--enable-poison-system-directories \
--enable-plugin \
--with-system-zlib \
--disable-libmudflap \
--disable-libsanitizer
'';
makeFlags = [
"all-gcc"
"all-target-libgcc"
"all-target-libstdc++-v3"
];
installPhase = ''
make install-gcc install-target-libgcc install-target-libstdc++-v3
'';
postInstall = ''
rm -rf $out/share/{man/man7,info}/ "$out/share/gcc-${version}/python"
'';
meta = with stdenv.lib; {
description = "FRC cross compiler";
longDescription = ''
arm-frc-linux-gnueabi-gcc is a cross compiler for building
code for FIRST Robotics Competition. Used as a cross compiler
for the NI RoboRio.
'';
license = licenses.gpl2;
maintainers = [ maintainers.colescott ];
platforms = platforms.linux;
priority = 4;
};
}

View File

@ -0,0 +1,49 @@
Description: Make the default SONAME include minor numbers (c++)
This patch adds .0.20 to the end of the SONAME for libstdc++ to support
independent side-by-side usage of .17 and .20.
.
gcc-armel (4.9.1-0frc2) trusty; urgency=low
.
* Fixing dependency ambiguity yet again...
Author: Patrick Plenefisch <phplenefisch@wpi.edu>
---
--- gcc-armel-4.9.1.orig/libstdc++-v3/configure
+++ gcc-armel-4.9.1/libstdc++-v3/configure
@@ -10698,7 +10698,7 @@ gnu*)
need_lib_prefix=no
need_version=no
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
+ soname_spec='${libname}${release}${shared_ext}$versuffix'
shlibpath_var=LD_LIBRARY_PATH
hardcode_into_libs=yes
;;
@@ -10824,7 +10824,7 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
need_lib_prefix=no
need_version=no
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
+ soname_spec='${libname}${release}${shared_ext}$versuffix'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
shlibpath_var=LD_LIBRARY_PATH
shlibpath_overrides_runpath=no
@@ -14382,7 +14382,7 @@ gnu*)
need_lib_prefix=no
need_version=no
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
+ soname_spec='${libname}${release}${shared_ext}$versuffix'
shlibpath_var=LD_LIBRARY_PATH
hardcode_into_libs=yes
;;
@@ -14508,7 +14508,7 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
need_lib_prefix=no
need_version=no
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
+ soname_spec='${libname}${release}${shared_ext}$versuffix'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
shlibpath_var=LD_LIBRARY_PATH
shlibpath_overrides_runpath=no

View File

@ -0,0 +1,22 @@
Description: Get rid of recursive deprecated warnings.
As is, gcc gives warnings when a function with the
deprecated attribute calls another function with
the deprecated attribute.
See http://stackoverflow.com/questions/13459602/how-can-i-get-rid-of-deprecated-warnings-in-deprecated-functions-in-gcc
Author: James Kuszmaul <jbkuszmaul@wpi.edu>
--
--- gcc-armel-4.9.1.orig/gcc/tree.c
+++ gcc-armel-4.9.1/gcc/tree.c
@@ -12063,6 +12063,9 @@ warn_deprecated_use (tree node, tree attr)
if (node == 0 || !warn_deprecated_decl)
return;
+ if (current_function_decl && TREE_DEPRECATED(current_function_decl))
+ return;
+
if (!attr)
{
if (DECL_P (node))

View File

@ -2,12 +2,12 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "dtc-${version}"; name = "dtc-${version}";
version = "1.4.2"; version = "1.4.4";
src = fetchgit { src = fetchgit {
url = "git://git.kernel.org/pub/scm/utils/dtc/dtc.git"; url = "git://git.kernel.org/pub/scm/utils/dtc/dtc.git";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
sha256 = "0pwhbw930pnksrmkimqqwp4nqj9mmh06bs5b8p5l2cnhnh8lxn3j"; sha256 = "1pxp7700b3za7q4fnsnxx6i8v66rnr8p6lyi7jf684y1hq5ynlnf";
}; };
nativeBuildInputs = [ flex bison ]; nativeBuildInputs = [ flex bison ];

View File

@ -19,7 +19,6 @@
, executable-path , executable-path
, transformers-compat , transformers-compat
, haddock-api , haddock-api
, ghcjs-prim
, regex-posix , regex-posix
, callPackage , callPackage
@ -122,7 +121,7 @@ in mkDerivation (rec {
alex happy git gnumake autoconf automake libtool patch gmp alex happy git gnumake autoconf automake libtool patch gmp
base16-bytestring cryptohash executable-path haddock-api base16-bytestring cryptohash executable-path haddock-api
transformers-compat QuickCheck haddock hspec xhtml transformers-compat QuickCheck haddock hspec xhtml
ghcjs-prim regex-posix libiconv regex-posix libiconv
]; ];
buildTools = [ nodejs git ]; buildTools = [ nodejs git ];
testDepends = [ testDepends = [

View File

@ -3,8 +3,6 @@
bootPkgs.callPackage ./base.nix { bootPkgs.callPackage ./base.nix {
version = "0.2.020170323"; version = "0.2.020170323";
# deprecated on HEAD, directly included in the distribution
ghcjs-prim = null;
inherit bootPkgs; inherit bootPkgs;
ghcjsSrc = fetchFromGitHub { ghcjsSrc = fetchFromGitHub {

View File

@ -382,7 +382,6 @@
version = "1.24.0.0"; version = "1.24.0.0";
src = "${ghcjsBoot}/boot/cabal/Cabal"; src = "${ghcjsBoot}/boot/cabal/Cabal";
doCheck = false; doCheck = false;
hyperlinkSource = false;
libraryHaskellDepends = [ libraryHaskellDepends = [
array base binary bytestring containers deepseq directory filepath array base binary bytestring containers deepseq directory filepath
pretty process time unix pretty process time unix

View File

@ -327,7 +327,6 @@
version = "1.22.8.0"; version = "1.22.8.0";
src = "${ghcjsBoot}/boot/cabal/Cabal"; src = "${ghcjsBoot}/boot/cabal/Cabal";
doCheck = false; doCheck = false;
hyperlinkSource = false;
libraryHaskellDepends = [ libraryHaskellDepends = [
array base binary bytestring containers deepseq directory filepath array base binary bytestring containers deepseq directory filepath
pretty process time unix pretty process time unix

View File

@ -2,19 +2,17 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "glslang-git-${version}"; name = "glslang-git-${version}";
version = "2016-12-21"; version = "2017-03-29";
# `vulkan-loader` requires a specific version of `glslang` as specified in # `vulkan-loader` requires a specific version of `glslang` as specified in
# `<vulkan-loader-repo>/glslang_revision`. # `<vulkan-loader-repo>/external_revisions/glslang_revision`.
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "KhronosGroup"; owner = "KhronosGroup";
repo = "glslang"; repo = "glslang";
rev = "807a0d9e2f4e176f75d62ac3c179c81800ec2608"; rev = "714e58b2fc5a45714596e6aa2f6ac8f64260365c";
sha256 = "02jckgihqhagm73glipb4c6ri5fr3pnbxb5vrznn2vppyfdfghbj"; sha256 = "0ihnd0c4mr6ppbv9g7z1abrn8vx66simfzx5q48nqcpnywn35jxv";
}; };
patches = [ ./install-headers.patch ];
buildInputs = [ cmake bison ]; buildInputs = [ cmake bison ];
enableParallelBuilding = true; enableParallelBuilding = true;
@ -23,5 +21,6 @@ stdenv.mkDerivation rec {
description = "Khronos reference front-end for GLSL and ESSL"; description = "Khronos reference front-end for GLSL and ESSL";
license = licenses.asl20; license = licenses.asl20;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = [ maintainers.ralith ];
}; };
} }

View File

@ -1,35 +0,0 @@
diff --git a/SPIRV/CMakeLists.txt b/SPIRV/CMakeLists.txt
index c538e84..6ece1ab 100755
--- a/SPIRV/CMakeLists.txt
+++ b/SPIRV/CMakeLists.txt
@@ -34,8 +34,9 @@ if(ENABLE_AMD_EXTENSIONS)
endif(ENABLE_AMD_EXTENSIONS)
if(ENABLE_NV_EXTENSIONS)
- set(HEADERS
- GLSL.ext.NV.h)
+ list(APPEND
+ HEADERS
+ GLSL.ext.NV.h)
endif(ENABLE_NV_EXTENSIONS)
add_library(SPIRV STATIC ${SOURCES} ${HEADERS})
@@ -51,3 +52,5 @@ endif(WIN32)
install(TARGETS SPIRV SPVRemapper
ARCHIVE DESTINATION lib)
+
+install(FILES ${HEADERS} ${SPVREMAP_HEADERS} DESTINATION include/SPIRV/)
diff --git a/glslang/CMakeLists.txt b/glslang/CMakeLists.txt
index 95d4bdd..e7fda90 100644
--- a/glslang/CMakeLists.txt
+++ b/glslang/CMakeLists.txt
@@ -93,3 +93,8 @@ endif(WIN32)
install(TARGETS glslang
ARCHIVE DESTINATION lib)
+
+foreach(file ${HEADERS})
+ get_filename_component(dir ${file} DIRECTORY)
+ install(FILES ${file} DESTINATION include/glslang/${dir})
+endforeach()

View File

@ -3,13 +3,13 @@
stdenv.mkDerivation ( rec { stdenv.mkDerivation ( rec {
name = "ponyc-${version}"; name = "ponyc-${version}";
version = "0.12.2"; version = "0.13.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ponylang"; owner = "ponylang";
repo = "ponyc"; repo = "ponyc";
rev = version; rev = version;
sha256 = "1gp92fwfq9ic43c525p0idap99jq5fkjbijf0s8bxif3kng7rxbp"; sha256 = "1agb7aiii7pl8zsh3h0lfzghmm1ajj15gx1j48xjyvplxixdgn9j";
}; };
buildInputs = [ llvm makeWrapper which ]; buildInputs = [ llvm makeWrapper which ];

View File

@ -1,11 +1,11 @@
{ stdenv, fetchurl, makeWrapper, jre, gnugrep, coreutils }: { stdenv, fetchurl, makeWrapper, jre, gnugrep, coreutils }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "scala-2.11.9"; name = "scala-2.11.10";
src = fetchurl { src = fetchurl {
url = "http://www.scala-lang.org/files/archive/${name}.tgz"; url = "http://www.scala-lang.org/files/archive/${name}.tgz";
sha256 = "02rpx0pzr98vla2mgkgf6s8blccnrji5bxw05z36m1iwqmpryx5r"; sha256 = "10rs8ak3qyxggw24ga3gjcpl3x8r1b3ykrdfrym1n154b1rrs904";
}; };
propagatedBuildInputs = [ jre ] ; propagatedBuildInputs = [ jre ] ;

View File

@ -171,7 +171,13 @@ self: super: {
else dontCheck super.fsnotify; else dontCheck super.fsnotify;
double-conversion = if !pkgs.stdenv.isDarwin double-conversion = if !pkgs.stdenv.isDarwin
then addExtraLibrary super.double-conversion pkgs.stdenv.cc.cc.lib then addExtraLibrary
# https://github.com/bos/double-conversion/pull/17
(appendPatch super.double-conversion (pkgs.fetchpatch {
url = "https://github.com/basvandijk/double-conversion/commit/0927e347d53dbd96d1949930e728cc2471dd4b14.patch";
sha256 = "042yqbq5p6nc9nymmbz9hgp51dlc5asaj9bf91kw5fph6dw2hwg9";
}))
pkgs.stdenv.cc.cc.lib
else addExtraLibrary (overrideCabal super.double-conversion (drv: else addExtraLibrary (overrideCabal super.double-conversion (drv:
{ {
postPatch = '' postPatch = ''
@ -869,4 +875,34 @@ self: super: {
# https://github.com/danidiaz/tailfile-hinotify/issues/2 # https://github.com/danidiaz/tailfile-hinotify/issues/2
tailfile-hinotify = dontCheck super.tailfile-hinotify; tailfile-hinotify = dontCheck super.tailfile-hinotify;
} } // (let scope' = self: super: {
haskell-tools-ast = super.haskell-tools-ast_0_6_0_0;
haskell-tools-backend-ghc = super.haskell-tools-backend-ghc_0_6_0_0;
haskell-tools-cli = super.haskell-tools-cli_0_6_0_0;
haskell-tools-daemon = super.haskell-tools-daemon_0_6_0_0;
haskell-tools-debug = super.haskell-tools-debug_0_6_0_0;
haskell-tools-demo = super.haskell-tools-demo_0_6_0_0;
haskell-tools-prettyprint = super.haskell-tools-prettyprint_0_6_0_0;
haskell-tools-refactor = super.haskell-tools-refactor_0_6_0_0;
haskell-tools-rewrite = super.haskell-tools-rewrite_0_6_0_0;
};
in {
haskell-tools-ast_0_6_0_0 =
super.haskell-tools-ast_0_6_0_0.overrideScope scope';
haskell-tools-backend-ghc_0_6_0_0 =
super.haskell-tools-backend-ghc_0_6_0_0.overrideScope scope';
haskell-tools-cli_0_6_0_0 =
dontCheck (super.haskell-tools-cli_0_6_0_0.overrideScope scope');
haskell-tools-daemon_0_6_0_0 =
dontCheck (super.haskell-tools-daemon_0_6_0_0.overrideScope scope');
haskell-tools-debug_0_6_0_0 =
super.haskell-tools-debug_0_6_0_0.overrideScope scope';
haskell-tools-demo_0_6_0_0 =
super.haskell-tools-demo_0_6_0_0.overrideScope scope';
haskell-tools-prettyprint_0_6_0_0 =
super.haskell-tools-prettyprint_0_6_0_0.overrideScope scope';
haskell-tools-refactor_0_6_0_0 =
super.haskell-tools-refactor_0_6_0_0.overrideScope scope';
haskell-tools-rewrite_0_6_0_0 =
super.haskell-tools-rewrite_0_6_0_0.overrideScope scope';
})

View File

@ -95,18 +95,6 @@ self: super: {
# https://github.com/kazu-yamamoto/unix-time/issues/30 # https://github.com/kazu-yamamoto/unix-time/issues/30
unix-time = dontCheck super.unix-time; unix-time = dontCheck super.unix-time;
ghcjs-prim = self.callPackage ({ mkDerivation, fetchgit, primitive }: mkDerivation {
pname = "ghcjs-prim";
version = "0.1.0.0";
src = fetchgit {
url = git://github.com/ghcjs/ghcjs-prim.git;
rev = "dfeaab2aafdfefe46bf12960d069f28d2e5f1454"; # ghc-7.10 branch
sha256 = "19kyb26nv1hdpp0kc2gaxkq5drw5ib4za0641py5i4bbf1g58yvy";
};
buildDepends = [ primitive ];
license = pkgs.stdenv.lib.licenses.bsd3;
}) {};
# diagrams/monoid-extras#19 # diagrams/monoid-extras#19
monoid-extras = overrideCabal super.monoid-extras (drv: { monoid-extras = overrideCabal super.monoid-extras (drv: {
prePatch = "sed -i 's|4\.8|4.9|' monoid-extras.cabal"; prePatch = "sed -i 's|4\.8|4.9|' monoid-extras.cabal";

View File

@ -41,19 +41,6 @@ self: super: {
# jailbreak-cabal can use the native Cabal library. # jailbreak-cabal can use the native Cabal library.
jailbreak-cabal = super.jailbreak-cabal.override { Cabal = null; }; jailbreak-cabal = super.jailbreak-cabal.override { Cabal = null; };
ghcjs-prim = self.callPackage ({ mkDerivation, fetchgit, primitive }: mkDerivation {
pname = "ghcjs-prim";
version = "0.1.0.0";
src = fetchgit {
url = git://github.com/ghcjs/ghcjs-prim.git;
rev = "dfeaab2aafdfefe46bf12960d069f28d2e5f1454"; # ghc-7.10 branch
sha256 = "19kyb26nv1hdpp0kc2gaxkq5drw5ib4za0641py5i4bbf1g58yvy";
};
buildDepends = [ primitive ];
license = pkgs.stdenv.lib.licenses.bsd3;
broken = true; # needs template-haskell >=2.9 && <2.11
}) {};
# https://github.com/bmillwood/applicative-quoters/issues/6 # https://github.com/bmillwood/applicative-quoters/issues/6
applicative-quoters = appendPatch super.applicative-quoters (pkgs.fetchpatch { applicative-quoters = appendPatch super.applicative-quoters (pkgs.fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/bmillwood/applicative-quoters/pull/7.patch"; url = "https://patch-diff.githubusercontent.com/raw/bmillwood/applicative-quoters/pull/7.patch";

View File

@ -58,9 +58,13 @@ self: super:
# Almost all packages require Cabal to build their Setup.hs, # Almost all packages require Cabal to build their Setup.hs,
# but usually they don't declare it explicitly as they don't need to for normal GHC. # but usually they don't declare it explicitly as they don't need to for normal GHC.
# To account for that we add Cabal by default. # To account for that we add Cabal by default.
mkDerivation = args: mkDerivation = args: super.mkDerivation (args // {
if args.pname == "Cabal" then super.mkDerivation args else super.mkDerivation (args // setupHaskellDepends = (args.setupHaskellDepends or []) ++
{ setupHaskellDepends = (args.setupHaskellDepends or []) ++ [ self.Cabal ]; }); (if args.pname == "Cabal" then [ ]
# Break the dependency cycle between Cabal and hscolour
else if args.pname == "hscolour" then [ (dontHyperlinkSource self.Cabal) ]
else [ self.Cabal ]);
});
## OTHER PACKAGES ## OTHER PACKAGES

View File

@ -79,6 +79,9 @@ rec {
fixupPhase = ":"; fixupPhase = ":";
}); });
linkWithGold = drv : appendConfigureFlag drv
"--ghc-option=-optl-fuse-ld=gold --ld-option=-fuse-ld=gold --with-ld=ld.gold";
# link executables statically against haskell libs to reduce closure size # link executables statically against haskell libs to reduce closure size
justStaticExecutables = drv: overrideCabal drv (drv: { justStaticExecutables = drv: overrideCabal drv (drv: {
enableSharedExecutables = false; enableSharedExecutables = false;
@ -101,4 +104,7 @@ rec {
triggerRebuild = drv: i: overrideCabal drv (drv: { postUnpack = ": trigger rebuild ${toString i}"; }); triggerRebuild = drv: i: overrideCabal drv (drv: { postUnpack = ": trigger rebuild ${toString i}"; });
overrideSrc = drv: { src, version ? drv.version }:
overrideCabal drv (_: { inherit src version; editedCabalFile = null; });
} }

View File

@ -2,15 +2,14 @@
pythonPackages.buildPythonApplication rec { pythonPackages.buildPythonApplication rec {
name = "hy-${version}"; name = "hy-${version}";
version = "0.11.1"; version = "0.12.1";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/h/hy/${name}.tar.gz"; url = "mirror://pypi/h/hy/${name}.tar.gz";
sha256 = "1msqv747iz12r73mz4qvsmlwkddwjvrahlrk7ysrcz07h7dsscxs"; sha256 = "1fjip998k336r26i1gpri18syvfjg7z46wng1n58dmc238wm53sx";
}; };
buildInputs = [ pythonPackages.appdirs ]; propagatedBuildInputs = with pythonPackages; [ appdirs clint astor rply ];
propagatedBuildInputs = [ pythonPackages.clint pythonPackages.astor pythonPackages.rply ];
meta = { meta = {
description = "A LISP dialect embedded in Python"; description = "A LISP dialect embedded in Python";

View File

@ -41,9 +41,15 @@ stdenv.mkDerivation rec {
++ (stdenv.lib.optionals (!stdenv.isDarwin) [ mesa libX11 ]) ++ (stdenv.lib.optionals (!stdenv.isDarwin) [ mesa libX11 ])
; ;
# makeinfo is required by Octave at runtime to display help
prePatch = ''
substituteInPlace libinterp/corefcn/help.cc \
--replace 'Vmakeinfo_program = "makeinfo"' \
'Vmakeinfo_program = "${texinfo}/bin/makeinfo"'
''
# REMOVE ON VERSION BUMP # REMOVE ON VERSION BUMP
# Needed for Octave-4.2.1 on darwin. See https://savannah.gnu.org/bugs/?50234 # Needed for Octave-4.2.1 on darwin. See https://savannah.gnu.org/bugs/?50234
prePatch = stdenv.lib.optionalString stdenv.isDarwin '' + stdenv.lib.optionalString stdenv.isDarwin ''
sed 's/inline file_stat::~file_stat () { }/file_stat::~file_stat () { }/' -i ./liboctave/system/file-stat.cc sed 's/inline file_stat::~file_stat () { }/file_stat::~file_stat () { }/' -i ./liboctave/system/file-stat.cc
''; '';

View File

@ -0,0 +1,75 @@
args@{ stdenv, openblas, ghostscript ? null, texinfo
, # These are arguments that shouldn't be passed to the
# octave package.
texlive, tex ? texlive.combined.scheme-small
, epstool, pstoedit, transfig
, lib, fetchhg, callPackage
, autoconf, automake, libtool
, bison, librsvg, icoutils, gperf
, # These are options that can be passed in addition to the ones
# octave usually takes.
# - rev is the HG revision. Use "tip" for the bleeding edge.
# - docs can be set to false to skip building documentation.
rev ? "23269", docs ? true
, # All remaining arguments will be passed to the octave package.
...
}:
with stdenv.lib;
let
octaveArgs = removeAttrs args
[ "texlive" "tex"
"epstool" "pstoedit" "transfig"
"lib" "fetchhg" "callPackage"
"autoconf" "automake" "libtool"
"bison" "librsvg" "icoutils" "gperf"
"rev" "docs"
];
octave = callPackage ./default.nix octaveArgs;
# List of hashes for known HG revisions.
sha256s = {
"23269" = "87f560e873ad1454fdbcdd8aca65f9f0b1e605bdc00aebbdc4f9d862ca72ff1d";
};
in lib.overrideDerivation octave (attrs: rec {
version = "4.3.0pre${rev}";
name = "octave-${version}";
src = fetchhg {
url = http://www.octave.org/hg/octave;
inherit rev;
sha256 =
if builtins.hasAttr rev sha256s
then builtins.getAttr rev sha256s
else null;
fetchSubrepos = true;
};
# Octave's test for including this flag seems to be broken in 4.3.
F77_INTEGER_8_FLAG = optional openblas.blas64 "-fdefault-integer-8";
# This enables texinfo to find the files it needs.
TEXINPUTS = ".:build-aux:${texinfo}/texmf-dist/tex/generic/epsf:";
disableDocs = !docs || ghostscript == null;
nativeBuildInputs = attrs.nativeBuildInputs
++ [ autoconf automake libtool bison librsvg icoutils gperf ]
++ optionals (!disableDocs) [ tex epstool pstoedit transfig ];
# Run bootstrap before any other patches, as other patches may refer
# to files that are generated by the bootstrap.
prePatch = ''
patchShebangs bootstrap
./bootstrap
'' + attrs.prePatch;
configureFlags = attrs.configureFlags ++
optional disableDocs "--disable-docs";
})

View File

@ -0,0 +1,65 @@
{stdenv, fetchurl, arm-frc-linux-gnueabi-linux-api-headers}:
let
_target = "arm-frc-linux-gnueabi";
_basever = "2.21-r0.83";
srcs = [
(fetchurl {
url = "http://download.ni.com/ni-linux-rt/feeds/2016/arm/ipk/cortexa9-vfpv3/libc6_${_basever}_cortexa9-vfpv3.ipk";
sha256 = "117058215440e258027bb9ff18db63c078d55288787dbedfcd5730c06c7a1ae9";
})
(fetchurl {
url = "http://download.ni.com/ni-linux-rt/feeds/2016/arm/ipk/cortexa9-vfpv3/libc6-dev_${_basever}_cortexa9-vfpv3.ipk";
sha256 = "e28b05d498c1160949f51539270035e12c5bb9d75d68df1f5f111a8fc087f3a6";
})
(fetchurl {
url = "http://download.ni.com/ni-linux-rt/feeds/2016/arm/ipk/cortexa9-vfpv3/libcidn1_${_basever}_cortexa9-vfpv3.ipk";
sha256 = "0f7372590abf69da54a9b7db8f944cf6c48d9ac8a091218ee60f84fdd9de2398";
})
(fetchurl {
url = "http://download.ni.com/ni-linux-rt/feeds/2016/arm/ipk/cortexa9-vfpv3/libc6-thread-db_${_basever}_cortexa9-vfpv3.ipk";
sha256 = "5a839498507a0b63165cb7a78234d7eb2ee2bb6a046bff586090f2e70e0e2bfb";
})
(fetchurl {
url = "http://download.ni.com/ni-linux-rt/feeds/2016/arm/ipk/cortexa9-vfpv3/libc6-extra-nss_${_basever}_cortexa9-vfpv3.ipk";
sha256 = "d765d43c8ec95a4c64fa38eddf8cee848fd090d9cc5b9fcda6d2c9b03d2635c5";
})
];
in
stdenv.mkDerivation rec {
version = "2.21";
name = "${_target}-eglibc-${version}";
sourceRoot = ".";
inherit srcs;
phases = [ "unpackPhase" "installPhase" ];
unpackCmd = ''
ar x $curSrc
tar xf data.tar.gz
'';
installPhase = ''
mkdir -p $out/${_target}
rm -rf lib/eglibc
find . \( -name .install -o -name ..install.cmd \) -delete
cp -r lib $out/${_target}
cp -r usr $out/${_target}
cp -r ${arm-frc-linux-gnueabi-linux-api-headers}/* $out
'';
meta = {
description = "FRC standard C lib";
longDescription = ''
eglibc library for the NI RoboRio to be used in compiling frc user
programs.
'';
license = stdenv.lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.colescott ];
platforms = stdenv.lib.platforms.linux;
priority = 2;
};
}

View File

@ -0,0 +1,43 @@
{stdenv, fetchurl}:
let
_target = "arm-frc-linux-gnueabi";
_basever = "3.19-r0.36";
src = fetchurl {
url = "http://download.ni.com/ni-linux-rt/feeds/2016/arm/ipk/cortexa9-vfpv3/linux-libc-headers-dev_${_basever}_cortexa9-vfpv3.ipk";
sha256 = "10066ddb9a19bf764a9a67919a7976478041e98c44c19308f076c78ecb07408c";
};
in
stdenv.mkDerivation rec {
version = "3.19";
name = "${_target}-linux-api-headers-${version}";
sourceRoot = ".";
inherit src;
phases = [ "unpackPhase" "installPhase" ];
unpackCmd = ''
ar x $curSrc
tar xf data.tar.gz
'';
installPhase = ''
mkdir -p $out/${_target}
find . \( -name .install -o -name ..install.cmd \) -delete
cp -r usr/ $out/${_target}
'';
meta = {
description = "FRC linux api headers";
longDescription = ''
All linux api headers required to compile the arm-frc-linux-gnuaebi-gcc
cross compiler and all user programs.
'';
license = stdenv.lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.colescott ];
platforms = stdenv.lib.platforms.linux;
priority = 1;
};
}

View File

@ -110,7 +110,7 @@
#, libquvi ? null # Quvi input support #, libquvi ? null # Quvi input support
, samba ? null # Samba protocol , samba ? null # Samba protocol
#, schroedinger ? null # Dirac de/encoder #, schroedinger ? null # Dirac de/encoder
, SDL ? null , SDL2 ? null
#, shine ? null # Fixed-point MP3 encoder #, shine ? null # Fixed-point MP3 encoder
, soxr ? null # Resampling via soxr , soxr ? null # Resampling via soxr
, speex ? null # Speex de/encoder , speex ? null # Speex de/encoder
@ -199,7 +199,7 @@ assert ffplayProgram -> avcodecLibrary
&& avformatLibrary && avformatLibrary
&& swscaleLibrary && swscaleLibrary
&& swresampleLibrary && swresampleLibrary
&& SDL != null; && SDL2 != null;
assert ffprobeProgram -> avcodecLibrary && avformatLibrary; assert ffprobeProgram -> avcodecLibrary && avformatLibrary;
assert ffserverProgram -> avformatLibrary; assert ffserverProgram -> avformatLibrary;
/* /*
@ -368,7 +368,7 @@ stdenv.mkDerivation rec {
#(enableFeature (schroedinger != null) "libschroedinger") #(enableFeature (schroedinger != null) "libschroedinger")
#(enableFeature (shine != null) "libshine") #(enableFeature (shine != null) "libshine")
(enableFeature (samba != null && gplLicensing && version3Licensing) "libsmbclient") (enableFeature (samba != null && gplLicensing && version3Licensing) "libsmbclient")
(enableFeature (SDL != null) "sdl") # Only configurable since 2.5, auto detected before then (enableFeature (SDL2 != null) "sdl2")
(enableFeature (soxr != null) "libsoxr") (enableFeature (soxr != null) "libsoxr")
(enableFeature (speex != null) "libspeex") (enableFeature (speex != null) "libspeex")
#(enableFeature (twolame != null) "libtwolame") #(enableFeature (twolame != null) "libtwolame")
@ -401,7 +401,7 @@ stdenv.mkDerivation rec {
libjack2 ladspaH lame libass libbluray libbs2b libcaca libdc1394 libmodplug libjack2 ladspaH lame libass libbluray libbs2b libcaca libdc1394 libmodplug
libogg libopus libssh libtheora libvdpau libvorbis libvpx libwebp libX11 libogg libopus libssh libtheora libvdpau libvorbis libvpx libwebp libX11
libxcb libXext libXfixes libXv lzma openal openjpeg_1 libpulseaudio rtmpdump libxcb libXext libXfixes libXv lzma openal openjpeg_1 libpulseaudio rtmpdump
samba SDL soxr speex vid-stab wavpack x264 x265 xavs xvidcore zeromq4 zlib samba SDL2 soxr speex vid-stab wavpack x264 x265 xavs xvidcore zeromq4 zlib
] ++ optional openglExtlib mesa ] ++ optional openglExtlib mesa
++ optionals x11grabExtlib [ libXext libXfixes ] ++ optionals x11grabExtlib [ libXext libXfixes ]
++ optionals nonfreeLicensing [ fdk_aac openssl ] ++ optionals nonfreeLicensing [ fdk_aac openssl ]

View File

@ -1,5 +1,6 @@
{ stdenv, fetchFromGitHub, cmake, mesa, libXrandr, libXi, libXxf86vm, libXfixes, xlibsWrapper { stdenv, fetchFromGitHub, cmake, mesa, libXrandr, libXi, libXxf86vm, libXfixes, xlibsWrapper
, libXinerama, libXcursor , libXinerama, libXcursor
, darwin
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -18,7 +19,7 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
cmake mesa libXrandr libXi libXxf86vm libXfixes xlibsWrapper cmake mesa libXrandr libXi libXxf86vm libXfixes xlibsWrapper
libXinerama libXcursor libXinerama libXcursor
]; ] ++ stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Cocoa Kernel ]);
cmakeFlags = "-DBUILD_SHARED_LIBS=ON"; cmakeFlags = "-DBUILD_SHARED_LIBS=ON";

View File

@ -1,4 +1,5 @@
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, udev, libusb }: { stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, udev, libusb
, darwin }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "hidapi-0.8.0-rc1"; name = "hidapi-0.8.0-rc1";
@ -10,7 +11,10 @@ stdenv.mkDerivation rec {
sha256 = "13d5jkmh9nh4c2kjch8k8amslnxapa9vkqzrk1z6rqmw8qgvzbkj"; sha256 = "13d5jkmh9nh4c2kjch8k8amslnxapa9vkqzrk1z6rqmw8qgvzbkj";
}; };
buildInputs = [ autoreconfHook pkgconfig udev libusb ]; buildInputs = [ autoreconfHook pkgconfig ]
++ stdenv.lib.optionals stdenv.isLinux [ udev libusb ];
propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ IOKit Cocoa ]);
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://github.com/signal11/hidapi; homepage = https://github.com/signal11/hidapi;

View File

@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
sed -i 's|/usr/|/|g' Makefile sed -i 's|/usr/|/|g' Makefile
''; '';
makeFlags = "shared"; makeFlags = [ "shared" ];
installPhase = '' installPhase = ''
make install DESTDIR=$out/ LIBDIR=lib make install DESTDIR=$out/ LIBDIR=lib
@ -28,6 +28,6 @@ stdenv.mkDerivation rec {
license = licenses.bsd2; license = licenses.bsd2;
homepage = https://github.com/wfeldt/libx86emu; homepage = https://github.com/wfeldt/libx86emu;
maintainers = with maintainers; [ bobvanderlinden ]; maintainers = with maintainers; [ bobvanderlinden ];
platforms = platforms.unix; platforms = platforms.linux;
}; };
} }

View File

@ -187,7 +187,7 @@ stdenv.mkDerivation {
# set the default search path for DRI drivers; used e.g. by X server # set the default search path for DRI drivers; used e.g. by X server
substituteInPlace "$dev/lib/pkgconfig/dri.pc" --replace '$(drivers)' "${driverLink}" substituteInPlace "$dev/lib/pkgconfig/dri.pc" --replace '$(drivers)' "${driverLink}"
'' + optionalString (builtins.elem "intel" vulkanDrivers) '' '' + optionalString (vulkanDrivers != []) ''
# move share/vulkan/icd.d/ # move share/vulkan/icd.d/
mv $out/share/ $drivers/ mv $out/share/ $drivers/
# Update search path used by Vulkan (it's pointing to $out but # Update search path used by Vulkan (it's pointing to $out but

View File

@ -25,6 +25,6 @@ stdenv.mkDerivation rec {
license = licenses.lgpl2; license = licenses.lgpl2;
homepage = https://01.org/linux-nfc; homepage = https://01.org/linux-nfc;
maintainers = with maintainers; [ tstrobel ]; maintainers = with maintainers; [ tstrobel ];
platforms = platforms.unix; platforms = platforms.linux;
}; };
} }

View File

@ -76,6 +76,7 @@ let
qtgraphicaleffects = callPackage ./qtgraphicaleffects.nix {}; qtgraphicaleffects = callPackage ./qtgraphicaleffects.nix {};
qtimageformats = callPackage ./qtimageformats.nix {}; qtimageformats = callPackage ./qtimageformats.nix {};
qtlocation = callPackage ./qtlocation.nix {}; qtlocation = callPackage ./qtlocation.nix {};
qtmacextras = callPackage ./qtmacextras.nix {};
qtmultimedia = callPackage ./qtmultimedia.nix { qtmultimedia = callPackage ./qtmultimedia.nix {
inherit gstreamer gst-plugins-base; inherit gstreamer gst-plugins-base;
}; };
@ -97,12 +98,13 @@ let
qtxmlpatterns = callPackage ./qtxmlpatterns.nix {}; qtxmlpatterns = callPackage ./qtxmlpatterns.nix {};
env = callPackage ../qt-env.nix {}; env = callPackage ../qt-env.nix {};
full = env "qt-${qtbase.version}" [ full = env "qt-${qtbase.version}" ([
qtconnectivity qtdeclarative qtdoc qtgraphicaleffects qtconnectivity qtdeclarative qtdoc qtgraphicaleffects
qtimageformats qtlocation qtmultimedia qtquickcontrols qtscript qtimageformats qtlocation qtmultimedia qtquickcontrols qtscript
qtsensors qtserialport qtsvg qttools qttranslations qtwayland qtsensors qtserialport qtsvg qttools qttranslations
qtwebsockets qtx11extras qtxmlpatterns qtwebsockets qtx11extras qtxmlpatterns
]; ] ++ optional (!stdenv.isDarwin) qtwayland
++ optional (stdenv.isDarwin) qtmacextras);
makeQtWrapper = makeQtWrapper =
makeSetupHook makeSetupHook

View File

@ -211,8 +211,10 @@ stdenv.mkDerivation {
libX11 libXcomposite libXext libXi libXrender libxcb libxkbcommon xcbutil libX11 libXcomposite libXext libXi libXrender libxcb libxkbcommon xcbutil
xcbutilimage xcbutilkeysyms xcbutilrenderutil xcbutilwm xcbutilimage xcbutilkeysyms xcbutilrenderutil xcbutilwm
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
ApplicationServices Foundation CoreServices AppKit Carbon OpenGL AGL Cocoa AGL AppKit ApplicationServices Carbon Cocoa
DiskArbitration darwin.cf-private libiconv CoreAudio CoreBluetooth CoreLocation CoreServices
DiskArbitration Foundation OpenGL
darwin.cf-private darwin.apple_sdk.sdk darwin.libobjc libiconv
]); ]);
buildInputs = [ ] buildInputs = [ ]

View File

@ -1,8 +1,18 @@
{ qtSubmodule, lib, copyPathsToStore, python2, qtbase, qtsvg, qtxmlpatterns }: { stdenv, qtSubmodule, makeQtWrapper, copyPathsToStore, python2, qtbase, qtsvg, qtxmlpatterns }:
with stdenv.lib;
qtSubmodule { qtSubmodule {
name = "qtdeclarative"; name = "qtdeclarative";
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series); patches = copyPathsToStore (readPathsFromFile ./. ./series);
qtInputs = [ qtbase qtsvg qtxmlpatterns ]; qtInputs = [ qtbase qtsvg qtxmlpatterns ];
nativeBuildInputs = [ python2 ]; nativeBuildInputs = [ python2 makeQtWrapper ];
postInstall = ''
wrapQtProgram $out/bin/qmleasing
wrapQtProgram $out/bin/qmlscene
wrapQtProgram $out/bin/qmltestrunner
'' + optionalString (stdenv.isDarwin) ''
wrapQtProgram $out/bin/qml.app/Contents/MacOS/qml
'';
} }

View File

@ -0,0 +1,10 @@
{ qtSubmodule, qtbase, lib }:
qtSubmodule {
name = "qtmacextras";
qtInputs = [ qtbase ];
meta = with lib; {
maintainers = with maintainers; [ periklis ];
platforms = platforms.darwin;
};
}

View File

@ -1,12 +1,15 @@
{ qtSubmodule, qtbase, qtdeclarative, pkgconfig { stdenv, qtSubmodule, qtbase, qtdeclarative, pkgconfig
, alsaLib, gstreamer, gst-plugins-base, libpulseaudio , alsaLib, gstreamer, gst-plugins-base, libpulseaudio
, darwin
}: }:
with stdenv.lib;
qtSubmodule { qtSubmodule {
name = "qtmultimedia"; name = "qtmultimedia";
qtInputs = [ qtbase qtdeclarative ]; qtInputs = [ qtbase qtdeclarative ];
buildInputs = [ buildInputs = [ pkgconfig gstreamer gst-plugins-base libpulseaudio]
pkgconfig alsaLib gstreamer gst-plugins-base libpulseaudio ++ optional (stdenv.isLinux) alsaLib;
];
qmakeFlags = [ "GST_VERSION=1.0" ]; qmakeFlags = [ "GST_VERSION=1.0" ];
NIX_LDFLAGS = optionalString (stdenv.isDarwin) "-lobjc";
} }

View File

@ -1,4 +1,6 @@
{ qtSubmodule, qtbase, qtdeclarative }: { stdenv, qtSubmodule, qtbase, qtdeclarative }:
with stdenv.lib;
qtSubmodule { qtSubmodule {
name = "qtsensors"; name = "qtsensors";

View File

@ -1,9 +1,11 @@
{ qtSubmodule, qtbase, substituteAll, systemd }: { stdenv, qtSubmodule, qtbase, substituteAll, systemd }:
with stdenv.lib;
qtSubmodule { qtSubmodule {
name = "qtserialport"; name = "qtserialport";
qtInputs = [ qtbase ]; qtInputs = [ qtbase ];
patches = [ patches = optionals (stdenv.isLinux) [
(substituteAll { (substituteAll {
src = ./0001-dlopen-serialport-udev.patch; src = ./0001-dlopen-serialport-udev.patch;
libudev = systemd.lib; libudev = systemd.lib;

View File

@ -1,11 +1,28 @@
{ qtSubmodule, lib, copyPathsToStore, qtbase }: { stdenv, qtSubmodule, makeQtWrapper, copyPathsToStore, qtbase }:
with stdenv.lib;
qtSubmodule { qtSubmodule {
name = "qttools"; name = "qttools";
qtInputs = [ qtbase ]; qtInputs = [ qtbase ];
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series); nativeBuildInputs = [ makeQtWrapper ];
patches = copyPathsToStore (readPathsFromFile ./. ./series);
postFixup = '' postFixup = ''
moveToOutput "bin/qdbus" "$out" moveToOutput "bin/qdbus" "$out"
moveToOutput "bin/qtpaths" "$out" moveToOutput "bin/qtpaths" "$out"
''; '';
postInstall = ''
wrapQtProgram $out/bin/qcollectiongenerator
wrapQtProgram $out/bin/qhelpconverter
wrapQtProgram $out/bin/qhelpgenerator
wrapQtProgram $out/bin/qtdiag
'' + optionalString (stdenv.isDarwin) ''
wrapQtProgram $out/bin/Assistant.app/Contents/MacOS/Assistant
wrapQtProgram $out/bin/Designer.app/Contents/MacOS/Designer
wrapQtProgram $out/bin/Linguist.app/Contents/MacOS/Linguist
wrapQtProgram $out/bin/pixeltool.app/Contents/MacOS/pixeltool
wrapQtProgram $out/bin/qdbusviewer.app/Contents/MacOS/qdbusviewer
'';
} }

View File

@ -17,6 +17,8 @@
, lib, stdenv # lib.optional, needsPax , lib, stdenv # lib.optional, needsPax
}: }:
with stdenv.lib;
qtSubmodule { qtSubmodule {
name = "qtwebengine"; name = "qtwebengine";
qtInputs = [ qtquickcontrols qtlocation qtwebchannel ]; qtInputs = [ qtquickcontrols qtlocation qtwebchannel ];
@ -41,7 +43,7 @@ qtSubmodule {
-e "s,QLibraryInfo::location(QLibraryInfo::TranslationsPath),QLatin1String(\"$out/translations\"),g" \ -e "s,QLibraryInfo::location(QLibraryInfo::TranslationsPath),QLatin1String(\"$out/translations\"),g" \
-e "s,QLibraryInfo::location(QLibraryInfo::LibraryExecutablesPath),QLatin1String(\"$out/libexec\"),g" \ -e "s,QLibraryInfo::location(QLibraryInfo::LibraryExecutablesPath),QLatin1String(\"$out/libexec\"),g" \
src/core/web_engine_library_info.cpp src/core/web_engine_library_info.cpp
'' + optionalString (!stdenv.isDarwin) ''
sed -i -e '/lib_loader.*Load/s!"\(libudev\.so\)!"${systemd.lib}/lib/\1!' \ sed -i -e '/lib_loader.*Load/s!"\(libudev\.so\)!"${systemd.lib}/lib/\1!' \
src/3rdparty/chromium/device/udev_linux/udev?_loader.cc src/3rdparty/chromium/device/udev_linux/udev?_loader.cc
@ -49,11 +51,9 @@ qtSubmodule {
src/3rdparty/chromium/gpu/config/gpu_info_collector_linux.cc src/3rdparty/chromium/gpu/config/gpu_info_collector_linux.cc
''; '';
qmakeFlags = lib.optional enableProprietaryCodecs "WEBENGINE_CONFIG+=use_proprietary_codecs"; qmakeFlags = optional enableProprietaryCodecs "WEBENGINE_CONFIG+=use_proprietary_codecs";
propagatedBuildInputs = [ propagatedBuildInputs = [
dbus zlib minizip alsaLib snappy nss protobuf jsoncpp libevent
# Image formats # Image formats
libjpeg libpng libtiff libwebp libjpeg libpng libtiff libwebp
@ -61,19 +61,28 @@ qtSubmodule {
srtp libvpx srtp libvpx
# Audio formats # Audio formats
alsaLib libopus libopus
# Text rendering # Text rendering
fontconfig freetype harfbuzz icu harfbuzz icu
]
++ optionals (!stdenv.isDarwin) [
dbus zlib minizip snappy nss protobuf jsoncpp libevent
# Audio formats
alsaLib
# Text rendering
fontconfig freetype
libcap
pciutils
# X11 libs # X11 libs
xlibs.xrandr libXScrnSaver libXcursor libXrandr xlibs.libpciaccess libXtst xlibs.xrandr libXScrnSaver libXcursor libXrandr xlibs.libpciaccess libXtst
xlibs.libXcomposite xlibs.libXcomposite
libcap
pciutils
]; ];
patches = lib.optional stdenv.needsPax ./qtwebengine-paxmark-mksnapshot.patch; patches = optional stdenv.needsPax ./qtwebengine-paxmark-mksnapshot.patch;
postInstall = '' postInstall = ''
cat > $out/libexec/qt.conf <<EOF cat > $out/libexec/qt.conf <<EOF
[Paths] [Paths]

View File

@ -0,0 +1,11 @@
--- qtwebkit-opensource-src-5.8.0.orig/Source/WTF/WTF.pri
+++ qtwebkit-opensource-src-5.8.0/Source/WTF/WTF.pri
@@ -12,7 +12,7 @@
# Mac OS does ship libicu but not the associated header files.
# Therefore WebKit provides adequate header files.
INCLUDEPATH = $${ROOT_WEBKIT_DIR}/Source/WTF/icu $$INCLUDEPATH
- LIBS += -licucore
+ LIBS += /usr/lib/libicucore.dylib
} else:!use?(wchar_unicode): {
win32 {
CONFIG(static, static|shared) {

View File

@ -2,6 +2,7 @@
, fontconfig, gdk_pixbuf, gtk2, libwebp, libxml2, libxslt , fontconfig, gdk_pixbuf, gtk2, libwebp, libxml2, libxslt
, sqlite, systemd, glib, gst_all_1 , sqlite, systemd, glib, gst_all_1
, bison2, flex, gdb, gperf, perl, pkgconfig, python2, ruby , bison2, flex, gdb, gperf, perl, pkgconfig, python2, ruby
, darwin
, substituteAll , substituteAll
, flashplayerFix ? false , flashplayerFix ? false
}: }:
@ -11,10 +12,16 @@ with stdenv.lib;
qtSubmodule { qtSubmodule {
name = "qtwebkit"; name = "qtwebkit";
qtInputs = [ qtdeclarative qtlocation qtsensors ]; qtInputs = [ qtdeclarative qtlocation qtsensors ];
buildInputs = [ fontconfig libwebp libxml2 libxslt sqlite glib gst_all_1.gstreamer gst_all_1.gst-plugins-base ]; buildInputs = [ fontconfig libwebp libxml2 libxslt sqlite glib gst_all_1.gstreamer gst_all_1.gst-plugins-base ]
++ optionals (stdenv.isDarwin) (with darwin.apple_sdk.frameworks; [ OpenGL ]);
nativeBuildInputs = [ nativeBuildInputs = [
bison2 flex gdb gperf perl pkgconfig python2 ruby bison2 flex gdb gperf perl pkgconfig python2 ruby
]; ];
__impureHostDeps = optionals (stdenv.isDarwin) [
"/usr/lib/libicucore.dylib"
];
patches = patches =
let dlopen-webkit-nsplugin = substituteAll { let dlopen-webkit-nsplugin = substituteAll {
src = ./0001-dlopen-webkit-nsplugin.patch; src = ./0001-dlopen-webkit-nsplugin.patch;
@ -30,6 +37,7 @@ qtSubmodule {
libudev = systemd.lib; libudev = systemd.lib;
}; };
in optionals flashplayerFix [ dlopen-webkit-nsplugin dlopen-webkit-gtk ] in optionals flashplayerFix [ dlopen-webkit-nsplugin dlopen-webkit-gtk ]
++ [ dlopen-webkit-udev ]; ++ optionals (!stdenv.isDarwin) [ dlopen-webkit-udev ]
meta.maintainers = with stdenv.lib.maintainers; [ abbradar ]; ++ optionals (stdenv.isDarwin) [ ./0004-icucore-darwin.patch ];
meta.maintainers = with stdenv.lib.maintainers; [ abbradar periklis ];
} }

View File

@ -40,9 +40,9 @@ stdenv.mkDerivation {
-e 's|^[[:space:]]*\(CUDART_LIB =\)|CUDART_LIB = $(CUDA_ROOT)/lib64/libcudart.so|' \ -e 's|^[[:space:]]*\(CUDART_LIB =\)|CUDART_LIB = $(CUDA_ROOT)/lib64/libcudart.so|' \
-e 's|^[[:space:]]*\(CUBLAS_LIB =\)|CUBLAS_LIB = $(CUDA_ROOT)/lib64/libcublas.so|' \ -e 's|^[[:space:]]*\(CUBLAS_LIB =\)|CUBLAS_LIB = $(CUDA_ROOT)/lib64/libcublas.so|' \
-e 's|^[[:space:]]*\(CUDA_INC_PATH =\)|CUDA_INC_PATH = $(CUDA_ROOT)/include/|' \ -e 's|^[[:space:]]*\(CUDA_INC_PATH =\)|CUDA_INC_PATH = $(CUDA_ROOT)/include/|' \
-e 's|^[[:space:]]*\(NV_20 =\)|NV_20 = -arch=sm_20 -Xcompiler -fPIC|' \ -e 's|^[[:space:]]*\(NV20 =\)|NV20 = -arch=sm_20 -Xcompiler -fPIC|' \
-e 's|^[[:space:]]*\(NV_30 =\)|NV_30 = -arch=sm_30 -Xcompiler -fPIC|' \ -e 's|^[[:space:]]*\(NV30 =\)|NV30 = -arch=sm_30 -Xcompiler -fPIC|' \
-e 's|^[[:space:]]*\(NV_35 =\)|NV_35 = -arch=sm_35 -Xcompiler -fPIC|' \ -e 's|^[[:space:]]*\(NV35 =\)|NV35 = -arch=sm_35 -Xcompiler -fPIC|' \
-e 's|^[[:space:]]*\(NVCC =\) echo|NVCC = $(CUDA_ROOT)/bin/nvcc|' \ -e 's|^[[:space:]]*\(NVCC =\) echo|NVCC = $(CUDA_ROOT)/bin/nvcc|' \
-e 's|^[[:space:]]*\(NVCCFLAGS =\)|NVCCFLAGS = $(NV20) -O3 -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_60,code=sm_60|' -e 's|^[[:space:]]*\(NVCCFLAGS =\)|NVCCFLAGS = $(NV20) -O3 -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_60,code=sm_60|'
''; '';
@ -64,7 +64,7 @@ stdenv.mkDerivation {
for i in "$out"/lib/lib*.a; do for i in "$out"/lib/lib*.a; do
ar -x $i ar -x $i
done done
''${CC} *.o ${if stdenv.isDarwin then "-dynamiclib" else "--shared"} -o "$out/lib/libsuitesparse.${SHLIB_EXT}" -lopenblas ${if enableCuda then cudatoolkit else stdenv.cc.outPath}/bin/${if enableCuda then "nvcc" else "cc"} *.o ${if stdenv.isDarwin then "-dynamiclib" else "--shared"} -o "$out/lib/libsuitesparse.${SHLIB_EXT}" -lopenblas ${stdenv.lib.optionalString enableCuda "-lcublas"}
) )
for i in umfpack cholmod amd camd colamd spqr; do for i in umfpack cholmod amd camd colamd spqr; do
ln -s libsuitesparse.${SHLIB_EXT} "$out"/lib/lib$i.${SHLIB_EXT} ln -s libsuitesparse.${SHLIB_EXT} "$out"/lib/lib$i.${SHLIB_EXT}

View File

@ -3,12 +3,12 @@
libXext, wayland, mesa_noglu }: libXext, wayland, mesa_noglu }:
let let
version = "1.0.39.1"; version = "1.0.42.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "KhronosGroup"; owner = "KhronosGroup";
repo = "Vulkan-LoaderAndValidationLayers"; repo = "Vulkan-LoaderAndValidationLayers";
rev = "sdk-${version}"; rev = "sdk-${version}";
sha256 = "0y9zzrnjjjza2kkf5jfsdqhn98md6rsq0hb7jg62z2dipzky7zdp"; sha256 = "0na1ax2cgv6w29213mby56mndfsj3iizj3n5pbpy4s4p7ij9kdgn";
}; };
in in
@ -26,8 +26,6 @@ stdenv.mkDerivation rec {
"-DFALLBACK_DATA_DIRS=${mesa_noglu.driverLink}/share:/usr/local/share:/usr/share" "-DFALLBACK_DATA_DIRS=${mesa_noglu.driverLink}/share:/usr/local/share:/usr/share"
]; ];
patches = [ ./use-xdg-paths.patch ./fallback-paths.patch ];
outputs = [ "out" "dev" "demos" ]; outputs = [ "out" "dev" "demos" ];
preConfigure = '' preConfigure = ''
@ -59,5 +57,6 @@ stdenv.mkDerivation rec {
homepage = "http://www.lunarg.com"; homepage = "http://www.lunarg.com";
platforms = platforms.linux; platforms = platforms.linux;
license = licenses.asl20; license = licenses.asl20;
maintainers = [ maintainers.ralith ];
}; };
} }

View File

@ -1,52 +0,0 @@
commit a59b141559a8c1813da438b97e5f79eeb6cc7642
Author: Benjamin Saunders <ben.e.saunders@gmail.com>
Date: Sun Feb 19 11:14:24 2017 -0800
loader: Configurable fallback search paths
This makes it easier for non-FHS distributions to behave well when the loader
is used by a SUID process or in an otherwise unusual environment.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a43d264..d28b3f5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,6 +16,11 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
find_package(PythonInterp 3 REQUIRED)
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
+ set(FALLBACK_CONFIG_DIRS "/etc/xdg" CACHE STRING
+ "Search path to use when XDG_CONFIG_DIRS is unset or empty or the current process is SUID/SGID. Default is freedesktop compliant.")
+ set(FALLBACK_DATA_DIRS "/usr/local/share:/usr/share" CACHE STRING
+ "Search path to use when XDG_DATA_DIRS is unset or empty or the current process is SUID/SGID. Default is freedesktop compliant.")
+
include(FindPkgConfig)
option(BUILD_WSI_XCB_SUPPORT "Build XCB WSI support" ON)
option(BUILD_WSI_XLIB_SUPPORT "Build Xlib WSI support" ON)
@@ -285,7 +290,10 @@ run_vk_xml_generate(dispatch_table_generator.py vk_dispatch_table_helper.h)
if(NOT WIN32)
include(GNUInstallDirs)
+ add_definitions(-DFALLBACK_CONFIG_DIRS="${FALLBACK_CONFIG_DIRS}")
+ add_definitions(-DFALLBACK_DATA_DIRS="${FALLBACK_DATA_DIRS}")
add_definitions(-DSYSCONFDIR="${CMAKE_INSTALL_FULL_SYSCONFDIR}")
+
# Make sure /etc is searched by the loader
if(NOT (CMAKE_INSTALL_FULL_SYSCONFDIR STREQUAL "/etc"))
add_definitions(-DEXTRASYSCONFDIR="/etc")
diff --git a/loader/loader.c b/loader/loader.c
index 81c37c4..83378eb 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -2644,9 +2644,9 @@ static VkResult loader_get_manifest_files(const struct loader_instance *inst, co
const char *xdgconfdirs = secure_getenv("XDG_CONFIG_DIRS");
const char *xdgdatadirs = secure_getenv("XDG_DATA_DIRS");
if (xdgconfdirs == NULL || xdgconfdirs[0] == '\0')
- xdgconfdirs = "/etc/xdg";
+ xdgconfdirs = FALLBACK_CONFIG_DIRS;
if (xdgdatadirs == NULL || xdgdatadirs[0] == '\0')
- xdgdatadirs = "/usr/local/share:/usr/share";
+ xdgdatadirs = FALLBACK_DATA_DIRS;
const size_t rel_size = strlen(relative_location);
// Leave space for trailing separators
loc_size += strlen(xdgconfdirs) + strlen(xdgdatadirs) + 2*rel_size + 2;

View File

@ -1,322 +0,0 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 27ab6e5..e59256e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -256,17 +256,10 @@ if(NOT WIN32)
include(GNUInstallDirs)
add_definitions(-DSYSCONFDIR="${CMAKE_INSTALL_FULL_SYSCONFDIR}")
- add_definitions(-DDATADIR="${CMAKE_INSTALL_FULL_DATADIR}")
-
# Make sure /etc is searched by the loader
- if (NOT (CMAKE_INSTALL_FULL_SYSCONFDIR STREQUAL "/etc"))
+ if(NOT (CMAKE_INSTALL_FULL_SYSCONFDIR STREQUAL "/etc"))
add_definitions(-DEXTRASYSCONFDIR="/etc")
endif()
-
- # Make sure /usr/share is searched by the loader
- if (NOT (CMAKE_INSTALL_FULL_DATADIR STREQUAL "/usr/share"))
- add_definitions(-DEXTRADATADIR="/usr/share")
- endif()
endif()
if(UNIX)
diff --git a/loader/loader.c b/loader/loader.c
index 24758f4..af7cc85 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -2909,7 +2909,7 @@ static VkResult
loader_get_manifest_files(const struct loader_instance *inst,
const char *env_override, const char *source_override,
bool is_layer, bool warn_if_not_present,
- const char *location, const char *home_location,
+ const char *location, const char *relative_location,
struct loader_manifest_files *out_files) {
const char * override = NULL;
char *override_getenv = NULL;
@@ -2941,9 +2941,9 @@ loader_get_manifest_files(const struct loader_instance *inst,
}
#if !defined(_WIN32)
- if (location == NULL && home_location == NULL) {
+ if (location == NULL && relative_location == NULL) {
#else
- home_location = NULL;
+ relative_location = NULL;
if (location == NULL) {
#endif
loader_log(inst, VK_DEBUG_REPORT_ERROR_BIT_EXT, 0,
@@ -2962,16 +2962,89 @@ loader_get_manifest_files(const struct loader_instance *inst,
// Make a copy of the input we are using so it is not modified
// Also handle getting the location(s) from registry on Windows
if (override == NULL) {
- loc = loader_stack_alloc(strlen(location) + 1);
+ size_t loc_size = strlen(location) + 1;
+#if !defined(_WIN32)
+ const char *xdgconfdirs = secure_getenv("XDG_CONFIG_DIRS");
+ const char *xdgdatadirs = secure_getenv("XDG_DATA_DIRS");
+ if (xdgconfdirs == NULL || xdgconfdirs[0] == '\0')
+ xdgconfdirs = "/etc/xdg";
+ if (xdgdatadirs == NULL || xdgdatadirs[0] == '\0')
+ xdgdatadirs = "/usr/local/share:/usr/share";
+ const size_t rel_size = strlen(relative_location);
+ // Leave space for trailing separators
+ loc_size += strlen(xdgconfdirs) + strlen(xdgdatadirs) + 2*rel_size + 2;
+ for (const char *x = xdgconfdirs; *x; ++x)
+ if (*x == PATH_SEPARATOR) loc_size += rel_size;
+ for (const char *x = xdgdatadirs; *x; ++x)
+ if (*x == PATH_SEPARATOR) loc_size += rel_size;
+ loc_size += strlen(SYSCONFDIR) + rel_size + 1;
+#ifdef EXTRASYSCONFDIR
+ loc_size += strlen(EXTRASYSCONFDIR) + rel_size + 1;
+#endif
+#endif
+ loc = loader_stack_alloc(loc_size);
if (loc == NULL) {
loader_log(inst, VK_DEBUG_REPORT_ERROR_BIT_EXT, 0,
"loader_get_manifest_files: Failed to allocate "
"%d bytes for manifest file location.",
- strlen(location));
+ loc_size);
res = VK_ERROR_OUT_OF_HOST_MEMORY;
goto out;
}
- strcpy(loc, location);
+ char *loc_write = loc;
+#if !defined(_WIN32)
+ const char *loc_read;
+
+ loc_read = &xdgconfdirs[0];
+ for (const char *x = loc_read;; ++x) {
+ if (*x == PATH_SEPARATOR || *x == '\0') {
+ const size_t s = x - loc_read;
+ memcpy(loc_write, loc_read, s);
+ loc_write += s;
+ memcpy(loc_write, relative_location, rel_size);
+ loc_write += rel_size;
+ *loc_write++ = PATH_SEPARATOR;
+ if (*x == 0)
+ break;
+ loc_read = ++x;
+ }
+ }
+
+ memcpy(loc_write, SYSCONFDIR, strlen(SYSCONFDIR));
+ loc_write += strlen(SYSCONFDIR);
+ memcpy(loc_write, relative_location, rel_size);
+ loc_write += rel_size;
+ *loc_write++ = PATH_SEPARATOR;
+
+#ifdef EXTRASYSCONFDIR
+ memcpy(loc_write, EXTRASYSCONFDIR, strlen(EXTRASYSCONFDIR));
+ loc_write += strlen(EXTRASYSCONFDIR);
+ memcpy(loc_write, relative_location, rel_size);
+ loc_write += rel_size;
+ *loc_write++ = PATH_SEPARATOR;
+#endif
+
+ loc_read = &xdgdatadirs[0];
+ for (const char *x = loc_read;; ++x) {
+ if (*x == PATH_SEPARATOR || *x == '\0') {
+ const size_t s = x - loc_read;
+ memcpy(loc_write, loc_read, s);
+ loc_write += s;
+ memcpy(loc_write, relative_location, rel_size);
+ loc_write += rel_size;
+ *loc_write++ = PATH_SEPARATOR;
+ if (*x == 0)
+ break;
+ loc_read = ++x;
+ }
+ }
+ --loc_write;
+ *loc_write = '\0';
+#else
+ memcpy(loc_write, location, loc_size);
+ loc[loc_size-1] = '\0';
+#endif
+
#if defined(_WIN32)
VkResult reg_result = loaderGetRegistryFiles(inst, loc, &reg);
if (VK_SUCCESS != reg_result || NULL == reg) {
@@ -3122,14 +3195,14 @@ loader_get_manifest_files(const struct loader_instance *inst,
}
file = next_file;
#if !defined(_WIN32)
- if (home_location != NULL &&
+ if (relative_location != NULL &&
(next_file == NULL || *next_file == '\0') && override == NULL) {
char *xdgdatahome = secure_getenv("XDG_DATA_HOME");
size_t len;
if (xdgdatahome != NULL) {
char *home_loc = loader_stack_alloc(strlen(xdgdatahome) + 2 +
- strlen(home_location));
+ strlen(relative_location));
if (home_loc == NULL) {
loader_log(inst, VK_DEBUG_REPORT_ERROR_BIT_EXT, 0,
"loader_get_manifest_files: Failed to allocate "
@@ -3139,15 +3212,15 @@ loader_get_manifest_files(const struct loader_instance *inst,
}
strcpy(home_loc, xdgdatahome);
// Add directory separator if needed
- if (home_location[0] != DIRECTORY_SYMBOL) {
+ if (relative_location[0] != DIRECTORY_SYMBOL) {
len = strlen(home_loc);
home_loc[len] = DIRECTORY_SYMBOL;
home_loc[len + 1] = '\0';
}
- strcat(home_loc, home_location);
+ strcat(home_loc, relative_location);
file = home_loc;
next_file = loader_get_next_path(file);
- home_location = NULL;
+ relative_location = NULL;
loader_log(
inst, VK_DEBUG_REPORT_DEBUG_BIT_EXT, 0,
@@ -3160,7 +3233,7 @@ loader_get_manifest_files(const struct loader_instance *inst,
char *home = secure_getenv("HOME");
if (home != NULL) {
char *home_loc = loader_stack_alloc(strlen(home) + 16 +
- strlen(home_location));
+ strlen(relative_location));
if (home_loc == NULL) {
loader_log(
inst, VK_DEBUG_REPORT_ERROR_BIT_EXT, 0,
@@ -3178,15 +3251,15 @@ loader_get_manifest_files(const struct loader_instance *inst,
}
strcat(home_loc, ".local/share");
- if (home_location[0] != DIRECTORY_SYMBOL) {
+ if (relative_location[0] != DIRECTORY_SYMBOL) {
len = strlen(home_loc);
home_loc[len] = DIRECTORY_SYMBOL;
home_loc[len + 1] = '\0';
}
- strcat(home_loc, home_location);
+ strcat(home_loc, relative_location);
file = home_loc;
next_file = loader_get_next_path(file);
- home_location = NULL;
+ relative_location = NULL;
loader_log(
inst, VK_DEBUG_REPORT_DEBUG_BIT_EXT, 0,
@@ -3263,7 +3336,7 @@ VkResult loader_icd_scan(const struct loader_instance *inst,
// Get a list of manifest files for ICDs
res = loader_get_manifest_files(inst, "VK_ICD_FILENAMES", NULL, false, true,
DEFAULT_VK_DRIVERS_INFO,
- HOME_VK_DRIVERS_INFO, &manifest_files);
+ RELATIVE_VK_DRIVERS_INFO, &manifest_files);
if (VK_SUCCESS != res || manifest_files.count == 0) {
goto out;
}
@@ -3490,7 +3563,7 @@ void loader_layer_scan(const struct loader_instance *inst,
if (VK_SUCCESS !=
loader_get_manifest_files(inst, LAYERS_PATH_ENV, LAYERS_SOURCE_PATH,
true, true, DEFAULT_VK_ELAYERS_INFO,
- HOME_VK_ELAYERS_INFO, &manifest_files[0])) {
+ RELATIVE_VK_ELAYERS_INFO, &manifest_files[0])) {
goto out;
}
@@ -3499,7 +3572,7 @@ void loader_layer_scan(const struct loader_instance *inst,
// overridden by LAYERS_PATH_ENV
if (VK_SUCCESS != loader_get_manifest_files(inst, NULL, NULL, true, false,
DEFAULT_VK_ILAYERS_INFO,
- HOME_VK_ILAYERS_INFO,
+ RELATIVE_VK_ILAYERS_INFO,
&manifest_files[1])) {
goto out;
}
@@ -3569,7 +3642,7 @@ void loader_implicit_layer_scan(const struct loader_instance *inst,
// overridden by LAYERS_PATH_ENV
VkResult res = loader_get_manifest_files(
inst, NULL, NULL, true, false, DEFAULT_VK_ILAYERS_INFO,
- HOME_VK_ILAYERS_INFO, &manifest_files);
+ RELATIVE_VK_ILAYERS_INFO, &manifest_files);
if (VK_SUCCESS != res || manifest_files.count == 0) {
return;
}
diff --git a/loader/vk_loader_platform.h b/loader/vk_loader_platform.h
index dc4ac10..50a7966 100644
--- a/loader/vk_loader_platform.h
+++ b/loader/vk_loader_platform.h
@@ -57,47 +57,9 @@
#define VULKAN_ILAYERCONF_DIR "implicit_layer.d"
#define VULKAN_LAYER_DIR "layer"
-#if defined(EXTRASYSCONFDIR)
-#define EXTRA_DRIVERS_SYSCONFDIR_INFO ":" \
- EXTRASYSCONFDIR VULKAN_DIR VULKAN_ICDCONF_DIR
-#define EXTRA_ELAYERS_SYSCONFDIR_INFO ":" \
- EXTRASYSCONFDIR VULKAN_DIR VULKAN_ELAYERCONF_DIR
-#define EXTRA_ILAYERS_SYSCONFDIR_INFO ":" \
- EXTRASYSCONFDIR VULKAN_DIR VULKAN_ILAYERCONF_DIR
-#else
-#define EXTRA_DRIVERS_SYSCONFDIR_INFO
-#define EXTRA_ELAYERS_SYSCONFDIR_INFO
-#define EXTRA_ILAYERS_SYSCONFDIR_INFO
-#endif
-
-#if defined(EXTRADATADIR)
-#define EXTRA_DRIVERS_DATADIR_INFO ":" \
- EXTRADATADIR VULKAN_DIR VULKAN_ICDCONF_DIR
-#define EXTRA_ELAYERS_DATADIR_INFO ":" \
- EXTRADATADIR VULKAN_DIR VULKAN_ELAYERCONF_DIR
-#define EXTRA_ILAYERS_DATADIR_INFO ":" \
- EXTRADATADIR VULKAN_DIR VULKAN_ILAYERCONF_DIR
-#else
-#define EXTRA_DRIVERS_DATADIR_INFO
-#define EXTRA_ELAYERS_DATADIR_INFO
-#define EXTRA_ILAYERS_DATADIR_INFO
-#endif
-
-#define DEFAULT_VK_DRIVERS_INFO \
- SYSCONFDIR VULKAN_DIR VULKAN_ICDCONF_DIR ":" \
- DATADIR VULKAN_DIR VULKAN_ICDCONF_DIR \
- EXTRA_DRIVERS_SYSCONFDIR_INFO \
- EXTRA_DRIVERS_DATADIR_INFO
-#define DEFAULT_VK_ELAYERS_INFO \
- SYSCONFDIR VULKAN_DIR VULKAN_ELAYERCONF_DIR ":" \
- DATADIR VULKAN_DIR VULKAN_ELAYERCONF_DIR \
- EXTRA_ELAYERS_SYSCONFDIR_INFO \
- EXTRA_ELAYERS_DATADIR_INFO
-#define DEFAULT_VK_ILAYERS_INFO \
- SYSCONFDIR VULKAN_DIR VULKAN_ILAYERCONF_DIR ":" \
- DATADIR VULKAN_DIR VULKAN_ILAYERCONF_DIR \
- EXTRA_ILAYERS_SYSCONFDIR_INFO \
- EXTRA_ILAYERS_DATADIR_INFO
+#define DEFAULT_VK_DRIVERS_INFO ""
+#define DEFAULT_VK_ELAYERS_INFO ""
+#define DEFAULT_VK_ILAYERS_INFO ""
#define DEFAULT_VK_DRIVERS_PATH ""
#if !defined(DEFAULT_VK_LAYERS_PATH)
@@ -109,9 +71,9 @@
#endif
#define LAYERS_PATH_ENV "VK_LAYER_PATH"
-#define HOME_VK_DRIVERS_INFO VULKAN_DIR VULKAN_ICDCONF_DIR
-#define HOME_VK_ELAYERS_INFO VULKAN_DIR VULKAN_ELAYERCONF_DIR
-#define HOME_VK_ILAYERS_INFO VULKAN_DIR VULKAN_ILAYERCONF_DIR
+#define RELATIVE_VK_DRIVERS_INFO VULKAN_DIR VULKAN_ICDCONF_DIR
+#define RELATIVE_VK_ELAYERS_INFO VULKAN_DIR VULKAN_ELAYERCONF_DIR
+#define RELATIVE_VK_ILAYERS_INFO VULKAN_DIR VULKAN_ILAYERCONF_DIR
// C99:
#define PRINTF_SIZE_T_SPECIFIER "%zu"
@@ -251,9 +213,9 @@ loader_platform_thread_cond_broadcast(loader_platform_thread_cond *pCond) {
#define LAYERS_SOURCE_PATH NULL
#endif
#define LAYERS_PATH_ENV "VK_LAYER_PATH"
-#define HOME_VK_DRIVERS_INFO ""
-#define HOME_VK_ELAYERS_INFO ""
-#define HOME_VK_ILAYERS_INFO ""
+#define RELATIVE_VK_DRIVERS_INFO ""
+#define RELATIVE_VK_ELAYERS_INFO ""
+#define RELATIVE_VK_ILAYERS_INFO ""
#define PRINTF_SIZE_T_SPECIFIER "%Iu"
// File IO

View File

@ -64,6 +64,6 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
meta = { meta = {
platforms = stdenv.lib.platforms.all; platforms = stdenv.lib.platforms.linux;
}; };
} }

View File

@ -20,7 +20,7 @@ stdenv.mkDerivation {
meta = { meta = {
homepage = http://linux.techass.com/projects/xdb/; homepage = http://linux.techass.com/projects/xdb/;
description = "C++ class library formerly known as XDB"; description = "C++ class library formerly known as XDB";
platforms = stdenv.lib.platforms.all; platforms = stdenv.lib.platforms.linux;
maintainers = [ ]; maintainers = [ ];
}; };
} }

View File

@ -32,7 +32,10 @@ in
}; };
}; };
hunchentoot = addNativeLibs [pkgs.openssl]; hunchentoot = addNativeLibs [pkgs.openssl];
iolib = addNativeLibs [pkgs.libfixposix pkgs.gcc]; iolib = x: {
propagatedBuildInputs = (x.propagatedBuildInputs or []) ++ [pkgs.libfixposix pkgs.gcc];
testSystems = (x.testSystems or ["iolib"]) ++ ["iolib/os" "iolib/zstreams"];
};
cl-unicode = addDeps (with qlnp; [cl-ppcre flexi-streams]); cl-unicode = addDeps (with qlnp; [cl-ppcre flexi-streams]);
clack = addDeps (with qlnp;[lack bordeaux-threads prove]); clack = addDeps (with qlnp;[lack bordeaux-threads prove]);
clack-v1-compat = addDeps (with qlnp;[ clack-v1-compat = addDeps (with qlnp;[

View File

@ -19,7 +19,9 @@ stdenv.mkDerivation rec {
description = "An Octave module for the Pure programming language"; description = "An Octave module for the Pure programming language";
homepage = http://puredocs.bitbucket.org/pure-octave.html; homepage = http://puredocs.bitbucket.org/pure-octave.html;
license = stdenv.lib.licenses.gpl3Plus; license = stdenv.lib.licenses.gpl3Plus;
platforms = stdenv.lib.platforms.linux; # This is set to none for now because it does not work with the
# current stable version of Octave.
platforms = stdenv.lib.platforms.none;
maintainers = with stdenv.lib.maintainers; [ asppsa ]; maintainers = with stdenv.lib.maintainers; [ asppsa ];
}; };
} }

View File

@ -4,12 +4,12 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
name = "Django-${version}"; name = "Django-${version}";
version = "1.10.6"; version = "1.10.7";
disabled = pythonOlder "2.7"; disabled = pythonOlder "2.7";
src = fetchurl { src = fetchurl {
url = "http://www.djangoproject.com/m/releases/1.10/${name}.tar.gz"; url = "http://www.djangoproject.com/m/releases/1.10/${name}.tar.gz";
sha256 = "0q9c7hx720vc0jzq4xlxwhnxmmm8kh0qsqj3l46m29mi98jvwvks"; sha256 = "1f5hnn2dzfr5szk4yc47bs4kk2nmrayjcvgpqi2s4l13pjfpfgar";
}; };
patches = [ patches = [

View File

@ -1,11 +1,11 @@
{stdenv, fetchurl, perl}: {stdenv, fetchurl, perl}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "lcov-1.12"; name = "lcov-1.13";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/ltp/${name}.tar.gz"; url = "mirror://sourceforge/ltp/${name}.tar.gz";
sha256 = "19wfifdpxxivhq9adbphanjfga9bg9spms9v7c3589wndjff8x5l"; sha256 = "08wabnb0gcjqk0qc65a6cgbbmz6b8lvam3p7byh0dk42hj3jr5s4";
}; };
buildInputs = [ perl ]; buildInputs = [ perl ];

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "sbt-${version}"; name = "sbt-${version}";
version = "0.13.13"; version = "0.13.14";
src = fetchurl { src = fetchurl {
url = "https://dl.bintray.com/sbt/native-packages/sbt/${version}/${name}.tgz"; url = "https://dl.bintray.com/sbt/native-packages/sbt/${version}/${name}.tgz";
sha256 = "0ygrz92qkzasj6fps1bjg7wlgl69867jjjc37yjadib0l8hkvl20"; sha256 = "1q4jnrva21s0rhcn561ayfp5yhd6rpxidgx6f4i5n3dla3p9zkr9";
}; };
patchPhase = '' patchPhase = ''

View File

@ -1,244 +1,268 @@
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
addressable (2.4.0) addressable (2.5.1)
public_suffix (~> 2.0, >= 2.0.2)
app_conf (0.4.2) app_conf (0.4.2)
ast (2.2.0) artifactory (2.8.1)
berkshelf (4.3.0) ast (2.3.0)
backports (3.7.0)
berkshelf (5.6.4)
addressable (~> 2.3, >= 2.3.4) addressable (~> 2.3, >= 2.3.4)
berkshelf-api-client (~> 2.0, >= 2.0.2) berkshelf-api-client (>= 2.0.2, < 4.0)
buff-config (~> 1.0) buff-config (~> 2.0)
buff-extensions (~> 1.0) buff-extensions (~> 2.0)
buff-shell_out (~> 0.1) buff-shell_out (~> 1.0)
celluloid (= 0.16.0)
celluloid-io (~> 0.16.1)
cleanroom (~> 1.0) cleanroom (~> 1.0)
faraday (~> 0.9) faraday (~> 0.9)
httpclient (~> 2.7) httpclient (~> 2.7)
minitar (~> 0.5, >= 0.5.4) minitar (~> 0.5, >= 0.5.4)
mixlib-archive (~> 0.4)
octokit (~> 4.0) octokit (~> 4.0)
retryable (~> 2.0) retryable (~> 2.0)
ridley (~> 4.5) ridley (~> 5.0)
solve (~> 2.0) solve (> 2.0, < 4.0)
thor (~> 0.19) thor (~> 0.19, < 0.19.2)
berkshelf-api-client (2.0.2) berkshelf-api-client (3.0.0)
faraday (~> 0.9.1) faraday (~> 0.9)
httpclient (~> 2.7.0) httpclient (~> 2.7)
ridley (~> 4.5) ridley (>= 4.5, < 6.0)
buff-config (1.0.1) blankslate (2.1.2.4)
buff-extensions (~> 1.0) buff-config (2.0.0)
varia_model (~> 0.4) buff-extensions (~> 2.0)
buff-extensions (1.0.0) varia_model (~> 0.6)
buff-ignore (1.1.1) buff-extensions (2.0.0)
buff-ruby_engine (0.1.0) buff-ignore (1.2.0)
buff-shell_out (0.2.0) buff-ruby_engine (1.0.0)
buff-ruby_engine (~> 0.1.0) buff-shell_out (1.1.0)
builder (3.2.2) buff-ruby_engine (~> 1.0)
builder (3.2.3)
celluloid (0.16.0) celluloid (0.16.0)
timers (~> 4.0.0) timers (~> 4.0.0)
celluloid-io (0.16.2) celluloid-io (0.16.2)
celluloid (>= 0.16.0) celluloid (>= 0.16.0)
nio4r (>= 1.1.0) nio4r (>= 1.1.0)
chef (12.8.1) chef (12.19.36)
addressable
bundler (>= 1.10) bundler (>= 1.10)
chef-config (= 12.8.1) chef-config (= 12.19.36)
chef-zero (~> 4.5) chef-zero (>= 4.8)
diff-lcs (~> 1.2, >= 1.2.4) diff-lcs (~> 1.2, >= 1.2.4)
erubis (~> 2.7) erubis (~> 2.7)
ffi-yajl (~> 2.2) ffi-yajl (~> 2.2)
highline (~> 1.6, >= 1.6.9) highline (~> 1.6, >= 1.6.9)
iniparse (~> 1.4)
mixlib-archive (~> 0.4)
mixlib-authentication (~> 1.4) mixlib-authentication (~> 1.4)
mixlib-cli (~> 1.4) mixlib-cli (~> 1.7)
mixlib-log (~> 1.3) mixlib-log (~> 1.3)
mixlib-shellout (~> 2.0) mixlib-shellout (~> 2.0)
net-ssh (>= 2.9, < 4.0) net-sftp (~> 2.1, >= 2.1.2)
net-ssh-multi (~> 1.1) net-ssh (>= 2.9, < 5.0)
ohai (>= 8.6.0.alpha.1, < 9) net-ssh-multi (~> 1.2, >= 1.2.1)
plist (~> 3.1.0) ohai (>= 8.6.0.alpha.1, < 13)
plist (~> 3.2)
proxifier (~> 1.0) proxifier (~> 1.0)
rspec-core (~> 3.4) rspec-core (~> 3.5)
rspec-expectations (~> 3.4) rspec-expectations (~> 3.5)
rspec-mocks (~> 3.4) rspec-mocks (~> 3.5)
rspec_junit_formatter (~> 0.2.0) rspec_junit_formatter (~> 0.2.0)
serverspec (~> 2.7) serverspec (~> 2.7)
specinfra (~> 2.10) specinfra (~> 2.10)
syslog-logger (~> 1.6) syslog-logger (~> 1.6)
uuidtools (~> 2.1.5) uuidtools (~> 2.1.5)
chef-config (12.8.1) chef-config (12.19.36)
addressable
fuzzyurl
mixlib-config (~> 2.0) mixlib-config (~> 2.0)
mixlib-shellout (~> 2.0) mixlib-shellout (~> 2.0)
chef-dk (0.11.2) chef-dk (1.3.40)
addressable (>= 2.3.5, < 2.6)
chef (~> 12.5) chef (~> 12.5)
chef-provisioning (~> 1.2) chef-provisioning (~> 2.0)
cookbook-omnifetch (~> 0.2, >= 0.2.2) cookbook-omnifetch (~> 0.5)
diff-lcs (~> 1.0) diff-lcs (~> 1.0)
ffi-yajl (>= 1.0, < 3.0) ffi-yajl (>= 1.0, < 3.0)
minitar (~> 0.5.4) minitar (~> 0.5.4)
mixlib-cli (~> 1.5) mixlib-cli (~> 1.7)
mixlib-shellout (~> 2.0) mixlib-shellout (~> 2.0)
paint (~> 1.0) paint (~> 1.0)
solve (~> 2.0, >= 2.0.1) solve (> 2.0, < 4.0)
chef-provisioning (1.6.0) chef-provisioning (2.2.1)
cheffish (>= 1.3.1, < 3.0) cheffish (>= 4.0, < 6.0)
inifile (~> 2.0) inifile (>= 2.0.2)
mixlib-install (~> 0.7.0) mixlib-install (>= 1.0, < 3.0)
net-scp (~> 1.0) net-scp (~> 1.0)
net-ssh (>= 2.9, < 4.0) net-ssh (>= 2.9, < 5.0)
net-ssh-gateway (~> 1.2.0) net-ssh-gateway (~> 1.2)
winrm (~> 1.3) winrm (~> 2.0)
chef-vault (2.8.0) winrm-elevated (~> 1.0)
chef-zero (4.5.0) winrm-fs (~> 1.0)
chef-vault (2.9.1)
chef-zero (5.3.2)
ffi-yajl (~> 2.2) ffi-yajl (~> 2.2)
hashie (>= 2.0, < 4.0) hashie (>= 2.0, < 4.0)
mixlib-log (~> 1.3) mixlib-log (~> 1.3)
rack rack (~> 2.0)
uuidtools (~> 2.1) uuidtools (~> 2.1)
cheffish (2.0.2) cheffish (5.0.1)
chef-zero (~> 4.3) chef-zero (~> 5.0)
compat_resource net-ssh
chefspec (4.6.0) chefspec (6.2.0)
chef (>= 11.14) chef (>= 12.0)
fauxhai (~> 3.0, >= 3.0.1) fauxhai (>= 3.6, < 5)
rspec (~> 3.0) rspec (~> 3.0)
cleanroom (1.0.0) cleanroom (1.0.0)
coderay (1.1.1) coderay (1.1.1)
compat_resource (12.8.0) cookbook-omnifetch (0.5.1)
cookbook-omnifetch (0.2.2) mixlib-archive (~> 0.4)
minitar (~> 0.5.4) cucumber-core (2.0.0)
diff-lcs (1.2.5) backports (~> 3.6)
diffy (3.1.0) gherkin (~> 4.0)
docker-api (1.26.2) diff-lcs (1.3)
diffy (3.2.0)
docker-api (1.33.3)
excon (>= 0.38.0) excon (>= 0.38.0)
json json
erubis (2.7.0) erubis (2.7.0)
excon (0.48.0) excon (0.55.0)
faraday (0.9.2) faraday (0.9.2)
multipart-post (>= 1.2, < 3) multipart-post (>= 1.2, < 3)
fauxhai (3.1.0) fauxhai (4.1.0)
net-ssh net-ssh
ffi (1.9.10) ffi (1.9.18)
ffi-yajl (2.2.3) ffi-yajl (2.3.0)
libyajl2 (~> 1.2) libyajl2 (~> 1.2)
foodcritic (6.0.1) foodcritic (10.2.2)
cucumber-core (>= 1.3)
erubis erubis
gherkin (~> 2.11)
nokogiri (>= 1.5, < 2.0) nokogiri (>= 1.5, < 2.0)
rake rake
rufus-lru (~> 1.0) rufus-lru (~> 1.0)
treetop (~> 1.4) treetop (~> 1.4)
yajl-ruby (~> 1.1) yajl-ruby (~> 1.1)
gherkin (2.12.2) fuzzyurl (0.9.0)
multi_json (~> 1.3) gherkin (4.1.1)
git (1.3.0) git (1.3.0)
gssapi (1.2.0) gssapi (1.2.0)
ffi (>= 1.0.1) ffi (>= 1.0.1)
gyoku (1.3.1) gyoku (1.3.1)
builder (>= 2.1.2) builder (>= 2.1.2)
hashie (3.4.3) hashie (3.5.5)
highline (1.7.8) highline (1.7.8)
hitimes (1.2.3) hitimes (1.2.4)
httpclient (2.7.1) httpclient (2.8.3)
inifile (2.0.2) inifile (3.0.0)
inspec (0.14.8) iniparse (1.4.2)
json (~> 1.8) inspec (1.19.2)
addressable (~> 2.4)
faraday (>= 0.9.0)
hashie (~> 3.4)
json (>= 1.8, < 3.0)
method_source (~> 0.8) method_source (~> 0.8)
mixlib-log
parallel (~> 1.9)
pry (~> 0) pry (~> 0)
r-train (~> 0.10.1)
rainbow (~> 2) rainbow (~> 2)
rspec (~> 3.3) rspec (~> 3)
rspec-its (~> 1.2) rspec-its (~> 1.2)
rubyzip (~> 1.1) rubyzip (~> 1.1)
sslshake (~> 1)
thor (~> 0.19) thor (~> 0.19)
toml (~> 0.1)
train (>= 0.22.0, < 1.0)
ipaddress (0.8.3) ipaddress (0.8.3)
json (1.8.3) json (2.0.3)
kitchen-inspec (0.12.3) kitchen-inspec (0.17.0)
inspec (~> 0.14.1) hashie (~> 3.4)
inspec (>= 0.34.0, < 2.0.0)
test-kitchen (~> 1.6) test-kitchen (~> 1.6)
kitchen-vagrant (0.19.0) kitchen-vagrant (1.1.0)
test-kitchen (~> 1.4) test-kitchen (~> 1.4)
knife-spork (1.6.1) knife-spork (1.6.3)
app_conf (>= 0.4.0) app_conf (>= 0.4.0)
chef (>= 11.0.0) chef (>= 11.0.0)
diffy (>= 3.0.1) diffy (>= 3.0.1)
git (>= 1.2.5) git (>= 1.2.5)
libyajl2 (1.2.0) libyajl2 (1.2.0)
little-plugger (1.1.4) little-plugger (1.1.4)
logging (2.0.0) logging (2.2.0)
little-plugger (~> 1.1) little-plugger (~> 1.1)
multi_json (~> 1.10) multi_json (~> 1.10)
method_source (0.8.2) method_source (0.8.2)
mini_portile2 (2.0.0) mini_portile2 (2.1.0)
minitar (0.5.4) minitar (0.5.4)
mixlib-authentication (1.4.0) mixlib-archive (0.4.1)
mixlib-log mixlib-log
rspec-core (~> 3.2) mixlib-authentication (1.4.1)
rspec-expectations (~> 3.2) mixlib-log
rspec-mocks (~> 3.2) mixlib-cli (1.7.0)
mixlib-cli (1.5.0) mixlib-config (2.2.4)
mixlib-config (2.2.1) mixlib-install (2.1.12)
mixlib-install (0.7.1) artifactory
mixlib-log (1.6.0) mixlib-shellout
mixlib-shellout (2.2.6) mixlib-versioning
molinillo (0.2.3) thor
multi_json (1.11.2) mixlib-log (1.7.1)
mixlib-shellout (2.2.7)
mixlib-versioning (1.1.0)
molinillo (0.5.7)
multi_json (1.12.1)
multipart-post (2.0.0) multipart-post (2.0.0)
net-scp (1.2.1) net-scp (1.2.1)
net-ssh (>= 2.6.5) net-ssh (>= 2.6.5)
net-ssh (3.0.2) net-sftp (2.1.2)
net-ssh-gateway (1.2.0) net-ssh (>= 2.6.5)
net-ssh (4.1.0)
net-ssh-gateway (1.3.0)
net-ssh (>= 2.6.5) net-ssh (>= 2.6.5)
net-ssh-multi (1.2.1) net-ssh-multi (1.2.1)
net-ssh (>= 2.6.5) net-ssh (>= 2.6.5)
net-ssh-gateway (>= 1.2.0) net-ssh-gateway (>= 1.2.0)
net-telnet (0.1.1) net-telnet (0.1.1)
nio4r (1.2.1) nio4r (2.0.0)
nokogiri (1.6.7.2) nokogiri (1.7.1)
mini_portile2 (~> 2.0.0.rc2) mini_portile2 (~> 2.1.0)
nori (2.6.0) nori (2.6.0)
octokit (4.3.0) octokit (4.7.0)
sawyer (~> 0.7.0, >= 0.5.3) sawyer (~> 0.8.0, >= 0.5.3)
ohai (8.12.0) ohai (8.23.0)
chef-config (>= 12.5.0.alpha.1, < 13) chef-config (>= 12.5.0.alpha.1, < 13)
ffi (~> 1.9) ffi (~> 1.9)
ffi-yajl (~> 2.2) ffi-yajl (~> 2.2)
ipaddress ipaddress
mixlib-cli mixlib-cli
mixlib-config (~> 2.0) mixlib-config (~> 2.0)
mixlib-log mixlib-log (>= 1.7.1, < 2.0)
mixlib-shellout (~> 2.0) mixlib-shellout (~> 2.0)
plist plist (~> 3.1)
rake (~> 10.1)
systemu (~> 2.6.4) systemu (~> 2.6.4)
wmi-lite (~> 1.0) wmi-lite (~> 1.0)
paint (1.0.1) paint (1.0.1)
parser (2.3.0.6) parallel (1.11.1)
parser (2.4.0.0)
ast (~> 2.2) ast (~> 2.2)
plist (3.1.0) parslet (1.5.0)
blankslate (~> 2.0)
plist (3.2.0)
polyglot (0.3.5) polyglot (0.3.5)
powerpack (0.1.1) powerpack (0.1.1)
proxifier (1.0.3) proxifier (1.0.3)
pry (0.10.3) pry (0.10.4)
coderay (~> 1.1.0) coderay (~> 1.1.0)
method_source (~> 0.8.1) method_source (~> 0.8.1)
slop (~> 3.4) slop (~> 3.4)
r-train (0.10.3) public_suffix (2.0.5)
docker-api (~> 1.26.2) rack (2.0.1)
json (~> 1.8) rainbow (2.2.1)
mixlib-shellout (~> 2.1) rake (12.0.0)
net-scp (~> 1.2) retryable (2.0.4)
net-ssh (>= 2.9, < 4.0) ridley (5.1.0)
winrm (~> 1.6)
winrm-fs (~> 0.3)
rack (1.6.4)
rainbow (2.1.0)
rake (10.5.0)
retryable (2.0.3)
ridley (4.5.0)
addressable addressable
buff-config (~> 1.0) buff-config (~> 2.0)
buff-extensions (~> 1.0) buff-extensions (~> 2.0)
buff-ignore (~> 1.1) buff-ignore (~> 1.2)
buff-shell_out (~> 0.1) buff-shell_out (~> 1.0)
celluloid (~> 0.16.0) celluloid (~> 0.16.0)
celluloid-io (~> 0.16.1) celluloid-io (~> 0.16.1)
chef-config (>= 12.5.0) chef-config (>= 12.5.0)
@ -249,91 +273,107 @@ GEM
json (>= 1.7.7) json (>= 1.7.7)
mixlib-authentication (>= 1.3.0) mixlib-authentication (>= 1.3.0)
retryable (~> 2.0) retryable (~> 2.0)
semverse (~> 1.1) semverse (~> 2.0)
varia_model (~> 0.4.0) varia_model (~> 0.6)
rspec (3.4.0) rspec (3.5.0)
rspec-core (~> 3.4.0) rspec-core (~> 3.5.0)
rspec-expectations (~> 3.4.0) rspec-expectations (~> 3.5.0)
rspec-mocks (~> 3.4.0) rspec-mocks (~> 3.5.0)
rspec-core (3.4.4) rspec-core (3.5.4)
rspec-support (~> 3.4.0) rspec-support (~> 3.5.0)
rspec-expectations (3.4.0) rspec-expectations (3.5.0)
diff-lcs (>= 1.2.0, < 2.0) diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0) rspec-support (~> 3.5.0)
rspec-its (1.2.0) rspec-its (1.2.0)
rspec-core (>= 3.0.0) rspec-core (>= 3.0.0)
rspec-expectations (>= 3.0.0) rspec-expectations (>= 3.0.0)
rspec-mocks (3.4.1) rspec-mocks (3.5.0)
diff-lcs (>= 1.2.0, < 2.0) diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0) rspec-support (~> 3.5.0)
rspec-support (3.4.1) rspec-support (3.5.0)
rspec_junit_formatter (0.2.3) rspec_junit_formatter (0.2.3)
builder (< 4) builder (< 4)
rspec-core (>= 2, < 4, != 2.12.0) rspec-core (>= 2, < 4, != 2.12.0)
rubocop (0.38.0) rubocop (0.48.1)
parser (>= 2.3.0.6, < 3.0) parser (>= 2.3.3.1, < 3.0)
powerpack (~> 0.1) powerpack (~> 0.1)
rainbow (>= 1.99.1, < 3.0) rainbow (>= 1.99.1, < 3.0)
ruby-progressbar (~> 1.7) ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1) unicode-display_width (~> 1.0, >= 1.0.1)
ruby-progressbar (1.7.5) ruby-progressbar (1.8.1)
rubyntlm (0.6.0) rubyntlm (0.6.1)
rubyzip (1.2.0) rubyzip (1.2.1)
rufus-lru (1.0.5) rufus-lru (1.1.0)
safe_yaml (1.0.4) safe_yaml (1.0.4)
sawyer (0.7.0) sawyer (0.8.1)
addressable (>= 2.3.5, < 2.5) addressable (>= 2.3.5, < 2.6)
faraday (~> 0.8, < 0.10) faraday (~> 0.8, < 1.0)
semverse (1.2.1) semverse (2.0.0)
serverspec (2.31.0) serverspec (2.38.0)
multi_json multi_json
rspec (~> 3.0) rspec (~> 3.0)
rspec-its rspec-its
specinfra (~> 2.53) specinfra (~> 2.53)
sfl (2.2) sfl (2.3)
slop (3.6.0) slop (3.6.0)
solve (2.0.2) solve (3.1.0)
molinillo (~> 0.2.3) molinillo (>= 0.5)
semverse (~> 1.1) semverse (>= 1.1, < 3.0)
specinfra (2.53.1) specinfra (2.67.7)
net-scp net-scp
net-ssh (>= 2.7, < 3.1) net-ssh (>= 2.7, < 5.0)
net-telnet net-telnet
sfl sfl
sslshake (1.1.0)
syslog-logger (1.6.8) syslog-logger (1.6.8)
systemu (2.6.5) systemu (2.6.5)
test-kitchen (1.6.0) test-kitchen (1.16.0)
mixlib-install (~> 0.7) mixlib-install (>= 1.2, < 3.0)
mixlib-shellout (>= 1.2, < 3.0) mixlib-shellout (>= 1.2, < 3.0)
net-scp (~> 1.1) net-scp (~> 1.1)
net-ssh (>= 2.9, < 4.0) net-ssh (>= 2.9, < 5.0)
net-ssh-gateway (~> 1.2)
safe_yaml (~> 1.0) safe_yaml (~> 1.0)
thor (~> 0.18) thor (~> 0.19, < 0.19.2)
thor (0.19.1) thor (0.19.1)
timers (4.0.4) timers (4.0.4)
hitimes hitimes
treetop (1.6.5) toml (0.1.2)
parslet (~> 1.5.0)
train (0.23.0)
docker-api (~> 1.26)
json (>= 1.8, < 3.0)
mixlib-shellout (~> 2.0)
net-scp (~> 1.2)
net-ssh (>= 2.9, < 5.0)
winrm (~> 2.0)
winrm-fs (~> 1.0)
treetop (1.6.8)
polyglot (~> 0.3) polyglot (~> 0.3)
unicode-display_width (1.0.2) unicode-display_width (1.1.3)
uuidtools (2.1.5) uuidtools (2.1.5)
varia_model (0.4.1) varia_model (0.6.0)
buff-extensions (~> 1.0) buff-extensions (~> 2.0)
hashie (>= 2.0.2, < 4.0.0) hashie (>= 2.0.2, < 4.0.0)
winrm (1.7.2) winrm (2.2.1)
builder (>= 2.1.2) builder (>= 2.1.2)
erubis (~> 2.7)
gssapi (~> 1.2) gssapi (~> 1.2)
gyoku (~> 1.0) gyoku (~> 1.0)
httpclient (~> 2.2, >= 2.2.0.2) httpclient (~> 2.2, >= 2.2.0.2)
logging (>= 1.6.1, < 3.0) logging (>= 1.6.1, < 3.0)
nori (~> 2.0) nori (~> 2.0)
rubyntlm (~> 0.6.0) rubyntlm (~> 0.6.0, >= 0.6.1)
winrm-fs (0.3.2) winrm-elevated (1.1.0)
winrm (~> 2.0)
winrm-fs (~> 1.0)
winrm-fs (1.0.1)
erubis (~> 2.7) erubis (~> 2.7)
logging (>= 1.6.1, < 3.0) logging (>= 1.6.1, < 3.0)
rubyzip (~> 1.1) rubyzip (~> 1.1)
winrm (~> 1.5) winrm (~> 2.0)
wmi-lite (1.0.0) wmi-lite (1.0.0)
yajl-ruby (1.2.1) yajl-ruby (1.3.0)
PLATFORMS PLATFORMS
ruby ruby
@ -356,4 +396,4 @@ DEPENDENCIES
test-kitchen test-kitchen
BUNDLED WITH BUNDLED WITH
1.10.5 1.14.4

View File

@ -1,7 +1,7 @@
{ stdenv, lib, bundlerEnv, ruby, perl, autoconf }: { stdenv, lib, bundlerEnv, ruby, perl, autoconf }:
bundlerEnv { bundlerEnv {
name = "chefdk-0.11.2"; name = "chefdk-1.3.40";
inherit ruby; inherit ruby;
gemdir = ./.; gemdir = ./.;

File diff suppressed because it is too large Load Diff

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "coursier-${version}"; name = "coursier-${version}";
version = "1.0.0-M15-5"; version = "1.0.0-RC1";
src = fetchurl { src = fetchurl {
url = "https://github.com/coursier/coursier/raw/v${version}/coursier"; url = "https://github.com/coursier/coursier/raw/v${version}/coursier";
sha256 = "610c5fc08d0137c5270cefd14623120ab10cd81b9f48e43093893ac8d00484c9"; sha256 = "0dxwhqp7m7nmal8wn4chlmyvhdh6v3ja0nfz9x952kacf2vpnqw3";
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];

View File

@ -0,0 +1,50 @@
{stdenv, fetchurl, glibc, bison, arm-frc-linux-gnueabi-eglibc}:
stdenv.mkDerivation rec {
_target = "arm-frc-linux-gnueabi";
version = "2.28";
name = "${_target}-binutils-${version}";
src = fetchurl {
url = "ftp://ftp.gnu.org/gnu/binutils/binutils-${version}.tar.bz2";
sha256 = "369737ce51587f92466041a97ab7d2358c6d9e1b6490b3940eb09fb0a9a6ac88";
};
nativeBuildInputs = [ bison arm-frc-linux-gnueabi-eglibc ];
buildInputs = [ glibc ];
configureFlags = ''
--target=${_target}
--with-pkgversion='GNU-Binutils-for-FRC'
--with-sysroot=$out/${_target}
--with-build-sysroot=/$out/${_target}
--disable-multilib
--disable-nls
--enable-lto
--disable-libiberty-install
--enable-ld
--enable-gold=default
--enable-plugins
'';
postConfigure = ''
make configure-host
'';
postInstall = ''
rm -rf $out/share/info
'';
meta = {
description = "FRC binutils";
longDescription = ''
binutils used to build arm-frc-linux-gnueabi and user programs.
'';
license = stdenv.lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.colescott ];
platforms = stdenv.lib.platforms.linux;
priority = 3;
};
}

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "strace-${version}"; name = "strace-${version}";
version = "4.15"; version = "4.16";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/strace/${name}.tar.xz"; url = "mirror://sourceforge/strace/${name}.tar.xz";
sha256 = "1a9wb2nzfqgwazd0yrlbk48awlfn898n1bdayvdxj7qlssac1kf0"; sha256 = "1vzhmpcy989i4k12q4cc438yal2ghhm6x7ychscjbhcf2yspqj4q";
}; };
nativeBuildInputs = [ perl ]; nativeBuildInputs = [ perl ];

View File

@ -4,59 +4,16 @@ with rustPlatform;
buildRustPackage rec { buildRustPackage rec {
name = "rq-${version}"; name = "rq-${version}";
version = "0.9.2"; version = "0.10.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "dflemstr"; owner = "dflemstr";
repo = "rq"; repo = "rq";
rev = "v${version}"; rev = "v${version}";
sha256 = "051k7ls2mbjf584crayd654wm8m7gk3b7s73j97f9l8sbppdhpcq"; sha256 = "066f6sdy0vrp113wlg18q9p0clyrg9iqbj17ly0yn8dxr5iar002";
}; };
serde_json = fetchFromGitHub { depsSha256 = "138h0q2a2gghfjpwfi11zw4rkipvmglb7srqz56ibbw2xliid2wl";
owner = "serde-rs";
repo = "json";
rev = "0c05059e4533368020bd356bd708c38286810a7d";
sha256 = "0924ngqbsif2vmmpgn8l2gg4bzms0z0i7yng0zx6sdv0x836lw43";
};
v8_rs = fetchFromGitHub {
owner = "dflemstr";
repo = "v8-rs";
rev = "0772be5b2e84842a2d434963702bc2995aeda90b";
sha256 = "0h2n431rp6nqpip7dy7xpckkvcr19aq7l1f3x3wlrj02xi4c8mad";
};
cargoDepsHook = ''
# use non-git dependencies
(cd $sourceRoot && patch -p1 <<EOF)
diff -u a/Cargo.toml b/Cargo.toml
--- a/Cargo.toml 2016-12-03 21:29:31.615019030 +0100
+++ b/Cargo.toml 2016-12-03 21:30:12.188170359 +0100
@@ -40,15 +40,16 @@
version = "*"
[dependencies.serde_json]
-branch = "v0.9.0"
-git = "https://github.com/serde-rs/json.git"
+path = "${serde_json}/json"
+version = "*"
[dependencies.toml]
features = ["serde"]
version = "*"
[dependencies.v8]
-git = "https://github.com/dflemstr/v8-rs.git"
+path = "${v8_rs}"
+version = "*"
[features]
shared = ["v8/shared"]
EOF
'';
depsSha256 = "1pci9iwf4y574q32b05gbc490iqw5i7shvqgb1gblchrihvlkddq";
buildInputs = [ llvmPackages.clang-unwrapped v8 ]; buildInputs = [ llvmPackages.clang-unwrapped v8 ];

View File

@ -19,11 +19,20 @@ buildGoPackage rec {
sha256 = "13k29i5hx909hvddl2xkyw4qzxq2q20ay9bkal3xi063s6l0sh0z"; sha256 = "13k29i5hx909hvddl2xkyw4qzxq2q20ay9bkal3xi063s6l0sh0z";
}; };
patches = [
./path.patch
];
preBuild = '' preBuild = ''
export CGO_CFLAGS="-I${getDev gpgme}/include -I${getDev libgpgerror}/include -I${getDev devicemapper}/include -I${getDev btrfs-progs}/include" export CGO_CFLAGS="-I${getDev gpgme}/include -I${getDev libgpgerror}/include -I${getDev devicemapper}/include -I${getDev btrfs-progs}/include"
export CGO_LDFLAGS="-L${getLib gpgme}/lib -L${getLib libgpgerror}/lib -L${getLib devicemapper}/lib" export CGO_LDFLAGS="-L${getLib gpgme}/lib -L${getLib libgpgerror}/lib -L${getLib devicemapper}/lib"
''; '';
postInstall = ''
mkdir $bin/etc
cp -v ./go/src/github.com/projectatomic/skopeo/default-policy.json $bin/etc/default-policy.json
'';
meta = { meta = {
description = "A command line utility for various operations on container images and image repositories"; description = "A command line utility for various operations on container images and image repositories";
homepage = "https://github.com/projectatomic/skopeo"; homepage = "https://github.com/projectatomic/skopeo";

View File

@ -0,0 +1,25 @@
diff --git a/cmd/skopeo/main.go b/cmd/skopeo/main.go
index 51f918d..6681d73 100644
--- a/cmd/skopeo/main.go
+++ b/cmd/skopeo/main.go
@@ -3,6 +3,7 @@ package main
import (
"fmt"
"os"
+ "path/filepath"
"github.com/Sirupsen/logrus"
"github.com/containers/image/signature"
@@ -84,6 +85,12 @@ func getPolicyContext(c *cli.Context) (*signature.PolicyContext, error) {
policyPath := c.GlobalString("policy")
var policy *signature.Policy // This could be cached across calls, if we had an application context.
var err error
+ var dir string
+ if policyPath == "" {
+ dir, err = filepath.Abs(filepath.Dir(os.Args[0]))
+ policyPath = dir + "/../etc/default-policy.json"
+ }
+
if policyPath == "" {
policy, err = signature.DefaultPolicy(nil)
} else {

View File

@ -4,18 +4,18 @@ let
spirv_sources = { spirv_sources = {
# `vulkan-loader` requires a specific version of `spirv-tools` and `spirv-headers` as specified in # `vulkan-loader` requires a specific version of `spirv-tools` and `spirv-headers` as specified in
# `<vulkan-loader-repo>/spirv-tools_revision`. # `<vulkan-loader-repo>/external_revisions/spirv-tools_revision`.
tools = fetchFromGitHub { tools = fetchFromGitHub {
owner = "KhronosGroup"; owner = "KhronosGroup";
repo = "SPIRV-Tools"; repo = "SPIRV-Tools";
rev = "37422e9dba1a3a8cb8028b779dd546d43add6ef8"; rev = "7fe8a57a5bd72094e91f9f93e51dac2f2461dcb4";
sha256 = "0sp2p4wg902clq0fr94vj19vyv43cq333jjxr0mjzay8dw2h4yzk"; sha256 = "0rh25y1k3m3f1nqs032lh3mng5qfw9kqn6xv9yzzm47i1i0b6hmr";
}; };
headers = fetchFromGitHub { headers = fetchFromGitHub {
owner = "KhronosGroup"; owner = "KhronosGroup";
repo = "SPIRV-Headers"; repo = "SPIRV-Headers";
rev = "c470b68225a04965bf87d35e143ae92f831e8110"; rev = "6c08995e6e7b94129e6086c78198c77111f2f262";
sha256 = "18jgcpmm0ixp6314r5w144l3wayxjkmwqgx8dk5jgyw36dammkwd"; sha256 = "07m12wm9prib7hldj7pbc8vwnj0x6llgx4shzgy8x4xbhbafawws";
}; };
}; };
@ -23,7 +23,7 @@ in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "spirv-tools-${version}"; name = "spirv-tools-${version}";
version = "2016-12-19"; version = "2017-03-23";
src = spirv_sources.tools; src = spirv_sources.tools;
patchPhase = ''ln -sv ${spirv_sources.headers} external/spirv-headers''; patchPhase = ''ln -sv ${spirv_sources.headers} external/spirv-headers'';
@ -40,5 +40,6 @@ stdenv.mkDerivation rec {
description = "The SPIR-V Tools project provides an API and commands for processing SPIR-V modules"; description = "The SPIR-V Tools project provides an API and commands for processing SPIR-V modules";
license = licenses.asl20; license = licenses.asl20;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = [ maintainers.ralith ];
}; };
} }

View File

@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
description = "A program that launches a given program when your X session has been idle for a given time."; description = "A program that launches a given program when your X session has been idle for a given time.";
homepage = http://www.ibiblio.org/pub/linux/X11/screensavers; homepage = http://www.ibiblio.org/pub/linux/X11/screensavers;
maintainers = with maintainers; [ garbas ]; maintainers = with maintainers; [ garbas ];
platforms = platforms.unix; platforms = platforms.linux;
license = licenses.gpl2; license = licenses.gpl2;
}; };
} }

View File

@ -3,11 +3,11 @@ let
s = # Generated upstream information s = # Generated upstream information
rec { rec {
baseName="firejail"; baseName="firejail";
version="0.9.44.8"; version="0.9.44.10";
name="${baseName}-${version}"; name="${baseName}-${version}";
hash="0w87n5qzvylbjipaf45sw65gg4rpqcbi32zw9cs1jbfvf4bikzmr"; hash="19wln3h54wcscqgcmkm8sprdh7vrn5k91rr0hagv055y1i52c7mj";
url="https://netix.dl.sourceforge.net/project/firejail/firejail/firejail-0.9.44.8.tar.xz"; url="https://netix.dl.sourceforge.net/project/firejail/firejail/firejail-0.9.44.10.tar.xz";
sha256="0w87n5qzvylbjipaf45sw65gg4rpqcbi32zw9cs1jbfvf4bikzmr"; sha256="19wln3h54wcscqgcmkm8sprdh7vrn5k91rr0hagv055y1i52c7mj";
}; };
buildInputs = [ buildInputs = [
which which

View File

@ -1,3 +1,3 @@
url http://sourceforge.net/projects/firejail/files/firejail/ url http://sourceforge.net/projects/firejail/files/firejail/
version_link '[.]tar[.][a-z0-9]+/download$' version_link '[-][0-9.]+[.]tar[.][a-z0-9]+/download$'
SF_redirect SF_redirect

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "i2c-tools-${version}"; name = "i2c-tools-${version}";
version = "3.1.1"; version = "3.1.2";
src = fetchurl { src = fetchurl {
url = "http://http.debian.net/debian/pool/main/i/i2c-tools/i2c-tools_${version}.orig.tar.bz2"; url = "http://http.debian.net/debian/pool/main/i/i2c-tools/i2c-tools_${version}.orig.tar.bz2";
sha256 = "000pvg995qy1b15ks59gd0klri55hb33kqpg5czy84hw1pbdgm0l"; sha256 = "0hd4c1w8lnwc3j95h3vpd125170l1d4myspyrlpamqx6wbr6jpnv";
}; };
buildInputs = [ perl ]; buildInputs = [ perl ];

View File

@ -100,6 +100,10 @@ with stdenv.lib;
# Disable some expensive (?) features. # Disable some expensive (?) features.
PM_TRACE_RTC n PM_TRACE_RTC n
# Enable initrd support.
BLK_DEV_RAM y
BLK_DEV_INITRD y
# Enable various subsystems. # Enable various subsystems.
ACCESSIBILITY y # Accessibility support ACCESSIBILITY y # Accessibility support
AUXDISPLAY y # Auxiliary Display support AUXDISPLAY y # Auxiliary Display support

View File

@ -17,6 +17,7 @@ my $wd = getcwd;
my $debug = $ENV{'DEBUG'}; my $debug = $ENV{'DEBUG'};
my $autoModules = $ENV{'AUTO_MODULES'}; my $autoModules = $ENV{'AUTO_MODULES'};
my $preferBuiltin = $ENV{'PREFER_BUILTIN'};
$SIG{PIPE} = 'IGNORE'; $SIG{PIPE} = 'IGNORE';
@ -73,7 +74,7 @@ sub runConfig {
my $question = $1; my $name = $2; my $alts = $3; my $question = $1; my $name = $2; my $alts = $3;
my $answer = ""; my $answer = "";
# Build everything as a module if possible. # Build everything as a module if possible.
$answer = "m" if $autoModules && $alts =~ /\/m/; $answer = "m" if $autoModules && $alts =~ /\/m/ && !($preferBuiltin && $alts =~ /Y/);
$answer = $answers{$name} if defined $answers{$name}; $answer = $answers{$name} if defined $answers{$name};
print STDERR "QUESTION: $question, NAME: $name, ALTS: $alts, ANSWER: $answer\n" if $debug; print STDERR "QUESTION: $question, NAME: $name, ALTS: $alts, ANSWER: $answer\n" if $debug;
print OUT "$answer\n"; print OUT "$answer\n";

Some files were not shown because too many files have changed in this diff Show More