Merge remote-tracking branch 'upstream/master' into hardened-stdenv

This commit is contained in:
Robin Gloster 2016-03-01 21:09:17 +00:00
commit d47857c3d9
78 changed files with 787 additions and 265 deletions

View File

@ -1 +1 @@
16.03 16.09

View File

@ -330,7 +330,7 @@
tomberek = "Thomas Bereknyei <tomberek@gmail.com>"; tomberek = "Thomas Bereknyei <tomberek@gmail.com>";
travisbhartwell = "Travis B. Hartwell <nafai@travishartwell.net>"; travisbhartwell = "Travis B. Hartwell <nafai@travishartwell.net>";
trino = "Hubert Mühlhans <muehlhans.hubert@ekodia.de>"; trino = "Hubert Mühlhans <muehlhans.hubert@ekodia.de>";
tstrobel = "Thomas Strobel <ts468@cam.ac.uk>"; tstrobel = "Thomas Strobel <4ZKTUB6TEP74PYJOPWIR013S2AV29YUBW5F9ZH2F4D5UMJUJ6S@hash.domains>";
ttuegel = "Thomas Tuegel <ttuegel@gmail.com>"; ttuegel = "Thomas Tuegel <ttuegel@gmail.com>";
tv = "Tomislav Viljetić <tv@shackspace.de>"; tv = "Tomislav Viljetić <tv@shackspace.de>";
tvestelind = "Tomas Vestelind <tomas.vestelind@fripost.org>"; tvestelind = "Tomas Vestelind <tomas.vestelind@fripost.org>";

View File

@ -75,4 +75,25 @@ rec {
min = x: y: if x < y then x else y; min = x: y: if x < y then x else y;
max = x: y: if x > y then x else y; max = x: y: if x > y then x else y;
/* Reads a JSON file. It is useful to import pure data into other nix
expressions.
Example:
mkDerivation {
src = fetchgit (importJSON ./repo.json)
#...
}
where repo.json contains:
{
"url": "git://some-domain/some/repo",
"rev": "265de7283488964f44f0257a8b4a055ad8af984d",
"sha256": "0sb3h3067pzf3a7mlxn1hikpcjrsvycjcnj9hl9b1c3ykcgvps7h"
}
*/
importJSON = path:
builtins.fromJSON (builtins.readFile path);
} }

View File

@ -11,7 +11,7 @@ if [[ $1 == nix ]]; then
# Make sure we can use hydra's binary cache # Make sure we can use hydra's binary cache
sudo mkdir /etc/nix sudo mkdir /etc/nix
sudo echo "build-max-jobs = 4" > /etc/nix/nix.conf sudo sh -c 'echo "build-max-jobs = 4" > /etc/nix/nix.conf'
# Verify evaluation # Verify evaluation
echo "=== Verifying that nixpkgs evaluates..." echo "=== Verifying that nixpkgs evaluates..."

View File

@ -9,7 +9,7 @@
<para>This section lists the release notes for each stable version of NixOS <para>This section lists the release notes for each stable version of NixOS
and current unstable revision.</para> and current unstable revision.</para>
<xi:include href="rl-unstable.xml" /> <xi:include href="rl-1603.xml" />
<xi:include href="rl-1509.xml" /> <xi:include href="rl-1509.xml" />
<xi:include href="rl-1412.xml" /> <xi:include href="rl-1412.xml" />
<xi:include href="rl-1404.xml" /> <xi:include href="rl-1404.xml" />

View File

@ -2,9 +2,9 @@
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude"
version="5.0" version="5.0"
xml:id="sec-release-unstable"> xml:id="sec-release-16.03">
<title>Unstable</title> <title>Release 16.03 (“Emu”, 2016/03/??)</title>
<para>In addition to numerous new and upgraded packages, this release <para>In addition to numerous new and upgraded packages, this release
has the following highlights:</para> has the following highlights:</para>

View File

@ -0,0 +1,78 @@
# This module defines a NixOS installation CD that contains X11 and
# GNOME 3.
{ config, lib, pkgs, ... }:
with lib;
{
imports = [ ./installation-cd-base.nix ];
services.xserver = {
enable = true;
# GDM doesn't start in virtual machines with ISO
displayManager.slim = {
enable = true;
defaultUser = "root";
autoLogin = true;
};
desktopManager.gnome3 = {
enable = true;
extraGSettingsOverrides = ''
[org.gnome.desktop.background]
show-desktop-icons=true
[org.gnome.nautilus.desktop]
trash-icon-visible=false
volumes-visible=false
home-icon-visible=false
network-icon-visible=false
'';
extraGSettingsOverridePackages = [ pkgs.gnome3.nautilus ];
};
};
environment.systemPackages =
[ # Include gparted for partitioning disks.
pkgs.gparted
# Include some editors.
pkgs.vim
pkgs.bvi # binary editor
pkgs.joe
pkgs.glxinfo
];
# Don't start the X server by default.
services.xserver.autorun = mkForce false;
# Auto-login as root.
services.xserver.displayManager.gdm.autoLogin = {
enable = true;
user = "root";
};
system.activationScripts.installerDesktop = let
# Must be executable
desktopFile = pkgs.writeScript "nixos-manual.desktop" ''
[Desktop Entry]
Version=1.0
Type=Link
Name=NixOS Manual
URL=${config.system.build.manual.manual}/share/doc/nixos/index.html
Icon=system-help
'';
# use cp and chmod +x, we must be sure the apps are in the nix store though
in ''
mkdir -p /root/Desktop
ln -sfT ${desktopFile} /root/Desktop/nixos-manual.desktop
cp ${pkgs.gnome3.gnome_terminal}/share/applications/gnome-terminal.desktop /root/Desktop/gnome-terminal.desktop
chmod a+rx /root/Desktop/gnome-terminal.desktop
cp ${pkgs.gparted}/share/applications/gparted.desktop /root/Desktop/gparted.desktop
chmod a+rx /root/Desktop/gparted.desktop
'';
}

View File

@ -1,7 +1,7 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = [ ./installation-cd-graphical.nix ]; imports = [ ./installation-cd-graphical-kde.nix ];
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;
} }

View File

@ -85,7 +85,7 @@ in
type = types.lines; type = types.lines;
default = ''stdin { type => "example" }''; default = ''stdin { type => "example" }'';
description = "Logstash input configuration."; description = "Logstash input configuration.";
example = literalExample '' example = ''
# Read from journal # Read from journal
pipe { pipe {
command => "''${pkgs.systemd}/bin/journalctl -f -o json" command => "''${pkgs.systemd}/bin/journalctl -f -o json"
@ -98,7 +98,7 @@ in
type = types.lines; type = types.lines;
default = ''noop {}''; default = ''noop {}'';
description = "logstash filter configuration."; description = "logstash filter configuration.";
example = literalExample '' example = ''
if [type] == "syslog" { if [type] == "syslog" {
# Keep only relevant systemd fields # Keep only relevant systemd fields
# http://www.freedesktop.org/software/systemd/man/systemd.journal-fields.html # http://www.freedesktop.org/software/systemd/man/systemd.journal-fields.html
@ -114,7 +114,7 @@ in
outputConfig = mkOption { outputConfig = mkOption {
type = types.lines; type = types.lines;
default = literalExample ''stdout { debug => true debug_format => "json"}''; default = ''stdout { debug => true debug_format => "json"}'';
description = "Logstash output configuration."; description = "Logstash output configuration.";
example = '' example = ''
redis { host => "localhost" data_type => "list" key => "logstash" codec => json } redis { host => "localhost" data_type => "list" key => "logstash" codec => json }

View File

@ -62,7 +62,9 @@ in
}; };
plugins = mkOption { plugins = mkOption {
type = types.functionTo (types.listOf types.package);
default = plugins: []; default = plugins: [];
defaultText = "plugins: []";
example = literalExample "plugins: [ m3d-fio ]"; example = literalExample "plugins: [ m3d-fio ]";
description = "Additional plugins."; description = "Additional plugins.";
}; };

View File

@ -559,7 +559,7 @@ in
algorithm = "hmac-md5"; algorithm = "hmac-md5";
keyFile = "/path/to/my/key"; keyFile = "/path/to/my/key";
}; };
}; }
''; '';
description = '' description = ''
Define your TSIG keys here. Define your TSIG keys here.
@ -719,7 +719,7 @@ in
... ...
'''; ''';
}; };
}; }
''; '';
description = '' description = ''
Define your zones here. Zones can cascade other zones and therefore Define your zones here. Zones can cascade other zones and therefore

View File

@ -78,10 +78,11 @@ in {
''; '';
default = {}; default = {};
example = literalExample '' example = literalExample ''
echelon = { { echelon = {
psk = "abcdefgh"; psk = "abcdefgh";
}; };
"free.wifi" = {}; "free.wifi" = {};
}
''; '';
}; };

View File

