Merge remote-tracking branch 'origin/master'

+1083 -147
+3 -3
doc/default.nix
··· 67 67 + '' 68 68 echo ${nixpkgsVersion} > .version 69 69 70 - xmllint --noout --nonet --xinclude --noxincludenode \ 71 - --relaxng ${docbook5}/xml/rng/docbook/docbook.rng \ 72 - manual.xml 70 + # validate against relaxng schema 71 + xmllint --nonet --xinclude --noxincludenode manual.xml --output manual-full.xml 72 + ${jing}/bin/jing ${docbook5}/xml/rng/docbook/docbook.rng manual-full.xml 73 73 74 74 dst=$out/share/doc/nixpkgs 75 75 mkdir -p $dst
+4 -2
nixos/lib/make-disk-image.nix
··· 23 23 postVM ? "" 24 24 25 25 , name ? "nixos-disk-image" 26 + 27 + , format ? "raw" 26 28 }: 27 29 28 30 with lib; ··· 32 34 { preVM = 33 35 '' 34 36 mkdir $out 35 - diskImage=$out/nixos.img 36 - ${pkgs.vmTools.qemu}/bin/qemu-img create -f raw $diskImage "${toString diskSize}M" 37 + diskImage=$out/nixos.${if format == "qcow2" then "qcow2" else "img"} 38 + ${pkgs.vmTools.qemu}/bin/qemu-img create -f ${format} $diskImage "${toString diskSize}M" 37 39 mv closure xchg/ 38 40 ''; 39 41 buildInputs = [ pkgs.utillinux pkgs.perl pkgs.e2fsprogs pkgs.parted ];
+3 -1
nixos/maintainers/scripts/ec2/amazon-image.nix
··· 10 10 ]; 11 11 12 12 system.build.amazonImage = import ../../../lib/make-disk-image.nix { 13 - inherit pkgs lib config; 13 + inherit lib config; 14 + pkgs = import ../../../.. { inherit (pkgs) system; }; # ensure we use the regular qemu-kvm package 14 15 partitioned = config.ec2.hvm; 15 16 diskSize = if config.ec2.hvm then 2048 else 8192; 17 + format = "qcow2"; 16 18 configFile = pkgs.writeText "configuration.nix" 17 19 '' 18 20 {
+2 -2
nixos/modules/installer/tools/nixos-rebuild.sh
··· 257 257 prebuiltNix() { 258 258 machine="$1" 259 259 if [ "$machine" = x86_64 ]; then 260 - return /nix/store/xryr9g56h8yjddp89d6dw12anyb4ch7c-nix-1.10 260 + echo /nix/store/xryr9g56h8yjddp89d6dw12anyb4ch7c-nix-1.10 261 261 elif [[ "$machine" =~ i.86 ]]; then 262 - return /nix/store/2w92k5wlpspf0q2k9mnf2z42prx3bwmv-nix-1.10 262 + echo /nix/store/2w92k5wlpspf0q2k9mnf2z42prx3bwmv-nix-1.10 263 263 else 264 264 echo "$0: unsupported platform" 265 265 exit 1
+3
nixos/modules/profiles/headless.nix
··· 20 20 21 21 # Don't allow emergency mode, because we don't have a console. 22 22 systemd.enableEmergencyMode = false; 23 + 24 + # Being headless, we don't need a GRUB splash image. 25 + boot.loader.grub.splashImage = null; 23 26 }
+2 -28
nixos/modules/virtualisation/amazon-grow-partition.nix
··· 4 4 5 5 { config, lib, pkgs, ... }: 6 6 7 - with lib; 8 - 9 - let 10 - 11 - growpart = pkgs.stdenv.mkDerivation { 12 - name = "growpart"; 13 - src = pkgs.fetchurl { 14 - url = "https://launchpad.net/cloud-utils/trunk/0.27/+download/cloud-utils-0.27.tar.gz"; 15 - sha256 = "16shlmg36lidp614km41y6qk3xccil02f5n3r4wf6d1zr5n4v8vd"; 16 - }; 17 - patches = [ ./growpart-util-linux-2.26.patch ]; 18 - buildPhase = '' 19 - cp bin/growpart $out 20 - sed -i 's|awk|gawk|' $out 21 - sed -i 's|sed|gnused|' $out 22 - ''; 23 - dontInstall = true; 24 - dontPatchShebangs = true; 25 - }; 26 - 27 - in 28 - 29 7 { 30 - 31 - config = mkIf config.ec2.hvm { 32 - 8 + config = lib.mkIf config.ec2.hvm { 33 9 boot.initrd.extraUtilsCommands = '' 34 10 copy_bin_and_libs ${pkgs.gawk}/bin/gawk 35 11 copy_bin_and_libs ${pkgs.gnused}/bin/sed 36 12 copy_bin_and_libs ${pkgs.utillinux}/sbin/sfdisk 37 - cp -v ${growpart} $out/bin/growpart 13 + cp -v ${pkgs.cloud-utils}/bin/growpart $out/bin/growpart 38 14 ln -s sed $out/bin/gnused 39 15 ''; 40 16 ··· 44 20 udevadm settle 45 21 fi 46 22 ''; 47 - 48 23 }; 49 - 50 24 }
+1 -2
nixos/modules/virtualisation/amazon-image.nix
··· 65 65 fi 66 66 67 67 if ! [ -e "$metaDir/user-data" ]; then 68 - wget -q -O "$metaDir/user-data" http://169.254.169.254/1.0/user-data 69 - chmod 600 "$metaDir/user-data" 68 + wget -q -O "$metaDir/user-data" http://169.254.169.254/1.0/user-data && chmod 600 "$metaDir/user-data" 70 69 fi 71 70 72 71 if ! [ -e "$metaDir/hostname" ]; then
nixos/modules/virtualisation/growpart-util-linux-2.26.patch pkgs/tools/misc/cloud-utils/growpart-util-linux-2.26.patch
+1
nixos/release.nix
··· 219 219 tests.ipv6 = callTest tests/ipv6.nix {}; 220 220 tests.jenkins = callTest tests/jenkins.nix {}; 221 221 tests.kde4 = callTest tests/kde4.nix {}; 222 + tests.keymap = callSubTests tests/keymap.nix {}; 222 223 tests.initrdNetwork = callTest tests/initrd-network.nix {}; 223 224 tests.kubernetes = hydraJob (import tests/kubernetes.nix { system = "x86_64-linux"; }); 224 225 tests.latestKernel.login = callTest tests/login.nix { latestKernel = true; };
+13 -6
nixos/tests/ec2.nix
··· 11 11 modules = [ 12 12 ../maintainers/scripts/ec2/amazon-image.nix 13 13 ../modules/testing/test-instrumentation.nix 14 - ../modules/profiles/minimal.nix 15 14 ../modules/profiles/qemu-guest.nix 16 15 { ec2.hvm = true; 17 16 ··· 21 20 ln -s vda /dev/xvda 22 21 ln -s vda1 /dev/xvda1 23 22 ''; 23 + 24 + # Needed by nixos-rebuild due to the lack of network 25 + # access. Mostly copied from 26 + # modules/profiles/installation-device.nix. 27 + system.extraDependencies = 28 + [ pkgs.stdenv pkgs.busybox pkgs.perlPackages.ArchiveCpio 29 + pkgs.unionfs-fuse pkgs.mkinitcpio-nfs-utils 30 + ]; 24 31 } 25 32 ]; 26 33 }).config.system.build.amazonImage; ··· 30 37 metaData = pkgs.stdenv.mkDerivation { 31 38 name = "metadata"; 32 39 buildCommand = '' 33 - mkdir -p $out/2011-01-01 34 - ln -s ${pkgs.writeText "userData" userData} $out/2011-01-01/user-data 35 40 mkdir -p $out/1.0/meta-data 41 + ln -s ${pkgs.writeText "userData" userData} $out/1.0/user-data 36 42 echo "${hostname}" > $out/1.0/meta-data/hostname 37 43 echo "(unknown)" > $out/1.0/meta-data/ami-manifest-path 38 44 '' + optionalString (sshPublicKey != null) '' ··· 48 54 my $imageDir = ($ENV{'TMPDIR'} // "/tmp") . "/vm-state-machine"; 49 55 mkdir $imageDir, 0700; 50 56 my $diskImage = "$imageDir/machine.qcow2"; 51 - system("qemu-img create -f qcow2 -o backing_file=${image}/nixos.img $diskImage") == 0 or die; 57 + system("qemu-img create -f qcow2 -o backing_file=${image}/nixos.qcow2 $diskImage") == 0 or die; 52 58 system("qemu-img resize $diskImage 10G") == 0 or die; 53 59 54 60 # Note: we use net=169.0.0.0/8 rather than ··· 91 97 ''; 92 98 script = '' 93 99 $machine->start; 94 - $machine->waitForFile("/root/user-data"); 100 + $machine->waitForFile("/etc/ec2-metadata/user-data"); 95 101 $machine->waitForUnit("sshd.service"); 96 102 97 103 $machine->succeed("grep unknown /etc/ec2-metadata/ami-manifest-path"); ··· 121 127 # Just to make sure resizing is idempotent. 122 128 $machine->shutdown; 123 129 $machine->start; 124 - $machine->waitForFile("/root/user-data"); 130 + $machine->waitForFile("/etc/ec2-metadata/user-data"); 125 131 ''; 126 132 }; 127 133 ··· 135 141 imports = [ 136 142 <nixpkgs/nixos/modules/virtualisation/amazon-image.nix> 137 143 <nixpkgs/nixos/modules/testing/test-instrumentation.nix> 144 + <nixpkgs/nixos/modules/profiles/qemu-guest.nix> 138 145 ]; 139 146 environment.etc.testFile = { 140 147 text = "whoa";
+160
nixos/tests/keymap.nix
··· 1 + { system ? builtins.currentSystem }: 2 + 3 + with import ../lib/testing.nix { inherit system; }; 4 + 5 + let 6 + testReader = pkgs.writeScript "test-input-reader" '' 7 + #!${pkgs.stdenv.shell} 8 + readInput() { 9 + touch /tmp/reader.ready 10 + echo "Waiting for '$1' to be typed" 11 + read -r -n1 c 12 + if [ "$c" = "$2" ]; then 13 + echo "SUCCESS: Got back '$c' as expected." 14 + echo 0 >&2 15 + else 16 + echo "FAIL: Expected '$2' but got '$c' instead." 17 + echo 1 >&2 18 + fi 19 + } 20 + 21 + main() { 22 + error=0 23 + while [ $# -gt 0 ]; do 24 + ret="$((readInput "$2" "$3" | systemd-cat -t "$1") 2>&1)" 25 + if [ $ret -ne 0 ]; then error=1; fi 26 + shift 3 27 + done 28 + return $error 29 + } 30 + 31 + main "$@"; echo -n $? > /tmp/reader.exit 32 + ''; 33 + 34 + mkReaderInput = testname: { qwerty, expect }: with pkgs.lib; let 35 + lq = length qwerty; 36 + le = length expect; 37 + msg = "`qwerty' (${lq}) and `expect' (${le}) lists" 38 + + " need to be of the same length!"; 39 + result = flatten (zipListsWith (a: b: [testname a b]) qwerty expect); 40 + in if lq != le then throw msg else result; 41 + 42 + mkKeyboardTest = layout: { extraConfig ? {}, tests }: with pkgs.lib; let 43 + readerInput = flatten (mapAttrsToList mkReaderInput tests); 44 + perlStr = val: "'${escape ["'" "\\"] val}'"; 45 + perlReaderInput = concatMapStringsSep ", " perlStr readerInput; 46 + in makeTest { 47 + name = "keymap-${layout}"; 48 + 49 + machine.i18n.consoleKeyMap = mkOverride 900 layout; 50 + machine.services.xserver.layout = mkOverride 900 layout; 51 + machine.imports = [ ./common/x11.nix extraConfig ]; 52 + 53 + testScript = '' 54 + sub waitCatAndDelete ($) { 55 + return $machine->succeed( 56 + "for i in \$(seq 600); do if [ -e '$_[0]' ]; then ". 57 + "cat '$_[0]' && rm -f '$_[0]' && exit 0; ". 58 + "fi; sleep 0.1; done; echo timed out after 60 seconds >&2; exit 1" 59 + ); 60 + }; 61 + 62 + sub mkTest ($$) { 63 + my ($desc, $cmd) = @_; 64 + 65 + my @testdata = (${perlReaderInput}); 66 + my $shellTestdata = join ' ', map { "'".s/'/'\\'''/gr."'" } @testdata; 67 + 68 + subtest $desc, sub { 69 + $machine->succeed("$cmd ${testReader} $shellTestdata &"); 70 + while (my ($testname, $qwerty, $expect) = splice(@testdata, 0, 3)) { 71 + waitCatAndDelete "/tmp/reader.ready"; 72 + $machine->sendKeys($qwerty); 73 + }; 74 + my $exitcode = waitCatAndDelete "/tmp/reader.exit"; 75 + die "tests for $desc failed" if $exitcode ne 0; 76 + }; 77 + } 78 + 79 + $machine->waitForX; 80 + 81 + mkTest "VT keymap", "openvt -sw --"; 82 + mkTest "Xorg keymap", "DISPLAY=:0 xterm -fullscreen -e"; 83 + ''; 84 + }; 85 + 86 + in pkgs.lib.mapAttrs mkKeyboardTest { 87 + azerty = { 88 + tests = { 89 + azqw.qwerty = [ "q" "w" ]; 90 + azqw.expect = [ "a" "z" ]; 91 + altgr.qwerty = [ "alt_r-2" "alt_r-3" "alt_r-4" "alt_r-5" "alt_r-6" ]; 92 + altgr.expect = [ "~" "#" "{" "[" "|" ]; 93 + }; 94 + 95 + extraConfig.i18n.consoleKeyMap = "azerty/fr"; 96 + extraConfig.services.xserver.layout = "fr"; 97 + }; 98 + 99 + colemak = { 100 + tests = { 101 + homerow.qwerty = [ "a" "s" "d" "f" "j" "k" "l" "semicolon" ]; 102 + homerow.expect = [ "a" "r" "s" "t" "n" "e" "i" "o" ]; 103 + }; 104 + 105 + extraConfig.i18n.consoleKeyMap = "en-latin9"; 106 + extraConfig.services.xserver.layout = "us"; 107 + extraConfig.services.xserver.xkbVariant = "colemak"; 108 + }; 109 + 110 + dvorak = { 111 + tests = { 112 + homerow.qwerty = [ "a" "s" "d" "f" "j" "k" "l" "semicolon" ]; 113 + homerow.expect = [ "a" "o" "e" "u" "h" "t" "n" "s" ]; 114 + symbols.qwerty = [ "q" "w" "e" "minus" "equal" ]; 115 + symbols.expect = [ "'" "," "." "[" "]" ]; 116 + }; 117 + }; 118 + 119 + dvp = { 120 + tests = { 121 + homerow.qwerty = [ "a" "s" "d" "f" "j" "k" "l" "semicolon" ]; 122 + homerow.expect = [ "a" "o" "e" "u" "h" "t" "n" "s" ]; 123 + numbers.qwerty = map (x: "shift-${x}") 124 + [ "1" "2" "3" "4" "5" "6" "7" "8" "9" "0" "minus" ]; 125 + numbers.expect = [ "%" "7" "5" "3" "1" "9" "0" "2" "4" "6" "8" ]; 126 + symbols.qwerty = [ "1" "2" "3" "4" "5" "6" "7" "8" "9" "0" "minus" ]; 127 + symbols.expect = [ "&" "[" "{" "}" "(" "=" "*" ")" "+" "]" "!" ]; 128 + }; 129 + 130 + extraConfig.services.xserver.layout = "us"; 131 + extraConfig.services.xserver.xkbVariant = "dvp"; 132 + }; 133 + 134 + neo = { 135 + tests = { 136 + layer1.qwerty = [ "f" "j" ]; 137 + layer1.expect = [ "e" "n" ]; 138 + layer2.qwerty = [ "shift-f" "shift-j" "shift-6" ]; 139 + layer2.expect = [ "E" "N" "$" ]; 140 + layer3.qwerty = [ "caps_lock-d" "caps_lock-f" ]; 141 + layer3.expect = [ "{" "}" ]; 142 + }; 143 + 144 + extraConfig.services.xserver.layout = "de"; 145 + extraConfig.services.xserver.xkbVariant = "neo"; 146 + }; 147 + 148 + qwertz = { 149 + tests = { 150 + zy.qwerty = [ "z" "y" ]; 151 + zy.expect = [ "y" "z" ]; 152 + altgr.qwerty = map (x: "alt_r-${x}") 153 + [ "q" "less" "7" "8" "9" "0" ]; 154 + altgr.expect = [ "@" "|" "{" "[" "]" "}" ]; 155 + }; 156 + 157 + extraConfig.i18n.consoleKeyMap = "de"; 158 + extraConfig.services.xserver.layout = "de"; 159 + }; 160 + }
+12
pkgs/applications/editors/idea/default.nix
··· 195 195 }; 196 196 }; 197 197 198 + idea15-ultimate = buildIdea rec { 199 + name = "idea-ultimate-${version}"; 200 + version = "15.0.5"; 201 + build = "IU-143.2332.3"; 202 + description = "Integrated Development Environment (IDE) by Jetbrains, requires paid license"; 203 + license = stdenv.lib.licenses.unfree; 204 + src = fetchurl { 205 + url = "https://download.jetbrains.com/idea/ideaIU-${version}.tar.gz"; 206 + sha256 = "1hvc5cmbfpp0qad0236ffh3g7zwfk64rh5bkkb750h3387jz7nr2"; 207 + }; 208 + }; 209 + 198 210 idea-ultimate = buildIdea rec { 199 211 name = "idea-ultimate-${version}"; 200 212 version = "2016.1";
+11 -7
pkgs/applications/misc/cbatticon/default.nix
··· 1 - { stdenv, fetchzip, gtk, libnotify, unzip, glib, pkgconfig }: 1 + { stdenv, fetchFromGitHub, pkgconfig, gettext, glib, gtk3, libnotify }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 5 5 name = "cbatticon-${version}"; 6 - version = "1.4.2"; 6 + version = "1.6.4"; 7 7 8 - src = fetchzip { 9 - url = "https://github.com/valr/cbatticon/archive/${version}.zip"; 10 - sha256 = "0ixkxvlrn84b8nh75c9s2gvxnycis89mf047iz8j38814979di5l"; 8 + src = fetchFromGitHub { 9 + owner = "valr"; 10 + repo = "cbatticon"; 11 + rev = version; 12 + sha256 = "0m3bj408mbini97kq0cdf048lnfkdn7bd8ikbfijd7dwfdzv27i5"; 11 13 }; 12 14 13 15 makeFlags = "PREFIX=$(out)"; 14 16 15 - buildInputs = [ gtk libnotify unzip glib pkgconfig ]; 17 + nativeBuildInputs = [ pkgconfig gettext ]; 18 + 19 + buildInputs = [ glib gtk3 libnotify ]; 16 20 17 21 meta = with stdenv.lib; { 18 - description = "A lightweight and fast battery icon that sits in your system tray"; 22 + description = "Lightweight and fast battery icon that sits in the system tray"; 19 23 homepage = https://github.com/valr/cbatticon; 20 24 license = licenses.gpl2; 21 25 maintainers = [ maintainers.iElectric ];
+2 -2
pkgs/applications/misc/librecad/default.nix
··· 1 1 { stdenv, fetchurl, qt4, muparser, which, boost, pkgconfig }: 2 2 3 3 stdenv.mkDerivation rec { 4 - version = "2.0.8"; 4 + version = "2.0.9"; 5 5 name = "librecad-${version}"; 6 6 7 7 src = fetchurl { 8 8 url = "https://github.com/LibreCAD/LibreCAD/tarball/${version}"; 9 9 name = name + ".tar.gz"; 10 - sha256 = "110vn1rvzidg8k6ifz1zws2wsn4cd05xl5ha0hbff2ln7izy84zc"; 10 + sha256 = "0npr2nxwmx1qil7lqhkh6yvkw7dwym0nfashxjglxspjallqjya7"; 11 11 }; 12 12 13 13 patchPhase = ''
+16 -8
pkgs/applications/networking/browsers/chromium/common.nix
··· 5 5 , libevent, expat, libjpeg, snappy 6 6 , libpng, libxml2, libxslt, libcap 7 7 , xdg_utils, yasm, minizip, libwebp 8 - , libusb1, libexif, pciutils, nss 8 + , libusb1, pciutils, nss 9 9 10 10 , python, pythonPackages, perl, pkgconfig 11 11 , nspr, udev, kerberos ··· 17 17 18 18 # optional dependencies 19 19 , libgcrypt ? null # gnomeSupport || cupsSupport 20 + , libexif ? null # only needed for Chromium before version 51 20 21 21 22 # package customization 22 23 , enableSELinux ? false, libselinux ? null ··· 55 56 use_system_flac = true; 56 57 use_system_libevent = true; 57 58 use_system_libexpat = true; 58 - use_system_libexif = true; 59 59 use_system_libjpeg = true; 60 - use_system_libpng = true; 60 + use_system_libpng = versionOlder upstream-info.version "51.0.0.0"; 61 61 use_system_libwebp = true; 62 62 use_system_libxml = true; 63 63 use_system_opus = true; ··· 86 86 libevent expat libjpeg snappy 87 87 libpng libxml2 libxslt libcap 88 88 xdg_utils yasm minizip libwebp 89 - libusb1 libexif 89 + libusb1 90 90 ]; 91 91 92 92 # build paths and release info ··· 123 123 ++ optionals gnomeSupport [ gnome.GConf libgcrypt ] 124 124 ++ optional enableSELinux libselinux 125 125 ++ optionals cupsSupport [ libgcrypt cups ] 126 - ++ optional pulseSupport libpulseaudio; 126 + ++ optional pulseSupport libpulseaudio 127 + ++ optional (versionOlder version "51.0.0.0") libexif; 127 128 128 129 patches = [ 129 130 ./patches/build_fixes_46.patch ··· 140 141 -e "/python_arch/s/: *'[^']*'/: '""'/" \ 141 142 build/common.gypi chrome/chrome_tests.gypi 142 143 143 - sed -i -e '/module_path *=.*libexif.so/ { 144 - s|= [^;]*|= base::FilePath().AppendASCII("${libexif}/lib/libexif.so")| 145 - }' chrome/utility/media_galleries/image_metadata_extractor.cc 144 + ${optionalString (versionOlder version "51.0.0.0") '' 145 + sed -i -e '/module_path *=.*libexif.so/ { 146 + s|= [^;]*|= base::FilePath().AppendASCII("${libexif}/lib/libexif.so")| 147 + }' chrome/utility/media_galleries/image_metadata_extractor.cc 148 + ''} 146 149 147 150 sed -i -e '/lib_loader.*Load/s!"\(libudev\.so\)!"${udev}/lib/\1!' \ 148 151 device/udev_linux/udev?_loader.cc 149 152 150 153 sed -i -e '/libpci_loader.*Load/s!"\(libpci\.so\)!"${pciutils}/lib/\1!' \ 151 154 gpu/config/gpu_info_collector_linux.cc 155 + '' + optionalString (!versionOlder version "51.0.0.0") '' 156 + sed -i -re 's/([^:])\<(isnan *\()/\1std::\2/g' \ 157 + chrome/browser/ui/webui/engagement/site_engagement_ui.cc 152 158 ''; 153 159 154 160 gypFlags = mkGypFlags (gypFlagsUseSystemLibs // { ··· 180 186 google_default_client_id = "404761575300.apps.googleusercontent.com"; 181 187 google_default_client_secret = "9rIFQjfnkykEmqb6FfjJQD1D"; 182 188 189 + } // optionalAttrs (versionOlder version "51.0.0.0") { 190 + use_system_libexif = true; 183 191 } // optionalAttrs proprietaryCodecs { 184 192 # enable support for the H.264 codec 185 193 proprietary_codecs = true;
+9 -9
pkgs/applications/networking/browsers/chromium/upstream-info.nix
··· 1 1 # This file is autogenerated from update.sh in the same directory. 2 2 { 3 3 beta = { 4 - sha256 = "1lgpjnjhy3idha5b6wp31kdk6knic96dmajyrgn1701q3mq81g1i"; 5 - sha256bin64 = "1yb3rk38zfgjzka0aim1xc4r0qaz2qkwaq06mjifpkszmfffhyd0"; 6 - version = "50.0.2661.26"; 4 + sha256 = "1jwk0x5hjpah0bl4dpirxwyfxv0d0wnkvfgyja91kkbh8471gzmk"; 5 + sha256bin64 = "10sl3ddd77i1gl3l4yvhkpavfq2bygv7gwql0jnhchmrvyax1cjh"; 6 + version = "50.0.2661.49"; 7 7 }; 8 8 dev = { 9 - sha256 = "0z9m1mv6pv43y3ccd0nzqg5f9q8qxc8mlmy9y3dc9kqpvmqggnvp"; 10 - sha256bin64 = "0khsxci970vclfg24b7m8w1jqfkv5rzswgwa62b4r7jzrglx1azj"; 11 - version = "50.0.2661.18"; 9 + sha256 = "042h6klyijnhkb4m9lsnfi3qss6pbs4p4981rm4cbc86rsyppkhl"; 10 + sha256bin64 = "1p6lhd3n9q93fkydxksgfv68vz26yj8i2zx1kqby2z9yc0pdcniq"; 11 + version = "51.0.2693.2"; 12 12 }; 13 13 stable = { 14 - sha256 = "0kbph3l964bh7cb9yf8nydjaxa20yf8ls5a2vzsj8phz7n20z3f9"; 15 - sha256bin64 = "1k6nhccdqzzzicwi07nldqfsdlic65i2xfyb7dbasbbg9zl3s9yw"; 16 - version = "49.0.2623.87"; 14 + sha256 = "1lmv6nmbqhxmr4340s5i4ypgz2b7vkh0wy5x9v75b5bnscjhk121"; 15 + sha256bin64 = "1djd2i9phym1d8afv4vfajb7l1bz0ny2wmihwi6jaz712vil4a13"; 16 + version = "49.0.2623.110"; 17 17 }; 18 18 }
+164
pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix
··· 1 + { stdenv, lib, fetchFromGitHub, fetchgit, qtbase, qtimageformats 2 + , breakpad, ffmpeg, openalSoft, openssl, zlib, libexif, lzma, libopus 3 + , gtk2, glib, cairo, pango, gdk_pixbuf, atk, libappindicator-gtk2 4 + , libunity, dee, libdbusmenu-glib, libva 5 + 6 + , pkgconfig, libxcb, xcbutilwm, xcbutilimage, xcbutilkeysyms 7 + , libxkbcommon, libpng, libjpeg, freetype, harfbuzz, pcre16 8 + , xproto, libX11, inputproto, sqlite, dbus 9 + }: 10 + 11 + let 12 + system-x86_64 = lib.elem stdenv.system lib.platforms.x86_64; 13 + in stdenv.mkDerivation rec { 14 + name = "telegram-desktop-${version}"; 15 + version = "0.9.33"; 16 + qtVersion = lib.replaceStrings ["."] ["_"] qtbase.version; 17 + 18 + src = fetchFromGitHub { 19 + owner = "telegramdesktop"; 20 + repo = "tdesktop"; 21 + rev = "v${version}"; 22 + sha256 = "020vwm7h22951v9zh457d82qy5ifp746vwishkvb16h1vwr1qx4s"; 23 + }; 24 + 25 + tgaur = fetchgit { 26 + url = "https://aur.archlinux.org/telegram-desktop.git"; 27 + rev = "df47a864282959b103a08b65844e9088e012fdb3"; 28 + sha256 = "1v1dbi8yiaf2hgghniykm5qbnda456xj3zfjnbqysn41f5cn40h4"; 29 + }; 30 + 31 + buildInputs = [ 32 + breakpad ffmpeg openalSoft openssl zlib libexif lzma libopus 33 + gtk2 glib libappindicator-gtk2 libunity cairo pango gdk_pixbuf atk 34 + dee libdbusmenu-glib libva 35 + # Qt dependencies 36 + libxcb xcbutilwm xcbutilimage xcbutilkeysyms libxkbcommon 37 + libpng libjpeg freetype harfbuzz pcre16 xproto libX11 38 + inputproto sqlite dbus 39 + ]; 40 + 41 + nativeBuildInputs = [ pkgconfig ]; 42 + 43 + enableParallelBuilding = true; 44 + 45 + qmakeFlags = [ 46 + "CONFIG+=release" 47 + "DEFINES+=TDESKTOP_DISABLE_AUTOUPDATE" 48 + "DEFINES+=TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME" 49 + "INCLUDEPATH+=${gtk2}/include/gtk-2.0" 50 + "INCLUDEPATH+=${glib}/include/glib-2.0" 51 + "INCLUDEPATH+=${glib}/lib/glib-2.0/include" 52 + "INCLUDEPATH+=${cairo}/include/cairo" 53 + "INCLUDEPATH+=${pango}/include/pango-1.0" 54 + "INCLUDEPATH+=${gtk2}/lib/gtk-2.0/include" 55 + "INCLUDEPATH+=${gdk_pixbuf}/include/gdk-pixbuf-2.0" 56 + "INCLUDEPATH+=${atk}/include/atk-1.0" 57 + "INCLUDEPATH+=${libappindicator-gtk2}/include/libappindicator-0.1" 58 + "INCLUDEPATH+=${libunity}/include/unity" 59 + "INCLUDEPATH+=${dee}/include/dee-1.0" 60 + "INCLUDEPATH+=${libdbusmenu-glib}/include/libdbusmenu-glib-0.4" 61 + "INCLUDEPATH+=${breakpad}/include/breakpad" 62 + "LIBS+=-lcrypto" 63 + "LIBS+=-lssl" 64 + "LIBS+=-lz" 65 + "LIBS+=-lgobject-2.0" 66 + "LIBS+=-lxkbcommon" 67 + "LIBS+=-lX11" 68 + "LIBS+=${breakpad}/lib/libbreakpad_client.a" 69 + "LIBS+=./../../../Libraries/QtStatic/qtbase/plugins/platforms/libqxcb.a" 70 + "LIBS+=./../../../Libraries/QtStatic/qtimageformats/plugins/imageformats/libqwebp.a" 71 + ]; 72 + 73 + qtSrcs = qtbase.srcs ++ [ qtimageformats.src ]; 74 + qtPatches = qtbase.patches; 75 + 76 + buildCommand = '' 77 + # We don't use nativeBuildInputs to avoid adding system Qt 5 libraries to various paths. 78 + export PATH="${qtbase}/bin:$PATH" 79 + 80 + unpackPhase 81 + cd "$sourceRoot" 82 + patchPhase 83 + sed -i 'Telegram/Telegram.pro' \ 84 + -e 's/CUSTOM_API_ID//g' \ 85 + -e 's,/usr,/does-not-exist,g' \ 86 + -e '/LIBS += .*libxkbcommon.a/d' \ 87 + -e '/LIBS += .*libz.a/d' \ 88 + -e '/LIBS += .*libbreakpad_client.a/d' \ 89 + -e 's,-flto ,,g' 90 + echo "Q_IMPORT_PLUGIN(QXcbIntegrationPlugin)" >> Telegram/SourceFiles/stdafx.cpp 91 + 92 + ( mkdir -p ../Libraries 93 + cd ../Libraries 94 + for i in $qtSrcs; do 95 + tar -xaf $i 96 + done 97 + mv qt-everywhere-opensource-src-* QtStatic 98 + mv qtbase-opensource-src-* ./QtStatic/qtbase 99 + mv qtimageformats-opensource-src-* ./QtStatic/qtimageformats 100 + cd QtStatic/qtbase 101 + patch -p1 < ../../../$sourceRoot/Telegram/_qtbase_${qtVersion}_patch.diff 102 + cd .. 103 + for i in $qtPatches; do 104 + patch -p1 < $i 105 + done 106 + ${qtbase.postPatch} 107 + 108 + export configureFlags="-prefix "../../qt" -release -opensource -confirm-license -system-zlib \ 109 + -system-libpng -system-libjpeg -system-freetype -system-harfbuzz -system-pcre -system-xcb \ 110 + -system-xkbcommon-x11 -no-opengl -static -nomake examples -nomake tests \ 111 + -openssl-linked -dbus-linked -system-sqlite -verbose \ 112 + ${lib.optionalString (!system-x86_64) "-no-sse2"} -no-sse3 -no-ssse3 \ 113 + -no-sse4.1 -no-sse4.2 -no-avx -no-avx2 -no-mips_dsp -no-mips_dspr2" 114 + export dontAddPrefix=1 115 + export buildFlags="module-qtbase module-qtimageformats" 116 + export installFlags="module-qtbase-install_subtargets module-qtimageformats-install_subtargets" 117 + 118 + ( export MAKEFLAGS=-j$NIX_BUILD_CORES 119 + configurePhase 120 + ) 121 + buildPhase 122 + installPhase 123 + ) 124 + 125 + ( mkdir -p Linux/DebugIntermediateStyle 126 + cd Linux/DebugIntermediateStyle 127 + qmake CONFIG+=debug ../../Telegram/MetaStyle.pro 128 + buildPhase 129 + ) 130 + ( mkdir -p Linux/DebugIntermediateLang 131 + cd Linux/DebugIntermediateLang 132 + qmake CONFIG+=debug ../../Telegram/MetaLang.pro 133 + buildPhase 134 + ) 135 + 136 + ( mkdir -p Linux/ReleaseIntermediate 137 + cd Linux/ReleaseIntermediate 138 + qmake $qmakeFlags ../../Telegram/Telegram.pro 139 + pattern="^PRE_TARGETDEPS +=" 140 + grep "$pattern" "../../Telegram/Telegram.pro" | sed "s/$pattern//g" | xargs make 141 + 142 + qmake $qmakeFlags ../../Telegram/Telegram.pro 143 + buildPhase 144 + ) 145 + 146 + install -Dm755 Linux/Release/Telegram $out/bin/telegram-desktop 147 + mkdir -p $out/share/applications $out/share/kde4/services 148 + sed "s,/usr/bin,$out/bin,g" $tgaur/telegramdesktop.desktop > $out/share/applications/telegramdesktop.desktop 149 + sed "s,/usr/bin,$out/bin,g" $tgaur/tg.protocol > $out/share/kde4/services/tg.protocol 150 + for icon_size in 16 32 48 64 128 256 512; do 151 + install -Dm644 "Telegram/SourceFiles/art/icon''${icon_size}.png" "$out/share/icons/hicolor/''${icon_size}x''${icon_size}/apps/telegram-desktop.png" 152 + done 153 + 154 + fixupPhase 155 + ''; 156 + 157 + meta = with stdenv.lib; { 158 + description = "Telegram Desktop messaging app"; 159 + license = licenses.gpl3; 160 + platforms = platforms.linux; 161 + homepage = "https://desktop.telegram.org/"; 162 + maintainers = with maintainers; [ abbradar ]; 163 + }; 164 + }
+2 -2
pkgs/applications/networking/mailreaders/thunderbird/default.nix
··· 13 13 enableOfficialBranding ? false 14 14 }: 15 15 16 - let version = "38.7.0"; in 16 + let version = "38.7.1"; in 17 17 let verName = "${version}"; in 18 18 19 19 stdenv.mkDerivation rec { ··· 21 21 22 22 src = fetchurl { 23 23 url = "http://archive.mozilla.org/pub/thunderbird/releases/${verName}/source/thunderbird-${verName}.source.tar.bz2"; 24 - sha256 = "1wbkj8a0p62mcbxlq8yyzrx51xi65qm8f2ccqiv5pb6qd51b5d0v"; 24 + sha256 = "0a4kbmas0a6wavp8dxkva0fl1y1qrx6b7l3xdjdan7qx7ysmm626"; 25 25 }; 26 26 27 27 buildInputs = # from firefox30Pkgs.xulrunner, but without gstreamer and libvpx
+2 -2
pkgs/applications/networking/remote/x2goclient/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "x2goclient-${version}"; 5 - version = "4.0.5.0"; 5 + version = "4.0.5.1"; 6 6 7 7 src = fetchurl { 8 8 url = "http://code.x2go.org/releases/source/x2goclient/${name}.tar.gz"; 9 - sha256 = "18a2pszh0nq2ir64a1ah1mlzddn4qcd12b339bv30n0y1ir92bi4"; 9 + sha256 = "04gdccqywas029a76k3r9zhr2mfn385i9r06cmi8mznxpczrhkl4"; 10 10 }; 11 11 12 12 buildInputs = [ cups libssh libXpm nxproxy openldap qt4 ];
+6 -1
pkgs/applications/science/logic/cvc4/default.nix
··· 10 10 }; 11 11 12 12 buildInputs = [ gmp libantlr3c boost autoreconfHook ]; 13 - preConfigure = "patchShebangs ./src/"; 13 + preConfigure = '' 14 + patchShebangs ./src/ 15 + OLD_CPPFLAGS="$CPPFLAGS" 16 + export CPPFLAGS="$CPPFLAGS -P" 17 + ''; 18 + postConfigure = ''CPPFLAGS="$OLD_CPPFLAGS"''; 14 19 doChecks = true; 15 20 16 21 meta = with stdenv.lib; {
+10
pkgs/applications/science/machine-learning/torch/default.nix
··· 1 + { callPackage, fetchgit, lua } : 2 + let 3 + src = fetchgit { 4 + url = "https://github.com/grwlf/torch-distro"; 5 + rev = "f972c4253b14b95b53aefe7b24efa496223e73f2"; 6 + sha256 = "1lhjhivhyypaic33vj1nsghshsajf7vi6gwsclaf3nqdl27d1h1s"; 7 + }; 8 + 9 + in 10 + callPackage (import ./torch-distro.nix) { inherit lua src; }
+329
pkgs/applications/science/machine-learning/torch/torch-distro.nix
··· 1 + { luarocks, lib , stdenv, writeText , readline, makeWrapper, 2 + less, ncurses, cmake, openblas, coreutils, fetchgit, libuuid, czmq, openssl, 3 + gnuplot, fetchurl, lua, src, libjpeg, libpng 4 + } : 5 + 6 + let 7 + 8 + common_meta = { 9 + homepage = http://torch.ch; 10 + license = stdenv.lib.licenses.bsd3; 11 + maintainers = with stdenv.lib.maintainers; [ smironov ]; 12 + platforms = stdenv.lib.platforms.gnu; 13 + }; 14 + 15 + distro_src = src; 16 + 17 + default_luarocks = luarocks; 18 + 19 + pkgs_gnuplot = gnuplot; 20 + 21 + luapkgs = rec { 22 + 23 + luarocks = default_luarocks.override { 24 + inherit lua; 25 + }; 26 + 27 + buildLuaRocks = { rockspec ? "", luadeps ? [] , buildInputs ? [] 28 + , preBuild ? "" , postInstall ? "" 29 + , runtimeDeps ? [] , ... }@args : 30 + let 31 + 32 + luadeps_ = 33 + luadeps ++ 34 + (lib.concatMap (d : if d ? luadeps then d.luadeps else []) luadeps); 35 + 36 + runtimeDeps_ = 37 + runtimeDeps ++ 38 + (lib.concatMap (d : if d ? runtimeDeps then d.runtimeDeps else []) luadeps) ++ 39 + [ lua coreutils ]; 40 + 41 + mkcfg = '' 42 + export LUAROCKS_CONFIG=config.lua 43 + cat >config.lua <<EOF 44 + rocks_trees = { 45 + { name = [[system]], root = [[${luarocks}]] } 46 + ${lib.concatImapStrings (i : dep : ", { name = [[dep${toString i}]], root = [[${dep}]] }") luadeps_} 47 + }; 48 + 49 + variables = { 50 + LUA_BINDIR = "$out/bin"; 51 + LUA_INCDIR = "$out/include"; 52 + LUA_LIBDIR = "$out/lib/lua/${lua.luaversion}"; 53 + }; 54 + EOF 55 + ''; 56 + 57 + in 58 + stdenv.mkDerivation (args // { 59 + 60 + inherit preBuild postInstall; 61 + 62 + inherit luadeps runtimeDeps; 63 + 64 + phases = [ "unpackPhase" "patchPhase" "buildPhase"]; 65 + 66 + buildInputs = runtimeDeps ++ buildInputs ++ [ makeWrapper lua ]; 67 + 68 + buildPhase = '' 69 + eval "$preBuild" 70 + ${mkcfg} 71 + eval "`${luarocks}/bin/luarocks --deps-mode=all --tree=$out path`" 72 + ${luarocks}/bin/luarocks make --deps-mode=all --tree=$out ${rockspec} 73 + 74 + for p in $out/bin/*; do 75 + wrapProgram $p \ 76 + --suffix LD_LIBRARY_PATH ';' "${lib.makeSearchPath "lib" runtimeDeps_}" \ 77 + --suffix PATH ';' "${lib.makeSearchPath "bin" runtimeDeps_}" \ 78 + --suffix LUA_PATH ';' "\"$LUA_PATH\"" \ 79 + --suffix LUA_PATH ';' "\"$out/share/lua/${lua.luaversion}/?.lua;$out/share/lua/${lua.luaversion}/?/init.lua\"" \ 80 + --suffix LUA_CPATH ';' "\"$LUA_CPATH\"" \ 81 + --suffix LUA_CPATH ';' "\"$out/lib/lua/${lua.luaversion}/?.so;$out/lib/lua/${lua.luaversion}/?/init.so\"" 82 + done 83 + 84 + eval "$postInstall" 85 + ''; 86 + }); 87 + 88 + # FIXME: doesn't installs lua-files for some reason 89 + # lua-cjson = buildLuaPackage { 90 + # name = "lua-cjson"; 91 + # src = ./extra/lua-cjson; 92 + # rockspec = "lua-cjson-2.1devel-1.rockspec"; 93 + # }; 94 + 95 + lua-cjson = stdenv.mkDerivation rec { 96 + name = "lua-cjson"; 97 + src = "${distro_src}/extra/lua-cjson"; 98 + 99 + preConfigure = '' 100 + makeFlags="PREFIX=$out LUA_LIBRARY=$out/lib/lua" 101 + ''; 102 + 103 + buildInputs = [lua]; 104 + 105 + installPhase = '' 106 + make install-extra $makeFlags 107 + ''; 108 + }; 109 + 110 + luafilesystem = buildLuaRocks { 111 + name = "filesystem"; 112 + src = "${distro_src}/extra/luafilesystem"; 113 + luadeps = [lua-cjson]; 114 + rockspec = "rockspecs/luafilesystem-1.6.3-1.rockspec"; 115 + }; 116 + 117 + penlight = buildLuaRocks { 118 + name = "penlight"; 119 + src = "${distro_src}/extra/penlight"; 120 + luadeps = [luafilesystem]; 121 + }; 122 + 123 + luaffifb = buildLuaRocks { 124 + name = "luaffifb"; 125 + src = "${distro_src}/extra/luaffifb"; 126 + }; 127 + 128 + sundown = buildLuaRocks rec { 129 + name = "sundown"; 130 + src = "${distro_src}/pkg/sundown"; 131 + rockspec = "rocks/${name}-scm-1.rockspec"; 132 + }; 133 + 134 + cwrap = buildLuaRocks rec { 135 + name = "cwrap"; 136 + src = "${distro_src}/pkg/cwrap"; 137 + rockspec = "rocks/${name}-scm-1.rockspec"; 138 + }; 139 + 140 + paths = buildLuaRocks rec { 141 + name = "paths"; 142 + src = "${distro_src}/pkg/paths"; 143 + buildInputs = [cmake]; 144 + rockspec = "rocks/${name}-scm-1.rockspec"; 145 + }; 146 + 147 + torch = buildLuaRocks rec { 148 + name = "torch"; 149 + src = "${distro_src}/pkg/torch"; 150 + luadeps = [ paths cwrap ]; 151 + buildInputs = [ cmake ]; 152 + rockspec = "rocks/torch-scm-1.rockspec"; 153 + preBuild = '' 154 + substituteInPlace ${rockspec} \ 155 + --replace '"sys >= 1.0"' ' ' 156 + export LUA_PATH="$src/?.lua;$LUA_PATH" 157 + ''; 158 + meta = common_meta // { 159 + description = "Torch is a machine-learning library"; 160 + longDescription = '' 161 + Torch is the main package in [Torch7](http://torch.ch) where data 162 + structures for multi-dimensional tensors and mathematical operations 163 + over these are defined. Additionally, it provides many utilities for 164 + accessing files, serializing objects of arbitrary types and other 165 + useful utilities. 166 + ''; 167 + }; 168 + }; 169 + 170 + dok = buildLuaRocks rec { 171 + name = "dok"; 172 + src = "${distro_src}/pkg/dok"; 173 + luadeps = [sundown]; 174 + rockspec = "rocks/${name}-scm-1.rockspec"; 175 + }; 176 + 177 + sys = buildLuaRocks rec { 178 + name = "sys"; 179 + luadeps = [torch]; 180 + buildInputs = [readline cmake]; 181 + src = "${distro_src}/pkg/sys"; 182 + rockspec = "sys-1.1-0.rockspec"; 183 + preBuild = '' 184 + export Torch_DIR=${torch}/share/cmake/torch 185 + ''; 186 + }; 187 + 188 + xlua = buildLuaRocks rec { 189 + name = "xlua"; 190 + luadeps = [torch sys]; 191 + src = "${distro_src}/pkg/xlua"; 192 + rockspec = "xlua-1.0-0.rockspec"; 193 + }; 194 + 195 + nn = buildLuaRocks rec { 196 + name = "nn"; 197 + luadeps = [torch luaffifb]; 198 + buildInputs = [cmake]; 199 + src = "${distro_src}/extra/nn"; 200 + rockspec = "rocks/nn-scm-1.rockspec"; 201 + preBuild = '' 202 + export Torch_DIR=${torch}/share/cmake/torch 203 + ''; 204 + }; 205 + 206 + graph = buildLuaRocks rec { 207 + name = "graph"; 208 + luadeps = [ torch ]; 209 + buildInputs = [cmake]; 210 + src = "${distro_src}/extra/graph"; 211 + rockspec = "rocks/graph-scm-1.rockspec"; 212 + preBuild = '' 213 + export Torch_DIR=${torch}/share/cmake/torch 214 + ''; 215 + }; 216 + 217 + nngraph = buildLuaRocks rec { 218 + name = "nngraph"; 219 + luadeps = [ torch nn graph ]; 220 + buildInputs = [cmake]; 221 + src = "${distro_src}/extra/nngraph"; 222 + preBuild = '' 223 + export Torch_DIR=${torch}/share/cmake/torch 224 + ''; 225 + }; 226 + 227 + image = buildLuaRocks rec { 228 + name = "image"; 229 + luadeps = [ torch dok sys xlua ]; 230 + buildInputs = [cmake libjpeg libpng]; 231 + src = "${distro_src}/pkg/image"; 232 + rockspec = "image-1.1.alpha-0.rockspec"; 233 + preBuild = '' 234 + export Torch_DIR=${torch}/share/cmake/torch 235 + ''; 236 + }; 237 + 238 + optim = buildLuaRocks rec { 239 + name = "optim"; 240 + luadeps = [ torch ]; 241 + buildInputs = [cmake]; 242 + src = "${distro_src}/pkg/optim"; 243 + rockspec = "optim-1.0.5-0.rockspec"; 244 + preBuild = '' 245 + export Torch_DIR=${torch}/share/cmake/torch 246 + ''; 247 + }; 248 + 249 + gnuplot = buildLuaRocks rec { 250 + name = "gnuplot"; 251 + luadeps = [ torch paths ]; 252 + runtimeDeps = [ pkgs_gnuplot less ]; 253 + src = "${distro_src}/pkg/gnuplot"; 254 + rockspec = "rocks/gnuplot-scm-1.rockspec"; 255 + }; 256 + 257 + unsup = buildLuaRocks rec { 258 + name = "unsup"; 259 + luadeps = [ torch xlua optim ]; 260 + buildInputs = [ cmake ]; 261 + src = fetchgit { 262 + url = "https://github.com/koraykv/unsup"; 263 + rev = "1d4632e716dc3c82feecc7dd4b22549df442859f"; 264 + sha256 = "0npjq3y1cfmk026sdijcw3f766innrmb3qggnxsz62grczhfvgls"; 265 + }; 266 + rockspec = "unsup-0.1-0.rockspec"; 267 + preBuild = '' 268 + export Torch_DIR=${torch}/share/cmake/torch 269 + ''; 270 + }; 271 + 272 + trepl = buildLuaRocks rec { 273 + name = "trepl"; 274 + luadeps = [torch gnuplot paths penlight graph nn nngraph image gnuplot optim sys dok unsup]; 275 + runtimeDeps = [ ncurses readline ]; 276 + src = "${distro_src}/exe/trepl"; 277 + meta = common_meta // { 278 + description = "A pure Lua REPL for Lua(JIT), with heavy support for Torch types."; 279 + }; 280 + }; 281 + 282 + lbase64 = buildLuaRocks rec { 283 + name = "lbase64"; 284 + src = fetchgit { 285 + url = "https://github.com/LuaDist2/lbase64"; 286 + rev = "1e9e4f1e0bf589a0ed39f58acc185ec5e213d207"; 287 + sha256 = "1i1fpy9v6r4w3lrmz7bmf5ppq65925rv90gx39b3pykfmn0hcb9c"; 288 + }; 289 + }; 290 + 291 + luuid = stdenv.mkDerivation rec { 292 + name = "luuid"; 293 + src = fetchgit { 294 + url = "https://github.com/LuaDist/luuid"; 295 + sha256 = "062gdf1rild11jg46vry93hcbb36b4527pf1dy7q9fv89f7m2nav"; 296 + }; 297 + 298 + preConfigure = '' 299 + cmakeFlags="-DLUA_LIBRARY=${lua}/lib/lua/${lua.luaversion} -DINSTALL_CMOD=$out/lib/lua/${lua.luaversion} -DINSTALL_MOD=$out/lib/lua/${lua.luaversion}" 300 + ''; 301 + 302 + buildInputs = [cmake libuuid lua]; 303 + meta = { 304 + # FIXME: set the exact revision for src 305 + broken = true; 306 + }; 307 + }; 308 + 309 + # Doesn't work due to missing deps (according to luarocs). 310 + itorch = buildLuaRocks rec { 311 + name = "itorch"; 312 + luadeps = [torch gnuplot paths penlight graph nn nngraph image gnuplot 313 + optim sys dok lbase64 lua-cjson luuid]; 314 + buildInputs = [czmq openssl]; 315 + src = "${distro_src}/extra/iTorch"; 316 + meta = { 317 + # FIXME: figure out whats wrong with deps 318 + broken = true; 319 + }; 320 + }; 321 + 322 + 323 + }; 324 + 325 + in 326 + 327 + luapkgs 328 + 329 +
+1 -1
pkgs/applications/version-management/git-and-tools/default.nix
··· 8 8 gitBase = lib.makeOverridable (import ./git) { 9 9 inherit fetchurl stdenv curl openssl zlib expat perl python gettext gnugrep 10 10 asciidoc xmlto docbook2x docbook_xsl docbook_xml_dtd_45 libxslt cpio tcl 11 - tk makeWrapper subversionClient gzip libiconv; 11 + tk makeWrapper subversionClient gzip openssh libiconv; 12 12 texinfo = texinfo5; 13 13 svnSupport = false; # for git-svn support 14 14 guiSupport = false; # requires tcl/tk
+2 -2
pkgs/applications/version-management/git-and-tools/git-cola/default.nix
··· 2 2 3 3 pythonPackages.buildPythonApplication rec { 4 4 name = "git-cola-${version}"; 5 - version = "2.2.1"; 5 + version = "2.5"; 6 6 7 7 src = fetchurl { 8 8 url = "https://github.com/git-cola/git-cola/archive/v${version}.tar.gz"; 9 - sha256 = "1v1s9gx16xihdcck4qp92bdci8zc6pb5a3z3y8k9jqj97hfkw2nz"; 9 + sha256 = "0ybjmlwm1plnvqi20y91ci7sgldzwlwn86vyyn9a157h7lf4ngb8"; 10 10 }; 11 11 12 12 buildInputs = [ makeWrapper gettext ];
+10 -1
pkgs/applications/version-management/git-and-tools/git/default.nix
··· 1 - { fetchurl, stdenv, curl, openssl, zlib, expat, perl, python, gettext, cpio, gnugrep, gzip 1 + { fetchurl, stdenv, curl, openssl, zlib, expat, perl, python, gettext, cpio 2 + , gnugrep, gzip, openssh 2 3 , asciidoc, texinfo, xmlto, docbook2x, docbook_xsl, docbook_xml_dtd_45 3 4 , libxslt, tcl, tk, makeWrapper, libiconv 4 5 , svnSupport, subversionClient, perlLibs, smtpPerlLibs ··· 27 28 ./docbook2texi.patch 28 29 ./symlinks-in-bin.patch 29 30 ./git-sh-i18n.patch 31 + ./ssh-path.patch 30 32 ]; 33 + 34 + postPatch = '' 35 + for x in connect.c git-gui/lib/remote_add.tcl ; do 36 + substituteInPlace "$x" \ 37 + --subst-var-by ssh "${openssh}/bin/ssh" 38 + done 39 + ''; 31 40 32 41 buildInputs = [curl openssl zlib expat gettext cpio makeWrapper libiconv] 33 42 ++ stdenv.lib.optionals withManual [ asciidoc texinfo xmlto docbook2x
+26
pkgs/applications/version-management/git-and-tools/git/ssh-path.patch
··· 1 + diff --git a/connect.c b/connect.c 2 + index fd7ffe1..20cd992 100644 3 + --- a/connect.c 4 + +++ b/connect.c 5 + @@ -768,7 +768,7 @@ struct child_process *git_connect(int fd[2], const char *url, 6 + 7 + ssh = getenv("GIT_SSH"); 8 + if (!ssh) 9 + - ssh = "ssh"; 10 + + ssh = "@ssh@"; 11 + 12 + ssh_dup = xstrdup(ssh); 13 + base = basename(ssh_dup); 14 + diff --git a/git-gui/lib/remote_add.tcl b/git-gui/lib/remote_add.tcl 15 + index 50029d0..17b9594 100644 16 + --- a/git-gui/lib/remote_add.tcl 17 + +++ b/git-gui/lib/remote_add.tcl 18 + @@ -139,7 +139,7 @@ method _add {} { 19 + # Parse the location 20 + if { [regexp {(?:git\+)?ssh://([^/]+)(/.+)} $location xx host path] 21 + || [regexp {([^:][^:]+):(.+)} $location xx host path]} { 22 + - set ssh ssh 23 + + set ssh @ssh@ 24 + if {[info exists env(GIT_SSH)]} { 25 + set ssh $env(GIT_SSH) 26 + }
+2 -2
pkgs/applications/virtualization/qemu/default.nix
··· 15 15 16 16 with stdenv.lib; 17 17 let 18 - version = "2.5.0"; 18 + version = "2.5.1"; 19 19 audio = optionalString (hasSuffix "linux" stdenv.system) "alsa," 20 20 + optionalString pulseSupport "pa," 21 21 + optionalString sdlSupport "sdl,"; ··· 26 26 27 27 src = fetchurl { 28 28 url = "http://wiki.qemu.org/download/qemu-${version}.tar.bz2"; 29 - sha256 = "1m3j6xl7msrniidkvr5pw9d44yba5m7hm42xz8xy77v105s8hhrl"; 29 + sha256 = "0b2xa8604absdmzpcyjs7fix19y5blqmgflnwjzsp1mp7g1m51q2"; 30 30 }; 31 31 32 32 buildInputs =
+3 -2
pkgs/build-support/vm/default.nix
··· 66 66 mknod -m 666 ${dev}/random c 1 8 67 67 mknod -m 666 ${dev}/urandom c 1 9 68 68 mknod -m 666 ${dev}/tty c 5 0 69 + mknod -m 666 ${dev}/ttyS0 c 4 64 69 70 mknod ${dev}/rtc c 254 0 70 71 . /sys/class/block/${hd}/uevent 71 72 mknod ${dev}/${hd} b $MAJOR $MINOR ··· 208 209 export PATH=/bin:/usr/bin:${coreutils}/bin 209 210 echo "Starting interactive shell..." 210 211 echo "(To run the original builder: \$origBuilder \$origArgs)" 211 - exec ${bash}/bin/sh 212 + exec ${busybox}/bin/setsid ${bashInteractive}/bin/bash < /dev/ttyS0 &> /dev/ttyS0 212 213 fi 213 214 ''; 214 215 ··· 219 220 -nographic -no-reboot \ 220 221 -virtfs local,path=/nix/store,security_model=none,mount_tag=store \ 221 222 -virtfs local,path=$TMPDIR/xchg,security_model=none,mount_tag=xchg \ 222 - -drive file=$diskImage,if=virtio,cache=writeback,werror=report \ 223 + -drive file=$diskImage,if=virtio,cache=unsafe,werror=report \ 223 224 -kernel ${kernel}/${img} \ 224 225 -initrd ${initrd}/initrd \ 225 226 -append "console=ttyS0 panic=1 command=${stage2Init} out=$out mountDisk=$mountDisk loglevel=4" \
+3 -3
pkgs/data/misc/tzdata/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "tzdata-${version}"; 5 - version = "2016b"; 5 + version = "2016c"; 6 6 7 7 srcs = 8 8 [ (fetchurl { 9 9 url = "http://www.iana.org/time-zones/repository/releases/tzdata${version}.tar.gz"; 10 - sha256 = "6392091d92556a32de488ea06a055c51bc46b7d8046c8a677f0ccfe286b3dbdc"; 10 + sha256 = "0j1dk830rkr1pijfac5wkdifi47k28mmvfys6z07l07jws0xj047"; 11 11 }) 12 12 (fetchurl { 13 13 url = "http://www.iana.org/time-zones/repository/releases/tzcode${version}.tar.gz"; 14 - sha256 = "e935c4fe78b5c5da3791f58f3ab7f07fb059a7c71d6b62b69ef345211ae5dfa7"; 14 + sha256 = "05m4ql1x3b4bmlg0vv1ibz2128mkk4xxnixagcmwlnwkhva1njrl"; 15 15 }) 16 16 ]; 17 17
+1 -1
pkgs/development/compilers/hhvm/default.nix
··· 26 26 gmp libyaml libedit libvpx imagemagick fribidi gperf 27 27 ]; 28 28 29 - enableParallelBuilding = true; 29 + enableParallelBuilding = false; # occasional build problems; 30 30 dontUseCmakeBuildDir = true; 31 31 NIX_LDFLAGS = "-lpam -L${pam}/lib"; 32 32 MYSQL_INCLUDE_DIR="${mariadb}/include/mysql";
+1
pkgs/development/compilers/ios-cross-compile/9.2.nix
··· 58 58 description = 59 59 "Provides an iOS cross compiler from 7.1 up to iOS-${version} and ldid"; 60 60 platforms = stdenv.lib.platforms.linux; 61 + hydraPlatforms = []; 61 62 maintainers = with stdenv.lib.maintainers; [ fxfactorial ]; 62 63 license = stdenv.lib.licenses.gpl2; 63 64 };
+11 -5
pkgs/development/compilers/tinycc/default.nix
··· 1 - { stdenv, fetchurl, perl, texinfo }: 1 + { stdenv, fetchurl, fetchgit, perl, texinfo }: 2 2 3 3 assert stdenv ? glibc; 4 4 5 5 stdenv.mkDerivation rec { 6 - name = "tcc-0.9.26"; 6 + #name = "tcc-0.9.26"; 7 + name = "tcc-git-0.9.27pre-20160328"; 7 8 8 - src = fetchurl { 9 - url = "mirror://savannah/tinycc/${name}.tar.bz2"; 10 - sha256 = "0wbdbdq6090ayw8bxnbikiv989kykff3m5rzbia05hrnwhd707jj"; 9 + #src = fetchurl { 10 + # url = "mirror://savannah/tinycc/${name}.tar.bz2"; 11 + # sha256 = "0wbdbdq6090ayw8bxnbikiv989kykff3m5rzbia05hrnwhd707jj"; 12 + #}; 13 + src = fetchgit { 14 + url = "git://repo.or.cz/tinycc.git"; 15 + rev = "80343ab7d829c21c65f8f9a14dd20158d028549f"; 16 + sha256 = "1bz75aj93ivb2d8hfk2bczsrwa56lv7vprvdi8c1r5phjvawbshy"; 11 17 }; 12 18 13 19 nativeBuildInputs = [ perl texinfo ];
+9 -4
pkgs/development/interpreters/luajit/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "luajit-${version}"; 5 - version = "2.0.4"; 5 + version = "2.1.0-beta1"; 6 + luaversion = "5.1"; 6 7 7 8 src = fetchurl { 8 9 url = "http://luajit.org/download/LuaJIT-${version}.tar.gz"; 9 - sha256 = "0zc0y7p6nx1c0pp4nhgbdgjljpfxsb5kgwp4ysz22l1p2bms83v2"; 10 + sha256 = "06170d38387c59d1292001a166e7f5524f5c5deafa8705a49a46fa42905668dd"; 10 11 }; 11 12 12 13 enableParallelBuilding = true; ··· 24 25 25 26 configurePhase = false; 26 27 buildFlags = [ "amalg" ]; # Build highly optimized version 27 - installPhase = "make install PREFIX=$out"; 28 + installPhase = '' 29 + make install INSTALL_INC=$out/include PREFIX=$out 30 + ln -s $out/bin/luajit* $out/bin/lua 31 + ln -s $out/bin/luajit* $out/bin/luajit 32 + ''; 28 33 29 34 meta = with stdenv.lib; { 30 35 description = "high-performance JIT compiler for Lua 5.1"; 31 36 homepage = http://luajit.org; 32 37 license = licenses.mit; 33 38 platforms = platforms.linux ++ platforms.darwin; 34 - maintainers = [ maintainers.thoughtpolice ]; 39 + maintainers = with maintainers ; [ thoughtpolice smironov ]; 35 40 }; 36 41 }
+24
pkgs/development/libraries/breakpad/default.nix
··· 1 + { stdenv, fetchgit }: 2 + 3 + stdenv.mkDerivation { 4 + name = "breakpad-2016-03-28"; 5 + 6 + src = fetchgit { 7 + url = "https://chromium.googlesource.com/breakpad/breakpad"; 8 + rev = "512cac3a1b69721ab727f3079f4d29e4580467b1"; 9 + sha256 = "0v7k7racdl2f16mbi3r0vkbkagh0gf6ksnpf3ri28b9pjfngkl5s"; 10 + }; 11 + 12 + breakpad_lss = fetchgit { 13 + url = "https://chromium.googlesource.com/linux-syscall-support"; 14 + rev = "08056836f2b4a5747daff75435d10d649bed22f6"; 15 + sha256 = "1ryshs2nyxwa0kn3rlbnd5b3fhna9vqm560yviddcfgdm2jyg0hz"; 16 + }; 17 + 18 + enableParallelBuilding = true; 19 + 20 + prePatch = '' 21 + cp -r $breakpad_lss src/third_party/lss 22 + chmod +w -R src/third_party/lss 23 + ''; 24 + }
+25
pkgs/development/libraries/dee/default.nix
··· 1 + { stdenv, fetchurl, python, pkgconfig 2 + , glib, icu, gobjectIntrospection }: 3 + 4 + stdenv.mkDerivation rec { 5 + name = "dee-${version}"; 6 + version = "1.2.7"; 7 + 8 + src = fetchurl { 9 + url = "https://launchpad.net/dee/1.0/${version}/+download/${name}.tar.gz"; 10 + sha256 = "12mzffk0lyd566y46x57jlvb9af152b4dqpasr40zal4wrn37w0v"; 11 + }; 12 + 13 + buildInputs = [ glib gobjectIntrospection icu ]; 14 + nativeBuildInputs = [ python pkgconfig ]; 15 + 16 + enableParallelBuilding = true; 17 + 18 + meta = with stdenv.lib; { 19 + description = "A library that uses DBus to provide objects allowing you to create Model-View-Controller type programs across DBus"; 20 + homepage = "https://launchpad.net/dee"; 21 + license = licenses.lgpl3; 22 + platforms = platforms.linux; 23 + maintainers = with maintainers; [ abbradar ]; 24 + }; 25 + }
+1
pkgs/development/libraries/glib/default.nix
··· 100 100 substituteInPlace gio/tests/desktop-files/home/applications/epiphany-weather-for-toronto-island-9c6a4e022b17686306243dada811d550d25eb1fb.desktop --replace "Exec=/bin/true" "Exec=${coreutils}/bin/true" 101 101 # Needs machine-id, comment the test 102 102 sed -e '/\/gdbus\/codegen-peer-to-peer/ s/^\/*/\/\//' -i gio/tests/gdbus-peer.c 103 + sed -e '/g_test_add_func/ s/^\/*/\/\//' -i gio/tests/gdbus-unix-addresses.c 103 104 # All gschemas fail to pass the test, upstream bug? 104 105 sed -e '/g_test_add_data_func/ s/^\/*/\/\//' -i gio/tests/gschema-compile.c 105 106 # Cannot reproduce the failing test_associations on hydra
+27
pkgs/development/libraries/libgee/0.6.nix
··· 1 + { stdenv, fetchurl, pkgconfig, glib }: 2 + 3 + let 4 + ver_maj = "0.6"; 5 + ver_min = "8"; 6 + in 7 + stdenv.mkDerivation rec { 8 + name = "libgee-${ver_maj}.${ver_min}"; 9 + 10 + src = fetchurl { 11 + url = "https://download.gnome.org/sources/libgee/${ver_maj}/${name}.tar.xz"; 12 + sha256 = "1lzmxgz1bcs14ghfp8qqzarhn7s64ayx8c508ihizm3kc5wqs7x6"; 13 + }; 14 + 15 + buildInputs = [ glib ]; 16 + nativeBuildInputs = [ pkgconfig ]; 17 + 18 + doCheck = true; 19 + 20 + meta = with stdenv.lib; { 21 + description = "Utility library providing GObject-based interfaces and classes for commonly used data structures"; 22 + license = licenses.lgpl21Plus; 23 + platforms = platforms.linux; 24 + homepage = "http://live.gnome.org/Libgee"; 25 + maintainers = with maintainers; [ abbradar ]; 26 + }; 27 + }
+9 -4
pkgs/development/libraries/libiberty/default.nix
··· 1 - { stdenv, fetchurl }: 1 + { stdenv, fetchurl, staticBuild ? false }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 version = "4.9.3"; ··· 11 11 12 12 postUnpack = "sourceRoot=\${sourceRoot}/libiberty"; 13 13 14 - enable_shared = 1; 14 + enable_shared = !staticBuild; 15 15 16 16 installPhase = '' 17 - mkdir -p $out/lib 18 - cp pic/libiberty.a $out/lib/libiberty_pic.a 17 + mkdir -p $out/lib $out/include 18 + cp ../include/libiberty.h $out/include/ 19 + if [ -z "$enabled_shared" ]; then 20 + cp libiberty.a $out/lib/libiberty.a 21 + else 22 + cp pic/libiberty.a $out/lib/libiberty_pic.a 23 + fi 19 24 ''; 20 25 21 26 meta = with stdenv.lib; {
+3 -3
pkgs/development/libraries/libpsl/default.nix
··· 3 3 4 4 let 5 5 6 - listVersion = "2016-03-10"; 6 + listVersion = "2016-03-30"; 7 7 listSources = fetchFromGitHub { 8 - sha256 = "10kc0b41y5cn0cnqvalz9i14j1dj6b9wgr21zz3ngqf943q6z5r9"; 9 - rev = "1e52b7efc42b1505f9580ec15a1d692523db4a3b"; 8 + sha256 = "0433ck6ykcq6pc48mvgif9f785q0ndprk77jsk58gb5289b87yns"; 9 + rev = "6ec573d549e25fc89d930bb64939d947bae38f68"; 10 10 repo = "list"; 11 11 owner = "publicsuffix"; 12 12 };
+27
pkgs/development/libraries/libunity/default.nix
··· 1 + { stdenv, fetchurl, vala, python, intltool, pkgconfig 2 + , glib, libgee_0_6, gtk3, dee, libdbusmenu-glib 3 + }: 4 + 5 + stdenv.mkDerivation rec { 6 + name = "libunity-${version}"; 7 + version = "6.12.0"; 8 + 9 + src = fetchurl { 10 + url = "https://launchpad.net/libunity/6.0/${version}/+download/${name}.tar.gz"; 11 + sha256 = "1nadapl3390x98q1wv2yarh60hzi7ck0d1s8zz9xsiq3zz6msbjd"; 12 + }; 13 + 14 + buildInputs = [ glib libgee_0_6 gtk3 ]; 15 + propagatedBuildInputs = [ dee libdbusmenu-glib ]; 16 + nativeBuildInputs = [ vala python intltool pkgconfig ]; 17 + 18 + enableParallelBuilding = true; 19 + 20 + meta = with stdenv.lib; { 21 + description = "A library for instrumenting- and integrating with all aspects of the Unity shell"; 22 + homepage = "https://launchpad.net/libunity"; 23 + license = licenses.lgpl3; 24 + platforms = platforms.linux; 25 + maintainers = with maintainers; [ abbradar ]; 26 + }; 27 + }
+18 -7
pkgs/development/libraries/pcre/default.nix
··· 1 - { stdenv, fetchurl, unicodeSupport ? true, cplusplusSupport ? true 1 + { stdenv, lib, fetchurl, unicodeSupport ? true, cplusplusSupport ? true 2 2 , windows ? null 3 + , withCharSize ? 8 3 4 }: 4 5 5 6 with stdenv.lib; 6 7 7 - stdenv.mkDerivation rec { 8 - name = "pcre-8.38"; 8 + assert withCharSize != 8 -> !cplusplusSupport; 9 + 10 + let 11 + charFlags = if withCharSize == 8 then [ ] 12 + else if withCharSize == 16 then [ "--enable-pcre16" "--disable-pcre8" ] 13 + else if withCharSize == 32 then [ "--enable-pcre32" "--disable-pcre8" ] 14 + else abort "Invalid character size"; 15 + 16 + in stdenv.mkDerivation rec { 17 + name = "pcre${lib.optionalString (withCharSize != 8) (toString withCharSize)}-8.38"; 18 + # FIXME: add "version" attribute and use it in URL 9 19 10 20 src = fetchurl { 11 - url = "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${name}.tar.bz2"; 21 + url = "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.38.tar.bz2"; 12 22 sha256 = "1pvra19ljkr5ky35y2iywjnsckrs9ch2anrf5b0dc91hw8v2vq5r"; 13 23 }; 14 24 ··· 17 27 18 28 outputs = [ "out" "doc" "man" ]; 19 29 30 + # FIXME: Refactor into list! 20 31 configureFlags = '' 21 32 --enable-jit 22 - ${if unicodeSupport then "--enable-unicode-properties" else ""} 23 - ${if !cplusplusSupport then "--disable-cpp" else ""} 24 - ''; 33 + ${lib.optionalString unicodeSupport "--enable-unicode-properties"} 34 + ${lib.optionalString (!cplusplusSupport) "--disable-cpp"} 35 + '' + lib.optionalString (charFlags != []) " ${toString charFlags}"; 25 36 26 37 doCheck = with stdenv; !(isCygwin || isFreeBSD); 27 38 # XXX: test failure on Cygwin
+2 -2
pkgs/development/libraries/science/math/openblas/default.nix
··· 22 22 optionals (hasAttr "target" config.openblas) [ "TARGET=${config.openblas.target}" ]; 23 23 blas64 = if blas64_ != null then blas64_ else hasPrefix "x86_64" stdenv.system; 24 24 25 - version = "0.2.15"; 25 + version = "0.2.17"; 26 26 in 27 27 stdenv.mkDerivation { 28 28 name = "openblas-${version}"; 29 29 src = fetchurl { 30 30 url = "https://github.com/xianyi/OpenBLAS/archive/v${version}.tar.gz"; 31 - sha256 = "0i4hrjx622vw5ff35wm6cnga3ic8hcfa88p1wlj24a3qb770mi3k"; 31 + sha256 = "1gqdrxgc7qmr3xqq4wqcysjhv7ix4ar7ymn3vk5g97r1xvgkds0g"; 32 32 name = "openblas-${version}.tar.gz"; 33 33 }; 34 34
+11
pkgs/development/perl-modules/Unicode-String-perl-5-22.patch
··· 1 + diff -ru libunicode-string-perl-2.09.pristine/lib/Unicode/CharName.pm libunicode-string-perl-2.09/lib/Unicode/CharName.pm 2 + --- libunicode-string-perl-2.09.pristine/lib/Unicode/CharName.pm 2005-10-25 19:11:00.000000000 +0100 3 + +++ libunicode-string-perl-2.09/lib/Unicode/CharName.pm 2012-01-24 12:56:59.730653088 +0000 4 + @@ -77,7 +77,7 @@ 5 + return join("", "HANGUL SYLLABLE ", @s) 6 + } 7 + } 8 + - _init_names() unless defined %NAMES; 9 + + _init_names() unless %NAMES; 10 + $NAMES{sprintf("%04X",$code)} 11 + }
+1 -1
pkgs/development/tools/continuous-integration/jenkins/default.nix
··· 16 16 maintainers = [ maintainers.coconnor ]; 17 17 }; 18 18 19 - buildCommand = "ln -s $src $out"; 19 + buildCommand = "cp $src $out"; 20 20 }
+2 -2
pkgs/development/tools/profiling/oprofile/default.nix
··· 1 1 { stdenv, fetchurl, binutils, popt, zlib, pkgconfig, linuxHeaders 2 - , withGUI ? false , qt4 ? null}: 2 + , libiberty_static, withGUI ? false , qt4 ? null}: 3 3 4 4 # libX11 is needed because the Qt build stuff automatically adds `-lX11'. 5 5 assert withGUI -> qt4 != null; ··· 12 12 sha256 = "0v1nn38h227bgxjwqf22rjp2iqgjm4ls3gckzifks0x6w5nrlxfg"; 13 13 }; 14 14 15 - buildInputs = [ binutils zlib popt pkgconfig linuxHeaders ] 15 + buildInputs = [ binutils zlib popt pkgconfig linuxHeaders libiberty_static ] 16 16 ++ stdenv.lib.optionals withGUI [ qt4 ]; 17 17 18 18 configureFlags = [
+20
pkgs/os-specific/linux/fswebcam/default.nix
··· 1 + { stdenv, fetchurl, libv4l, gd }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "fswebcam-20140113"; 5 + 6 + src = fetchurl { 7 + url = "http://www.sanslogic.co.uk/fswebcam/files/${name}.tar.gz"; 8 + sha256 = "3ee389f72a7737700d22e0c954720b1e3bbadc8a0daad6426c25489ba9dc3199"; 9 + }; 10 + 11 + buildInputs = 12 + [ libv4l gd ]; 13 + 14 + meta = { 15 + description = "neat and simple webcam app"; 16 + homepage = http://www.sanslogic.co.uk/fswebcam; 17 + platforms = stdenv.lib.platforms.linux; 18 + license = stdenv.lib.licenses.gpl2; 19 + }; 20 + }
+2 -2
pkgs/os-specific/linux/spl/default.nix
··· 17 17 stdenv.mkDerivation rec { 18 18 name = "spl-${configFile}-${version}${optionalString buildKernel "-${kernel.version}"}"; 19 19 20 - version = "0.6.5.5"; 20 + version = "0.6.5.6"; 21 21 22 22 src = fetchFromGitHub { 23 23 owner = "zfsonlinux"; 24 24 repo = "spl"; 25 25 rev = "spl-${version}"; 26 - sha256 = "1f49qv648klg2sn1v1wzwd6ls1njjj0hrazz7msd74ayhwm0zcw7"; 26 + sha256 = "08lbfwsd368sk7dgydabzkyyn2l2n82ifcqakra3xknwgg1ka9bn"; 27 27 }; 28 28 29 29 patches = [ ./const.patch ./install_prefix.patch ];
+2 -2
pkgs/os-specific/linux/zfs/default.nix
··· 20 20 stdenv.mkDerivation rec { 21 21 name = "zfs-${configFile}-${version}${optionalString buildKernel "-${kernel.version}"}"; 22 22 23 - version = "0.6.5.5"; 23 + version = "0.6.5.6"; 24 24 25 25 src = fetchFromGitHub { 26 26 owner = "zfsonlinux"; 27 27 repo = "zfs"; 28 28 rev = "zfs-${version}"; 29 - sha256 = "0np03p5zkx87a0a5rw629f9m4wp5gd01c1jkh5p7h63mmvaxfdda"; 29 + sha256 = "0lsb93y5zbwc8fafxzm9vyfpr6fmvl8h86ny4llbd2xy2hnfwk2i"; 30 30 }; 31 31 32 32 patches = [ ./nix-build.patch ];
+2
pkgs/servers/identd/oidentd/default.nix
··· 3 3 stdenv.mkDerivation rec { 4 4 name = "oidentd-2.0.8"; 5 5 6 + CFLAGS = [ "--std=gnu89" ]; 7 + 6 8 src = fetchurl { 7 9 url = "mirror://sourceforge/ojnk/${name}.tar.gz"; 8 10 sha256 = "0vzv2086rrxcaavrm3js7aqvyc0grgaqy78x61d8s7r8hz8vwk55";
+4 -4
pkgs/tools/filesystems/ntfs-3g/default.nix
··· 3 3 4 4 stdenv.mkDerivation rec { 5 5 pname = "ntfs-3g"; 6 - version = "2015.3.14"; 6 + version = "2016.2.22"; 7 7 name = "${pname}-${version}"; 8 8 9 9 buildInputs = [ libuuid ] ++ stdenv.lib.optionals crypto [ gnutls libgcrypt ]; ··· 11 11 12 12 src = fetchurl { 13 13 url = "http://tuxera.com/opensource/ntfs-3g_ntfsprogs-${version}.tgz"; 14 - sha256 = "1wiqcmy07y02k3iqq56cscnhg5syisbjj9mxfaid85l3bl0rdycp"; 14 + sha256 = "180y5y09h30ryf2vim8j30a2npwz1iv9ly5yjmh3wjdkwh2jrdyp"; 15 15 }; 16 16 17 17 patchPhase = '' ··· 38 38 ''; 39 39 40 40 meta = with stdenv.lib; { 41 - homepage = http://www.tuxera.com/community/; 41 + homepage = http://www.tuxera.com/community/open-source-ntfs-3g/; 42 42 description = "FUSE-based NTFS driver with full write support"; 43 - maintainers = [ maintainers.urkud ]; 43 + maintainers = with maintainers; [ urkud dezgeg ]; 44 44 platforms = platforms.linux; 45 45 license = licenses.gpl2Plus; # and (lib)fuse-lite under LGPL2+ 46 46 };
+13 -9
pkgs/tools/graphics/enblend-enfuse/default.nix
··· 1 1 { stdenv, fetchurl 2 - , boost, freeglut, glew, gsl, lcms2, libpng, libtiff, libxmi, mesa, vigra 3 - , help2man, pkgconfig, perl }: 2 + , boost, freeglut, glew, gsl, lcms2, libpng, libtiff, mesa, vigra 3 + , help2man, pkgconfig, perl, tetex }: 4 4 5 - let version = "4.1.5"; in 6 5 stdenv.mkDerivation rec { 7 6 name = "enblend-enfuse-${version}"; 7 + version = "4.2"; 8 8 9 9 src = fetchurl { 10 10 url = "mirror://sourceforge/enblend/${name}.tar.gz"; 11 - sha256 = "08dz73jgrwfhz0kh57kz048qy1c6a35ckqn9xs5rajm449vnw0pg"; 11 + sha256 = "0j5x011ilalb47ssah50ag0a4phgh1b0wdgxdbbp1gcyjcjf60w7"; 12 12 }; 13 13 14 - buildInputs = [ boost freeglut glew gsl lcms2 libpng libtiff libxmi mesa vigra ]; 14 + buildInputs = [ boost freeglut glew gsl lcms2 libpng libtiff mesa vigra ]; 15 15 16 - nativeBuildInputs = [ help2man perl pkgconfig ]; 16 + nativeBuildInputs = [ help2man perl pkgconfig tetex ]; 17 + 18 + preConfigure = '' 19 + patchShebangs src/embrace 20 + ''; 17 21 18 22 enableParallelBuilding = true; 19 23 20 - meta = { 21 - inherit version; 24 + meta = with stdenv.lib; { 22 25 homepage = http://enblend.sourceforge.net/; 23 26 description = "Blends away the seams in a panoramic image mosaic using a multiresolution spline"; 24 - license = stdenv.lib.licenses.gpl2; 27 + license = licenses.gpl2; 28 + maintainers = with maintainers; [ nckx ]; 25 29 }; 26 30 }
+18
pkgs/tools/misc/cloud-utils/default.nix
··· 1 + { stdenv, fetchurl }: 2 + 3 + stdenv.mkDerivation { 4 + name = "cloud-utils-0.27"; 5 + src = fetchurl { 6 + url = "https://launchpad.net/cloud-utils/trunk/0.27/+download/cloud-utils-0.27.tar.gz"; 7 + sha256 = "16shlmg36lidp614km41y6qk3xccil02f5n3r4wf6d1zr5n4v8vd"; 8 + }; 9 + patches = [ ./growpart-util-linux-2.26.patch ]; 10 + buildPhase = '' 11 + mkdir -p $out/bin 12 + cp bin/growpart $out/bin/growpart 13 + sed -i 's|awk|gawk|' $out/bin/growpart 14 + sed -i 's|sed|gnused|' $out/bin/growpart 15 + ''; 16 + dontInstall = true; 17 + dontPatchShebangs = true; 18 + }
+3 -3
pkgs/tools/networking/dhcpcd/default.nix
··· 1 1 { stdenv, fetchurl, pkgconfig, udev }: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "dhcpcd-6.9.4"; 4 + name = "dhcpcd-6.10.1"; 5 5 6 6 src = fetchurl { 7 7 url = "mirror://roy/dhcpcd/${name}.tar.xz"; 8 - sha256 = "184vpid8m5175xa2nkh6mmvk8b6z4isfm6nvf4g8l5ggfdsgzwy3"; 8 + sha256 = "0yxfx3r6ik47rsv1f8q7siw0vas6jcsrbjpaqnx0nn707f6byji8"; 9 9 }; 10 10 11 11 buildInputs = [ pkgconfig udev ]; ··· 28 28 description = "A client for the Dynamic Host Configuration Protocol (DHCP)"; 29 29 homepage = http://roy.marples.name/projects/dhcpcd; 30 30 platforms = stdenv.lib.platforms.linux; 31 - maintainers = [ stdenv.lib.maintainers.eelco ]; 31 + maintainers = with stdenv.lib.maintainers; [ eelco fpletz ]; 32 32 }; 33 33 }
+2 -2
pkgs/tools/system/hwinfo/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "hwinfo-${version}"; 5 - version = "21.12"; 5 + version = "21.23"; 6 6 7 7 src = fetchurl { 8 8 url = "https://github.com/opensuse/hwinfo/archive/${version}.tar.gz"; 9 - sha256 = "01y5jk2jns0a3mgsgmvmpvi5yyc0df7b3yqsg32hn5r2nv17i47p"; 9 + sha256 = "1a8815zp3a7n2jx0cn0hcr69rfr6vmw8r8grbn5mv61g90bbcj6p"; 10 10 }; 11 11 12 12 patchPhase = ''
+1
pkgs/tools/text/namazu/default.nix
··· 40 40 41 41 platforms = stdenv.lib.platforms.gnu; # arbitrary choice 42 42 maintainers = [ ]; 43 + broken = true; # File-MMagic is not compatible with our Perl version 43 44 }; 44 45 }
+31 -2
pkgs/top-level/all-packages.nix
··· 1107 1107 1108 1108 cloogppl = callPackage ../development/libraries/cloog-ppl { }; 1109 1109 1110 + cloud-utils = callPackage ../tools/misc/cloud-utils { }; 1111 + 1110 1112 compass = callPackage ../development/tools/compass { }; 1111 1113 1112 1114 convmv = callPackage ../tools/misc/convmv { }; ··· 1534 1536 ftop = callPackage ../os-specific/linux/ftop { }; 1535 1537 1536 1538 fsfs = callPackage ../tools/filesystems/fsfs { }; 1539 + 1540 + fswebcam = callPackage ../os-specific/linux/fswebcam { }; 1537 1541 1538 1542 fuseiso = callPackage ../tools/filesystems/fuseiso { }; 1539 1543 ··· 2197 2201 libtorrent = callPackage ../tools/networking/p2p/libtorrent { }; 2198 2202 2199 2203 libiberty = callPackage ../development/libraries/libiberty { }; 2204 + 2205 + libiberty_static = callPackage ../development/libraries/libiberty { staticBuild = true; }; 2200 2206 2201 2207 libibverbs = callPackage ../development/libraries/libibverbs { }; 2202 2208 ··· 5182 5188 5183 5189 clooj = callPackage ../development/interpreters/clojure/clooj.nix { }; 5184 5190 5185 - erlangR14 = callPackage ../development/interpreters/erlang/R14.nix { }; 5186 5191 erlangR16 = callPackage ../development/interpreters/erlang/R16.nix { }; 5187 5192 erlangR16_odbc = callPackage ../development/interpreters/erlang/R16.nix { odbcSupport = true; }; 5188 5193 erlangR17 = callPackage ../development/interpreters/erlang/R17.nix { }; ··· 6347 6352 6348 6353 box2d = callPackage ../development/libraries/box2d { }; 6349 6354 box2d_2_0_1 = callPackage ../development/libraries/box2d/2.0.1.nix { }; 6355 + 6356 + breakpad = callPackage ../development/libraries/breakpad { }; 6350 6357 6351 6358 buddy = callPackage ../development/libraries/buddy { }; 6352 6359 ··· 6508 6515 dbus_libs = pkgs.dbus.libs; 6509 6516 dbus_daemon = pkgs.dbus.daemon; 6510 6517 6518 + dee = callPackage ../development/libraries/dee { }; 6519 + 6511 6520 dhex = callPackage ../applications/editors/dhex { }; 6512 6521 6513 6522 double_conversion = callPackage ../development/libraries/double-conversion { }; ··· 7382 7391 libgadu = callPackage ../development/libraries/libgadu { }; 7383 7392 7384 7393 libgdata = gnome3.libgdata; 7394 + 7395 + libgee_0_6 = callPackage ../development/libraries/libgee/0.6.nix { }; 7385 7396 7386 7397 libgig = callPackage ../development/libraries/libgig { }; 7387 7398 ··· 7859 7870 7860 7871 libu2f-server = callPackage ../development/libraries/libu2f-server { }; 7861 7872 7873 + libunity = callPackage ../development/libraries/libunity { }; 7874 + 7862 7875 libunistring = callPackage ../development/libraries/libunistring { }; 7863 7876 7864 7877 libupnp = callPackage ../development/libraries/pupnp { }; ··· 8304 8317 pcre = callPackage ../development/libraries/pcre { 8305 8318 unicodeSupport = config.pcre.unicode or true; 8306 8319 }; 8320 + pcre16 = pcre.override { 8321 + cplusplusSupport = false; 8322 + withCharSize = 16; 8323 + }; 8324 + pcre32 = pcre.override { 8325 + cplusplusSupport = false; 8326 + withCharSize = 32; 8327 + }; 8307 8328 8308 8329 pcre2 = callPackage ../development/libraries/pcre2 { }; 8309 8330 ··· 13793 13814 13794 13815 taskserver = callPackage ../servers/misc/taskserver { }; 13795 13816 13796 - telegram-cli = callPackage ../applications/networking/instant-messengers/telegram/telegram-cli/default.nix { }; 13817 + tdesktop = qt55.callPackage ../applications/networking/instant-messengers/telegram/tdesktop { }; 13818 + 13819 + telegram-cli = callPackage ../applications/networking/instant-messengers/telegram/telegram-cli { }; 13797 13820 13798 13821 telepathy_gabble = callPackage ../applications/networking/instant-messengers/telepathy/gabble { }; 13799 13822 ··· 13868 13891 enableTelepathy = config.tomahawk.enableTelepathy or false; 13869 13892 quazip = qt5.quazip.override { qt = qt4; }; 13870 13893 }; 13894 + 13895 + torchPackages = recurseIntoAttrs ( callPackage ../applications/science/machine-learning/torch { 13896 + lua = luajit ; 13897 + } ); 13898 + 13899 + torch-repl = lib.setName "torch-repl" torchPackages.trepl; 13871 13900 13872 13901 torchat = callPackage ../applications/networking/instant-messengers/torchat { 13873 13902 wrapPython = pythonPackages.wrapPython;
+6 -3
pkgs/top-level/perl-packages.nix
··· 5151 5151 }; 5152 5152 5153 5153 FinanceQuote = buildPerlPackage rec { 5154 - name = "Finance-Quote-1.37"; 5154 + name = "Finance-Quote-1.38"; 5155 5155 src = fetchurl { 5156 5156 url = "mirror://cpan/authors/id/E/EC/ECOCODE/${name}.tar.gz"; 5157 - sha256 = "1b6pbh7f76fb5sa4f0lhx085xy55pprz5v7z7li7pqiyw7i4f4bf"; 5157 + sha256 = "0zhqb27y4vdxn476s2kwm9zl2f970yjcyyybnjm9b406krr2fm59"; 5158 5158 }; 5159 - propagatedBuildInputs = [ CryptSSLeay HTMLTableExtract HTMLTree HTTPMessage LWP DateCalc DateTime JSON ]; 5159 + propagatedBuildInputs = [ CGI CryptSSLeay HTMLTableExtract HTMLTree HTTPMessage LWP DateCalc DateTime JSON ]; 5160 5160 meta = with stdenv.lib; { 5161 5161 homepage = http://finance-quote.sourceforge.net/; 5162 5162 description = "Get stock and mutual fund quotes from various exchanges"; ··· 13202 13202 13203 13203 UnicodeString = buildPerlPackage rec { 13204 13204 name = "Unicode-String-2.09"; 13205 + patches = [ 13206 + ../development/perl-modules/Unicode-String-perl-5-22.patch 13207 + ]; 13205 13208 src = fetchurl { 13206 13209 url = "mirror://cpan/authors/id/G/GA/GAAS/${name}.tar.gz"; 13207 13210 sha256 = "1bgsaf3dgmlgyvi84r42ysc037mr5280amnypa4d98jfjpdvw5y8";
+5 -5
pkgs/top-level/python-packages.nix
··· 26325 26325 buildInputs = with self; [ mock freezegun coverage pkgs.glibcLocales ]; 26326 26326 26327 26327 LC_ALL="en_US.UTF-8"; 26328 - }; 26329 26328 26330 - meta = { 26331 - description = "A cli todo application compatible with the todo.txt format"; 26332 - homepage = "https://github.com/bram85/topydo"; 26333 - license = license.gpl3; 26329 + meta = { 26330 + description = "A cli todo application compatible with the todo.txt format"; 26331 + homepage = "https://github.com/bram85/topydo"; 26332 + license = licenses.gpl3; 26333 + }; 26334 26334 }; 26335 26335 26336 26336 }