nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge master into staging

+1145 -589
+1 -7
doc/Makefile
··· 25 25 ./manual-full.xml 26 26 27 27 mkdir -p out/html/highlightjs/ 28 - echo "document.onreadystatechange = function () { \ 29 - var listings = document.querySelectorAll('.programlisting, .screen'); \ 30 - for (i = 0; i < listings.length; ++i) { \ 31 - hljs.highlightBlock(listings[i]); \ 32 - } \ 33 - } " > out/html/highlightjs/loader.js 34 - 35 28 cp -r highlightjs out/html/ 36 29 37 30 cp ./overrides.css out/html/ ··· 56 63 cp -r "$$HIGHLIGHTJS/highlight.pack.js" highlightjs/ 57 64 cp -r "$$HIGHLIGHTJS/LICENSE" highlightjs/ 58 65 cp -r "$$HIGHLIGHTJS/mono-blue.css" highlightjs/ 66 + cp -r "$$HIGHLIGHTJS/loader.js" highlightjs/ 59 67 60 68 61 69 manual-full.xml: ${MD_TARGETS} .version *.xml
+17
doc/style.css
··· 248 248 box-shadow: 0.4em 0.4em 0.5em #e0e0e0; 249 249 } 250 250 251 + table.simplelist 252 + { 253 + text-align: left; 254 + color: #005aa0; 255 + border: 0; 256 + padding: 5px; 257 + background: #fffff5; 258 + font-weight: normal; 259 + font-style: italic; 260 + box-shadow: none; 261 + margin-bottom: 1em; 262 + } 263 + 264 + div.navheader table, div.navfooter table { 265 + box-shadow: none; 266 + } 267 + 251 268 div.affiliation 252 269 { 253 270 font-style: italic;
+5
maintainers/maintainer-list.nix
··· 695 695 github = "carlsverre"; 696 696 name = "Carl Sverre"; 697 697 }; 698 + cartr = { 699 + email = "carter.sande@duodecima.technology"; 700 + github = "cartr"; 701 + name = "Carter Sande"; 702 + }; 698 703 casey = { 699 704 email = "casey@rodarmor.net"; 700 705 github = "casey";
+8 -5
nixos/doc/manual/default.nix
··· 124 124 manualXsltprocOptions = toString [ 125 125 "--param section.autolabel 1" 126 126 "--param section.label.includes.component.label 1" 127 - "--stringparam html.stylesheet style.css" 127 + "--stringparam html.stylesheet 'style.css overrides.css highlightjs/mono-blue.css'" 128 + "--stringparam html.script './highlightjs/highlight.pack.js ./highlightjs/loader.js'" 128 129 "--param xref.with.number.and.title 1" 129 130 "--param toc.section.depth 3" 130 131 "--stringparam admon.style ''" 131 - "--stringparam callout.graphics.extension .gif" 132 + "--stringparam callout.graphics.extension .svg" 132 133 "--stringparam current.docid manual" 133 134 "--param chunk.section.depth 0" 134 135 "--param chunk.first.sections 1" ··· 261 260 ${manual-combined}/manual-combined.xml 262 261 263 262 mkdir -p $dst/images/callouts 264 - cp ${docbook5_xsl}/xml/xsl/docbook/images/callouts/*.gif $dst/images/callouts/ 263 + cp ${docbook5_xsl}/xml/xsl/docbook/images/callouts/*.svg $dst/images/callouts/ 265 264 266 - cp ${./style.css} $dst/style.css 265 + cp ${../../../doc/style.css} $dst/style.css 266 + cp ${../../../doc/overrides.css} $dst/overrides.css 267 + cp -r ${pkgs.documentation-highlighter} $dst/highlightjs 267 268 268 269 mkdir -p $out/nix-support 269 270 echo "nix-build out $out" >> $out/nix-support/hydra-build-products ··· 289 286 ${manual-combined}/manual-combined.xml 290 287 291 288 mkdir -p $dst/epub/OEBPS/images/callouts 292 - cp -r ${docbook5_xsl}/xml/xsl/docbook/images/callouts/*.gif $dst/epub/OEBPS/images/callouts # */ 289 + cp -r ${docbook5_xsl}/xml/xsl/docbook/images/callouts/*.svg $dst/epub/OEBPS/images/callouts # */ 293 290 echo "application/epub+zip" > mimetype 294 291 manual="$dst/nixos-manual.epub" 295 292 zip -0Xq "$manual" mimetype
+1 -1
nixos/doc/manual/release-notes/rl-1803.xml
··· 239 239 the <literal>openssh_with_kerberos</literal> package 240 240 is now a deprecated alias. 241 241 If you do not want Kerberos support, 242 - you can do <literal>openssh.override { withKerboros = false; }</literal>. 242 + you can do <literal>openssh.override { withKerberos = false; }</literal>. 243 243 Note, this also applies to the <literal>openssh_hpn</literal> package. 244 244 </para> 245 245 </listitem>
-267
nixos/doc/manual/style.css
··· 1 - /* Copied from http://bakefile.sourceforge.net/, which appears 2 - licensed under the GNU GPL. */ 3 - 4 - 5 - /*************************************************************************** 6 - Basic headers and text: 7 - ***************************************************************************/ 8 - 9 - body 10 - { 11 - font-family: "Nimbus Sans L", sans-serif; 12 - background: white; 13 - margin: 2em 1em 2em 1em; 14 - } 15 - 16 - h1, h2, h3, h4 17 - { 18 - color: #005aa0; 19 - } 20 - 21 - h1 /* title */ 22 - { 23 - font-size: 200%; 24 - } 25 - 26 - h2 /* chapters, appendices, subtitle */ 27 - { 28 - font-size: 180%; 29 - } 30 - 31 - /* Extra space between chapters, appendices. */ 32 - div.chapter > div.titlepage h2, div.appendix > div.titlepage h2 33 - { 34 - margin-top: 1.5em; 35 - } 36 - 37 - div.section > div.titlepage h2 /* sections */ 38 - { 39 - font-size: 150%; 40 - margin-top: 1.5em; 41 - } 42 - 43 - h3 /* subsections */ 44 - { 45 - font-size: 125%; 46 - } 47 - 48 - div.simplesect h2 49 - { 50 - font-size: 110%; 51 - } 52 - 53 - div.appendix h3 54 - { 55 - font-size: 150%; 56 - margin-top: 1.5em; 57 - } 58 - 59 - div.refnamediv h2, div.refsynopsisdiv h2, div.refsection h2 /* refentry parts */ 60 - { 61 - margin-top: 1.4em; 62 - font-size: 125%; 63 - } 64 - 65 - div.refsection h3 66 - { 67 - font-size: 110%; 68 - } 69 - 70 - 71 - /*************************************************************************** 72 - Examples: 73 - ***************************************************************************/ 74 - 75 - div.example 76 - { 77 - border: 1px solid #b0b0b0; 78 - padding: 6px 6px; 79 - margin-left: 1.5em; 80 - margin-right: 1.5em; 81 - background: #f4f4f8; 82 - border-radius: 0.4em; 83 - box-shadow: 0.4em 0.4em 0.5em #e0e0e0; 84 - } 85 - 86 - div.example p.title 87 - { 88 - margin-top: 0em; 89 - } 90 - 91 - div.example pre 92 - { 93 - box-shadow: none; 94 - } 95 - 96 - 97 - /*************************************************************************** 98 - Screen dumps: 99 - ***************************************************************************/ 100 - 101 - pre.screen, pre.programlisting 102 - { 103 - border: 1px solid #b0b0b0; 104 - padding: 3px 3px; 105 - margin-left: 1.5em; 106 - margin-right: 1.5em; 107 - color: #600000; 108 - background: #f4f4f8; 109 - font-family: monospace; 110 - border-radius: 0.4em; 111 - box-shadow: 0.4em 0.4em 0.5em #e0e0e0; 112 - } 113 - 114 - div.example pre.programlisting 115 - { 116 - border: 0px; 117 - padding: 0 0; 118 - margin: 0 0 0 0; 119 - } 120 - 121 - 122 - /*************************************************************************** 123 - Notes, warnings etc: 124 - ***************************************************************************/ 125 - 126 - .note, .warning 127 - { 128 - border: 1px solid #b0b0b0; 129 - padding: 3px 3px; 130 - margin-left: 1.5em; 131 - margin-right: 1.5em; 132 - margin-bottom: 1em; 133 - padding: 0.3em 0.3em 0.3em 0.3em; 134 - background: #fffff5; 135 - border-radius: 0.4em; 136 - box-shadow: 0.4em 0.4em 0.5em #e0e0e0; 137 - } 138 - 139 - div.note, div.warning 140 - { 141 - font-style: italic; 142 - } 143 - 144 - div.note h3, div.warning h3 145 - { 146 - color: red; 147 - font-size: 100%; 148 - padding-right: 0.5em; 149 - display: inline; 150 - } 151 - 152 - div.note p, div.warning p 153 - { 154 - margin-bottom: 0em; 155 - } 156 - 157 - div.note h3 + p, div.warning h3 + p 158 - { 159 - display: inline; 160 - } 161 - 162 - div.note h3 163 - { 164 - color: blue; 165 - font-size: 100%; 166 - } 167 - 168 - div.navfooter * 169 - { 170 - font-size: 90%; 171 - } 172 - 173 - 174 - /*************************************************************************** 175 - Links colors and highlighting: 176 - ***************************************************************************/ 177 - 178 - a { text-decoration: none; } 179 - a:hover { text-decoration: underline; } 180 - a:link { color: #0048b3; } 181 - a:visited { color: #002a6a; } 182 - 183 - 184 - /*************************************************************************** 185 - Table of contents: 186 - ***************************************************************************/ 187 - 188 - div.toc 189 - { 190 - font-size: 90%; 191 - } 192 - 193 - div.toc dl 194 - { 195 - margin-top: 0em; 196 - margin-bottom: 0em; 197 - } 198 - 199 - 200 - /*************************************************************************** 201 - Special elements: 202 - ***************************************************************************/ 203 - 204 - tt, code 205 - { 206 - color: #400000; 207 - } 208 - 209 - .term 210 - { 211 - font-weight: bold; 212 - 213 - } 214 - 215 - div.variablelist dd p, div.glosslist dd p 216 - { 217 - margin-top: 0em; 218 - } 219 - 220 - div.variablelist dd, div.glosslist dd 221 - { 222 - margin-left: 1.5em; 223 - } 224 - 225 - div.glosslist dt 226 - { 227 - font-style: italic; 228 - } 229 - 230 - .varname 231 - { 232 - color: #400000; 233 - } 234 - 235 - span.command strong 236 - { 237 - font-weight: normal; 238 - color: #400000; 239 - } 240 - 241 - div.calloutlist table 242 - { 243 - box-shadow: none; 244 - } 245 - 246 - table 247 - { 248 - border-collapse: collapse; 249 - box-shadow: 0.4em 0.4em 0.5em #e0e0e0; 250 - } 251 - 252 - table.simplelist 253 - { 254 - text-align: left; 255 - color: #005aa0; 256 - border: 0; 257 - padding: 5px; 258 - background: #fffff5; 259 - font-weight: normal; 260 - font-style: italic; 261 - box-shadow: none; 262 - margin-bottom: 1em; 263 - } 264 - 265 - div.navheader table, div.navfooter table { 266 - box-shadow: none; 267 - }
+9 -9
nixos/modules/config/nsswitch.nix
··· 17 17 resolved = canLoadExternalModules && config.services.resolved.enable; 18 18 19 19 hostArray = [ "files" ] 20 - ++ optionals mymachines [ "mymachines" ] 21 - ++ optionals nssmdns [ "mdns_minimal [NOTFOUND=return]" ] 22 - ++ optionals nsswins [ "wins" ] 23 - ++ optionals resolved ["resolve [!UNAVAIL=return]"] 20 + ++ optional mymachines "mymachines" 21 + ++ optional nssmdns "mdns_minimal [NOTFOUND=return]" 22 + ++ optional nsswins "wins" 23 + ++ optional resolved "resolve [!UNAVAIL=return]" 24 24 ++ [ "dns" ] 25 - ++ optionals nssmdns [ "mdns" ] 26 - ++ optionals myhostname ["myhostname" ]; 25 + ++ optional nssmdns "mdns" 26 + ++ optional myhostname "myhostname"; 27 27 28 28 passwdArray = [ "files" ] 29 29 ++ optional sssd "sss" 30 - ++ optionals ldap [ "ldap" ] 31 - ++ optionals mymachines [ "mymachines" ] 30 + ++ optional ldap "ldap" 31 + ++ optional mymachines "mymachines" 32 32 ++ [ "systemd" ]; 33 33 34 34 shadowArray = [ "files" ] 35 35 ++ optional sssd "sss" 36 - ++ optionals ldap [ "ldap" ]; 36 + ++ optional ldap "ldap"; 37 37 38 38 servicesArray = [ "files" ] 39 39 ++ optional sssd "sss";
-1
nixos/modules/config/system-path.nix
··· 109 109 "/sbin" 110 110 "/share/applications" 111 111 "/share/desktop-directories" 112 - "/share/doc" 113 112 "/share/emacs" 114 113 "/share/icons" 115 114 "/share/menus"
+23 -29
nixos/modules/config/users-groups.nix
··· 504 504 }; 505 505 }; 506 506 507 - # Install all the user shells 508 - environment.systemPackages = systemShells; 509 - 510 507 users.groups = { 511 508 root.gid = ids.gids.root; 512 509 wheel.gid = ids.gids.wheel; ··· 540 543 # for backwards compatibility 541 544 system.activationScripts.groups = stringAfter [ "users" ] ""; 542 545 543 - environment.etc."subuid" = { 544 - text = subuidFile; 545 - mode = "0644"; 546 - }; 547 - environment.etc."subgid" = { 548 - text = subgidFile; 549 - mode = "0644"; 550 - }; 546 + # Install all the user shells 547 + environment.systemPackages = systemShells; 548 + 549 + environment.etc = { 550 + "subuid" = { 551 + text = subuidFile; 552 + mode = "0644"; 553 + }; 554 + "subgid" = { 555 + text = subgidFile; 556 + mode = "0644"; 557 + }; 558 + } // (mapAttrs' (name: { packages, ... }: { 559 + name = "profiles/per-user/${name}"; 560 + value.source = pkgs.buildEnv { 561 + name = "user-environment"; 562 + paths = packages; 563 + inherit (config.environment) pathsToLink extraOutputsToInstall; 564 + inherit (config.system.path) ignoreCollisions postBuild; 565 + }; 566 + }) (filterAttrs (_: u: u.packages != []) cfg.users)); 567 + 568 + environment.profiles = [ "/etc/profiles/per-user/$USER" ]; 551 569 552 570 assertions = [ 553 571 { assertion = !cfg.enforceIdUniqueness || (uidsAreUnique && gidsAreUnique); ··· 593 581 594 582 }; 595 583 596 - imports = 597 - [ (mkAliasOptionModule [ "users" "extraUsers" ] [ "users" "users" ]) 598 - (mkAliasOptionModule [ "users" "extraGroups" ] [ "users" "groups" ]) 599 - { 600 - environment = { 601 - etc = mapAttrs' (name: { packages, ... }: { 602 - name = "profiles/per-user/${name}"; 603 - value.source = pkgs.buildEnv { 604 - name = "user-environment"; 605 - paths = packages; 606 - inherit (config.environment) pathsToLink extraOutputsToInstall; 607 - inherit (config.system.path) ignoreCollisions postBuild; 608 - }; 609 - }) (filterAttrs (_: { packages, ... }: packages != []) cfg.users); 610 - profiles = ["/etc/profiles/per-user/$USER"]; 611 - }; 612 - } 613 - ]; 614 584 }
+77
nixos/modules/misc/documentation.nix
··· 1 + { config, lib, pkgs, ... }: 2 + 3 + with lib; 4 + 5 + let cfg = config.documentation; in 6 + 7 + { 8 + 9 + options = { 10 + 11 + documentation = { 12 + 13 + enable = mkOption { 14 + type = types.bool; 15 + default = true; 16 + description = '' 17 + Whether to install documentation of packages from 18 + <option>environment.systemPackages</option> into the generated system path. 19 + ''; 20 + }; 21 + 22 + man.enable = mkOption { 23 + type = types.bool; 24 + default = true; 25 + description = '' 26 + Whether to install manual pages and the <command>man</command> command. 27 + This also includes "man" outputs. 28 + ''; 29 + }; 30 + 31 + doc.enable = mkOption { 32 + type = types.bool; 33 + default = true; 34 + description = '' 35 + Whether to install documentation distributed in packages' <literal>/share/doc</literal>. 36 + Usually plain text and/or HTML. 37 + This also includes "doc" outputs. 38 + ''; 39 + }; 40 + 41 + info.enable = mkOption { 42 + type = types.bool; 43 + default = true; 44 + description = '' 45 + Whether to install info pages and the <command>info</command> command. 46 + This also includes "info" outputs. 47 + ''; 48 + }; 49 + 50 + }; 51 + 52 + }; 53 + 54 + config = mkIf cfg.enable (mkMerge [ 55 + 56 + (mkIf cfg.man.enable { 57 + environment.systemPackages = [ pkgs.man-db ]; 58 + environment.pathsToLink = [ "/share/man" ]; 59 + environment.extraOutputsToInstall = [ "man" ]; 60 + }) 61 + 62 + (mkIf cfg.doc.enable { 63 + # TODO(@oxij): put it here and remove from profiles? 64 + # environment.systemPackages = [ pkgs.w3m ]; # w3m-nox? 65 + environment.pathsToLink = [ "/share/doc" ]; 66 + environment.extraOutputsToInstall = [ "doc" ]; 67 + }) 68 + 69 + (mkIf cfg.info.enable { 70 + environment.systemPackages = [ pkgs.texinfoInteractive ]; 71 + environment.pathsToLink = [ "/share/info" ]; 72 + environment.extraOutputsToInstall = [ "info" ]; 73 + }) 74 + 75 + ]); 76 + 77 + }
+1 -2
nixos/modules/module-list.nix
··· 58 58 ./installer/tools/tools.nix 59 59 ./misc/assertions.nix 60 60 ./misc/crashdump.nix 61 + ./misc/documentation.nix 61 62 ./misc/extra-arguments.nix 62 63 ./misc/ids.nix 63 64 ./misc/lib.nix ··· 86 85 ./programs/freetds.nix 87 86 ./programs/gnupg.nix 88 87 ./programs/gphoto2.nix 89 - ./programs/info.nix 90 88 ./programs/java.nix 91 89 ./programs/kbdlight.nix 92 90 ./programs/less.nix 93 91 ./programs/light.nix 94 - ./programs/man.nix 95 92 ./programs/mosh.nix 96 93 ./programs/mtr.nix 97 94 ./programs/nano.nix
+2 -3
nixos/modules/profiles/minimal.nix
··· 10 10 11 11 # This isn't perfect, but let's expect the user specifies an UTF-8 defaultLocale 12 12 i18n.supportedLocales = [ (config.i18n.defaultLocale + "/UTF-8") ]; 13 - services.nixosManual.enable = mkDefault false; 14 13 15 - programs.man.enable = mkDefault false; 16 - programs.info.enable = mkDefault false; 14 + documentation.enable = mkDefault false; 15 + services.nixosManual.enable = mkDefault false; 17 16 18 17 sound.enable = mkDefault false; 19 18 }
-30
nixos/modules/programs/info.nix
··· 1 - { config, lib, pkgs, ... }: 2 - 3 - with lib; 4 - 5 - { 6 - 7 - options = { 8 - 9 - programs.info.enable = mkOption { 10 - type = types.bool; 11 - default = true; 12 - description = '' 13 - Whether to enable info pages and the <command>info</command> command. 14 - ''; 15 - }; 16 - 17 - }; 18 - 19 - 20 - config = mkIf config.programs.info.enable { 21 - 22 - environment.systemPackages = [ pkgs.texinfoInteractive ]; 23 - 24 - environment.pathsToLink = [ "/info" "/share/info" ]; 25 - 26 - environment.extraOutputsToInstall = [ "info" ]; 27 - 28 - }; 29 - 30 - }
-31
nixos/modules/programs/man.nix
··· 1 - { config, lib, pkgs, ... }: 2 - 3 - with lib; 4 - 5 - { 6 - 7 - options = { 8 - 9 - programs.man.enable = mkOption { 10 - type = types.bool; 11 - default = true; 12 - description = '' 13 - Whether to enable manual pages and the <command>man</command> command. 14 - This also includes "man" outputs of all <literal>systemPackages</literal>. 15 - ''; 16 - }; 17 - 18 - }; 19 - 20 - 21 - config = mkIf config.programs.man.enable { 22 - 23 - environment.systemPackages = [ pkgs.man-db ]; 24 - 25 - environment.pathsToLink = [ "/share/man" ]; 26 - 27 - environment.extraOutputsToInstall = [ "man" ]; 28 - 29 - }; 30 - 31 - }
+9
nixos/modules/rename.nix
··· 4 4 5 5 { 6 6 imports = [ 7 + (mkRenamedOptionModule [ "dysnomia" ] [ "services" "dysnomia" ]) 7 8 (mkRenamedOptionModule [ "environment" "x11Packages" ] [ "environment" "systemPackages" ]) 8 9 (mkRenamedOptionModule [ "environment" "enableBashCompletion" ] [ "programs" "bash" "enableCompletion" ]) 9 10 (mkRenamedOptionModule [ "environment" "nix" ] [ "nix" "package" ]) ··· 204 203 (mkRenamedOptionModule [ "config" "system" "nixosCodeName" ] [ "config" "system" "nixos" "codeName" ]) 205 204 (mkRenamedOptionModule [ "config" "system" "nixosLabel" ] [ "config" "system" "nixos" "label" ]) 206 205 206 + # Users 207 + (mkAliasOptionModule [ "users" "extraUsers" ] [ "users" "users" ]) 208 + (mkAliasOptionModule [ "users" "extraGroups" ] [ "users" "groups" ]) 209 + 207 210 # Options that are obsolete and have no replacement. 208 211 (mkRemovedOptionModule [ "boot" "initrd" "luks" "enable" ] "") 209 212 (mkRemovedOptionModule [ "programs" "bash" "enable" ] "") ··· 245 240 246 241 # Xen 247 242 (mkRenamedOptionModule [ "virtualisation" "xen" "qemu-package" ] [ "virtualisation" "xen" "package-qemu" ]) 243 + 244 + (mkRenamedOptionModule [ "programs" "info" "enable" ] [ "documentation" "info" "enable" ]) 245 + (mkRenamedOptionModule [ "programs" "man" "enable" ] [ "documentation" "man" "enable" ]) 246 + 248 247 ] ++ (flip map [ "blackboxExporter" "collectdExporter" "fritzboxExporter" 249 248 "jsonExporter" "minioExporter" "nginxExporter" "nodeExporter" 250 249 "snmpExporter" "unifiExporter" "varnishExporter" ]
+2 -2
nixos/modules/services/cluster/kubernetes/default.nix
··· 766 766 rm /opt/cni/bin/* || true 767 767 ${concatMapStrings (package: '' 768 768 echo "Linking cni package: ${package}" 769 - ln -fs ${package.plugins}/* /opt/cni/bin 769 + ln -fs ${package}/bin/* /opt/cni/bin 770 770 '') cfg.kubelet.cni.packages} 771 771 ''; 772 772 serviceConfig = { ··· 828 828 }; 829 829 830 830 # Allways include cni plugins 831 - services.kubernetes.kubelet.cni.packages = [pkgs.cni]; 831 + services.kubernetes.kubelet.cni.packages = [pkgs.cni-plugins]; 832 832 833 833 boot.kernelModules = ["br_netfilter"]; 834 834
+1 -1
nixos/modules/services/misc/disnix.nix
··· 57 57 ###### implementation 58 58 59 59 config = mkIf cfg.enable { 60 - dysnomia.enable = true; 60 + services.dysnomia.enable = true; 61 61 62 62 environment.systemPackages = [ pkgs.disnix ] ++ optional cfg.useWebServiceInterface pkgs.DisnixWebService; 63 63
+29 -29
nixos/modules/services/misc/dysnomia.nix
··· 3 3 with lib; 4 4 5 5 let 6 - cfg = config.dysnomia; 7 - 6 + cfg = config.services.dysnomia; 7 + 8 8 printProperties = properties: 9 9 concatMapStrings (propertyName: 10 10 let ··· 13 13 if isList property then "${propertyName}=(${lib.concatMapStrings (elem: "\"${toString elem}\" ") (properties."${propertyName}")})\n" 14 14 else "${propertyName}=\"${toString property}\"\n" 15 15 ) (builtins.attrNames properties); 16 - 16 + 17 17 properties = pkgs.stdenv.mkDerivation { 18 18 name = "dysnomia-properties"; 19 19 buildCommand = '' ··· 22 22 EOF 23 23 ''; 24 24 }; 25 - 25 + 26 26 containersDir = pkgs.stdenv.mkDerivation { 27 27 name = "dysnomia-containers"; 28 28 buildCommand = '' 29 29 mkdir -p $out 30 30 cd $out 31 - 31 + 32 32 ${concatMapStrings (containerName: 33 33 let 34 34 containerProperties = cfg.containers."${containerName}"; ··· 42 42 ) (builtins.attrNames cfg.containers)} 43 43 ''; 44 44 }; 45 - 45 + 46 46 linkMutableComponents = {containerName}: 47 47 '' 48 48 mkdir ${containerName} 49 - 49 + 50 50 ${concatMapStrings (componentName: 51 51 let 52 52 component = cfg.components."${containerName}"."${componentName}"; ··· 54 54 "ln -s ${component} ${containerName}/${componentName}\n" 55 55 ) (builtins.attrNames (cfg.components."${containerName}" or {}))} 56 56 ''; 57 - 57 + 58 58 componentsDir = pkgs.stdenv.mkDerivation { 59 59 name = "dysnomia-components"; 60 60 buildCommand = '' 61 61 mkdir -p $out 62 62 cd $out 63 - 63 + 64 64 ${concatMapStrings (containerName: 65 65 let 66 66 components = cfg.components."${containerName}"; ··· 72 72 in 73 73 { 74 74 options = { 75 - dysnomia = { 76 - 75 + services.dysnomia = { 76 + 77 77 enable = mkOption { 78 78 type = types.bool; 79 79 default = false; 80 80 description = "Whether to enable Dysnomia"; 81 81 }; 82 - 82 + 83 83 enableAuthentication = mkOption { 84 84 type = types.bool; 85 85 default = false; 86 86 description = "Whether to publish privacy-sensitive authentication credentials"; 87 87 }; 88 - 88 + 89 89 package = mkOption { 90 90 type = types.path; 91 91 description = "The Dysnomia package"; 92 92 }; 93 - 93 + 94 94 properties = mkOption { 95 95 description = "An attribute set in which each attribute represents a machine property. Optionally, these values can be shell substitutions."; 96 96 default = {}; 97 97 }; 98 - 98 + 99 99 containers = mkOption { 100 100 description = "An attribute set in which each key represents a container and each value an attribute set providing its configuration properties"; 101 101 default = {}; 102 102 }; 103 - 103 + 104 104 components = mkOption { 105 105 description = "An atttribute set in which each key represents a container and each value an attribute set in which each key represents a component and each value a derivation constructing its initial state"; 106 106 default = {}; 107 107 }; 108 - 108 + 109 109 extraContainerProperties = mkOption { 110 110 description = "An attribute set providing additional container settings in addition to the default properties"; 111 111 default = {}; 112 112 }; 113 - 113 + 114 114 extraContainerPaths = mkOption { 115 115 description = "A list of paths containing additional container configurations that are added to the search folders"; 116 116 default = []; 117 117 }; 118 - 118 + 119 119 extraModulePaths = mkOption { 120 120 description = "A list of paths containing additional modules that are added to the search folders"; 121 121 default = []; 122 122 }; 123 123 }; 124 124 }; 125 - 125 + 126 126 config = mkIf cfg.enable { 127 - 127 + 128 128 environment.etc = { 129 129 "dysnomia/containers" = { 130 130 source = containersDir; ··· 136 136 source = properties; 137 137 }; 138 138 }; 139 - 139 + 140 140 environment.variables = { 141 141 DYSNOMIA_STATEDIR = "/var/state/dysnomia-nixos"; 142 142 DYSNOMIA_CONTAINERS_PATH = "${lib.concatMapStrings (containerPath: "${containerPath}:") cfg.extraContainerPaths}/etc/dysnomia/containers"; 143 143 DYSNOMIA_MODULES_PATH = "${lib.concatMapStrings (modulePath: "${modulePath}:") cfg.extraModulePaths}/etc/dysnomia/modules"; 144 144 }; 145 - 145 + 146 146 environment.systemPackages = [ cfg.package ]; 147 - 148 - dysnomia.package = pkgs.dysnomia.override (origArgs: { 147 + 148 + services.dysnomia.package = pkgs.dysnomia.override (origArgs: { 149 149 enableApacheWebApplication = config.services.httpd.enable; 150 150 enableAxis2WebService = config.services.tomcat.axis2.enable; 151 151 enableEjabberdDump = config.services.ejabberd.enable; ··· 155 155 enableTomcatWebApplication = config.services.tomcat.enable; 156 156 enableMongoDatabase = config.services.mongodb.enable; 157 157 }); 158 - 159 - dysnomia.properties = { 158 + 159 + services.dysnomia.properties = { 160 160 hostname = config.networking.hostName; 161 161 system = if config.nixpkgs.system == "" then builtins.currentSystem else config.nixpkgs.system; 162 162 ··· 173 173 ''; 174 174 }}"); 175 175 }; 176 - 177 - dysnomia.containers = lib.recursiveUpdate ({ 176 + 177 + services.dysnomia.containers = lib.recursiveUpdate ({ 178 178 process = {}; 179 179 wrapper = {}; 180 180 }
+4 -4
nixos/modules/services/misc/nixos-manual.nix
··· 112 112 113 113 system.build.manual = manual; 114 114 115 - environment.systemPackages = 116 - [ manual.manual helpScript ] 117 - ++ optionals config.services.xserver.enable [desktopItem pkgs.nixos-icons] 118 - ++ optional config.programs.man.enable manual.manpages; 115 + environment.systemPackages = [] 116 + ++ optionals config.services.xserver.enable [ desktopItem pkgs.nixos-icons ] 117 + ++ optional config.documentation.man.enable manual.manpages 118 + ++ optionals config.documentation.doc.enable [ manual.manual helpScript ]; 119 119 120 120 boot.extraTTYs = mkIf cfg.showManual ["tty${toString cfg.ttyNumber}"]; 121 121
+5 -5
nixos/modules/services/networking/tcpcrypt.nix
··· 44 44 path = [ pkgs.iptables pkgs.tcpcrypt pkgs.procps ]; 45 45 46 46 preStart = '' 47 - mkdir -p /var/run/tcpcryptd 48 - chown tcpcryptd /var/run/tcpcryptd 49 - sysctl -n net.ipv4.tcp_ecn >/run/pre-tcpcrypt-ecn-state 47 + mkdir -p /run/tcpcryptd 48 + chown tcpcryptd /run/tcpcryptd 49 + sysctl -n net.ipv4.tcp_ecn > /run/tcpcryptd/pre-tcpcrypt-ecn-state 50 50 sysctl -w net.ipv4.tcp_ecn=0 51 51 52 52 iptables -t raw -N nixos-tcpcrypt ··· 61 61 script = "tcpcryptd -x 0x10"; 62 62 63 63 postStop = '' 64 - if [ -f /run/pre-tcpcrypt-ecn-state ]; then 65 - sysctl -w net.ipv4.tcp_ecn=$(cat /run/pre-tcpcrypt-ecn-state) 64 + if [ -f /run/tcpcryptd/pre-tcpcrypt-ecn-state ]; then 65 + sysctl -w net.ipv4.tcp_ecn=$(cat /run/tcpcryptd/pre-tcpcrypt-ecn-state) 66 66 fi 67 67 68 68 iptables -t mangle -D POSTROUTING -j nixos-tcpcrypt || true
+1 -2
nixos/modules/tasks/network-interfaces-scripted.nix
··· 68 68 (hasAttr dev cfg.macvlans) || 69 69 (hasAttr dev cfg.sits) || 70 70 (hasAttr dev cfg.vlans) || 71 - (hasAttr dev cfg.vswitches) || 72 - (hasAttr dev cfg.wlanInterfaces) 71 + (hasAttr dev cfg.vswitches) 73 72 then [ "${dev}-netdev.service" ] 74 73 else optional (dev != null && dev != "lo" && !config.boot.isContainer) (subsystemDevice dev); 75 74
+18 -1
nixos/modules/virtualisation/ec2-amis.nix
··· 240 240 "17.09".sa-east-1.hvm-ebs = "ami-4762202b"; 241 241 "17.09".ap-south-1.hvm-ebs = "ami-4e376021"; 242 242 243 - latest = self."17.09"; 243 + # 18.03.131792.becbe4dbe16 244 + "18.03".eu-west-1.hvm-ebs = "ami-cda4fab4"; 245 + "18.03".eu-west-2.hvm-ebs = "ami-d96786be"; 246 + "18.03".eu-west-3.hvm-ebs = "ami-6b0cba16"; 247 + "18.03".eu-central-1.hvm-ebs = "ami-5e2b75b5"; 248 + "18.03".us-east-1.hvm-ebs = "ami-d464cba9"; 249 + "18.03".us-east-2.hvm-ebs = "ami-fd221298"; 250 + "18.03".us-west-1.hvm-ebs = "ami-ff0d1d9f"; 251 + "18.03".us-west-2.hvm-ebs = "ami-c05c3bb8"; 252 + "18.03".ca-central-1.hvm-ebs = "ami-cc72f4a8"; 253 + "18.03".ap-southeast-1.hvm-ebs = "ami-b61633ca"; 254 + "18.03".ap-southeast-2.hvm-ebs = "ami-530fc131"; 255 + "18.03".ap-northeast-1.hvm-ebs = "ami-90d6c0ec"; 256 + "18.03".ap-northeast-2.hvm-ebs = "ami-a1248bcf"; 257 + "18.03".sa-east-1.hvm-ebs = "ami-b090c6dc"; 258 + "18.03".ap-south-1.hvm-ebs = "ami-32c9ec5d"; 259 + 260 + latest = self."18.03"; 244 261 }; in self
+1 -1
nixos/modules/virtualisation/google-compute-image.nix
··· 2 2 3 3 with lib; 4 4 let 5 - diskSize = 1024; # MB 5 + diskSize = 1536; # MB 6 6 gce = pkgs.google-compute-engine; 7 7 in 8 8 {
+4 -1
nixos/release.nix
··· 311 311 tests.kernel-copperhead = callTest tests/kernel-copperhead.nix {}; 312 312 tests.kernel-latest = callTest tests/kernel-latest.nix {}; 313 313 tests.kernel-lts = callTest tests/kernel-lts.nix {}; 314 - tests.kubernetes = callSubTestsOnMatchingSystems ["x86_64-linux"] tests/kubernetes/default.nix {}; 314 + tests.kubernetes.dns = callSubTestsOnMatchingSystems ["x86_64-linux"] tests/kubernetes/dns.nix {}; 315 + ## kubernetes.e2e should eventually replace kubernetes.rbac when it works 316 + #tests.kubernetes.e2e = callSubTestsOnMatchingSystems ["x86_64-linux"] tests/kubernetes/e2e.nix {}; 317 + tests.kubernetes.rbac = callSubTestsOnMatchingSystems ["x86_64-linux"] tests/kubernetes/rbac.nix {}; 315 318 tests.latestKernel.login = callTest tests/login.nix { latestKernel = true; }; 316 319 tests.ldap = callTest tests/ldap.nix {}; 317 320 #tests.lightdm = callTest tests/lightdm.nix {};
+51 -18
nixos/tests/kubernetes/certs.nix
··· 6 6 kubelets 7 7 }: 8 8 let 9 - runWithCFSSL = name: cmd: 10 - builtins.fromJSON (builtins.readFile ( 11 - pkgs.runCommand "${name}-cfss.json" { 12 - buildInputs = [ pkgs.cfssl ]; 13 - } "cfssl ${cmd} > $out" 14 - )); 9 + runWithCFSSL = name: cmd: 10 + let secrets = pkgs.runCommand "${name}-cfss.json" { 11 + buildInputs = [ pkgs.cfssl pkgs.jq ]; 12 + outputs = [ "out" "cert" "key" "csr" ]; 13 + } 14 + '' 15 + ( 16 + echo "${cmd}" 17 + cfssl ${cmd} > tmp 18 + cat tmp | jq -r .key > $key 19 + cat tmp | jq -r .cert > $cert 20 + cat tmp | jq -r .csr > $csr 15 21 16 - writeCFSSL = content: 17 - pkgs.runCommand content.name { 18 - buildInputs = [ pkgs.cfssl ]; 19 - } '' 20 - mkdir -p $out 21 - cd $out 22 - cat ${writeFile content} | cfssljson -bare ${content.name} 23 - ''; 22 + touch $out 23 + ) 2>&1 | fold -w 80 -s 24 + ''; 25 + in { 26 + key = secrets.key; 27 + cert = secrets.cert; 28 + csr = secrets.csr; 29 + }; 30 + 31 + writeCFSSL = content: 32 + pkgs.runCommand content.name { 33 + buildInputs = [ pkgs.cfssl pkgs.jq ]; 34 + } '' 35 + mkdir -p $out 36 + cd $out 37 + 38 + json=${pkgs.lib.escapeShellArg (builtins.toJSON content)} 39 + 40 + # for a given $field in the $json, treat the associated value as a 41 + # file path and substitute the contents thereof into the $json 42 + # object. 43 + expandFileField() { 44 + local field=$1 45 + if jq -e --arg field "$field" 'has($field)'; then 46 + local path="$(echo "$json" | jq -r ".$field")" 47 + json="$(echo "$json" | jq --arg val "$(cat "$path")" ".$field = \$val")" 48 + fi 49 + } 50 + 51 + expandFileField key 52 + expandFileField ca 53 + expandFileField cert 54 + 55 + echo "$json" | cfssljson -bare ${content.name} 56 + ''; 24 57 25 58 noCSR = content: pkgs.lib.filterAttrs (n: v: n != "csr") content; 26 59 noKey = content: pkgs.lib.filterAttrs (n: v: n != "key") content; 27 60 28 - writeFile = content: pkgs.writeText "content" ( 29 - if pkgs.lib.isAttrs content then builtins.toJSON content 30 - else toString content 31 - ); 61 + writeFile = content: 62 + if pkgs.lib.isDerivation content 63 + then content 64 + else pkgs.writeText "content" (builtins.toJSON content); 32 65 33 66 createServingCertKey = { ca, cn, hosts? [], size ? 2048, name ? cn }: 34 67 noCSR (
+1 -1
nixos/tests/kubernetes/e2e.nix
··· 2 2 with import ./base.nix { inherit system; }; 3 3 let 4 4 domain = "my.zyx"; 5 - certs = import ./certs.nix { externalDomain = domain; }; 5 + certs = import ./certs.nix { externalDomain = domain; kubelets = ["machine1" "machine2"]; }; 6 6 kubeconfig = pkgs.writeText "kubeconfig.json" (builtins.toJSON { 7 7 apiVersion = "v1"; 8 8 kind = "Config";
+2 -2
nixos/tests/kubernetes/rbac.nix
··· 12 12 }); 13 13 14 14 roRoleBinding = pkgs.writeText "ro-role-binding.json" (builtins.toJSON { 15 - apiVersion = "rbac.authorization.k8s.io/v1beta1"; 15 + apiVersion = "rbac.authorization.k8s.io/v1"; 16 16 kind = "RoleBinding"; 17 17 metadata = { 18 18 name = "read-pods"; ··· 31 31 }); 32 32 33 33 roRole = pkgs.writeText "ro-role.json" (builtins.toJSON { 34 - apiVersion = "rbac.authorization.k8s.io/v1beta1"; 34 + apiVersion = "rbac.authorization.k8s.io/v1"; 35 35 kind = "Role"; 36 36 metadata = { 37 37 name = "pod-reader";
+3 -3
pkgs/applications/altcoins/monero-gui/default.nix
··· 12 12 13 13 stdenv.mkDerivation rec { 14 14 name = "monero-gui-${version}"; 15 - version = "2018-03-31"; 15 + version = "0.12.0.0"; 16 16 17 17 src = fetchFromGitHub { 18 18 owner = "monero-project"; 19 19 repo = "monero-gui"; 20 - rev = "fbe5ba831795008361f4de4347e7ecb6d868b4eb"; 21 - sha256 = "06cncwk4mxfw1rqwlwisasvangl73xyqwj4g6r9j85j5x4xy0k5s"; 20 + rev = "v${version}"; 21 + sha256 = "1mg5ival8a2wdp14yib4wzqax4xyvd40zjy9anhszljds1439jhl"; 22 22 }; 23 23 24 24 nativeBuildInputs = [ qmake pkgconfig ];
+2 -2
pkgs/applications/altcoins/monero/default.nix
··· 1 1 { stdenv, fetchFromGitHub, cmake, pkgconfig, git 2 2 , boost, miniupnpc, openssl, unbound, cppzmq 3 3 , zeromq, pcsclite, readline 4 - , IOKit ? null 4 + , CoreData, IOKit, PCSC 5 5 }: 6 6 7 7 assert stdenv.isDarwin -> IOKit != null; ··· 24 24 buildInputs = [ 25 25 boost miniupnpc openssl unbound 26 26 cppzmq zeromq pcsclite readline 27 - ] ++ optional stdenv.isDarwin IOKit; 27 + ] ++ optionals stdenv.isDarwin [ IOKit CoreData PCSC ]; 28 28 29 29 cmakeFlags = [ 30 30 "-DCMAKE_BUILD_TYPE=Release"
+2 -2
pkgs/applications/audio/mpg123/default.nix
··· 4 4 }: 5 5 6 6 stdenv.mkDerivation rec { 7 - name = "mpg123-1.25.8"; 7 + name = "mpg123-1.25.10"; 8 8 9 9 src = fetchurl { 10 10 url = "mirror://sourceforge/mpg123/${name}.tar.bz2"; 11 - sha256 = "16s9z1xc5kv1p90g42vsr9m4gq3dwjsmrj873x4i8601mvpm3nkr"; 11 + sha256 = "08vhp8lz7d9ybhxcmkq3adwfryhivfvp0745k4r9kgz4wap3f4vc"; 12 12 }; 13 13 14 14 buildInputs = stdenv.lib.optional (!stdenv.isDarwin) alsaLib;
+4 -4
pkgs/applications/editors/eclipse/build-eclipse.nix
··· 1 1 { stdenv, makeDesktopItem, freetype, fontconfig, libX11, libXrender 2 - , zlib, jdk, glib, gtk2, libXtst, gsettings-desktop-schemas, webkitgtk24x-gtk2 2 + , zlib, jdk, glib, gtk3, libXtst, gsettings-desktop-schemas, webkitgtk 3 3 , makeWrapper, ... }: 4 4 5 5 { name, src ? builtins.getAttr stdenv.system sources, sources ? null, description }: ··· 18 18 }; 19 19 20 20 buildInputs = [ 21 - fontconfig freetype glib gsettings-desktop-schemas gtk2 jdk libX11 21 + fontconfig freetype glib gsettings-desktop-schemas gtk3 jdk libX11 22 22 libXrender libXtst makeWrapper zlib 23 - ] ++ stdenv.lib.optional (webkitgtk24x-gtk2 != null) webkitgtk24x-gtk2; 23 + ] ++ stdenv.lib.optional (webkitgtk != null) webkitgtk; 24 24 25 25 buildCommand = '' 26 26 # Unpack tarball. ··· 41 41 42 42 makeWrapper $out/eclipse/eclipse $out/bin/eclipse \ 43 43 --prefix PATH : ${jdk}/bin \ 44 - --prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath ([ glib gtk2 libXtst ] ++ stdenv.lib.optional (webkitgtk24x-gtk2 != null) webkitgtk24x-gtk2)} \ 44 + --prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath ([ glib gtk3 libXtst ] ++ stdenv.lib.optional (webkitgtk != null) webkitgtk)} \ 45 45 --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \ 46 46 --add-flags "-configuration \$HOME/.eclipse/''${productId}_$productVersion/configuration" 47 47
+3 -3
pkgs/applications/editors/eclipse/default.nix
··· 1 1 { stdenv, lib, fetchurl, makeDesktopItem, makeWrapper 2 2 , freetype, fontconfig, libX11, libXext, libXrender, zlib 3 - , glib, gtk2, libXtst, jdk, gsettings-desktop-schemas 4 - , webkitgtk24x-gtk2 ? null # for internal web browser 3 + , glib, gtk3, libXtst, jdk, gsettings-desktop-schemas 4 + , webkitgtk ? null # for internal web browser 5 5 , buildEnv, writeText, runCommand 6 6 , callPackage 7 7 }: ··· 15 15 16 16 buildEclipse = import ./build-eclipse.nix { 17 17 inherit stdenv makeDesktopItem freetype fontconfig libX11 libXrender zlib 18 - jdk glib gtk2 libXtst gsettings-desktop-schemas webkitgtk24x-gtk2 18 + jdk glib gtk3 libXtst gsettings-desktop-schemas webkitgtk 19 19 makeWrapper; 20 20 }; 21 21
+2 -2
pkgs/applications/editors/focuswriter/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "focuswriter-${version}"; 5 - version = "1.6.10"; 5 + version = "1.6.11"; 6 6 7 7 src = fetchurl { 8 8 url = "https://gottcode.org/focuswriter/focuswriter-${version}-src.tar.bz2"; 9 - sha256 = "0hrbycy5lapdkaa2xm90j45sgsiqdnlk9wry41kxxpdln9msabxs"; 9 + sha256 = "0izbsm2vx24pnd92gf7ky8x47g324a8d16hy1s8kk3x1inxd80z1"; 10 10 }; 11 11 12 12 nativeBuildInputs = [ pkgconfig qmake qttools ];
+25 -14
pkgs/applications/graphics/gthumb/default.nix
··· 1 1 { stdenv, fetchurl, gnome3, itstool, libxml2, pkgconfig, intltool, 2 - exiv2, libjpeg, libtiff, gstreamer, libraw, libsoup, libsecret, 3 - libchamplain, librsvg, libwebp, json-glib, webkit, lcms2, bison, 4 - flex, hicolor-icon-theme, wrapGAppsHook, shared-mime-info }: 2 + exiv2, libjpeg, libtiff, gst_all_1, libraw, libsoup, libsecret, 3 + libchamplain, librsvg, libwebp, json-glib, webkitgtk, lcms2, bison, 4 + flex, wrapGAppsHook, shared-mime-info }: 5 5 6 - stdenv.mkDerivation rec { 7 - name = "${pname}-${version}"; 6 + let 8 7 pname = "gthumb"; 9 - version = "${major}.0"; 10 - major = "3.6"; 8 + version = "3.6.1"; 9 + in stdenv.mkDerivation rec { 10 + name = "${pname}-${version}"; 11 11 12 12 src = fetchurl { 13 - url = "mirror://gnome/sources/${pname}/${major}/${name}.tar.xz"; 14 - sha256 = "1zc7myvnzgq7dawjg03rqvwfad7p938m20f25sfhv65jsfq8n928"; 13 + url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz"; 14 + sha256 = "1vj26gw9b5y4bmb2m49wplqg0md568g3gxin500v3slggzhzkaww"; 15 15 }; 16 16 17 - nativeBuildInputs = [ pkgconfig wrapGAppsHook ]; 17 + nativeBuildInputs = [ itstool libxml2 intltool pkgconfig bison flex wrapGAppsHook ]; 18 18 19 - buildInputs = with gnome3; 20 - [ itstool libxml2 intltool glib gtk gsettings-desktop-schemas dconf 21 - exiv2 libjpeg libtiff gstreamer libraw libsoup libsecret libchamplain 22 - librsvg libwebp json-glib webkit lcms2 bison flex hicolor-icon-theme defaultIconTheme ]; 19 + buildInputs = with gnome3; [ 20 + glib gtk gsettings-desktop-schemas gst_all_1.gstreamer gst_all_1.gst-plugins-base 21 + exiv2 libjpeg libtiff libraw libsoup libsecret libchamplain 22 + librsvg libwebp json-glib webkitgtk lcms2 defaultIconTheme 23 + ]; 23 24 24 25 enableParallelBuilding = true; 26 + 27 + configureFlags = [ 28 + "--enable-libchamplain" 29 + ]; 25 30 26 31 preFixup = '' 27 32 gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared-mime-info}/share") 28 33 ''; 34 + 35 + passthru = { 36 + updateScript = gnome3.updateScript { 37 + packageName = pname; 38 + }; 39 + }; 29 40 30 41 meta = with stdenv.lib; { 31 42 homepage = https://wiki.gnome.org/Apps/gthumb;
+28
pkgs/applications/misc/rsibreak/default.nix
··· 1 + { 2 + mkDerivation, fetchurl, lib, 3 + extra-cmake-modules, kdoctools, 4 + knotifyconfig, kidletime, kwindowsystem, ktextwidgets, kcrash 5 + }: 6 + 7 + let 8 + pname = "rsibreak"; 9 + version = "0.12"; 10 + revision = ".8"; 11 + in mkDerivation rec { 12 + name = "rsibreak-${version}${revision}"; 13 + 14 + src = fetchurl { 15 + url = "https://download.kde.org/stable/${pname}/${version}/${name}.tar.xz"; 16 + sha256 = "1qn9xdjx9zzw47jsj7f4nkqmrangfhdgafm2jxm7cm6z6kcvzr28"; 17 + }; 18 + 19 + nativeBuildInputs = [ extra-cmake-modules kdoctools ]; 20 + propagatedBuildInputs = [ knotifyconfig kidletime kwindowsystem ktextwidgets kcrash ]; 21 + 22 + meta = with lib; { 23 + description = "RSIBreak takes care of your health and regularly breaks your work to avoid repetitive strain injury (RSI)"; 24 + license = licenses.gpl2; 25 + homepage = https://www.kde.org/applications/utilities/rsibreak/; 26 + maintainers = with maintainers; [ vandenoever ]; 27 + }; 28 + }
+1 -1
pkgs/applications/networking/browsers/firefox/wrapper.nix
··· 30 30 }: 31 31 32 32 let 33 - cfg = stdenv.lib.attrByPath [ browserName ] {} config; 33 + cfg = config.${browserName} or {}; 34 34 enableAdobeFlash = cfg.enableAdobeFlash or false; 35 35 ffmpegSupport = browser.ffmpegSupport or false; 36 36 gssSupport = browser.gssSupport or false;
+1 -4
pkgs/applications/networking/cluster/cni/default.nix
··· 13 13 14 14 buildInputs = [ go ]; 15 15 16 - outputs = ["out" "plugins"]; 17 - 18 16 buildPhase = '' 19 17 patchShebangs build.sh 20 18 ./build.sh 21 19 ''; 22 20 23 21 installPhase = '' 24 - mkdir -p $out/bin $plugins 22 + mkdir -p $out/bin 25 23 mv bin/cnitool $out/bin 26 - mv bin/* $plugins/ 27 24 ''; 28 25 29 26 meta = with stdenv.lib; {
+33
pkgs/applications/networking/cluster/cni/plugins.nix
··· 1 + { stdenv, lib, fetchFromGitHub, go }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "cni-plugins-${version}"; 5 + version = "0.7.0"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "containernetworking"; 9 + repo = "plugins"; 10 + rev = "v${version}"; 11 + sha256 = "0m885v76azs7lrk6m6n53rwh0xadwvdcr90h0l3bxpdv87sj2mnf"; 12 + }; 13 + 14 + buildInputs = [ go ]; 15 + 16 + buildPhase = '' 17 + patchShebangs build.sh 18 + ./build.sh 19 + ''; 20 + 21 + installPhase = '' 22 + mkdir -p $out/bin 23 + mv bin/* $out/bin 24 + ''; 25 + 26 + meta = with lib; { 27 + description = "Some standard networking plugins, maintained by the CNI team"; 28 + homepage = https://github.com/containernetworking/plugins; 29 + license = licenses.asl20; 30 + platforms = [ "x86_64-linux" ]; 31 + maintainers = with maintainers; [ cstrahan ]; 32 + }; 33 + }
+2 -2
pkgs/applications/networking/syncthing/default.nix
··· 3 3 let 4 4 common = { stname, target, patches ? [], postInstall ? "" }: 5 5 stdenv.mkDerivation rec { 6 - version = "0.14.45"; 6 + version = "0.14.46"; 7 7 name = "${stname}-${version}"; 8 8 9 9 src = fetchFromGitHub { 10 10 owner = "syncthing"; 11 11 repo = "syncthing"; 12 12 rev = "v${version}"; 13 - sha256 = "0hhldmvsbvkaj0x6af7c41zq5mbzcymv5xxmwvb4h5zbz49z9vzl"; 13 + sha256 = "0lv8n5id40iy2gfccy8g45fjzlnbnvi7nlvj25pri22dq2bd5svm"; 14 14 }; 15 15 16 16 inherit patches;
+2 -2
pkgs/applications/science/biology/igv/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "igv-${version}"; 5 - version = "2.4.9"; 5 + version = "2.4.10"; 6 6 7 7 src = fetchurl { 8 8 url = "http://data.broadinstitute.org/igv/projects/downloads/2.4/IGV_${version}.zip"; 9 - sha256 = "0acyq7602g2pz6mc9ip1297c68kgl9pq9yzk3k2lli9l5qvxi3g1"; 9 + sha256 = "1wyv3ny06m6ipb83hi3pzcc50v49zms69c5714iixh0nqpd826f2"; 10 10 }; 11 11 12 12 buildInputs = [ unzip jre ];
+1 -1
pkgs/development/compilers/llvm/3.4/llvm.nix
··· 90 90 homepage = http://llvm.org/; 91 91 license = stdenv.lib.licenses.ncsa; 92 92 maintainers = with stdenv.lib.maintainers; [ lovek323 raskin viric ]; 93 - platforms = [ "i686-linux" "x86_64-linux" "x86_64-darwin"]; 93 + platforms = [ "i686-linux" "x86_64-linux" "x86_64-darwin" "armv7l-linux"]; 94 94 }; 95 95 }
+1 -1
pkgs/development/compilers/llvm/3.5/llvm.nix
··· 98 98 homepage = http://llvm.org/; 99 99 license = stdenv.lib.licenses.ncsa; 100 100 maintainers = with stdenv.lib.maintainers; [ lovek323 raskin viric ]; 101 - platforms = [ "i686-linux" "x86_64-linux" "x86_64-darwin"]; 101 + platforms = [ "i686-linux" "x86_64-linux" "x86_64-darwin" "armv7l-linux"]; 102 102 }; 103 103 } 104 104
+3 -3
pkgs/development/compilers/openjdk/10.nix
··· 4 4 , libjpeg, giflib 5 5 , setJavaClassPath 6 6 , minimal ? false 7 - , enableGnome2 ? true, gtk2, gnome_vfs, glib, GConf 7 + , enableGnome2 ? true, gtk3, gnome_vfs, glib, GConf 8 8 }: 9 9 10 10 let ··· 38 38 libjpeg giflib libX11 libICE libXext libXrender libXtst libXt libXtst 39 39 libXi libXinerama libXcursor lndir fontconfig 40 40 ] ++ lib.optionals (!minimal && enableGnome2) [ 41 - gtk2 gnome_vfs GConf glib 41 + gtk3 gnome_vfs GConf glib 42 42 ]; 43 43 44 44 patches = [ ··· 80 80 NIX_LDFLAGS= lib.optionals (!minimal) [ 81 81 "-lfontconfig" "-lcups" "-lXinerama" "-lXrandr" "-lmagic" 82 82 ] ++ lib.optionals (!minimal && enableGnome2) [ 83 - "-lgtk-x11-2.0" "-lgio-2.0" "-lgnomevfs-2" "-lgconf-2" 83 + "-lgtk-3" "-lgio-2.0" "-lgnomevfs-2" "-lgconf-2" 84 84 ]; 85 85 86 86 buildFlags = [ "all" ];
+2 -2
pkgs/development/libraries/folly/default.nix
··· 3 3 4 4 stdenv.mkDerivation rec { 5 5 name = "folly-${version}"; 6 - version = "2018.02.26.00"; 6 + version = "2018.03.26.00"; 7 7 8 8 src = fetchFromGitHub { 9 9 owner = "facebook"; 10 10 repo = "folly"; 11 11 rev = "v${version}"; 12 - sha256 = "1pdb3nnly0x4x8yy1r13xgh9zhn34c9dq0b3nhxr8gwbzf643j1c"; 12 + sha256 = "137d9b9k2m02r8f2w31qj3gc18hpm5g51bcl60g6vzdqzwzizzyr"; 13 13 }; 14 14 15 15 nativeBuildInputs = [ autoreconfHook python pkgconfig ];
+5 -2
pkgs/development/libraries/lmdb/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "lmdb-${version}"; 5 - version = "0.9.21"; 5 + version = "0.9.22"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "LMDB"; 9 9 repo = "lmdb"; 10 10 rev = "LMDB_${version}"; 11 - sha256 = "026a6himvg3y4ssnccdbgr3c2pq3w2d47nayn05v512875z4f2w3"; 11 + sha256 = "0lng4ra2qrbqcf8klvqp68qarha0z4bkqhhv8lhh45agsxyrhfkj"; 12 12 }; 13 13 14 14 postUnpack = "sourceRoot=\${sourceRoot}/libraries/liblmdb"; 15 + 16 + patches = [ ./hardcoded-compiler.patch ]; 17 + patchFlags = "-p3"; 15 18 16 19 outputs = [ "bin" "out" "dev" ]; 17 20
+26
pkgs/development/libraries/lmdb/hardcoded-compiler.patch
··· 1 + commit 029031a68873bc3784a8561bd8e049efbd34f9d0 (HEAD) 2 + Author: Vladimír Čunát <vcunat@gmail.com> 3 + Date: Sun Apr 1 11:05:31 2018 +0200 4 + 5 + make: gcc -> $(CC) 6 + 7 + diff --git a/libraries/liblmdb/Makefile b/libraries/liblmdb/Makefile 8 + index f254511..612484e 100644 9 + --- a/libraries/liblmdb/Makefile 10 + +++ b/libraries/liblmdb/Makefile 11 + @@ -102,13 +102,13 @@ COV_OBJS=xmdb.o xmidl.o 12 + 13 + coverage: xmtest 14 + for i in mtest*.c [0-9]*.c; do j=`basename \$$i .c`; $(MAKE) $$j.o; \ 15 + - gcc -o x$$j $$j.o $(COV_OBJS) -pthread $(COV_FLAGS); \ 16 + + $(CC) -o x$$j $$j.o $(COV_OBJS) -pthread $(COV_FLAGS); \ 17 + rm -rf testdb; mkdir testdb; ./x$$j; done 18 + gcov xmdb.c 19 + gcov xmidl.c 20 + 21 + xmtest: mtest.o xmdb.o xmidl.o 22 + - gcc -o xmtest mtest.o xmdb.o xmidl.o -pthread $(COV_FLAGS) 23 + + $(CC) -o xmtest mtest.o xmdb.o xmidl.o -pthread $(COV_FLAGS) 24 + 25 + xmdb.o: mdb.c lmdb.h midl.h 26 + $(CC) $(CFLAGS) -fPIC $(CPPFLAGS) -O0 $(COV_FLAGS) -c mdb.c -o $@
+2 -2
pkgs/development/libraries/opendht/default.nix
··· 13 13 14 14 stdenv.mkDerivation rec { 15 15 name = "opendht-${version}"; 16 - version = "1.6.0"; 16 + version = "1.6.1"; 17 17 18 18 src = fetchFromGitHub { 19 19 owner = "savoirfairelinux"; 20 20 repo = "opendht"; 21 21 rev = "${version}"; 22 - sha256 = "0ybv41nbh86ricxfv478z4izbxvnvk86csr29c6qf4dinmrysf96"; 22 + sha256 = "13sxcg2sdhnzdkrjqmhg16p4001w3rd048p71k74pbmi8qpd0bw2"; 23 23 }; 24 24 25 25 buildInputs = [
+2 -2
pkgs/development/libraries/qpdf/default.nix
··· 1 1 { stdenv, fetchurl, libjpeg, zlib, perl }: 2 2 3 - let version = "8.0.0"; 3 + let version = "8.0.2"; 4 4 in 5 5 stdenv.mkDerivation rec { 6 6 name = "qpdf-${version}"; 7 7 8 8 src = fetchurl { 9 9 url = "mirror://sourceforge/qpdf/qpdf/${version}/${name}.tar.gz"; 10 - sha256 = "01a1d5wyrj1m35d68yj0cyqfjyrwhxq2yqwaw5an1d1p4aaid8gz"; 10 + sha256 = "1hf8jfjar8p7v288d7ccmr8w171mv9kb86b6hq1nk58mnlq1g7mh"; 11 11 }; 12 12 13 13 nativeBuildInputs = [ perl ];
+36
pkgs/development/misc/rpiboot/unstable.nix
··· 1 + { stdenv, fetchFromGitHub, libusb1 }: 2 + 3 + let 4 + version = "2018-03-27"; 5 + name = "rpiboot-unstable-${version}"; 6 + in stdenv.mkDerivation { 7 + inherit name; 8 + 9 + src = fetchFromGitHub { 10 + owner = "raspberrypi"; 11 + repo = "usbboot"; 12 + rev = "fb86716935f2e820333b037a2ff93a338ad9b695"; 13 + sha256 = "163g7iw7kf6ra71adx6lf1xzf3kv20bppva15ljwn54jlah5mv98"; 14 + }; 15 + 16 + nativeBuildInputs = [ libusb1 ]; 17 + 18 + patchPhase = '' 19 + sed -i "s@/usr/@$out/@g" main.c 20 + ''; 21 + 22 + installPhase = '' 23 + mkdir -p $out/bin 24 + mkdir -p $out/share/rpiboot 25 + cp rpiboot $out/bin 26 + cp -r msd $out/share/rpiboot 27 + ''; 28 + 29 + meta = { 30 + homepage = https://github.com/raspberrypi/usbboot; 31 + description = "Utility to boot a Raspberry Pi CM/CM3/Zero over USB"; 32 + maintainers = [ stdenv.lib.maintainers.cartr ]; 33 + license = stdenv.lib.licenses.asl20; 34 + platforms = stdenv.lib.platforms.unix; 35 + }; 36 + }
+20 -5
pkgs/development/ocaml-modules/ocsigen-deriving/default.nix
··· 1 - { stdenv, fetchzip, ocaml, findlib, ocamlbuild, oasis, ocaml_optcomp, camlp4 }: 1 + { stdenv, fetchzip, ocaml, findlib, ocamlbuild, oasis, ocaml_optcomp, camlp4 2 + , num 3 + }: 2 4 3 - let version = "0.7.1"; in 5 + let param = 6 + if stdenv.lib.versionAtLeast ocaml.version "4.03" 7 + then { 8 + version = "0.8.1"; 9 + sha256 = "03vzrybdpjydbpil97zmir71kpsn2yxkjnzysma7fvybk8ll4zh9"; 10 + buildInputs = [ num ]; 11 + } else { 12 + version = "0.7.1"; 13 + sha256 = "0gg3nr3iic4rwqrcc0qvfm9x0x57zclvdsnpy0z8rv2fl5isbzms"; 14 + }; 15 + in 16 + 17 + let inherit (param) version; in 4 18 5 19 stdenv.mkDerivation { 6 20 name = "ocsigen-deriving-${version}"; 7 21 src = fetchzip { 8 22 url = "https://github.com/ocsigen/deriving/archive/${version}.tar.gz"; 9 - sha256 = "0gg3nr3iic4rwqrcc0qvfm9x0x57zclvdsnpy0z8rv2fl5isbzms"; 10 - }; 23 + inherit (param) sha256; 24 + }; 11 25 12 - buildInputs = [ ocaml findlib ocamlbuild oasis ocaml_optcomp camlp4 ]; 26 + buildInputs = [ ocaml findlib ocamlbuild oasis ocaml_optcomp camlp4 ] 27 + ++ (param.buildInputs or []); 13 28 14 29 createFindlibDestdir = true; 15 30
+12
pkgs/development/ocaml-modules/optcomp/META
··· 1 + # OASIS_START 2 + # DO NOT EDIT (digest: ec844fa3189acb2a866b89a69d111ba4) 3 + version = "1.6" 4 + description = "Optional compilation with cpp-like directives" 5 + requires = "camlp4" 6 + archive(syntax, preprocessor) = "optcomp.cma" 7 + archive(syntax, toploop) = "optcomp.cma" 8 + archive(syntax, preprocessor, native) = "optcomp.cmxa" 9 + archive(syntax, preprocessor, native, plugin) = "optcomp.cmxs" 10 + exists_if = "optcomp.cma" 11 + # OASIS_STOP 12 +
+23 -1
pkgs/development/ocaml-modules/optcomp/default.nix
··· 1 - { stdenv, fetchurl, ocaml, findlib, ocamlbuild, camlp4 }: 1 + { stdenv, fetchurl, fetchpatch, ocaml, findlib, ocamlbuild, camlp4 }: 2 2 3 3 stdenv.mkDerivation { 4 4 name = "ocaml-optcomp-1.6"; ··· 6 6 url = https://github.com/diml/optcomp/archive/1.6.tar.gz; 7 7 sha256 = "0hhhb2gisah1h22zlg5iszbgqxdd7x85cwd57bd4mfkx9l7dh8jh"; 8 8 }; 9 + 10 + patches = 11 + let inherit (stdenv.lib) optional versionAtLeast; in 12 + optional (versionAtLeast ocaml.version "4.02") (fetchpatch { 13 + url = "https://github.com/diml/optcomp/commit/b7f809360c9794b383a4bc0492f6df381276b429.patch"; 14 + sha256 = "1n095lk94jq1rwi0l24g2wbgms7249wdd31n0ji895dr6755s93y"; 15 + }) 16 + ; 9 17 10 18 createFindlibDestdir = true; 11 19 12 20 buildInputs = [ ocaml findlib ocamlbuild camlp4 ]; 13 21 22 + configurePhase = '' 23 + cp ${./META} META 24 + ''; 25 + 26 + buildPhase = '' 27 + ocamlbuild src/optcomp.cmxs src/optcomp.cma src/optcomp_o.native src/optcomp_r.native 28 + ''; 29 + 30 + installPhase = '' 31 + mkdir -p $out/bin 32 + cp _build/src/optcomp_o.native $out/bin/optcomp-o 33 + cp _build/src/optcomp_r.native $out/bin/optcomp-r 34 + ocamlfind install optcomp META _build/src/optcomp.{a,cma,cmxa,cmxs} _build/src/pa_optcomp.{cmi,cmx,mli} 35 + ''; 14 36 15 37 meta = { 16 38 homepage = https://github.com/diml/optcomp;
+7 -8
pkgs/development/python-modules/behave/default.nix
··· 1 1 { stdenv, fetchPypi 2 - , buildPythonApplication, python, pythonAtLeast 3 - , mock, nose, pyhamcrest 2 + , buildPythonApplication, isPy27, python, pythonOlder 3 + , mock, nose, pathpy, pyhamcrest, pytest 4 4 , glibcLocales, parse, parse-type, six 5 + , traceback2 5 6 }: 6 7 buildPythonApplication rec { 7 8 pname = "behave"; 8 9 version = "1.2.6"; 9 10 name = "${pname}-${version}"; 10 11 11 - disabled = pythonAtLeast "3.6"; 12 - 13 12 src = fetchPypi { 14 13 inherit pname version; 15 - sha256 = "b9662327aa53294c1351b0a9c369093ccec1d21026f050c3bd9b3e5cccf81a86"; 14 + sha256 = "11hsz365qglvpp1m1w16239c3kiw15lw7adha49lqaakm8kj6rmr"; 16 15 }; 17 16 18 - checkInputs = [ mock nose pyhamcrest ]; 17 + checkInputs = [ mock nose pathpy pyhamcrest pytest ]; 19 18 buildInputs = [ glibcLocales ]; 20 - propagatedBuildInputs = [ parse parse-type six ]; 19 + propagatedBuildInputs = [ parse parse-type six ] ++ stdenv.lib.optional (pythonOlder "3.0") traceback2; 21 20 22 21 postPatch = '' 23 22 patchShebangs bin ··· 28 29 export LANG="en_US.UTF-8" 29 30 export LC_ALL="en_US.UTF-8" 30 31 31 - nosetests -x 32 + pytest test tests 32 33 33 34 ${python.interpreter} bin/behave -f progress3 --stop --tags='~@xfail' features/ 34 35 ${python.interpreter} bin/behave -f progress3 --stop --tags='~@xfail' tools/test-features/
+4 -7
pkgs/development/python-modules/bibtexparser/default.nix
··· 1 1 { lib 2 - , buildPythonPackage 3 - , fetchFromGitHub 4 - , pyparsing 5 - , future 6 - , nose 7 - , glibcLocales 2 + , buildPythonPackage, fetchFromGitHub 3 + , future, pyparsing 4 + , glibcLocales, nose 8 5 }: 9 6 10 7 buildPythonPackage rec { ··· 16 19 sha256 = "0lmlarkfbq2hp1wa04a62245jr2mqizqsdlgilj5aq6vy92gr6ai"; 17 20 }; 18 21 19 - propagatedBuildInputs = [ pyparsing future ]; 22 + propagatedBuildInputs = [ future pyparsing ]; 20 23 21 24 checkInputs = [ nose glibcLocales ]; 22 25
+23
pkgs/development/python-modules/black/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchPypi, pythonOlder, attrs, click }: 2 + 3 + buildPythonPackage rec { 4 + pname = "black"; 5 + version = "18.4a0"; 6 + 7 + disabled = pythonOlder "3.6"; 8 + 9 + src = fetchPypi { 10 + inherit pname version; 11 + sha256 = "04dffr4wmzs4vf2xj0cxp03hv04x0kk06qyzx6jjrp1mq0z3n2rr"; 12 + }; 13 + 14 + propagatedBuildInputs = [ attrs click ]; 15 + 16 + meta = with stdenv.lib; { 17 + description = "The uncompromising Python code formatter"; 18 + homepage = https://github.com/ambv/black; 19 + license = licenses.mit; 20 + maintainers = with maintainers; [ sveitser ]; 21 + }; 22 + 23 + }
+33
pkgs/development/python-modules/jieba/default.nix
··· 1 + { lib, buildPythonPackage, fetchFromGitHub, glibcLocales, python, isPy3k }: 2 + 3 + buildPythonPackage rec { 4 + pname = "jieba"; 5 + version = "0.39"; 6 + 7 + # no tests in PyPI tarball 8 + src = fetchFromGitHub { 9 + owner = "fxsjy"; 10 + repo = pname; 11 + rev = "v${version}"; 12 + sha256 = "0hbq0l1jbgcvm58qg4p37im4jl5a9igvq3wlhlk22pmbkbvqqgzs"; 13 + }; 14 + 15 + checkInputs = [ glibcLocales ]; 16 + 17 + # UnicodeEncodeError 18 + doCheck = isPy3k; 19 + 20 + # Citing https://github.com/fxsjy/jieba/issues/384: "testcases is in a mess" 21 + # So just picking random ones that currently work 22 + checkPhase = '' 23 + export LC_ALL=en_US.UTF-8 24 + ${python.interpreter} test/test.py 25 + ${python.interpreter} test/test_tokenize.py 26 + ''; 27 + 28 + meta = with lib; { 29 + description = "Chinese Words Segementation Utilities"; 30 + homepage = https://github.com/fxsjy/jieba; 31 + license = licenses.mit; 32 + }; 33 + }
+34
pkgs/development/python-modules/langcodes/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , marisa-trie 4 + , pythonOlder 5 + , fetchPypi 6 + , nose 7 + }: 8 + 9 + buildPythonPackage rec { 10 + pname = "langcodes"; 11 + version = "1.4.1"; 12 + 13 + src = fetchPypi { 14 + inherit pname version; 15 + sha256 = "1axdiva2qglsjmnx2ak7i6hm0yhp6kbc4lcsgn8ckwy0nq1z3kr2"; 16 + }; 17 + 18 + propagatedBuildInputs = [ marisa-trie ]; 19 + 20 + disabled = pythonOlder "3.3"; 21 + 22 + checkInputs = [ nose ]; 23 + 24 + checkPhase = '' 25 + nosetests 26 + ''; 27 + 28 + meta = with lib; { 29 + description = "A toolkit for working with and comparing the standardized codes for languages, such as ‘en’ for English or ‘es’ for Spanish"; 30 + homepage = http://github.com/LuminosoInsight/langcodes; 31 + license = licenses.mit; 32 + maintainers = with maintainers; [ ixxie ]; 33 + }; 34 + }
+34
pkgs/development/python-modules/marisa-trie/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pytestrunner 5 + , pytest 6 + , hypothesis 7 + }: 8 + 9 + buildPythonPackage rec { 10 + pname = "marisa-trie"; 11 + version = "0.7.4"; 12 + 13 + src = fetchPypi { 14 + inherit pname version; 15 + sha256 = "1n4pxnaranbh3x2fcqxwh8j1z2918vy7i4q1z4jn75m9rkm5h8ia"; 16 + }; 17 + 18 + postPatch = '' 19 + substituteInPlace setup.py \ 20 + --replace "hypothesis==" "hypothesis>=" 21 + ''; 22 + 23 + nativeBuildInputs = [ pytestrunner ]; 24 + 25 + checkInputs = [ pytest hypothesis ]; 26 + 27 + meta = with lib; { 28 + description = "Static memory-efficient Trie-like structures for Python (2.x and 3.x) based on marisa-trie C++ library"; 29 + longDescription = "There are official SWIG-based Python bindings included in C++ library distribution; this package provides alternative Cython-based pip-installable Python bindings."; 30 + homepage = https://github.com/kmike/marisa-trie; 31 + license = licenses.mit; 32 + maintainers = with maintainers; [ ixxie ]; 33 + }; 34 + }
+24
pkgs/development/python-modules/mecab-python3/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , mecab 4 + , fetchPypi 5 + }: 6 + 7 + buildPythonPackage rec { 8 + pname = "mecab-python3"; 9 + version = "0.7"; 10 + 11 + src = fetchPypi { 12 + inherit pname version; 13 + sha256 = "007dg4f5fby2yl7cc44x6xwvcrf2w2ifmn0rmk56ss33mhs8l6qy"; 14 + }; 15 + 16 + propagatedBuildInputs = [ mecab ]; 17 + 18 + meta = with lib; { 19 + description = "A python wrapper for mecab: Morphological Analysis engine"; 20 + homepage = https://github.com/LuminosoInsight/wordfreq/; 21 + license = licenses.bsd0; 22 + maintainers = with maintainers; [ ixxie ]; 23 + }; 24 + }
+2 -10
pkgs/development/python-modules/parse-type/default.nix
··· 6 6 7 7 buildPythonPackage rec { 8 8 pname = "parse_type"; 9 - version = "0.3.4"; 9 + version = "0.4.2"; 10 10 11 11 src = fetchPypi { 12 12 inherit pname version; 13 - sha256 = "3dd0b323bafcb8c25e000ce5589042a1c99cba9c3bec77b9f591e46bc9606147"; 13 + sha256 = "0g3b6gsdwnm8dpkh2vn34q6dzxm9gl908ggyzcv31n9xbp3vv5pm"; 14 14 }; 15 - 16 - patches = [ 17 - (fetchpatch { 18 - name = "python-3.5-tests-compat.patch"; 19 - url = "https://github.com/jenisys/parse_type/pull/4.patch"; 20 - sha256 = "1mmn2fxss6q3qhaydd4s4v8vjgvgkg41v1vcivrzdsvgsc3npg7m"; 21 - }) 22 - ]; 23 15 24 16 checkInputs = [ pytest pytestrunner ]; 25 17 propagatedBuildInputs = [ parse six ] ++ stdenv.lib.optional (pythonOlder "3.4") enum34;
+2 -10
pkgs/development/python-modules/parse/default.nix
··· 3 3 }: 4 4 buildPythonPackage rec { 5 5 pname = "parse"; 6 - version = "1.6.6"; 6 + version = "1.8.2"; 7 7 name = "${pname}-${version}"; 8 8 9 9 src = fetchPypi { 10 10 inherit pname version; 11 - sha256 = "71435aaac494e08cec76de646de2aab8392c114e56fe3f81c565ecc7eb886178"; 11 + sha256 = "1lj9v1q4imszyhvipb6drsm3xdl35nan011mqxxas1yaypixsj40"; 12 12 }; 13 - 14 - patches = [ 15 - (fetchpatch { 16 - name = "python-3.5-tests-compat.patch"; 17 - url = "https://github.com/r1chardj0n3s/parse/pull/34.patch"; 18 - sha256 = "16iicgkf3lwivmdnp3xkq4n87wjmr3nb77z8mwz67b7by9nnp3jg"; 19 - }) 20 - ]; 21 13 22 14 checkPhase = '' 23 15 ${python.interpreter} test_parse.py
+23
pkgs/development/python-modules/pybindgen/default.nix
··· 1 + { stdenv, fetchPypi, buildPythonPackage, setuptools_scm, pygccxml }: 2 + buildPythonPackage rec { 3 + pname = "PyBindGen"; 4 + version = "0.18.0"; 5 + 6 + src = fetchPypi { 7 + inherit pname version; 8 + sha256 = "1sl4jn8rildv6f62cab66w791cixhaaxl7gwg9labs099rl74yl6"; 9 + }; 10 + 11 + buildInputs = [ setuptools_scm ]; 12 + 13 + checkInputs = [ pygccxml ]; 14 + 15 + meta = with stdenv.lib; { 16 + homepage = https://github.com/gjcarneiro/pybindgen; 17 + description = "Python Bindings Generator"; 18 + license = licenses.lgpl2; 19 + maintainers = with maintainers; [ teto ]; 20 + }; 21 + } 22 + 23 +
+26
pkgs/development/python-modules/pygccxml/default.nix
··· 1 + { stdenv, castxml, fetchFromGitHub, buildPythonPackage, 2 + llvmPackages, clang }: 3 + buildPythonPackage rec { 4 + pname = "pygccxml"; 5 + version = "1.9.1"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "gccxml"; 9 + repo = "pygccxml"; 10 + rev = "v${version}"; 11 + sha256 = "02ip03s0vmp7czzflbvf7qnybibfrd0rzqbc5zfmq3zmpnck3hvm"; 12 + }; 13 + 14 + buildInputs = [ castxml llvmPackages.libcxxStdenv]; 15 + 16 + # running the suite is hard, needs to generate xml_generator.cfg 17 + # but the format doesn't accept -isystem directives 18 + doCheck = false; 19 + 20 + meta = with stdenv.lib; { 21 + homepage = https://github.com/gccxml/pygccxml; 22 + description = "Python package for easy C++ declarations navigation"; 23 + license = licenses.boost; 24 + maintainers = with maintainers; [ teto ]; 25 + }; 26 + }
+9 -1
pkgs/development/python-modules/rootpy/default.nix
··· 1 - { lib, fetchPypi, isPy3k, buildPythonPackage, numpy, matplotlib, root, root_numpy, tables }: 1 + { lib, fetchPypi, isPy3k, buildPythonPackage, numpy, matplotlib, root, root_numpy, tables, pytest }: 2 2 3 3 buildPythonPackage rec { 4 4 pname = "rootpy"; ··· 13 13 disabled = isPy3k; 14 14 15 15 propagatedBuildInputs = [ matplotlib numpy root root_numpy tables ]; 16 + 17 + checkInputs = [ pytest ]; 18 + checkPhase = '' 19 + # tests fail with /homeless-shelter 20 + export HOME=$PWD 21 + # skip problematic tests 22 + py.test rootpy -k "not test_stl and not test_cpp and not test_xrootd_glob_single and not test_xrootd_glob_multiple" 23 + ''; 16 24 17 25 meta = with lib; { 18 26 homepage = http://www.rootpy.org;
+51
pkgs/development/python-modules/tensorflow/bin.nix
··· 1 + { stdenv 2 + , lib 3 + , fetchurl 4 + , buildPythonPackage 5 + , isPy3k, isPy36, pythonOlder 6 + , numpy 7 + , six 8 + , protobuf 9 + , absl-py 10 + , mock 11 + , backports_weakref 12 + , enum34 13 + , tensorflow-tensorboard 14 + , cudaSupport ? false 15 + }: 16 + 17 + # tensorflow is built from a downloaded wheel because the source 18 + # build doesn't yet work on Darwin. 19 + 20 + buildPythonPackage rec { 21 + pname = "tensorflow"; 22 + version = "1.5.0"; 23 + format = "wheel"; 24 + 25 + src = fetchurl { 26 + url = "https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-${version}-py3-none-any.whl"; 27 + sha256 = "1mapv45n9wmgcq3i3im0pv0gmhwkxw5z69nsnxb1gfxbj1mz5h9m"; 28 + }; 29 + 30 + propagatedBuildInputs = [ numpy six protobuf absl-py ] 31 + ++ lib.optional (!isPy3k) mock 32 + ++ lib.optionals (pythonOlder "3.4") [ backports_weakref enum34 ] 33 + ++ lib.optional (pythonOlder "3.6") tensorflow-tensorboard; 34 + 35 + # tensorflow depends on tensorflow_tensorboard, which cannot be 36 + # built at the moment (some of its dependencies do not build 37 + # [htlm5lib9999999 (seven nines) -> tensorboard], and it depends on an old version of 38 + # bleach) Hence we disable dependency checking for now. 39 + installFlags = lib.optional isPy36 "--no-dependencies"; 40 + 41 + meta = with stdenv.lib; { 42 + description = "Computation using data flow graphs for scalable machine learning"; 43 + homepage = http://tensorflow.org; 44 + license = licenses.asl20; 45 + maintainers = with maintainers; [ jyp abbradar ]; 46 + platforms = platforms.darwin; 47 + # Python 2.7 build uses different string encoding. 48 + # See https://github.com/NixOS/nixpkgs/pull/37044#issuecomment-373452253 49 + broken = cudaSupport || !isPy3k; 50 + }; 51 + }
+1 -1
pkgs/development/python-modules/tensorflow/default.nix
··· 149 149 homepage = http://tensorflow.org; 150 150 license = licenses.asl20; 151 151 maintainers = with maintainers; [ jyp abbradar ]; 152 - platforms = with platforms; if cudaSupport then linux else linux ++ darwin; 152 + platforms = platforms.linux; 153 153 broken = !(xlaSupport -> cudaSupport); 154 154 }; 155 155 }
+48
pkgs/development/python-modules/wordfreq/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , regex 4 + , langcodes 5 + , ftfy 6 + , msgpack 7 + , mecab-python3 8 + , jieba 9 + , nose 10 + , pythonOlder 11 + , fetchFromGitHub 12 + }: 13 + 14 + buildPythonPackage rec { 15 + pname = "wordfreq"; 16 + version = "2.0"; 17 + 18 + src = fetchFromGitHub { 19 + owner = "LuminosoInsight"; 20 + repo = "wordfreq"; 21 + rev = "e3a1b470d9f8e0d82e9f179ffc41abba434b823b"; 22 + sha256 = "1wjkhhj7nxfnrghwvmvwc672s30lp4b7yr98gxdxgqcq6wdshxwv"; 23 + }; 24 + 25 + checkInputs = [ nose ]; 26 + 27 + checkPhase = '' 28 + # These languages require additional dictionaries 29 + nosetests -e test_japanese -e test_korean -e test_languages 30 + ''; 31 + 32 + propagatedBuildInputs = [ regex langcodes ftfy msgpack mecab-python3 jieba ]; 33 + 34 + # patch to relax version requirements for regex 35 + # dependency to prevent break in upgrade 36 + postPatch = '' 37 + substituteInPlace setup.py --replace "regex ==" "regex >=" 38 + ''; 39 + 40 + disabled = pythonOlder "3"; 41 + 42 + meta = with lib; { 43 + description = "A library for looking up the frequencies of words in many languages, based on many sources of data"; 44 + homepage = https://github.com/LuminosoInsight/wordfreq/; 45 + license = licenses.mit; 46 + maintainers = with maintainers; [ ixxie ]; 47 + }; 48 + }
+1 -1
pkgs/development/tools/build-managers/remake/default.nix
··· 17 17 homepage = http://bashdb.sourceforge.net/remake/; 18 18 license = stdenv.lib.licenses.gpl3; 19 19 description = "GNU Make with comprehensible tracing and a debugger"; 20 - platforms = stdenv.lib.platforms.linux; 20 + platforms = with stdenv.lib.platforms; linux ++ darwin; 21 21 maintainers = with stdenv.lib.maintainers; [ bjornfor ]; 22 22 }; 23 23 }
+49
pkgs/development/tools/castxml/default.nix
··· 1 + { stdenv, fetchFromGitHub 2 + , pythonPackages 3 + , pkgconfig 4 + , cmake 5 + , llvmPackages 6 + , withMan ? true 7 + }: 8 + stdenv.mkDerivation rec { 9 + 10 + name = "${pname}-${version}"; 11 + pname = "CastXML"; 12 + version = "20180403"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "CastXML"; 16 + repo = "CastXML"; 17 + rev = "c2a44d06d9379718292b696f4e13a2725ff9d95e"; 18 + sha256 = "1hjh8ihjyp1m2jb5yypp5c45bpbz8k004f4p1cjw4gc7pxhjacdj"; 19 + }; 20 + 21 + buildInputs = [ 22 + cmake 23 + llvmPackages.clang-unwrapped 24 + llvmPackages.llvm 25 + ] ++ stdenv.lib.optionals withMan [ pythonPackages.sphinx ]; 26 + 27 + propagatedbuildInputs = [ llvmPackages.libclang ]; 28 + 29 + preConfigure = '' 30 + cmakeFlagsArray+=( 31 + ${if withMan then "-DSPHINX_MAN=ON" else ""} 32 + )''; 33 + 34 + # 97% tests passed, 96 tests failed out of 2866 35 + # mostly because it checks command line and nix append -isystem and all 36 + doCheck=false; 37 + checkPhase = '' 38 + # -E exclude 4 tests based on names 39 + # see https://github.com/CastXML/CastXML/issues/90 40 + ctest -E 'cmd.cc-(gnu|msvc)-((c-src-c)|(src-cxx))-cmd' 41 + ''; 42 + 43 + meta = with stdenv.lib; { 44 + homepage = http://www.kitware.com; 45 + license = licenses.asl20; 46 + description = "Abstract syntax tree XML output tool"; 47 + platforms = platforms.unix; 48 + }; 49 + }
+2 -2
pkgs/development/tools/mypy/default.nix
··· 2 2 3 3 buildPythonApplication rec { 4 4 pname = "mypy"; 5 - version = "0.570"; 5 + version = "0.580"; 6 6 7 7 # Tests not included in pip package. 8 8 doCheck = false; 9 9 10 10 src = fetchPypi { 11 11 inherit pname version; 12 - sha256 = "09cz0h4d6xcdqlchw080nkjlwki3mgjrlvfnj5hxxwi3cgv9imw3"; 12 + sha256 = "1ng3j3nmsklrg8middvc9ycvv87hx5dxh4b96s9pc3w1d49mmn9v"; 13 13 }; 14 14 15 15 propagatedBuildInputs = [ lxml typed-ast psutil ];
+2 -2
pkgs/games/gzdoom/default.nix
··· 4 4 5 5 stdenv.mkDerivation rec { 6 6 name = "gzdoom-${version}"; 7 - version = "3.2.5"; 7 + version = "3.3.0"; 8 8 9 9 src = fetchFromGitHub { 10 10 owner = "coelckers"; 11 11 repo = "gzdoom"; 12 12 rev = "g${version}"; 13 - sha256 = "1x4v3cv448wqx4cdhs28nxrv0lm2c2pd9i2hm92q9lg5yw8vv19q"; 13 + sha256 = "1q1hjfxhksny236a058ys36mpdl434vbmgapqr51n82pia838h2l"; 14 14 }; 15 15 16 16 nativeBuildInputs = [ cmake makeWrapper ];
+3 -2
pkgs/games/tome4/default.nix
··· 32 32 libGLU openal libpng libvorbis SDL2 SDL2_ttf SDL2_image 33 33 ]; 34 34 35 - enableParallelBuilding = true; 35 + # disable parallel building as it caused sporadic build failures 36 + enableParallelBuilding = false; 36 37 37 38 NIX_CFLAGS_COMPILE = [ 38 39 "-I${SDL2_image}/include/SDL2" ··· 82 81 homepage = https://te4.org/; 83 82 license = licenses.gpl3; 84 83 maintainers = with maintainers; [ chattered peterhoeg ]; 85 - platforms = platforms.linux; 84 + platforms = subtractLists ["aarch64-linux"] platforms.linux; 86 85 }; 87 86 }
+7
pkgs/misc/documentation-highlighter/loader.js
··· 1 + /* This file is NOT part of highlight.js */ 2 + document.onreadystatechange = function () { 3 + var listings = document.querySelectorAll('.programlisting, .screen'); 4 + for (i = 0; i < listings.length; ++i) { 5 + hljs.highlightBlock(listings[i]); 6 + } 7 + }
+2 -2
pkgs/os-specific/linux/firmware/raspberrypi/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "raspberrypi-firmware-${version}"; 5 - version = "1.20171029"; 5 + version = "1.20180328"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "raspberrypi"; 9 9 repo = "firmware"; 10 10 rev = version; 11 - sha256 = "12aisha8rlr28310hakps04z9p45kd2wvks0w1vxw1kwfh1ncy9s"; 11 + sha256 = "19h4lv11idy268pyrq21c5gsff77d5xr9xjkpmzfpcq34gjh3x21"; 12 12 }; 13 13 14 14 installPhase = ''
+7 -7
pkgs/servers/home-assistant/component-packages.nix
··· 71 71 "device_tracker.bluetooth_le_tracker" = ps: with ps; [ ]; 72 72 "device_tracker.bluetooth_tracker" = ps: with ps; [ ]; 73 73 "device_tracker.cisco_ios" = ps: with ps; [ pexpect ]; 74 - "device_tracker.fritz" = ps: with ps; [ ]; 74 + "device_tracker.fritz" = ps: with ps; [ fritzconnection ]; 75 75 "device_tracker.icloud" = ps: with ps; [ ]; 76 76 "device_tracker.linksys_ap" = ps: with ps; [ beautifulsoup4 ]; 77 77 "device_tracker.mikrotik" = ps: with ps; [ ]; ··· 100 100 "fan.xiaomi_miio" = ps: with ps; [ ]; 101 101 "feedreader" = ps: with ps; [ feedparser ]; 102 102 "ffmpeg" = ps: with ps; [ ha-ffmpeg ]; 103 - "frontend" = ps: with ps; [ user-agents ]; 103 + "frontend" = ps: with ps; [ ]; 104 104 "gc100" = ps: with ps; [ ]; 105 105 "goalfeed" = ps: with ps; [ ]; 106 106 "google" = ps: with ps; [ google_api_python_client oauth2client ]; ··· 123 123 "joaoapps_join" = ps: with ps; [ ]; 124 124 "juicenet" = ps: with ps; [ ]; 125 125 "keyboard" = ps: with ps; [ ]; 126 - "keyboard_remote" = ps: with ps; [ ]; 126 + "keyboard_remote" = ps: with ps; [ evdev ]; 127 127 "kira" = ps: with ps; [ ]; 128 128 "knx" = ps: with ps; [ ]; 129 129 "lametric" = ps: with ps; [ ]; ··· 196 196 "media_player.songpal" = ps: with ps; [ ]; 197 197 "media_player.sonos" = ps: with ps; [ ]; 198 198 "media_player.soundtouch" = ps: with ps; [ libsoundtouch ]; 199 - "media_player.spotify" = ps: with ps; [ ]; 199 + "media_player.spotify" = ps: with ps; [ spotipy ]; 200 200 "media_player.vizio" = ps: with ps; [ ]; 201 201 "media_player.vlc" = ps: with ps; [ ]; 202 202 "media_player.webostv" = ps: with ps; [ websockets ]; ··· 278 278 "sensor.coinmarketcap" = ps: with ps; [ ]; 279 279 "sensor.cpuspeed" = ps: with ps; [ ]; 280 280 "sensor.crimereports" = ps: with ps; [ ]; 281 - "sensor.cups" = ps: with ps; [ ]; 281 + "sensor.cups" = ps: with ps; [ pycups ]; 282 282 "sensor.darksky" = ps: with ps; [ ]; 283 283 "sensor.deluge" = ps: with ps; [ deluge-client ]; 284 284 "sensor.deutsche_bahn" = ps: with ps; [ ]; ··· 298 298 "sensor.fido" = ps: with ps; [ ]; 299 299 "sensor.fitbit" = ps: with ps; [ ]; 300 300 "sensor.fixer" = ps: with ps; [ ]; 301 - "sensor.fritzbox_callmonitor" = ps: with ps; [ ]; 302 - "sensor.fritzbox_netmonitor" = ps: with ps; [ ]; 301 + "sensor.fritzbox_callmonitor" = ps: with ps; [ fritzconnection ]; 302 + "sensor.fritzbox_netmonitor" = ps: with ps; [ fritzconnection ]; 303 303 "sensor.gearbest" = ps: with ps; [ ]; 304 304 "sensor.geizhals" = ps: with ps; [ beautifulsoup4 ]; 305 305 "sensor.geo_rss_events" = ps: with ps; [ feedparser ];
+12 -4
pkgs/servers/home-assistant/parse-requirements.py
··· 22 22 import re 23 23 from pkg_resources import Requirement, RequirementParseError 24 24 25 - PREFIX = '# homeassistant.components.' 25 + GENERAL_PREFIX = '# homeassistant.' 26 + COMPONENT_PREFIX = GENERAL_PREFIX + 'components.' 26 27 PKG_SET = 'python3Packages' 27 28 28 29 def get_version(): ··· 38 37 for line in response.read().decode().splitlines(): 39 38 if line == '': 40 39 components = [] 41 - elif line[:len(PREFIX)] == PREFIX: 42 - component = line[len(PREFIX):] 40 + elif line[:len(COMPONENT_PREFIX)] == COMPONENT_PREFIX: 41 + component = line[len(COMPONENT_PREFIX):] 43 42 components.append(component) 44 43 if component not in requirements: 45 44 requirements[component] = [] 46 - elif line[0] != '#': 45 + elif line[:len(GENERAL_PREFIX)] != GENERAL_PREFIX: # skip lines like "# homeassistant.scripts.xyz" 46 + # Some dependencies are commented out because they don't build on all platforms 47 + # Since they are still required for running the component, don't skip them 48 + if line[:2] == '# ': 49 + line = line[2:] 50 + # Some requirements are specified by url, e.g. https://example.org/foobar#xyz==1.0.0 51 + # Therefore, if there's a "#" in the line, only take the part after it 52 + line = line[line.find('#') + 1:] 47 53 for component in components: 48 54 requirements[component].append(line) 49 55 return requirements
+2 -2
pkgs/servers/osrm-backend/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "osrm-backend-${version}"; 5 - version = "5.16.3"; 5 + version = "5.16.4"; 6 6 7 7 src = fetchFromGitHub { 8 8 rev = "v${version}"; 9 9 owner = "Project-OSRM"; 10 10 repo = "osrm-backend"; 11 - sha256 = "0dmcp5s5kjnvdd7sn53sbjawfhiwjs30fr7iwi9h6ssz6188x0jp"; 11 + sha256 = "01wghly0rqv4f9lfabmbfddjp2pclcfip45rmn0fvnj5c6x23v6v"; 12 12 }; 13 13 14 14 nativeBuildInputs = [ cmake pkgconfig ];
+2 -2
pkgs/tools/graphics/gmic/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "gmic-${version}"; 5 - version = "2.2.0"; 5 + version = "2.2.1"; 6 6 7 7 src = fetchurl { 8 8 url = "http://gmic.eu/files/source/gmic_${version}.tar.gz"; 9 - sha256 = "0yvb9iwwmjxvck2in3ymqszaddz502v2ryk50qs0wskhbhdh96c7"; 9 + sha256 = "0iac1zaix2zv1dfp45ca0wk9pj6k02gf8l1vmg820z8jd12pa19w"; 10 10 }; 11 11 12 12 nativeBuildInputs = [ pkgconfig ];
+34
pkgs/tools/misc/pdd/default.nix
··· 1 + { stdenv, fetchFromGitHub, buildPythonApplication, dateutil }: 2 + 3 + buildPythonApplication rec { 4 + pname = "pdd"; 5 + version = "1.1"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "jarun"; 9 + repo = "pdd"; 10 + rev = "v${version}"; 11 + sha256 = "1nb64vdlym4najjyfxq1nprqcwgrwnqj1mml0fcg20hrgbjm4bf2"; 12 + }; 13 + 14 + format = "other"; 15 + 16 + propagatedBuildInputs = [ dateutil ]; 17 + 18 + installFlags = [ "PREFIX=$(out)" ]; 19 + 20 + meta = with stdenv.lib; { 21 + homepage = "https://github.com/jarun/pdd"; 22 + description = "Tiny date, time diff calculator"; 23 + longDescription = '' 24 + There are times you want to check how old you are (in years, months, days) 25 + or how long you need to wait for the next flash sale or the number of days 26 + left of your notice period in your current job. pdd (Python3 Date Diff) is 27 + a small cmdline utility to calculate date and time difference. If no 28 + program arguments are specified it shows the current date, time and 29 + timezone. 30 + ''; 31 + maintainers = [ maintainers.infinisil ]; 32 + license = licenses.gpl3; 33 + }; 34 + }
+12 -5
pkgs/tools/networking/ngrok-2/default.nix
··· 1 1 { stdenv, fetchurl, unzip }: 2 2 3 + with stdenv.lib; 4 + 3 5 stdenv.mkDerivation rec { 4 6 name = "ngrok-${version}"; 5 7 version = "2.2.8"; 6 8 7 - src = if stdenv.system == "i686-linux" then fetchurl { 9 + src = if stdenv.isLinux && stdenv.isi686 then fetchurl { 8 10 url = "https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-i386.tgz"; 9 11 sha256 = "0s5ymlaxrvm13q3mlvfirh74sx60qh56c5sgdma2r7q5qlsq41xg"; 10 - } else if stdenv.system == "x86_64-linux" then fetchurl { 12 + } else if stdenv.isLinux && stdenv.isx86_64 then fetchurl { 11 13 url = "https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.tgz"; 12 14 sha256 = "1mn9iwgy6xzrjihikwc2k2j59igqmph0cwx17qp0ziap9lp5xxad"; 15 + } else if stdenv.isDarwin then fetchurl { 16 + url = "https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-darwin-386.zip"; 17 + sha256 = "0yfd250b55wcpgqd00rqfaa7a82f35fmybb31q5xwdbgc2i47pbh"; 13 18 } else throw "platform ${stdenv.system} not supported!"; 14 19 15 20 sourceRoot = "."; 21 + 22 + nativeBuildInputs = optional stdenv.isDarwin unzip; 16 23 17 24 installPhase = '' 18 25 install -D ngrok $out/bin/ngrok 19 26 ''; 20 27 21 - meta = with stdenv.lib; { 28 + meta = { 22 29 description = "ngrok"; 23 30 longDescription = '' 24 31 Allows you to expose a web server running on your local machine to the internet. 25 32 ''; 26 33 homepage = https://ngrok.com/; 27 - license = stdenv.lib.licenses.unfree; 28 - platforms = [ "i686-linux" "x86_64-linux" ]; 34 + license = licenses.unfree; 35 + platforms = [ "i686-linux" "x86_64-linux" "x86_64-darwin" ]; 29 36 maintainers = [ maintainers.bobvanderlinden ]; 30 37 }; 31 38 }
+31
pkgs/tools/package-management/nix-review/default.nix
··· 1 + { stdenv 2 + , python3 3 + , fetchFromGitHub 4 + , nix 5 + , makeWrapper 6 + }: 7 + 8 + python3.pkgs.buildPythonApplication rec { 9 + pname = "nix-review"; 10 + version = "0.1.0"; 11 + 12 + src = fetchFromGitHub { 13 + owner = "Mic92"; 14 + repo = "nix-review"; 15 + rev = version; 16 + sha256 = "1kafp3x95dklydy5224w0a292rd8pv30lz6z5ddk6y7zg3fsxrcr"; 17 + }; 18 + 19 + buildInputs = [ makeWrapper ]; 20 + 21 + preFixup = '' 22 + wrapProgram $out/bin/nix-review --prefix PATH : ${nix}/bin 23 + ''; 24 + 25 + meta = with stdenv.lib; { 26 + description = "Review pull-requests on https://github.com/NixOS/nixpkgs"; 27 + homepage = https://github.com/Mic92/nix-review; 28 + license = licenses.mit; 29 + maintainers = [ maintainers.mic92 ]; 30 + }; 31 + }
+5 -2
pkgs/tools/security/apg/default.nix
··· 10 10 ''; 11 11 makeFlags = stdenv.lib.optionals stdenv.isDarwin ["CC=cc"]; 12 12 13 - patches = [ ./apg.patch ]; 13 + patches = [ 14 + ./apg.patch 15 + ./phony-install-target.patch 16 + ]; 14 17 15 18 postPatch = stdenv.lib.optionalString stdenv.isDarwin '' 16 19 sed -i -e 's|APG_CLIBS += -lcrypt|APG_CLIBS += -L${openssl.out}/lib -lcrypto|' Makefile ··· 67 64 homepage = http://www.adel.nursat.kz/apg/; 68 65 license = stdenv.lib.licenses.bsd3; 69 66 maintainers = with stdenv.lib.maintainers; [ astsmtl ]; 70 - platforms = stdenv.lib.platforms.linux; 67 + platforms = stdenv.lib.platforms.unix; 71 68 }; 72 69 }
+11
pkgs/tools/security/apg/phony-install-target.patch
··· 1 + diff -ur a/Makefile b/Makefile 2 + --- a/Makefile 2003-08-08 00:40:39.000000000 +0900 3 + +++ b/Makefile 2018-04-05 22:29:39.284191020 +0900 4 + @@ -142,6 +142,7 @@ 5 + strip ${CS_PROGNAME} 6 + strip ${BFM_PROGNAME} 7 + 8 + +.PHONY: install 9 + install: 10 + if test -x ./apg; then \ 11 + ./mkinstalldirs ${INSTALL_PREFIX}${APG_BIN_DIR}; \
+2 -2
pkgs/tools/text/discount/default.nix
··· 1 1 {stdenv, fetchurl}: 2 2 3 3 stdenv.mkDerivation rec { 4 - version = "2.2.3"; 4 + version = "2.2.3a"; 5 5 name = "discount-${version}"; 6 6 7 7 src = fetchurl { 8 8 url = "http://www.pell.portland.or.us/~orc/Code/discount/discount-${version}.tar.bz2"; 9 - sha256 = "17797xiaq0kk152pj4rvd9grg4i518x3glnwg1lgl8rry3dbrzx8"; 9 + sha256 = "0m09x9dd75d3pqvmrwr0kqw3dm2x3ss9clj5fxf7lq79lbyxbxbm"; 10 10 }; 11 11 12 12 patches = ./fix-configure-path.patch;
+84
pkgs/tools/typesetting/ted/default.nix
··· 1 + { stdenv, fetchurl, pkgconfig, zlib, pcre, xorg, libjpeg, libtiff, libpng, gtk2, libpaper, makeWrapper, ghostscript }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "${pname}-${version}"; 5 + pname = "ted"; 6 + version = "2.23"; 7 + 8 + src = fetchurl { 9 + url = "http://ftp.nluug.nl/pub/editors/${pname}/${name}.src.tar.gz"; 10 + sha256 = "0v1ipynyjklb3chd1vq26a21sjjg66sir57gi2kkrbwnpk195a9z"; 11 + }; 12 + 13 + preConfigure = '' 14 + mkdir pkgconfig-append 15 + pushd pkgconfig-append 16 + 17 + # ted looks for libtiff, not libtiff-4 in its pkg-config invokations 18 + cp ${libtiff.dev}/lib/pkgconfig/libtiff-4.pc libtiff.pc 19 + 20 + # ted needs a libpaper pkg-config file 21 + cat > libpaper.pc << EOF 22 + prefix=${libpaper} 23 + libdir=${libpaper}/lib 24 + includedir=${libpaper}/include 25 + exec_prefix=\''${prefix} 26 + 27 + Name: libpaper 28 + Version: ${libpaper.version} 29 + Description: ${libpaper.meta.description} 30 + Libs: -L\''${libdir} -lpaper 31 + Cflags: -I\''${includedir} 32 + EOF 33 + 34 + export PKG_CONFIG_PATH="$PWD:$PKG_CONFIG_PATH" 35 + 36 + popd 37 + ''; 38 + 39 + makeFlags = [ "CONFIGURE_OPTIONS=--with-GTK" "CONFIGURE_OPTIONS+=--prefix=$(out)" "compile.shared" ]; 40 + 41 + installPhase = '' 42 + runHook preInstall 43 + 44 + make tedPackage/makefile 45 + pushd tedPackage 46 + substituteInPlace makefile --replace /usr "" 47 + make PKGDESTDIR=$out datadir 48 + popd 49 + 50 + pushd $out/share/Ted/examples 51 + for f in rtf2*.sh 52 + do 53 + makeWrapper "$PWD/$f" "$out/bin/$f" --prefix PATH : $out/bin:${stdenv.lib.makeBinPath [ ghostscript ]} 54 + done 55 + popd 56 + 57 + cp -v Ted/Ted $out/bin 58 + 59 + runHook postInstall 60 + ''; 61 + 62 + buildInputs = [ pkgconfig zlib pcre xorg.xlibsWrapper xorg.libXpm libjpeg libtiff libpng gtk2 libpaper makeWrapper ]; 63 + 64 + meta = with stdenv.lib; { 65 + description = "Ted, an easy rich text processor"; 66 + longDescription = '' 67 + Ted is a text processor running under X Windows on Unix/Linux systems. 68 + Ted was developed as a standard easy light weight word processor, having 69 + the role of Wordpad on MS-Windows. Since then, Ted has evolved to a real 70 + word processor. It still has the same easy appearance and the same speed 71 + as the original. The possibility to type a letter, a note or a report 72 + with a simple light weight program on a Unix/Linux machine is clearly 73 + missing. Ted was made to make it possible to edit rich text documents on 74 + Unix/Linux in a wysiwyg way. RTF files from Ted are fully compatible with 75 + MS-Word. Additionally, Ted also is an RTF to PostScript and an RTF to 76 + Acrobat PDF converter. 77 + ''; 78 + homepage = https://nllgg.nl/Ted/; 79 + license = licenses.gpl2; 80 + platforms = platforms.all; 81 + broken = stdenv.isDarwin; 82 + maintainers = with maintainers; [ obadz ]; 83 + }; 84 + }
+18 -3
pkgs/top-level/all-packages.nix
··· 111 111 112 112 buildMaven = callPackage ../build-support/build-maven.nix {}; 113 113 114 + castxml = callPackage ../development/tools/castxml { }; 115 + 114 116 cmark = callPackage ../development/libraries/cmark { }; 115 117 116 118 dhallToNix = callPackage ../build-support/dhall-to-nix.nix { ··· 4236 4234 4237 4235 pcsc-cyberjack = callPackage ../tools/security/pcsc-cyberjack { }; 4238 4236 4237 + pdd = python3Packages.callPackage ../tools/misc/pdd { }; 4238 + 4239 4239 pdf2djvu = callPackage ../tools/typesetting/pdf2djvu { }; 4240 4240 4241 4241 pdf2htmlEX = callPackage ../tools/typesetting/pdf2htmlEX { }; ··· 4651 4647 4652 4648 rpPPPoE = callPackage ../tools/networking/rp-pppoe { }; 4653 4649 4650 + rpiboot-unstable = callPackage ../development/misc/rpiboot/unstable.nix { }; 4651 + 4654 4652 rpm = callPackage ../tools/package-management/rpm { }; 4655 4653 4656 4654 rpm-ostree = callPackage ../tools/misc/rpm-ostree { ··· 4662 4656 rpmextract = callPackage ../tools/archivers/rpmextract { }; 4663 4657 4664 4658 rrdtool = callPackage ../tools/misc/rrdtool { }; 4659 + 4660 + rsibreak = libsForQt5.callPackage ../applications/misc/rsibreak { }; 4665 4661 4666 4662 rss2email = callPackage ../applications/networking/feedreaders/rss2email { 4667 4663 pythonPackages = python3Packages; ··· 5054 5046 tcpkali = callPackage ../applications/networking/tcpkali { }; 5055 5047 5056 5048 tcpreplay = callPackage ../tools/networking/tcpreplay { }; 5049 + 5050 + ted = callPackage ../tools/typesetting/ted { }; 5057 5051 5058 5052 teamviewer = callPackage ../applications/networking/remote/teamviewer { 5059 5053 stdenv = stdenv_32bit; ··· 14985 14975 }; 14986 14976 14987 14977 cni = callPackage ../applications/networking/cluster/cni {}; 14978 + cni-plugins = callPackage ../applications/networking/cluster/cni/plugins.nix {}; 14988 14979 14989 14980 communi = libsForQt5.callPackage ../applications/networking/irc/communi { }; 14990 14981 ··· 15183 15172 15184 15173 eaglemode = callPackage ../applications/misc/eaglemode { }; 15185 15174 15186 - eclipses = recurseIntoAttrs (callPackage ../applications/editors/eclipse { webkitgtk24x-gtk2 = null; }); 15175 + eclipses = recurseIntoAttrs (callPackage ../applications/editors/eclipse { 15176 + jdk = jdk10; 15177 + }); 15187 15178 15188 15179 ecs-agent = callPackage ../applications/virtualization/ecs-agent { }; 15189 15180 ··· 16652 16639 mod-distortion = callPackage ../applications/audio/mod-distortion { }; 16653 16640 16654 16641 monero = callPackage ../applications/altcoins/monero { 16655 - inherit (darwin.apple_sdk.frameworks) IOKit; 16642 + inherit (darwin.apple_sdk.frameworks) CoreData IOKit PCSC; 16656 16643 boost = boost15x; 16657 16644 }; 16658 16645 ··· 19456 19443 19457 19444 gnome3 = recurseIntoAttrs (callPackage ../desktops/gnome-3 { }); 19458 19445 19459 - gnomeExtensions = { 19446 + gnomeExtensions = recurseIntoAttrs { 19460 19447 appindicator = callPackage ../desktops/gnome-3/extensions/appindicator { }; 19461 19448 battery-status = callPackage ../desktops/gnome-3/extensions/battery-status { }; 19462 19449 caffeine = callPackage ../desktops/gnome-3/extensions/caffeine { }; ··· 20497 20484 nix-template-rpm = callPackage ../build-support/templaterpm { inherit (pythonPackages) python toposort; }; 20498 20485 20499 20486 nix-repl = callPackage ../tools/package-management/nix-repl { nix = nix1; }; 20487 + 20488 + nix-review = callPackage ../tools/package-management/nix-review { }; 20500 20489 20501 20490 nix-serve = callPackage ../tools/package-management/nix-serve { }; 20502 20491
+25 -6
pkgs/top-level/python-packages.nix
··· 3254 3254 3255 3255 jdcal = callPackage ../development/python-modules/jdcal { }; 3256 3256 3257 + jieba = callPackage ../development/python-modules/jieba { }; 3258 + 3257 3259 internetarchive = callPackage ../development/python-modules/internetarchive {}; 3258 3260 3259 3261 JPype1 = callPackage ../development/python-modules/JPype1 {}; ··· 7445 7443 marisa = pkgs.marisa; 7446 7444 }; 7447 7445 7446 + marisa-trie = callPackage ../development/python-modules/marisa-trie { }; 7447 + 7448 7448 markupsafe = buildPythonPackage rec { 7449 7449 name = "markupsafe-${version}"; 7450 7450 version = "1.0"; ··· 9003 8999 }; 9004 9000 }; 9005 9001 9002 + langcodes = callPackage ../development/python-modules/langcodes { }; 9003 + 9006 9004 livestreamer = buildPythonPackage rec { 9007 9005 version = "1.12.2"; 9008 9006 name = "livestreamer-${version}"; ··· 9576 9570 olefile = callPackage ../development/python-modules/olefile { }; 9577 9571 9578 9572 requests-mock = callPackage ../development/python-modules/requests-mock { }; 9573 + 9574 + mecab-python3 = callPackage ../development/python-modules/mecab-python3 { }; 9579 9575 9580 9576 mox3 = buildPythonPackage rec { 9581 9577 name = "mox3-${version}"; ··· 15357 15349 15358 15350 widgetsnbextension = callPackage ../development/python-modules/widgetsnbextension { }; 15359 15351 15352 + wordfreq = callPackage ../development/python-modules/wordfreq { }; 15353 + 15360 15354 magic-wormhole = callPackage ../development/python-modules/magic-wormhole { }; 15361 15355 15362 15356 magic-wormhole-transit-relay = callPackage ../development/python-modules/magic-wormhole-transit-relay { }; ··· 16970 16960 propagatedBuildInputs = with self; []; 16971 16961 }; 16972 16962 16963 + pybindgen = callPackage ../development/python-modules/pybindgen {}; 16964 + 16965 + pygccxml = callPackage ../development/python-modules/pygccxml {}; 16966 + 16973 16967 pymacaroons-pynacl = callPackage ../development/python-modules/pymacaroons-pynacl { }; 16974 16968 16975 16969 pynacl = callPackage ../development/python-modules/pynacl { }; ··· 18034 18020 18035 18021 tensorflow-tensorboard = callPackage ../development/python-modules/tensorflow-tensorboard { }; 18036 18022 18037 - tensorflow = callPackage ../development/python-modules/tensorflow rec { 18038 - cudaSupport = pkgs.config.cudaSupport or false; 18039 - inherit (pkgs.linuxPackages) nvidia_x11; 18040 - cudatoolkit = pkgs.cudatoolkit9; 18041 - cudnn = pkgs.cudnn_cudatoolkit9; 18042 - }; 18023 + tensorflow = 18024 + if stdenv.isDarwin 18025 + then callPackage ../development/python-modules/tensorflow/bin.nix { } 18026 + else callPackage ../development/python-modules/tensorflow rec { 18027 + cudaSupport = pkgs.config.cudaSupport or false; 18028 + inherit (pkgs.linuxPackages) nvidia_x11; 18029 + cudatoolkit = pkgs.cudatoolkit9; 18030 + cudnn = pkgs.cudnn_cudatoolkit9; 18031 + }; 18043 18032 18044 18033 tensorflowWithoutCuda = self.tensorflow.override { 18045 18034 cudaSupport = false; ··· 18445 18428 ramlfications = callPackage ../development/python-modules/ramlfications { }; 18446 18429 18447 18430 yapf = callPackage ../development/python-modules/yapf { }; 18431 + 18432 + black = callPackage ../development/python-modules/black { }; 18448 18433 18449 18434 autobahn = callPackage ../development/python-modules/autobahn { }; 18450 18435