@ -27,19 +27,24 @@ let
nixos-gsettings-desktop-schemas = pkgs.stdenv.mkDerivation { nixos-gsettings-desktop-schemas = pkgs.stdenv.mkDerivation {
name = "nixos-gsettings-desktop-schemas"; name = "nixos-gsettings-desktop-schemas";
buildInputs = [ pkgs.nixos-artwork ];
buildCommand = '' buildCommand = ''
mkdir -p $out/share/nixos-gsettings-schemas/nixos-gsettings-desktop-schemas mkdir -p $out/share/gsettings-schemas/nixos-gsettings-overrides/glib-2.0/schemas
cp -rf ${gnome3.gsettings_desktop_schemas}/share/gsettings-schemas/gsettings-desktop-schemas*/glib-2.0 $out/share/nixos-gsettings-schemas/nixos-gsettings-desktop-schemas/ cp -rf ${gnome3.gsettings_desktop_schemas}/share/gsettings-schemas/gsettings-desktop-schemas*/glib-2.0/schemas/*.xml $out/share/gsettings-schemas/nixos-gsettings-overrides/glib-2.0/schemas
chmod -R a+w $out/share/nixos-gsettings-schemas/nixos-gsettings-desktop-schemas
cat - > $out/share/nixos-gsettings-schemas/nixos-gsettings-desktop-schemas/glib-2.0/schemas/nixos-defaults.gschema.override <<- EOF ${concatMapStrings (pkg: "cp -rf ${pkg}/share/gsettings-schemas/*/glib-2.0/schemas/*.xml $out/share/gsettings-schemas/nixos-gsettings-overrides/glib-2.0/schemas\n") cfg.extraGSettingsOverridePackages}
chmod -R a+w $out/share/gsettings-schemas/nixos-gsettings-overrides
cat - > $out/share/gsettings-schemas/nixos-gsettings-overrides/glib-2.0/schemas/nixos-defaults.gschema.override <<- EOF
[org.gnome.desktop.background] [org.gnome.desktop.background]
picture-uri='${pkgs.nixos-artwork}/share/artwork/gnome/Gnome_Dark.png' picture-uri='${pkgs.nixos-artwork}/share/artwork/gnome/Gnome_Dark.png'
[org.gnome.desktop.screensaver] [org.gnome.desktop.screensaver]
picture-uri='${pkgs.nixos-artwork}/share/artwork/gnome/Gnome_Dark.png' picture-uri='${pkgs.nixos-artwork}/share/artwork/gnome/Gnome_Dark.png'
${cfg.extraGSettingsOverrides}
EOF EOF
${pkgs.glib}/bin/glib-compile-schemas $out/share/nixos-gsettings-schemas/nixos-gsettings-desktop-schemas/glib-2.0/schemas/
${pkgs.glib}/bin/glib-compile-schemas $out/share/gsettings-schemas/nixos-gsettings-overrides/glib-2.0/schemas/
''; '';
}; };
@ -47,18 +52,32 @@ in {
options = { options = {
services.xserver.desktopManager.gnome3.enable = mkOption { services.xserver.desktopManager.gnome3 = {
default = false; enable = mkOption {
example = true; default = false;
description = "Enable Gnome 3 desktop manager."; example = true;
}; description = "Enable Gnome 3 desktop manager.";
};
services.xserver.desktopManager.gnome3.sessionPath = mkOption { sessionPath = mkOption {
default = []; default = [];
example = literalExample "[ pkgs.gnome3.gpaste ]"; example = literalExample "[ pkgs.gnome3.gpaste ]";
description = "Additional list of packages to be added to the session search path. description = "Additional list of packages to be added to the session search path.
Useful for gnome shell extensions or gsettings-conditionated autostart."; Useful for gnome shell extensions or gsettings-conditionated autostart.";
apply = list: list ++ [ gnome3.gnome_shell gnome3.gnome-shell-extensions ]; apply = list: list ++ [ gnome3.gnome_shell gnome3.gnome-shell-extensions ];
};
extraGSettingsOverrides = mkOption {
default = "";
type = types.lines;
description = "Additional gsettings overrides.";
};
extraGSettingsOverridePackages = mkOption {
default = [];
type = types.listOf types.path;
description = "List of packages for which gsettings are overridden.";
};
}; };
environment.gnome3.packageSet = mkOption { environment.gnome3.packageSet = mkOption {
@ -130,7 +149,7 @@ in {
export XDG_DATA_DIRS=$XDG_DATA_DIRS''${XDG_DATA_DIRS:+:}${mimeAppsList}/share export XDG_DATA_DIRS=$XDG_DATA_DIRS''${XDG_DATA_DIRS:+:}${mimeAppsList}/share
# Override gsettings-desktop-schema # Override gsettings-desktop-schema
export XDG_DATA_DIRS=${nixos-gsettings-desktop-schemas}/share/nixos-gsettings-schemas/nixos-gsettings-desktop-schemas''${XDG_DATA_DIRS:+:}$XDG_DATA_DIRS export XDG_DATA_DIRS=${nixos-gsettings-desktop-schemas}/share/gsettings-schemas/nixos-gsettings-overrides''${XDG_DATA_DIRS:+:}$XDG_DATA_DIRS
# Let nautilus find extensions # Let nautilus find extensions
export NAUTILUS_EXTENSION_DIR=${config.system.path}/lib/nautilus/extensions-3.0/ export NAUTILUS_EXTENSION_DIR=${config.system.path}/lib/nautilus/extensions-3.0/

View File

@ -15,7 +15,7 @@ in
services.xserver.windowManager.session = singleton { services.xserver.windowManager.session = singleton {
name = "bspwm"; name = "bspwm";
start = " start = "
${pkgs.sxhkd}/bin/sxhkd & SXHKD_SHELL=/bin/sh ${pkgs.sxhkd}/bin/sxhkd -f 100 &
${pkgs.bspwm}/bin/bspwm ${pkgs.bspwm}/bin/bspwm
"; ";
}; };

View File

@ -113,7 +113,7 @@ in rec {
}); });
iso_graphical = forAllSystems (system: makeIso { iso_graphical = forAllSystems (system: makeIso {
module = ./modules/installer/cd-dvd/installation-cd-graphical.nix; module = ./modules/installer/cd-dvd/installation-cd-graphical-kde.nix;
type = "graphical"; type = "graphical";
inherit system; inherit system;
}); });

View File

@ -1,5 +1,6 @@
{ stdenv, fetchurl { stdenv, fetchurl
, ncurses , ncurses
, texinfo
, gettext ? null , gettext ? null
, enableNls ? true , enableNls ? true
, enableTiny ? false , enableTiny ? false
@ -16,7 +17,8 @@ stdenv.mkDerivation rec {
url = "mirror://gnu/nano/${name}.tar.gz"; url = "mirror://gnu/nano/${name}.tar.gz";
sha256 = "1vl9bim56k1b4zwc3icxp46w6pn6gb042j1h4jlz1jklxxpkwcpz"; sha256 = "1vl9bim56k1b4zwc3icxp46w6pn6gb042j1h4jlz1jklxxpkwcpz";
}; };
buildInputs = [ ncurses ] ++ optional enableNls gettext; buildInputs = [ ncurses texinfo ] ++ optional enableNls gettext;
outputs = [ "out" "info" ];
configureFlags = '' configureFlags = ''
--sysconfdir=/etc --sysconfdir=/etc
${optionalString (!enableNls) "--disable-nls"} ${optionalString (!enableNls) "--disable-nls"}

View File

@ -3,10 +3,10 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "simple-scan-${version}"; name = "simple-scan-${version}";
version = "3.19.90"; version = "3.19.91";
src = fetchurl { src = fetchurl {
sha256 = "16s8855sqrn5iiirpqva0mys8abfpzk9xryrb6rpjbynvx2lanmd"; sha256 = "1c5glf5vxgld41w4jxfqcv17q76qnh43fawpv33hncgh8d283xkf";
url = "https://launchpad.net/simple-scan/3.19/${version}/+download/${name}.tar.xz"; url = "https://launchpad.net/simple-scan/3.19/${version}/+download/${name}.tar.xz";
}; };
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
configureFlags = [ "--disable-packagekit" ]; configureFlags = [ "--disable-packagekit" ];
preBuild = '' preBuild = ''
# Clean up stale generated .c files still referencing packagekit headers: # Clean up stale .c files referencing packagekit headers as of 3.19.91:
make clean make clean
''; '';

View File

@ -1,55 +1,47 @@
{ fetchurl, fetchhg, stdenv, xorg, gcc46, makeWrapper }: { fetchurl, fetchhg, stdenv, xorg, makeWrapper }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
# Inferno is a rolling release from a mercurial repository. For the verison number # Inferno is a rolling release from a mercurial repository. For the verison number
# of the package I'm using the mercurial commit number. # of the package I'm using the mercurial commit number.
version = "645"; rev = "785";
name = "inferno-${version}"; name = "inferno-${rev}";
host = "Linux";
# The mercurial repository does not contain all the components needed for the objtype = "386";
# runtime system. The 'base' package contains these. For this package I download
# the base, extract the elements required from that, and add them to the source
# pulled from the mercurial repository.
srcBase = fetchurl {
url = "http://www.vitanuova.com/dist/4e/inferno-20100120.tgz";
sha256 = "0msvy3iwl4n5k0ry0xiyysjkq0qsawmwn3hvg67hbi5y8g7f7l88";
};
src = fetchhg { src = fetchhg {
url = "https://inferno-os.googlecode.com/hg"; url = "https://bitbucket.org/inferno-os/inferno-os";
rev = "7ab390b860ca"; sha256 = "1b428ma9fi5skvfrxp91dr43a62kax89wmx7950ahc1cxyx90k7x";
sha256 = "09y0iclb3yy10gw1p0182sddg64xh60q2fx4ai7lxyfb65i76qbh";
}; };
# Fails with gcc48 due to inferno triggering an optimisation issue with floating point. buildInputs = [ makeWrapper ] ++ (with xorg; [ libX11 libXpm libXext xextproto ]);
buildInputs = [ gcc46 xorg.libX11 xorg.libXpm xorg.libXext xorg.xextproto makeWrapper ];
infernoWrapper = ./inferno; infernoWrapper = ./inferno;
configurePhase = '' configurePhase = ''
tar --strip-components=1 -xvf $srcBase inferno/fonts inferno/Mkdirs inferno/empties sed -e 's@^ROOT=.*$@ROOT='"$out"'/share/inferno@g' \
sed -e 's@^ROOT=.*$@ROOT='"$out"'/share/inferno@g' -e 's@^OBJTYPE=.*$@OBJTYPE=386@g' -e 's@^SYSHOST=.*$@SYSHOST=Linux@g' -i mkconfig -e 's@^OBJTYPE=.*$@OBJTYPE=${objtype}@g' \
mkdir prof -e 's@^SYSHOST=.*$@SYSHOST=${host}@g' \
sh Mkdirs -i mkconfig
# Get rid of an annoying warning
sed -e 's/_BSD_SOURCE/_DEFAULT_SOURCE/g' \
-i ${host}/${objtype}/include/lib9.h
''; '';
buildPhase = '' buildPhase = ''
export PATH=$PATH:$out/share/inferno/Linux/386/bin
mkdir -p $out/share/inferno mkdir -p $out/share/inferno
cp -r . $out/share/inferno cp -r . $out/share/inferno
./makemk.sh ./makemk.sh
export PATH=$PATH:$out/share/inferno/Linux/386/bin
mk nuke mk nuke
mk mk
''; '';
installPhase = '' installPhase = ''
# Installs executables in $out/share/inferno/${host}/${objtype}/bin
mk install mk install
mkdir -p $out/bin mkdir -p $out/bin
makeWrapper $out/share/inferno/Linux/386/bin/emu $out/bin/emu \ # Install start-up script
--suffix LD_LIBRARY_PATH ':' "${gcc46.cc}/lib" \
--suffix PATH ':' "$out/share/inferno/Linux/386/bin"
makeWrapper $infernoWrapper $out/bin/inferno \ makeWrapper $infernoWrapper $out/bin/inferno \
--suffix LD_LIBRARY_PATH ':' "${gcc46.cc}/lib" \
--suffix PATH ':' "$out/share/inferno/Linux/386/bin" \ --suffix PATH ':' "$out/share/inferno/Linux/386/bin" \
--set INFERNO_ROOT "$out/share/inferno" --set INFERNO_ROOT "$out/share/inferno"
''; '';
@ -60,7 +52,7 @@ stdenv.mkDerivation rec {
description = "A compact distributed operating system for building cross-platform distributed systems"; description = "A compact distributed operating system for building cross-platform distributed systems";
homepage = "http://inferno-os.org/"; homepage = "http://inferno-os.org/";
license = stdenv.lib.licenses.gpl2; license = stdenv.lib.licenses.gpl2;
maintainers = [ "Chris Double <chris.double@double.co.nz>" ]; maintainers = with stdenv.lib.maintainers; [ doublec kovirobi ];
platforms = with stdenv.lib.platforms; linux; platforms = with stdenv.lib.platforms; linux;
}; };
} }

View File

@ -5,12 +5,12 @@
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "2.51.0"; version = "2.52.0";
name = "calibre-${version}"; name = "calibre-${version}";
src = fetchurl { src = fetchurl {
url = "http://download.calibre-ebook.com/${version}/${name}.tar.xz"; url = "http://download.calibre-ebook.com/${version}/${name}.tar.xz";
sha256 = "1rhpcxic4g2zyr5s3xn8dayyb45l9r8zyniaig8j7pl5kmsfjijn"; sha256 = "1la114vhkm73iv0rrzwws28ydiszl58q5y9d6aafn5sh16ph2aws";
}; };
inherit python; inherit python;

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "josm-${version}"; name = "josm-${version}";
version = "9329"; version = "9900";
src = fetchurl { src = fetchurl {
url = "https://josm.openstreetmap.de/download/josm-snapshot-${version}.jar"; url = "https://josm.openstreetmap.de/download/josm-snapshot-${version}.jar";
sha256 = "084a3pizmz09abn2n7brhx6757bq9k3xq3jy8ip2ifbl2hcrw7pq"; sha256 = "1dsfamh2bsiz3xkhmh7g4jz6bbh25x22k3zgj1k0v0gj8k6yl7dy";
}; };
phases = [ "installPhase" ]; phases = [ "installPhase" ];

View File

@ -57,6 +57,9 @@ let
"x-scheme-handler/unknown" "x-scheme-handler/unknown"
]; ];
categories = "Network;WebBrowser"; categories = "Network;WebBrowser";
extraEntries = ''
StartupWMClass=chromium-browser
'';
}; };
suffix = if channel != "stable" then "-" + channel else ""; suffix = if channel != "stable" then "-" + channel else "";

View File

@ -20,11 +20,11 @@
let let
# NOTE: When updating, please also update in current stable, as older versions stop working # NOTE: When updating, please also update in current stable, as older versions stop working
version = "3.12.6"; version = "3.14.7";
sha256 = sha256 =
{ {
"x86_64-linux" = "16d0g9bygvaixv4r42p72z6a6wqhkf5qzb058lijih93zjr8zjlj"; "x86_64-linux" = "1pwmghpr0kyca2biysyk90kk9k6ffv4i95vs5rq96vc0zbckws6n";
"i686-linux" = "1pgqz6axzzyaahql01g0l80an39hd9j4dnq0vfavwvb2qkb27dph"; "i686-linux" = "08yqrxh09cfd80kbiq1f2sirx9s85acij4khpklvvwrnf2x1i1zm";
}."${stdenv.system}" or (throw "system ${stdenv.system} not supported"); }."${stdenv.system}" or (throw "system ${stdenv.system} not supported");
arch = arch =

View File

@ -4,7 +4,7 @@
}: }:
let let
version = "2.84"; version = "2.90";
in in
with { inherit (stdenv.lib) optional optionals optionalString; }; with { inherit (stdenv.lib) optional optionals optionalString; };
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
src = fetchurl { src = fetchurl {
url = "https://transmission.cachefly.net/transmission-${version}.tar.xz"; url = "https://transmission.cachefly.net/transmission-${version}.tar.xz";
sha256 = "1sxr1magqb5s26yvr5yhs1f7bmir8gl09niafg64lhgfnhv1kz59"; sha256 = "1lig7y9fhmv2ajgq1isj9wqgpcgignzlczs3dy95ahb8h6pqrzv9";
}; };
buildInputs = [ pkgconfig intltool file openssl curl libevent inotify-tools zlib ] buildInputs = [ pkgconfig intltool file openssl curl libevent inotify-tools zlib ]

View File

@ -0,0 +1,24 @@
{ stdenv, fetchurl, qt5Full, lzo, libX11 }:
stdenv.mkDerivation rec {
name = pname + "-" + version;
pname = "cb2bib";
version = "1.9.2";
src = fetchurl {
url = "http://www.molspaces.com/dl/progs/${name}.tar.gz";
sha256 = "0yz79v023w1229wzck3gij0iqah1xg8rg4a352q8idvg7bdmyfin";
};
buildInputs = [ qt5Full lzo libX11 ];
QTDIR=qt5Full;
configurePhase =''
./configure --prefix $out
'';
meta = with stdenv.lib; {
description = "Rapidly extract unformatted, or unstandardized bibliographic references from email alerts, journal Web pages and PDF files";
homepage = http://www.molspaces.com/d_cb2bib-overview.php;
maintainers = with maintainers; [ edwtjo ];
license = licenses.gpl3;
};
}

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, bash, firefox, perl, unzipNLS, xorg }: { stdenv, fetchurl, fetchpatch, bash, firefox, perl, unzipNLS, xorg }:
let let
@ -7,6 +7,14 @@ let
sha256 = "02h2ja08v8as4fawj683rh5rmxsjf5d0qmvqa77i176nm20y5s7s"; sha256 = "02h2ja08v8as4fawj683rh5rmxsjf5d0qmvqa77i176nm20y5s7s";
}; };
firefox' = stdenv.lib.overrideDerivation (firefox) (attrs: {
patches = [ (fetchpatch {
url = "https://hg.mozilla.org/releases/mozilla-beta/raw-rev/0558da46f20c";
sha256 = "08ibp7hny78x8ywfvrh56z90kf8fjpf04mibdlrwkw4f1vgm3fc3";
name = "fix-external-xpi-loader";
}) ];
});
version = "4.0.28"; version = "4.0.28";
in in
@ -21,7 +29,9 @@ stdenv.mkDerivation {
nativeBuildInputs = [ perl unzipNLS ]; nativeBuildInputs = [ perl unzipNLS ];
inherit bash firefox; inherit bash;
firefox = firefox';
phases = "unpackPhase installPhase fixupPhase"; phases = "unpackPhase installPhase fixupPhase";

View File

@ -20,7 +20,11 @@ stdenv.mkDerivation {
buildInputs = [ which ]; buildInputs = [ which ];
preConfigure = "sed -e 's@^EXECPATH\\s.*@EXECPATH = '\$out'/bin@' -i Makefile.vars"; preConfigure = ''
sed -e 's@^EXECPATH\\s.*@EXECPATH = '\$out'/bin@' \
-e 's/^CC *= gcc$//' \
-i Makefile.vars
'';
buildPhase = "make install"; buildPhase = "make install";
@ -34,6 +38,8 @@ stdenv.mkDerivation {
meta = { meta = {
inherit (s) version; inherit (s) version;
description = "Automated theorem prover for full first-order logic with equality"; description = "Automated theorem prover for full first-order logic with equality";
homepage = http://www.eprover.org/;
license = stdenv.lib.licenses.gpl2;
maintainers = [stdenv.lib.maintainers.raskin]; maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.all; platforms = stdenv.lib.platforms.all;
}; };

View File

@ -50,7 +50,7 @@ GEM
jquery-rails (2.0.3) jquery-rails (2.0.3)
railties (>= 3.1.0, < 5.0) railties (>= 3.1.0, < 5.0)
thor (~> 0.14) thor (~> 0.14)
json (1.8.1) json (1.8.3)
mail (2.5.4) mail (2.5.4)
mime-types (~> 1.16) mime-types (~> 1.16)
treetop (~> 1.4.8) treetop (~> 1.4.8)

View File

@ -115,9 +115,9 @@ version = "2.0.3";
} }
{ {
name = "json"; name = "json";
hash = "961bfbbfa9fda1e857e9c791e964e6664e0d43bf687b19669dfbc7cdbc5e0200"; hash = "1nsby6ry8l9xg3yw4adlhk2pnc7i0h0rznvcss4vk3v74qg0k8lc";
url = "http://rubygems.org/downloads/json-1.8.1.gem"; url = "http://rubygems.org/downloads/json-1.8.3.gem";
version = "1.8.1"; version = "1.8.3";
} }
{ {
name = "mail"; name = "mail";

View File

@ -7,7 +7,7 @@
, libXt, libXmu, libXext, xextproto , libXt, libXmu, libXext, xextproto
, libXinerama, libXrandr, randrproto , libXinerama, libXrandr, randrproto
, libXtst, libXfixes, fixesproto, systemd , libXtst, libXfixes, fixesproto, systemd
, SDL, SDL_image, SDL_mixer, alsaLib , SDL, SDL2, SDL_image, SDL_mixer, alsaLib
, mesa, glew, fontconfig, freetype, ftgl , mesa, glew, fontconfig, freetype, ftgl
, libjpeg, jasper, libpng, libtiff , libjpeg, jasper, libpng, libtiff
, libmpeg2, libsamplerate, libmad , libmpeg2, libsamplerate, libmad
@ -26,6 +26,7 @@
, rtmpdump ? null, rtmpSupport ? true , rtmpdump ? null, rtmpSupport ? true
, libvdpau ? null, vdpauSupport ? true , libvdpau ? null, vdpauSupport ? true
, libpulseaudio ? null, pulseSupport ? true , libpulseaudio ? null, pulseSupport ? true
, joystickSupport ? true
}: }:
assert dbusSupport -> dbus_libs != null; assert dbusSupport -> dbus_libs != null;
@ -78,7 +79,9 @@ in stdenv.mkDerivation rec {
++ lib.optional sambaSupport samba ++ lib.optional sambaSupport samba
++ lib.optional vdpauSupport libvdpau ++ lib.optional vdpauSupport libvdpau
++ lib.optional pulseSupport libpulseaudio ++ lib.optional pulseSupport libpulseaudio
++ lib.optional rtmpSupport rtmpdump; ++ lib.optional rtmpSupport rtmpdump
++ lib.optional joystickSupport SDL2;
dontUseCmakeConfigure = true; dontUseCmakeConfigure = true;
@ -98,7 +101,8 @@ in stdenv.mkDerivation rec {
++ lib.optional (!sambaSupport) "--disable-samba" ++ lib.optional (!sambaSupport) "--disable-samba"
++ lib.optional vdpauSupport "--enable-vdpau" ++ lib.optional vdpauSupport "--enable-vdpau"
++ lib.optional pulseSupport "--enable-pulse" ++ lib.optional pulseSupport "--enable-pulse"
++ lib.optional rtmpSupport "--enable-rtmp"; ++ lib.optional rtmpSupport "--enable-rtmp"
++ lib.optional joystickSupport "--enable-joystick";
postInstall = '' postInstall = ''
for p in $(ls $out/bin/) ; do for p in $(ls $out/bin/) ; do
@ -113,7 +117,8 @@ in stdenv.mkDerivation rec {
--prefix LD_LIBRARY_PATH ":" "${libcec}/lib" \ --prefix LD_LIBRARY_PATH ":" "${libcec}/lib" \
--prefix LD_LIBRARY_PATH ":" "${libcec_platform}/lib" \ --prefix LD_LIBRARY_PATH ":" "${libcec_platform}/lib" \
--prefix LD_LIBRARY_PATH ":" "${libass}/lib" \ --prefix LD_LIBRARY_PATH ":" "${libass}/lib" \
--prefix LD_LIBRARY_PATH ":" "${rtmpdump}/lib" --prefix LD_LIBRARY_PATH ":" "${rtmpdump}/lib" \
--prefix LD_LIBRARY_PATH ":" "${SDL2}/lib"
done done
''; '';

View File

@ -215,13 +215,13 @@ in
pvr-hts = (mkKodiPlugin rec { pvr-hts = (mkKodiPlugin rec {
plugin = "pvr-hts"; plugin = "pvr-hts";
namespace = "pvr.hts"; namespace = "pvr.hts";
version = "2.1.18"; version = "2.2.13";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "kodi-pvr"; owner = "kodi-pvr";
repo = "pvr.hts"; repo = "pvr.hts";
rev = "016b0b3251d6d5bffaf68baf59010e4347759c4a"; rev = "3274354511e970e2101c2aa437001b2f245f80da";
sha256 = "03lhxipz03r516pycabqc9b89kd7wih3c2dr4p602bk64bsmpi0j"; sha256 = "0i7cb61pjv6vbj3x96cm1n4w91mvc8z6lxa8ykjasrrbi95ph7ld";
}; };
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -18,7 +18,7 @@ let
# revision/hash as well. See # revision/hash as well. See
# http://download.virtualbox.org/virtualbox/${version}/SHA256SUMS # http://download.virtualbox.org/virtualbox/${version}/SHA256SUMS
# for hashes. # for hashes.
version = "5.0.12"; version = "5.0.14";
forEachModule = action: '' forEachModule = action: ''
for mod in \ for mod in \
@ -39,12 +39,12 @@ let
''; '';
# See https://github.com/NixOS/nixpkgs/issues/672 for details # See https://github.com/NixOS/nixpkgs/issues/672 for details
extpackRevision = "104815"; extpackRevision = "105127";
extensionPack = requireFile rec { extensionPack = requireFile rec {
name = "Oracle_VM_VirtualBox_Extension_Pack-${version}-${extpackRevision}.vbox-extpack"; name = "Oracle_VM_VirtualBox_Extension_Pack-${version}-${extpackRevision}.vbox-extpack";
# IMPORTANT: Hash must be base16 encoded because it's used as an input to # IMPORTANT: Hash must be base16 encoded because it's used as an input to
# VBoxExtPackHelperApp! # VBoxExtPackHelperApp!
sha256 = "ac1bc8452b7fdf183325272149e9f18b9810cc07adf18e48755385a9cd1b236d"; sha256 = "4a404b0d09dfd3952107e314ab63262293b2fb0a4dc6837b57fb7274bd016865";
message = '' message = ''
In order to use the extension pack, you need to comply with the VirtualBox Personal Use In order to use the extension pack, you need to comply with the VirtualBox Personal Use
and Evaluation License (PUEL) by downloading the related binaries from: and Evaluation License (PUEL) by downloading the related binaries from:
@ -63,7 +63,7 @@ in stdenv.mkDerivation {
src = fetchurl { src = fetchurl {
url = "http://download.virtualbox.org/virtualbox/${version}/VirtualBox-${version}.tar.bz2"; url = "http://download.virtualbox.org/virtualbox/${version}/VirtualBox-${version}.tar.bz2";
sha256 = "de0362b1d404d1ca0298db1984acb6f0f1c6210313aeb744fea345ad9201e86e"; sha256 = "69abac7255b2251a18fd73c0b7c200d5f8ce72a59fa019b53a5cdbf7f2843002";
}; };
buildInputs = buildInputs =

View File

@ -12,7 +12,7 @@ stdenv.mkDerivation {
src = fetchurl { src = fetchurl {
url = "http://download.virtualbox.org/virtualbox/${version}/VBoxGuestAdditions_${version}.iso"; url = "http://download.virtualbox.org/virtualbox/${version}/VBoxGuestAdditions_${version}.iso";
sha256 = "61a19c9ec4b449cbc6bb41b636b03a16bf5a47ffa4943423d262863017e8bc9b"; sha256 = "cec0df18671adfe62a34d3810543f76f76206b212b2b61791fe026214c77507c";
}; };
KERN_DIR = "${kernel.dev}/lib/modules/*/build"; KERN_DIR = "${kernel.dev}/lib/modules/*/build";

View File

@ -11,7 +11,7 @@
* the project. * the project.
*/ */
infoFile: let infoFile: let
info = builtins.fromJSON (builtins.readFile infoFile); info = lib.importJSON infoFile;
script = writeText "build-maven-repository.sh" '' script = writeText "build-maven-repository.sh" ''
${lib.concatStrings (map (dep: let ${lib.concatStrings (map (dep: let

View File

@ -325,9 +325,9 @@ print_results() {
fi fi
if test -n "$hash"; then if test -n "$hash"; then
echo "{" echo "{"
echo " url = \"$url\";" echo " \"url\": \"$url\","
echo " rev = \"$fullRev\";" echo " \"rev\": \"$fullRev\","
echo " $hashType = \"$hash\";" echo " \"$hashType\": \"$hash\""
echo "}" echo "}"
fi fi
} }

View File

@ -10,6 +10,7 @@
, mimeType ? "" , mimeType ? ""
, categories ? "Application;Other;" , categories ? "Application;Other;"
, startupNotify ? null , startupNotify ? null
, extraEntries ? ""
}: }:
stdenv.mkDerivation { stdenv.mkDerivation {
@ -27,6 +28,7 @@ stdenv.mkDerivation {
GenericName=${genericName} GenericName=${genericName}
MimeType=${mimeType} MimeType=${mimeType}
Categories=${categories} Categories=${categories}
${extraEntries}
${if startupNotify == null then ''EOF'' else '' ${if startupNotify == null then ''EOF'' else ''
StartupNotify=${startupNotify} StartupNotify=${startupNotify}
EOF''} EOF''}

View File

@ -157,6 +157,9 @@ rec {
''; '';
# Copy a path to the Nix store. # Copy a path to the Nix store.
# Nix automatically copies files to the store before stringifying paths.
# If you need the store path of a file, ${copyPathToStore <path>} can be
# shortened to ${<path>}.
copyPathToStore = builtins.filterSource (p: t: true); copyPathToStore = builtins.filterSource (p: t: true);
# Copy a list of paths to the Nix store. # Copy a list of paths to the Nix store.

View File

@ -90,7 +90,7 @@ for (my $i = 0; $i < scalar(@packagesFiles); $i++) {
} }
my %provides; my %provides;
PKG: foreach my $pkgName (keys %pkgs) { PKG: foreach my $pkgName (sort(keys %pkgs)) {
#print STDERR "looking at $pkgName\n"; #print STDERR "looking at $pkgName\n";
my $pkg = $pkgs{$pkgName}; my $pkg = $pkgs{$pkgName};

View File

@ -8,7 +8,7 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "geolite-legacy-${version}"; name = "geolite-legacy-${version}";
version = "2016-02-25"; version = "2016-02-29";
srcGeoIP = fetchDB srcGeoIP = fetchDB
"GeoLiteCountry/GeoIP.dat.gz" "GeoIP.dat.gz" "GeoLiteCountry/GeoIP.dat.gz" "GeoIP.dat.gz"
@ -24,10 +24,10 @@ stdenv.mkDerivation rec {
"0fnlznn04lpkkd7sy9r9kdl3fcp8ix7msdrncwgz26dh537ml32z"; "0fnlznn04lpkkd7sy9r9kdl3fcp8ix7msdrncwgz26dh537ml32z";
srcGeoIPASNum = fetchDB srcGeoIPASNum = fetchDB
"asnum/GeoIPASNum.dat.gz" "GeoIPASNum.dat.gz" "asnum/GeoIPASNum.dat.gz" "GeoIPASNum.dat.gz"
"0gli3glr2w58qw2b4lwlp8cqbpfy27c3ryih3qi2bbilqy0r3ibl"; "10i4c8irvh9shbl3y0s0ffkm71vf3r290fvxjx20snqa558hkvib";
srcGeoIPASNumv6 = fetchDB srcGeoIPASNumv6 = fetchDB
"asnum/GeoIPASNumv6.dat.gz" "GeoIPASNumv6.dat.gz" "asnum/GeoIPASNumv6.dat.gz" "GeoIPASNumv6.dat.gz"
"1k7a9b8hsman64jjk6y3nkhms89gkq1vk26n2xklw710f15jzcsf"; "1rvbjrj98pqj9w5ql5j49b3h40496g6aralpnz1gj21v6dfrd55n";
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "GeoLite Legacy IP geolocation databases"; description = "GeoLite Legacy IP geolocation databases";

View File

@ -37,7 +37,8 @@ stdenv.mkDerivation rec {
--prefix PATH : "${unzip}/bin" \ --prefix PATH : "${unzip}/bin" \
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \ --prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \ --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
--suffix XDG_DATA_DIRS : "${gnome_themes_standard}/share:$out/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" --prefix XDG_DATA_DIRS : "${gnome_themes_standard}/share:$out/share:$XDG_ICON_DIRS" \
--suffix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
wrapProgram "$out/libexec/gnome-shell-calendar-server" \ wrapProgram "$out/libexec/gnome-shell-calendar-server" \
--prefix XDG_DATA_DIRS : "${evolution_data_server}/share:$out/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" --prefix XDG_DATA_DIRS : "${evolution_data_server}/share:$out/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH"

View File

@ -13,7 +13,8 @@ stdenv.mkDerivation rec {
wrapProgram "$out/bin/nautilus" \ wrapProgram "$out/bin/nautilus" \
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \ --prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \ --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$out/share:$GSETTINGS_SCHEMAS_PATH" --prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$out/share" \
--suffix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
''; '';
patches = [ ./extension_dir.patch ]; patches = [ ./extension_dir.patch ];

View File

@ -65,6 +65,9 @@ let
# Simplify the nixos module and gnome packages # Simplify the nixos module and gnome packages
defaultIconTheme = adwaita-icon-theme; defaultIconTheme = adwaita-icon-theme;
# ISO installer
# installerIso = callPackage ./installer.nix {};
#### Core (http://ftp.acc.umu.se/pub/GNOME/core/) #### Core (http://ftp.acc.umu.se/pub/GNOME/core/)
adwaita-icon-theme = callPackage ./core/adwaita-icon-theme { }; adwaita-icon-theme = callPackage ./core/adwaita-icon-theme { };
@ -309,9 +312,7 @@ let
anjuta = callPackage ./devtools/anjuta { }; anjuta = callPackage ./devtools/anjuta { };
devhelp = callPackage ./devtools/devhelp { devhelp = callPackage ./devtools/devhelp { };
webkitgtk = webkitgtk24x;
};
gdl = callPackage ./devtools/gdl { }; gdl = callPackage ./devtools/gdl { };

View File

@ -0,0 +1,15 @@
{ isoBaseName ? "nixos-graphical-gnome", system ? builtins.currentSystem
, extraModules ? [] }:
let
module = ../../../../nixos/modules/installer/cd-dvd/installation-cd-graphical-gnome.nix;
config = (import ../../../../nixos/lib/eval-config.nix {
inherit system;
modules = [ module { isoImage.isoBaseName = isoBaseName; } ] ++ extraModules;
}).config;
in
config.system.build.isoImage

View File

@ -3,33 +3,40 @@
, gmp, mpfr, libffi , gmp, mpfr, libffi
, noUnicode ? false, , noUnicode ? false,
}: }:
let let
baseName = "ecl"; s = # Generated upstream information
version = "16.0.0"; rec {
baseName="ecl";
version="16.1.2";
name="${baseName}-${version}";
hash="16ab8qs3awvdxy8xs8jy82v8r04x4wr70l9l2j45vgag18d2nj1d";
url="https://common-lisp.net/project/ecl/files/release/16.1.2/ecl-16.1.2.tgz";
sha256="16ab8qs3awvdxy8xs8jy82v8r04x4wr70l9l2j45vgag18d2nj1d";
};
buildInputs = [
libtool autoconf automake
];
propagatedBuildInputs = [
libffi gmp mpfr
];
in in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "${baseName}-${version}"; inherit (s) name version;
inherit version; inherit buildInputs propagatedBuildInputs;
src = fetchurl { src = fetchurl {
url = "https://common-lisp.net/project/ecl/files/ecl-16.0.0.tgz"; inherit (s) url sha256;
sha256 = "0czh78z9i5b7jc241mq1h1gdscvdw5fbhfb0g9sn4rchwk1x8gil";
}; };
configureFlags = [ configureFlags = [
"--enable-threads" "--enable-threads"
"--with-gmp-prefix=${gmp}" "--with-gmp-prefix=${gmp}"
"--with-libffi-prefix=${libffi}" "--with-libffi-prefix=${libffi}"
] ++ (stdenv.lib.optional (!noUnicode) "--enable-unicode"); ]
++
buildInputs = [ (stdenv.lib.optional (! noUnicode)
libtool autoconf automake "--enable-unicode")
]; ;
propagatedBuildInputs = [
libffi gmp mpfr
];
hardening_format = false; hardening_format = false;
@ -38,8 +45,9 @@ stdenv.mkDerivation {
''; '';
meta = { meta = {
inherit (s) version;
description = "Lisp implementation aiming to be small, fast and easy to embed"; description = "Lisp implementation aiming to be small, fast and easy to embed";
license = stdenv.lib.licenses.mit; license = stdenv.lib.licenses.mit ;
maintainers = [stdenv.lib.maintainers.raskin]; maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
}; };

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "sbcl-${version}"; name = "sbcl-${version}";
version = "1.3.2"; version = "1.3.3";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/project/sbcl/sbcl/${version}/${name}-source.tar.bz2"; url = "mirror://sourceforge/project/sbcl/sbcl/${version}/${name}-source.tar.bz2";
sha256 = "18mgj1h9wqi0zq4k7y5r5fk10mlbpgh3796d3dac75bpxabg30nk"; sha256 = "0kzvwzz196ws9z20l8fm15m5gckhmkkc6lxvdib12mfvy80gcf6v";
}; };
patchPhase = '' patchPhase = ''

View File

@ -327,7 +327,7 @@ self: super: {
github-types = dontCheck super.github-types; # http://hydra.cryp.to/build/1114046/nixlog/1/raw github-types = dontCheck super.github-types; # http://hydra.cryp.to/build/1114046/nixlog/1/raw
hadoop-rpc = dontCheck super.hadoop-rpc; # http://hydra.cryp.to/build/527461/nixlog/2/raw hadoop-rpc = dontCheck super.hadoop-rpc; # http://hydra.cryp.to/build/527461/nixlog/2/raw
hasql = dontCheck super.hasql; # http://hydra.cryp.to/build/502489/nixlog/4/raw hasql = dontCheck super.hasql; # http://hydra.cryp.to/build/502489/nixlog/4/raw
hjsonschema = overrideCabal (super.hjsonschema.override { hjsonpointer = pkgs.hjsonpointer_0_2_0_4; }) (drv: { testTarget = "local"; }); hjsonschema = overrideCabal (super.hjsonschema.override { hjsonpointer = self.hjsonpointer_0_2_0_4; }) (drv: { testTarget = "local"; });
hoogle = overrideCabal super.hoogle (drv: { testTarget = "--test-option=--no-net"; }); hoogle = overrideCabal super.hoogle (drv: { testTarget = "--test-option=--no-net"; });
marmalade-upload = dontCheck super.marmalade-upload; # http://hydra.cryp.to/build/501904/nixlog/1/raw marmalade-upload = dontCheck super.marmalade-upload; # http://hydra.cryp.to/build/501904/nixlog/1/raw
network-transport-tcp = dontCheck super.network-transport-tcp; network-transport-tcp = dontCheck super.network-transport-tcp;

View File

@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "05xpvfm0xky1532i3hd2l3wznxzh99bv2hxgykwdpxh18h6jr6jm"; sha256 = "05xpvfm0xky1532i3hd2l3wznxzh99bv2hxgykwdpxh18h6jr6jm";
}; };
patchPhase = "patchShebangs ./install.sh";
installPhase = "./install.sh $out"; installPhase = "./install.sh $out";
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -2,10 +2,10 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "rubygems-${version}"; name = "rubygems-${version}";
version = "2.4.8"; version = "2.5.2";
src = fetchurl { src = fetchurl {
url = "http://production.cf.rubygems.org/rubygems/${name}.tgz"; url = "http://production.cf.rubygems.org/rubygems/${name}.tgz";
sha256 = "0pl4civyf0vhqsqbqaivvxrb3fsg8sid9a8jv5vfnk4hypz3ahss"; sha256 = "1jpcmvjfpj2m0jh23371ghfj95gh4jliihzrj5ln0x2cl1pwwwai";
}; };
patches = [ ./gem_hook.patch ]; patches = [ ./gem_hook.patch ];

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libfilezilla-${version}"; name = "libfilezilla-${version}";
version = "0.4.0"; version = "0.4.0.1";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/project/filezilla/libfilezilla/${version}/${name}.tar.bz2"; url = "mirror://sourceforge/project/filezilla/libfilezilla/${version}/${name}.tar.bz2";
sha256 = "1l7rih17nzy75zf5h8mx5x38jbl9kxyxpr0ib6nn2615fw92xxgj"; sha256 = "1ldiyhjv4jg2jyj3d56mlgyj9lx0qkf1857wvsy51lp9aj96h0v0";
}; };
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
sha256 = "184lazwdpv67zrlxxswpxrdap85wminh1gmq1i5lcz6iycw39fir"; sha256 = "184lazwdpv67zrlxxswpxrdap85wminh1gmq1i5lcz6iycw39fir";
}; };
patches = stdenv.lib.optional stdenv.isDarwin ./fix-clang36.patch; patches = [];
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = stdenv.lib.optional doCheck libpng; buildInputs = stdenv.lib.optional doCheck libpng;

View File

@ -1,11 +0,0 @@
--- a/pixman/pixman-mmx.c 2014-04-24 08:34:14.000000000 +0400
+++ b/pixman/pixman-mmx.c 2015-01-30 20:19:28.000000000 +0300
@@ -89,7 +89,7 @@
return __A;
}
-# ifdef __OPTIMIZE__
+# if defined(__OPTIMIZE__) && !(defined (__clang__) && defined(__clang_major__) && defined(__clang_minor__) && __clang_major__ == 3 && __clang_minor__ >= 6)
extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
_mm_shuffle_pi16 (__m64 __A, int8_t const __N)
{

View File

@ -0,0 +1,30 @@
{ stdenv, fetchFromGitHub, ocaml, findlib }:
let version = "1.1"; in
stdenv.mkDerivation {
name = "ocaml-result-${version}";
src = fetchFromGitHub {
owner = "janestreet";
repo = "result";
rev = "${version}";
sha256 = "05y07rxdbkaxsc8cy458y00gq05i8gp35hhwg1b757mam21ccxxz";
};
buildInputs = [ ocaml findlib ];
createFindlibDestdir = true;
meta = {
homepage = https://github.com/janestreet/result;
description = "Compatibility Result module";
longDescription = ''
Projects that want to use the new result type defined in OCaml >= 4.03
while staying compatible with older version of OCaml should use the
Result module defined in this library.
'';
license = stdenv.lib.licenses.bsd3;
platforms = ocaml.meta.platforms;
};
}

View File

@ -0,0 +1,49 @@
{ stdenv, fetchurl, ocaml, findlib, ctypes, result, SDL2, pkgconfig, opam }:
let
inherit (stdenv.lib) getVersion;
pname = "tsdl";
version = "0.9.0";
webpage = "http://erratique.ch/software/${pname}";
in
stdenv.mkDerivation {
name = "ocaml-${pname}-${version}";
src = fetchurl {
url = "${webpage}/releases/${pname}-${version}.tbz";
sha256 = "02x0wsy5nxagxrh07yb2h4yqqy1bxryp2gwrylds0j6ybqsv4shm";
};
buildInputs = [ ocaml findlib result pkgconfig opam ];
propagatedBuildInputs = [ SDL2 ctypes ];
createFindlibDestdir = true;
unpackCmd = "tar xjf $src";
buildPhase = ''
# The following is done to avoid an additional dependency (ncurses)
# due to linking in the custom bytecode runtime. Instead, just
# compile directly into a native binary, even if it's just a
# temporary build product.
substituteInPlace myocamlbuild.ml \
--replace ".byte" ".native"
ocaml pkg/build.ml native=true native-dynlink=true
'';
installPhase = ''
opam-installer --script --prefix=$out ${pname}.install | sh
ln -s $out/lib/${pname} $out/lib/ocaml/${getVersion ocaml}/site-lib/${pname}
'';
meta = with stdenv.lib; {
homepage = "${webpage}";
description = "Thin bindings to the cross-platform SDL library";
license = licenses.bsd3;
platforms = ocaml.meta.platforms;
};
}

View File

@ -88,6 +88,10 @@ stdenv.mkDerivation rec {
homepage = http://pharo.org; homepage = http://pharo.org;
license = stdenv.lib.licenses.mit; license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.DamienCassou ]; maintainers = [ stdenv.lib.maintainers.DamienCassou ];
platforms = stdenv.lib.platforms.mesaPlatforms; # Pharo VM sources are packaged separately for darwin (OS X)
platforms = with stdenv.lib;
intersectLists
platforms.mesaPlatforms
(subtractLists platforms.darwin platforms.unix);
}; };
} }

View File

@ -1,12 +1,12 @@
{ stdenv, fetchurl }: { stdenv, fetchurl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "6.15"; version = "6.16";
name = "checkstyle-${version}"; name = "checkstyle-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/checkstyle/${name}-bin.tar.gz"; url = "mirror://sourceforge/checkstyle/${name}-bin.tar.gz";
sha256 = "1bazjgfr1mq6qfg4nmack467zg7s4z8v7zfzw46d2dk04mv8y9b8"; sha256 = "0kmddfzn7p6fads6crw4gnahvi36xwqyw35i7a2lplrdp8dn9xdd";
}; };
installPhase = '' installPhase = ''

View File

@ -1,10 +1,10 @@
{ stdenv, fetchgit, lib, python, which }: { stdenv, fetchgit, lib, python, which }:
let let
version = "0.5.3"; version = "0.5.4";
src = fetchgit { src = fetchgit {
url = "https://github.com/gfxmonk/gup.git"; url = "https://github.com/gfxmonk/gup.git";
rev = "55ffd8828ddc28a2a786b75422d672d6569f961f"; rev = "b3980e529c860167b48e31634d2b479fc4d10274";
sha256 = "7c2abbf5d3814c6b84da0de1c91f9f7d299c2362cf091da96f6a68d8fffcb5ce"; sha256 = "bb02ba0a7f1680ed5b9a8e8c9cc42aa07016329840f397d914b94744f9ed7c85";
}; };
in in
import ./build.nix import ./build.nix

View File

@ -0,0 +1,29 @@
{ stdenv, fetchurl, makeWrapper, jre }:
stdenv.mkDerivation rec {
name = "nexus-${version}";
version = "2.12.0-01";
src = fetchurl {
url = "https://sonatype-download.global.ssl.fastly.net/nexus/oss/nexus-${version}-bundle.tar.gz";
sha256 = "1k3z7kwcmr1pxaxfnak99fq5s8br9zbqbfpyw1afi86ykkph4g5z";
};
sourceRoot = name;
buildInputs = [ makeWrapper ];
installPhase =
''
mkdir -p $out
cp -rfv * $out
rm -fv $out/bin/nexus.bat
'';
meta = with stdenv.lib; {
description = "Repository manager for binary software components";
homepage = http://www.sonatype.org/nexus;
license = licenses.epl10;
platforms = platforms.all;
maintainers = [ maintainers.aespinosa ];
};
}

View File

@ -7,7 +7,7 @@
assert stdenv.system != "armv5tel-linux"; assert stdenv.system != "armv5tel-linux";
let let
version = "4.3.0"; version = "4.3.1";
deps = { deps = {
inherit openssl zlib libuv; inherit openssl zlib libuv;
@ -31,7 +31,7 @@ in stdenv.mkDerivation {
src = fetchurl { src = fetchurl {
url = "http://nodejs.org/dist/v${version}/node-v${version}.tar.gz"; url = "http://nodejs.org/dist/v${version}/node-v${version}.tar.gz";
sha256 = "1f86jy71mi01g4xd411l5w8pi80nlk6sz7d2c0ghdk83v734ll0q"; sha256 = "0wzf5sirbph5kaik3pm9i2dxbjwqh5qlnqn71azrsv0vhs7dbqk1";
}; };
configureFlags = concatMap sharedConfigureFlags (builtins.attrNames deps) ++ [ "--without-dtrace" ]; configureFlags = concatMap sharedConfigureFlags (builtins.attrNames deps) ++ [ "--without-dtrace" ];

View File

@ -7,7 +7,7 @@
assert stdenv.system != "armv5tel-linux"; assert stdenv.system != "armv5tel-linux";
let let
version = "5.6.0"; version = "5.7.0";
deps = { deps = {
inherit openssl zlib libuv; inherit openssl zlib libuv;
@ -31,7 +31,7 @@ in stdenv.mkDerivation {
src = fetchurl { src = fetchurl {
url = "http://nodejs.org/dist/v${version}/node-v${version}.tar.gz"; url = "http://nodejs.org/dist/v${version}/node-v${version}.tar.gz";
sha256 = "0zy2pq2xpw170lycs0518jjldy1d5vm5y1pjb4zcibvhb5gcrwis"; sha256 = "1n6jvvf3jfmv7fjd64c5jajjapsmc8gr6rlw113vgys55xmb8f13";
}; };
configureFlags = concatMap sharedConfigureFlags (builtins.attrNames deps) ++ [ "--without-dtrace" ]; configureFlags = concatMap sharedConfigureFlags (builtins.attrNames deps) ++ [ "--without-dtrace" ];

View File

@ -6,6 +6,7 @@ let
else abort "Unknown platform for NetHack"; else abort "Unknown platform for NetHack";
unixHint = unixHint =
if stdenv.isLinux then "linux" if stdenv.isLinux then "linux"
else if stdenv.isDarwin then "macosx10.10"
# We probably want something different for Darwin # We probably want something different for Darwin
else "unix"; else "unix";
userDir = "~/.config/nethack"; userDir = "~/.config/nethack";
@ -24,25 +25,30 @@ in stdenv.mkDerivation {
makeFlags = [ "PREFIX=$(out)" ]; makeFlags = [ "PREFIX=$(out)" ];
configurePhase = '' patchPhase = ''
cd sys/${platform} sed -e '/^ *cd /d' -i sys/unix/nethack.sh
${lib.optionalString (platform == "unix") ''
sed -e '/^ *cd /d' -i nethack.sh
${lib.optionalString (unixHint == "linux") ''
sed \
-e 's,/bin/gzip,${gzip}/bin/gzip,g' \
-e 's,^WINTTYLIB=.*,WINTTYLIB=-lncurses,' \
-i hints/linux
''}
sh setup.sh hints/${unixHint}
''}
cd ../..
sed -e '/define CHDIR/d' -i include/config.h
sed \ sed \
-e 's/^YACC *=.*/YACC = bison -y/' \ -e 's/^YACC *=.*/YACC = bison -y/' \
-e 's/^LEX *=.*/LEX = flex/' \ -e 's/^LEX *=.*/LEX = flex/' \
-i util/Makefile -i sys/unix/Makefile.utl
sed \
-e 's,/bin/gzip,${gzip}/bin/gzip,g' \
-e 's,^WINTTYLIB=.*,WINTTYLIB=-lncurses,' \
-i sys/unix/hints/linux
sed \
-e 's,^CC=.*$,CC=cc,' \
-e 's,^HACKDIR=.*$,HACKDIR=\$(PREFIX)/games/lib/\$(GAME)dir,' \
-e 's,^SHELLDIR=.*$,SHELLDIR=\$(PREFIX)/games,' \
-i sys/unix/hints/macosx10.10
sed -e '/define CHDIR/d' -i include/config.h
'';
configurePhase = ''
cd sys/${platform}
${lib.optionalString (platform == "unix") ''
sh setup.sh hints/${unixHint}
''}
cd ../..
''; '';
postInstall = '' postInstall = ''
@ -61,7 +67,7 @@ in stdenv.mkDerivation {
chmod -R +w ${userDir} chmod -R +w ${userDir}
fi fi
RUNDIR=\$(mktemp -td nethack.\$USER.XXXXX) RUNDIR=\$(mktemp -d)
cleanup() { cleanup() {
rm -rf \$RUNDIR rm -rf \$RUNDIR

View File

@ -12,6 +12,13 @@ stdenv.mkDerivation rec {
sha256 = "1aa848cck8qrp67ha9vrkzm3k24r2aiv1v4dxla6pi22rw98yxzm"; sha256 = "1aa848cck8qrp67ha9vrkzm3k24r2aiv1v4dxla6pi22rw98yxzm";
}; };
# https://github.com/yvt/openspades/issues/354
postPatch = ''
substituteInPlace Sources/Client/Client_Input.cpp --replace "isnan(" "std::isnan("
substituteInPlace Sources/Client/Corpse.cpp --replace "isnan(" "std::isnan("
substituteInPlace Sources/Draw/SWMapRenderer.cpp --replace "isnan(" "std::isnan(" --replace "isinf(" "std::isinf("
'';
nativeBuildInputs = nativeBuildInputs =
with stdenv.lib; with stdenv.lib;
[ cmake curl glew makeWrapper mesa SDL2 SDL2_image unzip wget zlib ] [ cmake curl glew makeWrapper mesa SDL2 SDL2_image unzip wget zlib ]

View File

@ -2,13 +2,16 @@
let let
pname = "open-iscsi-2.0-873"; pname = "open-iscsi-2.0-873";
in stdenv.mkDerivation { in stdenv.mkDerivation {
name = "${pname}"; name = pname;
outputs = [ "out" "iscsistart" ]; outputs = [ "out" "iscsistart" ];
buildInputs = [ nukeReferences ]; buildInputs = [ nukeReferences ];
src = fetchurl { src = fetchurl {
url = "http://www.open-iscsi.org/bits/${pname}.tar.gz"; urls = [
"http://www.open-iscsi.org/bits/${pname}.tar.gz"
"http://pkgs.fedoraproject.org/repo/pkgs/iscsi-initiator-utils/${pname}.tar.gz/8b8316d7c9469149a6cc6234478347f7/${pname}.tar.gz"
];
sha256 = "1nbwmj48xzy45h52917jbvyqpsfg9zm49nm8941mc5x4gpwz5nbx"; sha256 = "1nbwmj48xzy45h52917jbvyqpsfg9zm49nm8941mc5x4gpwz5nbx";
}; };
@ -24,9 +27,10 @@ in stdenv.mkDerivation {
nuke-refs $iscsistart/bin/iscsistart nuke-refs $iscsistart/bin/iscsistart
''; '';
meta = { meta = with stdenv.lib; {
description = "A high performance, transport independent, multi-platform implementation of RFC3720"; description = "A high performance, transport independent, multi-platform implementation of RFC3720";
license = stdenv.lib.licenses.gpl2Plus; license = licenses.gpl2Plus;
homepage = http://www.open-iscsi.org; homepage = http://www.open-iscsi.org;
platforms = platforms.linux;
}; };
} }

View File

@ -11,6 +11,8 @@ stdenv.mkDerivation rec {
sha256 = "0zs07g7arrrvm85mqbkffyzgd255qawn64r6iqdws25lj1kq2qim"; sha256 = "0zs07g7arrrvm85mqbkffyzgd255qawn64r6iqdws25lj1kq2qim";
}; };
patches = [ ./glibc-2.23.patch ];
postPatch = stdenv.lib.optionalString stdenv.isDarwin '' postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
sed -i 's/raise.*No Xcode or CLT version detected.*/version = "7.0.0"/' external/v8_3.30.33.16/build/gyp/pylib/gyp/xcode_emulation.py sed -i 's/raise.*No Xcode or CLT version detected.*/version = "7.0.0"/' external/v8_3.30.33.16/build/gyp/pylib/gyp/xcode_emulation.py

View File

@ -0,0 +1,111 @@
From 84be09f314c4cbf88b4ac8fe9dbff1d36f0f5781 Mon Sep 17 00:00:00 2001
From: Daniel Mewes <daniel@rethinkdb.com>
Date: Fri, 5 Feb 2016 18:45:28 -0800
Subject: [PATCH] Alpinelinux compilation fixes
by @clandmeter
---
src/containers/buffer_group.hpp | 1 +
src/containers/printf_buffer.hpp | 1 +
src/errors.cc | 2 +-
src/rdb_protocol/geo/s2/util/math/exactfloat/exactfloat.cc | 4 ++--
src/rdb_protocol/geo/s2/util/math/mathlimits.h | 12 ++++++------
src/threading.hpp | 2 ++
6 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/src/containers/buffer_group.hpp b/src/containers/buffer_group.hpp
index 865c5cb..0403db6 100644
--- a/src/containers/buffer_group.hpp
+++ b/src/containers/buffer_group.hpp
@@ -3,6 +3,7 @@
#define CONTAINERS_BUFFER_GROUP_HPP_
#include <stdlib.h>
+#include <sys/types.h>
#include <unistd.h>
#include <vector>
diff --git a/src/containers/printf_buffer.hpp b/src/containers/printf_buffer.hpp
index b7a5154..76959f3 100644
--- a/src/containers/printf_buffer.hpp
+++ b/src/containers/printf_buffer.hpp
@@ -5,6 +5,7 @@
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
+#include <sys/types.h>
// Cannot include utils.hpp, we are included by utils.hpp.
#include "errors.hpp"
diff --git a/src/errors.cc b/src/errors.cc
index d40c04f..39efc9f 100644
--- a/src/errors.cc
+++ b/src/errors.cc
@@ -89,7 +89,7 @@ void report_fatal_error(const char *file, int line, const char *msg, ...) {
}
const char *errno_string_maybe_using_buffer(int errsv, char *buf, size_t buflen) {
-#ifdef _GNU_SOURCE
+#ifdef __GLIBC__
return strerror_r(errsv, buf, buflen);
#elif defined(_WIN32)
UNUSED errno_t res = strerror_s(buf, buflen, errsv);
diff --git a/src/rdb_protocol/geo/s2/util/math/exactfloat/exactfloat.cc b/src/rdb_protocol/geo/s2/util/math/exactfloat/exactfloat.cc
index 3b07392..aa1a1d3 100644
--- a/src/rdb_protocol/geo/s2/util/math/exactfloat/exactfloat.cc
+++ b/src/rdb_protocol/geo/s2/util/math/exactfloat/exactfloat.cc
@@ -110,9 +110,9 @@ static int BN_ext_count_low_zero_bits(const BIGNUM* bn) {
ExactFloat::ExactFloat(double v) {
BN_init(&bn_);
sign_ = signbit(v) ? -1 : 1;
- if (isnan(v)) {
+ if (std::isnan(v)) {
set_nan();
- } else if (isinf(v)) {
+ } else if (std::isinf(v)) {
set_inf(sign_);
} else {
// The following code is much simpler than messing about with bit masks,
diff --git a/src/rdb_protocol/geo/s2/util/math/mathlimits.h b/src/rdb_protocol/geo/s2/util/math/mathlimits.h
index 5148422..86af72d 100644
--- a/src/rdb_protocol/geo/s2/util/math/mathlimits.h
+++ b/src/rdb_protocol/geo/s2/util/math/mathlimits.h
@@ -14,7 +14,7 @@
#define UTIL_MATH_MATHLIMITS_H__
#include <string.h>
-#include <math.h>
+#include <cmath>
#include <cfloat>
#include "rdb_protocol/geo/s2/base/basictypes.h"
@@ -195,11 +195,11 @@ DECL_UNSIGNED_INT_LIMITS(unsigned long long int)
static bool IsNegInf(const Type x) { return _fpclass(x) == _FPCLASS_NINF; }
#else
#define DECL_FP_LIMIT_FUNCS \
- static bool IsFinite(const Type x) { return !isinf(x) && !isnan(x); } \
- static bool IsNaN(const Type x) { return isnan(x); } \
- static bool IsInf(const Type x) { return isinf(x); } \
- static bool IsPosInf(const Type x) { return isinf(x) && x > 0; } \
- static bool IsNegInf(const Type x) { return isinf(x) && x < 0; }
+ static bool IsFinite(const Type x) { return !std::isinf(x) && !std::isnan(x); } \
+ static bool IsNaN(const Type x) { return std::isnan(x); } \
+ static bool IsInf(const Type x) { return std::isinf(x); } \
+ static bool IsPosInf(const Type x) { return std::isinf(x) && x > 0; } \
+ static bool IsNegInf(const Type x) { return std::isinf(x) && x < 0; }
#endif
// We can't put floating-point constant values in the header here because
diff --git a/src/threading.hpp b/src/threading.hpp
index 14fc6a8..9bf033f 100644
--- a/src/threading.hpp
+++ b/src/threading.hpp
@@ -1,6 +1,8 @@
#ifndef THREADING_HPP_
#define THREADING_HPP_
+#include <sys/types.h>
+#include <unistd.h>
#include <functional>
#include <vector>

View File

@ -5,13 +5,13 @@
let let
plexpkg = if enablePlexPass then { plexpkg = if enablePlexPass then {
version = "0.9.15.5.1712"; version = "0.9.15.6.1714";
vsnHash = "ba5070a"; vsnHash = "7be11e1";
sha256 = "0nwcjlfbs8dacp6wzmga75hkx16ngyaqrmdhcx8vqvgwm8l31rxs"; sha256 = "1kyk41qnbm8w5bvnisp3d99cf0r72wvlggfi9h4np7sq4p8ksa0g";
} else { } else {
version = "0.9.15.3.1674"; version = "0.9.15.6.1714";
vsnHash = "f46e7e6"; vsnHash = "7be11e1";
sha256 = "086njnjcmknmbn90mmvf60ls7q73g2m955yk621jjdngs4ybvm19"; sha256 = "1kyk41qnbm8w5bvnisp3d99cf0r72wvlggfi9h4np7sq4p8ksa0g";
}; };
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {

View File

@ -5,7 +5,6 @@
, gnutls, libgcrypt, libgpgerror , gnutls, libgcrypt, libgpgerror
, ncurses, libunwind, libibverbs, librdmacm, systemd , ncurses, libunwind, libibverbs, librdmacm, systemd
, enableKerberos ? false
, enableInfiniband ? false , enableInfiniband ? false
, enableLDAP ? false , enableLDAP ? false
, enablePrinting ? false , enablePrinting ? false
@ -34,10 +33,9 @@ stdenv.mkDerivation rec {
buildInputs = buildInputs =
[ python pkgconfig perl libxslt docbook_xsl docbook_xml_dtd_42 /* [ python pkgconfig perl libxslt docbook_xsl docbook_xml_dtd_42 /*
docbook_xml_dtd_45 */ readline talloc ntdb tdb tevent ldb popt iniparser docbook_xml_dtd_45 */ readline talloc ntdb tdb tevent ldb popt iniparser
libbsd libarchive zlib acl fam libiconv gettext libunwind libbsd libarchive zlib acl fam libiconv gettext libunwind kerberos
] ]
++ optionals stdenv.isLinux [ libaio pam systemd ] ++ optionals stdenv.isLinux [ libaio pam systemd ]
++ optional enableKerberos kerberos
++ optionals (enableInfiniband && stdenv.isLinux) [ libibverbs librdmacm ] ++ optionals (enableInfiniband && stdenv.isLinux) [ libibverbs librdmacm ]
++ optional enableLDAP openldap ++ optional enableLDAP openldap
++ optional (enablePrinting && stdenv.isLinux) cups ++ optional (enablePrinting && stdenv.isLinux) cups
@ -58,23 +56,22 @@ stdenv.mkDerivation rec {
configureFlags = configureFlags =
[ "--with-static-modules=NONE" [ "--with-static-modules=NONE"
"--with-shared-modules=ALL" "--with-shared-modules=ALL"
"--with-system-mitkrb5"
"--enable-fhs" "--enable-fhs"
"--sysconfdir=/etc" "--sysconfdir=/etc"
"--localstatedir=/var" "--localstatedir=/var"
"--bundled-libraries=${if enableKerberos && kerberos != null && "--bundled-libraries=NONE"
kerberos.implementation == "heimdal" then "NONE" else "com_err"}"
"--private-libraries=NONE" "--private-libraries=NONE"
"--builtin-libraries=replace" "--builtin-libraries=NONE"
] ]
++ optional (enableKerberos && kerberos != null &&
kerberos.implementation == "krb5") "--with-system-mitkrb5"
++ optional (!enableDomainController) "--without-ad-dc" ++ optional (!enableDomainController) "--without-ad-dc"
++ optionals (!enableLDAP) [ "--without-ldap" "--without-ads" ]; ++ optionals (!enableLDAP) [ "--without-ldap" "--without-ads" ];
enableParallelBuilding = true; enableParallelBuilding = true;
stripAllList = [ "bin" "sbin" ]; # Some libraries don't have /lib/samba in RPATH but need it.
# Use find -type f -executable -exec echo {} \; -exec sh -c 'ldd {} | grep "not found"' \;
# Looks like a bug in installer scripts.
postFixup = '' postFixup = ''
export SAMBA_LIBS="$(find $out -type f -name \*.so -exec dirname {} \; | sort | uniq)" export SAMBA_LIBS="$(find $out -type f -name \*.so -exec dirname {} \; | sort | uniq)"
read -r -d "" SCRIPT << EOF || true read -r -d "" SCRIPT << EOF || true
@ -85,7 +82,7 @@ stdenv.mkDerivation rec {
patchelf --set-rpath "\$ALL_LIBS" "\$BIN" 2>/dev/null || exit $?; patchelf --set-rpath "\$ALL_LIBS" "\$BIN" 2>/dev/null || exit $?;
patchelf --shrink-rpath "\$BIN"; patchelf --shrink-rpath "\$BIN";
EOF EOF
find $out -type f -exec $SHELL -c "$SCRIPT" \; find $out -type f -name \*.so -exec $SHELL -c "$SCRIPT" \;
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, ncurses, nettools, python, which, groff, gettext, man_db, { stdenv, fetchurl, ncurses, nettools, python, which, groff, gettext, man_db,
bc, libiconv, coreutils, gnused, kbd }: bc, libiconv, coreutils, gnused, kbd, utillinux, glibc }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "fish-${version}"; name = "fish-${version}";
@ -22,8 +22,10 @@ stdenv.mkDerivation rec {
postInstall = '' postInstall = ''
sed -e "s|expr|${coreutils}/bin/expr|" \ sed -e "s|expr|${coreutils}/bin/expr|" \
'' + stdenv.lib.optionalString (!stdenv.isDarwin) ''
-e "s|if which unicode_start|if true|" \ -e "s|if which unicode_start|if true|" \
-e "s|unicode_start|${kbd}/bin/unicode_start|" \ -e "s|unicode_start|${kbd}/bin/unicode_start|" \
'' + ''
-i "$out/etc/fish/config.fish" -i "$out/etc/fish/config.fish"
sed -e "s|bc|${bc}/bin/bc|" \ sed -e "s|bc|${bc}/bin/bc|" \
-e "s|/usr/bin/seq|${coreutils}/bin/seq|" \ -e "s|/usr/bin/seq|${coreutils}/bin/seq|" \
@ -43,6 +45,13 @@ stdenv.mkDerivation rec {
"$out/share/fish/functions/prompt_pwd.fish" "$out/share/fish/functions/prompt_pwd.fish"
substituteInPlace "$out/share/fish/functions/fish_default_key_bindings.fish" \ substituteInPlace "$out/share/fish/functions/fish_default_key_bindings.fish" \
--replace "clear;" "${ncurses}/bin/clear;" --replace "clear;" "${ncurses}/bin/clear;"
'' + stdenv.lib.optionalString stdenv.isLinux ''
substituteInPlace "$out/share/fish/functions/__fish_print_help.fish" \
--replace "| ul" "| ${utillinux}/bin/ul"
for cur in $out/share/fish/functions/*.fish; do
substituteInPlace "$cur" --replace "/usr/bin/getent" "${glibc}/bin/getent"
done
'' + stdenv.lib.optionalString (!stdenv.isDarwin) '' '' + stdenv.lib.optionalString (!stdenv.isDarwin) ''
sed -i "s|(hostname\||(${nettools}/bin/hostname\||" "$out/share/fish/functions/fish_prompt.fish" sed -i "s|(hostname\||(${nettools}/bin/hostname\||" "$out/share/fish/functions/fish_prompt.fish"
sed -i "s|Popen(\['manpath'|Popen(\['${man_db}/bin/manpath'|" "$out/share/fish/tools/create_manpage_completions.py" sed -i "s|Popen(\['manpath'|Popen(\['${man_db}/bin/manpath'|" "$out/share/fish/tools/create_manpage_completions.py"

View File

@ -18,10 +18,9 @@ import ../generic rec {
nativePrefix = stdenv.lib.optionalString stdenv.isSunOS "/usr"; nativePrefix = stdenv.lib.optionalString stdenv.isSunOS "/usr";
nativeLibc = true; nativeLibc = true;
inherit stdenv; inherit stdenv;
binutils = pkgs.binutils; inherit (pkgs) binutils coreutils gnugrep;
cc = pkgs.gcc.cc; cc = pkgs.gcc.cc;
isGNU = true; isGNU = true;
coreutils = pkgs.coreutils;
shell = pkgs.bash + "/bin/sh"; shell = pkgs.bash + "/bin/sh";
}; };

View File

@ -1,22 +1,36 @@
{ stdenv, pythonPackages, fetchurl, dialog }: { stdenv, pythonPackages, fetchFromGitHub, dialog }:
pythonPackages.buildPythonApplication rec { pythonPackages.buildPythonApplication rec {
version = "0.1.0";
name = "letsencrypt-${version}"; name = "letsencrypt-${version}";
version = "0.4.0";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/letsencrypt/letsencrypt/archive/v${version}.tar.gz"; owner = "letsencrypt";
sha256 = "056y5bsmpc4ya5xxals4ypzsm927j6n5kwby3bjc03sy3sscf6hw"; repo = "letsencrypt";
rev = "v${version}";
sha256 = "0r2wis48w5nailzp2d5brkh2f40al6sbz816xx0akh3ll0rl1hbv";
}; };
propagatedBuildInputs = with pythonPackages; [ propagatedBuildInputs = with pythonPackages; [
zope_interface zope_component six requests2 pytz pyopenssl psutil mock acme ConfigArgParse
cryptography configobj pyRFC3339 python2-pythondialog parsedatetime ConfigArgParse acme
configobj
cryptography
parsedatetime
psutil
pyRFC3339
pyopenssl
python2-pythondialog
pytz
six
zope_component
zope_interface
]; ];
buildInputs = with pythonPackages; [ nose dialog ]; buildInputs = with pythonPackages; [ nose dialog ];
patchPhase = '' patchPhase = ''
substituteInPlace letsencrypt/notify.py --replace "/usr/sbin/sendmail" "/var/setuid-wrappers/sendmail" substituteInPlace letsencrypt/notify.py --replace "/usr/sbin/sendmail" "/var/setuid-wrappers/sendmail"
substituteInPlace letsencrypt/le_util.py --replace "sw_vers" "/usr/bin/sw_vers"
''; '';
postInstall = '' postInstall = ''

View File

@ -1,11 +1,11 @@
{ fetchurl, stdenv, perl, makeWrapper, procps }: { fetchurl, stdenv, perl, makeWrapper, procps }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "parallel-20160122"; name = "parallel-20160222";
src = fetchurl { src = fetchurl {
url = "mirror://gnu/parallel/${name}.tar.bz2"; url = "mirror://gnu/parallel/${name}.tar.bz2";
sha256 = "1xs8y8jh7wyjs27079xz0ja7xfi4dywz8d6hbkl44mafdnnfjfiy"; sha256 = "1sjmvinwr9j2a0jdk9y9nf2x4hhzcbl529slkwpz0vva0cwybywd";
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];

View File

@ -1,15 +1,15 @@
{ stdenv, fetchurl, zlib, bzip2, libiconv, libxml2, openssl, ncurses, curl { stdenv, fetchurl, zlib, bzip2, libiconv, libxml2, openssl, ncurses, curl
, libmilter }: , libmilter, pcre }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "clamav-${version}"; name = "clamav-${version}";
version = "0.98.7"; version = "0.99";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/clamav/clamav-${version}.tar.gz"; url = "mirror://sourceforge/clamav/clamav-${version}.tar.gz";
sha256 = "0wp2ad8km4cqmlndni5ljv7q3lfxm6y4r3giv0yf23bl0yvif918"; sha256 = "1abyg349yr31z764jcgx67q5v098jrkrj88bqkzmys6xza62qyfj";
}; };
buildInputs = [ zlib bzip2 libxml2 openssl ncurses curl libiconv libmilter ]; buildInputs = [ zlib bzip2 libxml2 openssl ncurses curl libiconv libmilter pcre ];
configureFlags = [ configureFlags = [
"--with-zlib=${zlib}" "--with-zlib=${zlib}"
@ -19,6 +19,7 @@ stdenv.mkDerivation rec {
"--with-openssl=${openssl}" "--with-openssl=${openssl}"
"--with-libncurses-prefix=${ncurses}" "--with-libncurses-prefix=${ncurses}"
"--with-libcurl=${curl}" "--with-libcurl=${curl}"
"--with-pcre=${pcre}"
"--enable-milter" "--enable-milter"
"--disable-clamav" "--disable-clamav"
]; ];

View File

@ -0,0 +1,26 @@
{ stdenv, callPackage, makeWrapper, nodejs, phantomjs2 }:
let
self = (
callPackage ../../../top-level/node-packages.nix {
generated = callPackage ./node-packages.nix { inherit self; };
overrides = {
"wring" = {
buildInputs = [ makeWrapper phantomjs2 ];
postInstall = ''
wrapProgram "$out/bin/wring" \
--prefix PATH : ${phantomjs2}/bin
'';
meta = with stdenv.lib; {
description = "Command-line tool for extracting content from webpages using CSS Selectors, XPath, and JS expressions";
homepage = https://github.com/osener/wring;
license = licenses.mit;
platforms = platforms.darwin ++ platforms.linux;
maintainers = [ maintainers.osener ];
};
};
};
});
in self.wring

View File

@ -0,0 +1 @@
[ "wring" ]

View File

@ -0,0 +1,24 @@
{ self, fetchurl, fetchgit ? null, lib }:
{
by-spec."wring"."*" =
self.by-version."wring"."1.0.0";
by-version."wring"."1.0.0" = self.buildNodePackage {
name = "wring-1.0.0";
version = "1.0.0";
bin = true;
src = fetchurl {
url = "http://registry.npmjs.org/wring/-/wring-1.0.0.tgz";
name = "wring-1.0.0.tgz";
sha1 = "3d8ebe894545bf0b42946fdc84c61e37ae657ce1";
};
deps = {
};
optionalDependencies = {
};
peerDependencies = [];
os = [ ];
cpu = [ ];
};
"wring" = self.by-version."wring"."1.0.0";
}

View File

@ -1,12 +1,12 @@
{ stdenv, fetchurl, pkgconfig, djvulibre, poppler, fontconfig, libjpeg }: { stdenv, fetchurl, pkgconfig, djvulibre, poppler, fontconfig, libjpeg }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "0.9.3"; version = "0.9.4";
name = "pdf2djvu-${version}"; name = "pdf2djvu-${version}";
src = fetchurl { src = fetchurl {
url = "https://bitbucket.org/jwilk/pdf2djvu/downloads/${name}.tar.xz"; url = "https://bitbucket.org/jwilk/pdf2djvu/downloads/${name}.tar.xz";
sha256 = "0xvh9kzfym5vsma9bhr1w1lla31qdqfaqc9q25vqpl921shvfpnh"; sha256 = "1a1gwr6yzbiximbpgg4rc69dq8g3jmxwcbcwqk0fhfbgzj1j4w65";
}; };
buildInputs = [ pkgconfig djvulibre poppler fontconfig libjpeg ]; buildInputs = [ pkgconfig djvulibre poppler fontconfig libjpeg ];

View File

@ -64,7 +64,7 @@ let
# { /* the config */ } and # { /* the config */ } and
# { pkgs, ... } : { /* the config */ } # { pkgs, ... } : { /* the config */ }
if builtins.isFunction configExpr if builtins.isFunction configExpr
then configExpr { pkgs = pkgsFinal; } then configExpr { inherit pkgs; }
else configExpr; else configExpr;
# Allow setting the platform in the config file. Otherwise, let's use a reasonable default (pc) # Allow setting the platform in the config file. Otherwise, let's use a reasonable default (pc)
@ -83,38 +83,51 @@ let
platform = if platform_ != null then platform_ platform = if platform_ != null then platform_
else config.platform or platformAuto; else config.platform or platformAuto;
# The complete set of packages, after applying the overrides # Helper functions that are exported through `pkgs'.
pkgsFinal = lib.fix' (lib.extends configOverrides (lib.extends stdenvOverrides pkgsFun)); helperFunctions =
stdenvAdapters //
(import ../build-support/trivial-builders.nix { inherit lib; inherit (pkgs) stdenv; inherit (pkgs.xorg) lndir; });
stdenvOverrides = stdenvAdapters =
# We don't want stdenv overrides in the case of cross-building, import ../stdenv/adapters.nix pkgs;
# or otherwise the basic overrided packages will not be built
# with the crossStdenv adapter.
if crossSystem == null
then self: super: lib.optionalAttrs (super.stdenv ? overrides) (super.stdenv.overrides super)
else self: super: {};
# Packages can be overriden globally via the `packageOverrides'
# Allow packages to be overriden globally via the `packageOverrides'
# configuration option, which must be a function that takes `pkgs' # configuration option, which must be a function that takes `pkgs'
# as an argument and returns a set of new or overriden packages. # as an argument and returns a set of new or overriden packages.
# The recommended usage follows this snippet: # The `packageOverrides' function is called with the *original*
# packageOverrides = super: let self = super.pkgs in ... # (un-overriden) set of packages, allowing packageOverrides
# `super' is the *original* (un-overriden) set of packages, # attributes to refer to the original attributes (e.g. "foo =
# while `self' refers to the final (overriden) set of packages. # ... pkgs.foo ...").
configOverrides = pkgs = applyGlobalOverrides (config.packageOverrides or (pkgs: {}));
if config ? packageOverrides && bootStdenv == null # don't apply config overrides in stdenv boot
then self: config.packageOverrides mkOverrides = pkgsOrig: overrides: overrides //
else self: super: {}; (lib.optionalAttrs (pkgsOrig.stdenv ? overrides && crossSystem == null) (pkgsOrig.stdenv.overrides pkgsOrig));
# Return the complete set of packages, after applying the overrides
# returned by the `overrider' function (see above). Warning: this
# function is very expensive!
applyGlobalOverrides = overrider:
let
# Call the overrider function. We don't want stdenv overrides
# in the case of cross-building, or otherwise the basic
# overrided packages will not be built with the crossStdenv
# adapter.
overrides = mkOverrides pkgsOrig (overrider pkgsOrig);
# The un-overriden packages, passed to `overrider'.
pkgsOrig = pkgsFun pkgs {};
# The overriden, final packages.
pkgs = pkgsFun pkgs overrides;
in pkgs;
# The package compositions. Yes, this isn't properly indented. # The package compositions. Yes, this isn't properly indented.
pkgsFun = pkgs: pkgsFun = pkgs: overrides:
let defaultScope = pkgs // pkgs.xorg; with helperFunctions;
helperFunctions = pkgs_.stdenvAdapters // pkgs_.trivial-builders; let defaultScope = pkgs // pkgs.xorg; self = self_ // overrides;
pkgsRet = helperFunctions // pkgs_; self_ = with self; helperFunctions // {
pkgs_ = with pkgs; {
# Helper functions that are exported through `pkgs'.
trivial-builders = import ../build-support/trivial-builders.nix { inherit lib; inherit stdenv; inherit (xorg) lndir; };
stdenvAdapters = import ../stdenv/adapters.nix pkgs;
# Make some arguments passed to all-packages.nix available # Make some arguments passed to all-packages.nix available
inherit system platform; inherit system platform;
@ -144,7 +157,11 @@ let
# #
# The result is `pkgs' where all the derivations depending on `foo' # The result is `pkgs' where all the derivations depending on `foo'
# will use the new version. # will use the new version.
overridePackages = f: lib.fix' (lib.extends f pkgs.__unfix__); overridePackages = f:
let
newpkgs = pkgsFun newpkgs overrides;
overrides = mkOverrides pkgs (f newpkgs pkgs);
in newpkgs;
# Override system. This is useful to build i686 packages on x86_64-linux. # Override system. This is useful to build i686 packages on x86_64-linux.
forceSystem = system: kernel: (import ./all-packages.nix) { forceSystem = system: kernel: (import ./all-packages.nix) {
@ -166,7 +183,7 @@ let
### Helper functions. ### Helper functions.
inherit lib config; inherit lib config stdenvAdapters;
inherit (lib) lowPrio hiPrio appendToName makeOverridable; inherit (lib) lowPrio hiPrio appendToName makeOverridable;
inherit (misc) versionedDerivation; inherit (misc) versionedDerivation;
@ -197,10 +214,7 @@ let
allPackages = args: import ./all-packages.nix ({ inherit config system; } // args); allPackages = args: import ./all-packages.nix ({ inherit config system; } // args);
}; };
# We use pkgs_ because accessing pkgs would lead to an infinite recursion in stdenvOverrides defaultStdenv = stdenvAdapters.useHardenFlags (allStdenvs.stdenv // { inherit platform; });
defaultStdenv = (import ../stdenv/adapters.nix pkgs_).useHardenFlags (
pkgs_.allStdenvs.stdenv // { inherit platform; }
);
stdenvCross = lowPrio (makeStdenvCross defaultStdenv crossSystem binutilsCross gccCrossStageFinal); stdenvCross = lowPrio (makeStdenvCross defaultStdenv crossSystem binutilsCross gccCrossStageFinal);
@ -220,7 +234,7 @@ let
}; };
} }
else else
pkgs_.defaultStdenv; defaultStdenv;
forceNativeDrv = drv : if crossSystem == null then drv else forceNativeDrv = drv : if crossSystem == null then drv else
(drv // { crossDrv = drv.nativeDrv; }); (drv // { crossDrv = drv.nativeDrv; });
@ -3766,6 +3780,8 @@ let
wml = callPackage ../development/web/wml { }; wml = callPackage ../development/web/wml { };
wring = callPackage ../tools/text/wring { };
wrk = callPackage ../tools/networking/wrk { }; wrk = callPackage ../tools/networking/wrk { };
wv = callPackage ../tools/misc/wv { }; wv = callPackage ../tools/misc/wv { };
@ -4907,6 +4923,8 @@ let
re2 = callPackage ../development/ocaml-modules/re2 { }; re2 = callPackage ../development/ocaml-modules/re2 { };
result = callPackage ../development/ocaml-modules/ocaml-result { };
sequence = callPackage ../development/ocaml-modules/sequence { }; sequence = callPackage ../development/ocaml-modules/sequence { };
tuntap = callPackage ../development/ocaml-modules/tuntap { }; tuntap = callPackage ../development/ocaml-modules/tuntap { };
@ -4986,6 +5004,8 @@ let
stringext = callPackage ../development/ocaml-modules/stringext { }; stringext = callPackage ../development/ocaml-modules/stringext { };
tsdl = callPackage ../development/ocaml-modules/tsdl { };
twt = callPackage ../development/ocaml-modules/twt { }; twt = callPackage ../development/ocaml-modules/twt { };
typerep = callPackage ../development/ocaml-modules/typerep { }; typerep = callPackage ../development/ocaml-modules/typerep { };
@ -5950,8 +5970,8 @@ let
gotty = goPackages.gotty.bin // { outputs = [ "bin" ]; }; gotty = goPackages.gotty.bin // { outputs = [ "bin" ]; };
gradleGen = callPackage ../development/tools/build-managers/gradle { }; gradleGen = callPackage ../development/tools/build-managers/gradle { };
gradle = gradleGen.gradleLatest; gradle = self.gradleGen.gradleLatest;
gradle25 = gradleGen.gradle25; gradle25 = self.gradleGen.gradle25;
gperf = callPackage ../development/tools/misc/gperf { }; gperf = callPackage ../development/tools/misc/gperf { };
@ -6058,6 +6078,8 @@ let
pythonPackages = python3Packages; pythonPackages = python3Packages;
}; };
nexus = callPackage ../development/tools/repository-managers/nexus { };
node_webkit = node_webkit_0_9; node_webkit = node_webkit_0_9;
nwjs_0_12 = callPackage ../development/tools/node-webkit/nw12.nix { nwjs_0_12 = callPackage ../development/tools/node-webkit/nw12.nix {
@ -9789,7 +9811,6 @@ let
samba4 = callPackage ../servers/samba/4.x.nix { samba4 = callPackage ../servers/samba/4.x.nix {
python = python2; python = python2;
kerberos = null; # Bundle kerberos because samba uses internal, non-stable functions
# enableLDAP # enableLDAP
}; };
@ -9809,7 +9830,6 @@ let
}); });
samba4Full = lowPrio (samba4.override { samba4Full = lowPrio (samba4.override {
enableKerberos = true;
enableInfiniband = true; enableInfiniband = true;
enableLDAP = true; enableLDAP = true;
enablePrinting = true; enablePrinting = true;
@ -11511,6 +11531,10 @@ let
cava = callPackage ../applications/audio/cava { }; cava = callPackage ../applications/audio/cava { };
cb2bib = callPackage ../applications/office/cb2bib {
inherit (xorg) libX11;
};
cbatticon = callPackage ../applications/misc/cbatticon { }; cbatticon = callPackage ../applications/misc/cbatticon { };
cbc = callPackage ../applications/science/math/cbc { }; cbc = callPackage ../applications/science/math/cbc { };
@ -11778,7 +11802,7 @@ let
AppKit Carbon Cocoa IOKit OSAKit Quartz QuartzCore WebKit AppKit Carbon Cocoa IOKit OSAKit Quartz QuartzCore WebKit
ImageCaptureCore GSS ImageIO; ImageCaptureCore GSS ImageIO;
}); });
emacs24Macport = emacs24Macport_24_5; emacs24Macport = self.emacs24Macport_24_5;
emacs25pre = lowPrio (callPackage ../applications/editors/emacs-25 { emacs25pre = lowPrio (callPackage ../applications/editors/emacs-25 {
# use override to enable additional features # use override to enable additional features
@ -13483,7 +13507,7 @@ let
copy-com = callPackage ../applications/networking/copy-com { }; copy-com = callPackage ../applications/networking/copy-com { };
dropbox = qt5.callPackage ../applications/networking/dropbox { }; dropbox = qt55.callPackage ../applications/networking/dropbox { };
dropbox-cli = callPackage ../applications/networking/dropbox-cli { }; dropbox-cli = callPackage ../applications/networking/dropbox-cli { };
@ -16148,13 +16172,12 @@ let
mg = callPackage ../applications/editors/mg { }; mg = callPackage ../applications/editors/mg { };
}; }; # self_ =
# end pkgs_ =
### Deprecated aliases - for backward compatibility ### Deprecated aliases - for backward compatibility
aliases = with pkgs; { aliases = with self; rec {
accounts-qt = qt5.accounts-qt; # added 2015-12-19 accounts-qt = qt5.accounts-qt; # added 2015-12-19
adobeReader = adobe-reader; adobeReader = adobe-reader;
aircrackng = aircrack-ng; # added 2016-01-14 aircrackng = aircrack-ng; # added 2016-01-14
@ -16243,7 +16266,4 @@ tweakAlias = _n: alias: with lib;
removeAttrs alias ["recurseForDerivations"] removeAttrs alias ["recurseForDerivations"]
else alias; else alias;
in lib.mapAttrs tweakAlias aliases // pkgsRet; in lib.mapAttrs tweakAlias aliases // self; in pkgs
# end pkgsFun
in pkgsFinal

View File

@ -8147,7 +8147,7 @@ let self = _self // overrides; _self = with self; {
name = "MooseX-Role-WithOverloading-0.17"; name = "MooseX-Role-WithOverloading-0.17";
src = fetchurl { src = fetchurl {
url = "mirror://cpan/authors/id/E/ET/ETHER/${name}.tar.gz"; url = "mirror://cpan/authors/id/E/ET/ETHER/${name}.tar.gz";
sha256 = "01mqpvbz7yw993918hgp72vl22i6mgicpq5b3zrrsp6vl8sqj2sw"; sha256 = "0rb8k0dp1a55bm2pr6r0vsi5msvjl1dslfidxp1gj80j7zbrbc4j";
}; };
buildInputs = [ TestCheckDeps TestNoWarnings ModuleMetadata]; buildInputs = [ TestCheckDeps TestNoWarnings ModuleMetadata];
propagatedBuildInputs = [ aliased Moose namespaceautoclean namespaceclean ]; propagatedBuildInputs = [ aliased Moose namespaceautoclean namespaceclean ];

View File

@ -260,7 +260,7 @@ in modules // {
buildInputs = with self; [ nose ]; buildInputs = with self; [ nose ];
sourceRoot = "letsencrypt-${version}/acme"; sourceRoot = "letsencrypt-v${version}-src/acme";
}; };
acme-tiny = buildPythonPackage rec { acme-tiny = buildPythonPackage rec {
@ -282,6 +282,7 @@ in modules // {
patchPhase = '' patchPhase = ''
substituteInPlace acme_tiny.py --replace "openssl" "${pkgs.openssl}/bin/openssl" substituteInPlace acme_tiny.py --replace "openssl" "${pkgs.openssl}/bin/openssl"
substituteInPlace letsencrypt/le_util.py --replace '"sw_vers"' '"/usr/bin/sw_vers"'
''; '';
installPhase = '' installPhase = ''
@ -299,7 +300,6 @@ in modules // {
}; };
}; };
actdiag = buildPythonPackage rec { actdiag = buildPythonPackage rec {
name = "actdiag-0.5.3"; name = "actdiag-0.5.3";
@ -8935,15 +8935,19 @@ in modules // {
}; };
wtforms = buildPythonPackage rec { wtforms = buildPythonPackage rec {
version = "2.0.2"; version = "2.1";
name = "wtforms-${version}"; name = "wtforms-${version}";
src = pkgs.fetchurl { src = pkgs.fetchurl {
url = "https://pypi.python.org/packages/source/W/WTForms/WTForms-${version}.zip"; url = "https://pypi.python.org/packages/source/W/WTForms/WTForms-${version}.zip";
md5 = "613cf723ab40537705bec02733c78d95"; sha256 = "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz";
}; };
propagatedBuildInputs = with self; [ ordereddict Babel ]; # Django tests are broken "django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet."
# This is fixed in master I believe but not yet in 2.1;
doCheck = false;
propagatedBuildInputs = with self; ([ Babel ] ++ (optionals isPy26 [ ordereddict ]));
meta = { meta = {
homepage = https://github.com/wtforms/wtforms; homepage = https://github.com/wtforms/wtforms;