···4748 isoBootFlags="-eltorito-boot ${bootImage}
49 -eltorito-catalog .boot.cat
50- -no-emul-boot -boot-load-size 4 -boot-info-table"
051fi
5253if test -n "$usbBootable"; then
···112 -r
113 -path-list pathlist
114 --sort-weight 0 /
115- --sort-weight 1 /isolinux" # Make sure isolinux is near the beginning of the ISO
116117$xorriso -output $out/iso/$isoName
118
···4748 isoBootFlags="-eltorito-boot ${bootImage}
49 -eltorito-catalog .boot.cat
50+ -no-emul-boot -boot-load-size 4 -boot-info-table
51+ --sort-weight 1 /isolinux" # Make sure isolinux is near the beginning of the ISO
52fi
5354if test -n "$usbBootable"; then
···113 -r
114 -path-list pathlist
115 --sort-weight 0 /
116+"
117118$xorriso -output $out/iso/$isoName
119
···98 if [ "$TERM" != "dumb" -o -n "$INSIDE_EMACS" ]; then
99 PROMPT_COLOR="1;31m"
100 let $UID && PROMPT_COLOR="1;32m"
101- PS1="\n\[\033[$PROMPT_COLOR\][\[\e]0;\u@\h: \w\a\]\u@\h:\w]\$\[\033[0m\] "
00000102 if test "$TERM" = "xterm"; then
103 PS1="\[\033]2;\h:\u:\w\007\]$PS1"
104 fi
···98 if [ "$TERM" != "dumb" -o -n "$INSIDE_EMACS" ]; then
99 PROMPT_COLOR="1;31m"
100 let $UID && PROMPT_COLOR="1;32m"
101+ if [ -n "$INSIDE_EMACS" ]; then
102+ # Emacs term mode doesn't support xterm title escape sequence (\e]0;)
103+ PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]\\$\[\033[0m\] "
104+ else
105+ PS1="\n\[\033[$PROMPT_COLOR\][\[\e]0;\u@\h: \w\a\]\u@\h:\w]\$\[\033[0m\] "
106+ fi
107 if test "$TERM" = "xterm"; then
108 PS1="\[\033]2;\h:\u:\w\007\]$PS1"
109 fi
+4-4
nixos/modules/programs/zsh/oh-my-zsh.xml
···19 configuration format of <literal>oh-my-zsh</literal>.
20<programlisting>
21{
22- programs.ohMyZsh = {
23 enable = true;
24 plugins = [ "git" "python" "man" ];
25 theme = "agnoster";
···51 The module can do this as well:
52<programlisting>
53{
54- programs.ohMyZsh.custom = "~/path/to/custom/scripts";
55}
56</programlisting>
57 </para>
···73<programlisting>
74{ pkgs, ... }:
75{
76- programs.ohMyZsh.customPkgs = with pkgs; [
77 pkgs.nix-zsh-completions
78 # and even more...
79 ];
···8788 <para>
89 <emphasis>Please keep in mind that this is not compatible with
90- <literal>programs.ohMyZsh.custom</literal> as it requires an immutable store
91 path while <literal>custom</literal> shall remain mutable! An evaluation
92 failure will be thrown if both <literal>custom</literal> and
93 <literal>customPkgs</literal> are set.</emphasis>
···19 configuration format of <literal>oh-my-zsh</literal>.
20<programlisting>
21{
22+ programs.zsh.ohMyZsh = {
23 enable = true;
24 plugins = [ "git" "python" "man" ];
25 theme = "agnoster";
···51 The module can do this as well:
52<programlisting>
53{
54+ programs.zsh.ohMyZsh.custom = "~/path/to/custom/scripts";
55}
56</programlisting>
57 </para>
···73<programlisting>
74{ pkgs, ... }:
75{
76+ programs.zsh.ohMyZsh.customPkgs = with pkgs; [
77 pkgs.nix-zsh-completions
78 # and even more...
79 ];
···8788 <para>
89 <emphasis>Please keep in mind that this is not compatible with
90+ <literal>programs.zsh.ohMyZsh.custom</literal> as it requires an immutable store
91 path while <literal>custom</literal> shall remain mutable! An evaluation
92 failure will be thrown if both <literal>custom</literal> and
93 <literal>customPkgs</literal> are set.</emphasis>
+6-1
nixos/modules/services/hardware/bluetooth.nix
···25 type = types.package;
26 default = pkgs.bluez;
27 defaultText = "pkgs.bluez";
28- example = "pkgs.bluez.override { enableMidi = true; }";
29 description = ''
30 Which BlueZ package to use.
0000031 '';
32 };
33
···25 type = types.package;
26 default = pkgs.bluez;
27 defaultText = "pkgs.bluez";
28+ example = "pkgs.bluezFull";
29 description = ''
30 Which BlueZ package to use.
31+32+ <note><para>
33+ Use the <literal>pkgs.bluezFull</literal> package to enable all
34+ bluez plugins.
35+ </para></note>
36 '';
37 };
38
···1415stdenv.mkDerivation rec {
16 name = "csound-${version}";
00017 version = "6.12.0";
1819 enableParallelBuilding = true;
···1415stdenv.mkDerivation rec {
16 name = "csound-${version}";
17+ # When updating, please check if https://github.com/csound/csound/issues/1078
18+ # has been fixed in the new version so we can use the normal fluidsynth
19+ # version and remove fluidsynth 1.x from nixpkgs again.
20 version = "6.12.0";
2122 enableParallelBuilding = true;
···30 woman-manpath)))
3132;;; Make tramp work for remote NixOS machines
33-(eval-after-load 'tramp
34 ;; TODO: We should also add the other `NIX_PROFILES' to this path.
35 ;; However, these are user-specific, so we would need to discover
36 ;; them dynamically after connecting via `tramp'
···30 woman-manpath)))
3132;;; Make tramp work for remote NixOS machines
33+(eval-after-load 'tramp-sh
34 ;; TODO: We should also add the other `NIX_PROFILES' to this path.
35 ;; However, these are user-specific, so we would need to discover
36 ;; them dynamically after connecting via `tramp'
···1011stdenv.mkDerivation rec {
12 name = "polar-bookshelf-${version}";
13- version = "1.1.0";
1415 # fetching a .deb because there's no easy way to package this Electron app
16 src = fetchurl {
17 url = "https://github.com/burtonator/polar-bookshelf/releases/download/v${version}/polar-bookshelf-${version}-amd64.deb";
18- sha256 = "13h6c9sqbc7c5p1rc1wm7wza249sh0j04aq67n6gnqg5p22a7pmw";
19 };
2021 buildInputs = [
···1011stdenv.mkDerivation rec {
12 name = "polar-bookshelf-${version}";
13+ version = "1.5.1";
1415 # fetching a .deb because there's no easy way to package this Electron app
16 src = fetchurl {
17 url = "https://github.com/burtonator/polar-bookshelf/releases/download/v${version}/polar-bookshelf-${version}-amd64.deb";
18+ sha256 = "1nnbybrzk1ms83490gbw5gakfim0j2c8gp83d9iaqwl4590qgwlg";
19 };
2021 buildInputs = [
···45let
6 # if you bump version, update pkgs.tortoisehg too or ping maintainer
7- version = "4.8";
8 name = "mercurial-${version}";
9 inherit (python2Packages) docutils hg-git dulwich python;
10in python2Packages.buildPythonApplication {
···1314 src = fetchurl {
15 url = "https://mercurial-scm.org/release/${name}.tar.gz";
16- sha256 = "00rzjbf2blxkc0qwd9mdzx5fnzgpp4jxzijq6wgsjgmqscx40sy5";
17 };
1819 inherit python; # pass it so that the same version can be used in hg2git
···45let
6 # if you bump version, update pkgs.tortoisehg too or ping maintainer
7+ version = "4.8.1";
8 name = "mercurial-${version}";
9 inherit (python2Packages) docutils hg-git dulwich python;
10in python2Packages.buildPythonApplication {
···1314 src = fetchurl {
15 url = "https://mercurial-scm.org/release/${name}.tar.gz";
16+ sha256 = "08gsn0s5802bs8ks77xqg7c8dwpbsh8df47kvb1gn14ivrf5z928";
17 };
1819 inherit python; # pass it so that the same version can be used in hg2git
···43 sed -E -e 's@^include (.*)(/firejail/.*.local)$@include /etc\2@g' -i $out/etc/firejail/*.profile
44 '';
4546- enableParallelBuilding = true;
004748 meta = {
49 inherit (s) version;
···43 sed -E -e 's@^include (.*)(/firejail/.*.local)$@include /etc\2@g' -i $out/etc/firejail/*.profile
44 '';
4546+ # At high parallelism, the build sometimes fails with:
47+ # bash: src/fsec-optimize/fsec-optimize: No such file or directory
48+ enableParallelBuilding = false;
4950 meta = {
51 inherit (s) version;
···4{ lib, config, hostPlatform, meta }:
56let
00007 # See discussion at https://github.com/NixOS/nixpkgs/pull/25304#issuecomment-298385426
8 # for why this defaults to false, but I (@copumpkin) want to default it to true soon.
9 shouldCheckMeta = config.checkMeta or false;
···141142 handleEvalIssue = attrs: { reason , errormsg ? "" }:
143 let
144- msg = ''
145- Package ‘${attrs.name or "«name-missing»"}’ in ${pos_str} ${errormsg}, refusing to evaluate.
00146147- '' + (builtins.getAttr reason remediation) attrs;
148149 handler = if config ? "handleEvalIssue"
150 then config.handleEvalIssue reason
···4{ lib, config, hostPlatform, meta }:
56let
7+ # If we're in hydra, we can dispense with the more verbose error
8+ # messages and make problems easier to spot.
9+ inHydra = config.inHydra or false;
10+11 # See discussion at https://github.com/NixOS/nixpkgs/pull/25304#issuecomment-298385426
12 # for why this defaults to false, but I (@copumpkin) want to default it to true soon.
13 shouldCheckMeta = config.checkMeta or false;
···145146 handleEvalIssue = attrs: { reason , errormsg ? "" }:
147 let
148+ msg = if inHydra
149+ then "Failed to evaluate ${attrs.name or "«name-missing»"}: «${reason}»: ${errormsg}"
150+ else ''
151+ Package ‘${attrs.name or "«name-missing»"}’ in ${pos_str} ${errormsg}, refusing to evaluate.
152153+ '' + (builtins.getAttr reason remediation) attrs;
154155 handler = if config ? "handleEvalIssue"
156 then config.handleEvalIssue reason
+2-8
pkgs/tools/admin/awscli/default.nix
···1920in py.pkgs.buildPythonApplication rec {
21 pname = "awscli";
22- version = "1.16.60";
2324 src = py.pkgs.fetchPypi {
25 inherit pname version;
26- sha256 = "25bcc6cf2304356a78429671999857ff33f88761d81bcee63463a86a6780dcdc";
27 };
2829 # No tests included
···41 groff
42 less
43 ];
44-45- postPatch = ''
46- for i in {py,cfg}; do
47- substituteInPlace setup.$i --replace "botocore==1.12.50" "botocore>=1.11,<1.13"
48- done
49- '';
5051 postInstall = ''
52 mkdir -p $out/etc/bash_completion.d
···1920in py.pkgs.buildPythonApplication rec {
21 pname = "awscli";
22+ version = "1.16.72"; # N.B: if you change this, change botocore to a matching version too
2324 src = py.pkgs.fetchPypi {
25 inherit pname version;
26+ sha256 = "1ld4a6yxnh0v96fjjp8wjf7zvx41grl57mqg92p6zbfssr2jbqfv";
27 };
2829 # No tests included
···41 groff
42 less
43 ];
0000004445 postInstall = ''
46 mkdir -p $out/etc/bash_completion.d
···1-diff --git a/lib/oxidized/model/powerconnect.rb b/lib/oxidized/model/powerconnect.rb
2-index f602a36..3bac2d1 100644
3---- a/lib/oxidized/model/powerconnect.rb
4-+++ b/lib/oxidized/model/powerconnect.rb
5-@@ -4,7 +4,7 @@ class PowerConnect < Oxidized::Model
6-7- comment '! '
8-9-- expect /^\s*--More--\s+.*$/ do |data, re|
10-+ expect /^([[:cntrl:]]...More:|\s*--More--\s+).*$/ do |data, re|
11- send ' '
12- data.sub re, ''
13- end
14-@@ -60,7 +60,7 @@ class PowerConnect < Oxidized::Model
15- skip_blocks = 0
16- cfg.each_line do |line|
17- # If this is a stackable switch we should skip this block of information
18-- if (line.match /Up\sTime|Temperature|Power Suppl(ies|y)|Fans/i and @stackable == true)
19-+ if (line.match /Up\sTime|Temperature|Power Suppl(ies|y)|Fans/i)
20- skip_blocks = 1
21- # Some switches have another empty line. This is identified by this line having a colon
22- skip_blocks = 2 if line.match /:/
···0000000000000000000000
+2-2
pkgs/tools/graphics/pywal/default.nix
···23python3Packages.buildPythonApplication rec {
4 pname = "pywal";
5- version = "3.1.0";
67 src = python3Packages.fetchPypi {
8 inherit pname version;
9- sha256 = "1i4i9jjnm4f0zhz4nqbb4253517w33bsh5f246n5930hwrr9xn76";
10 };
1112 # necessary for imagemagick to be found during tests
···23python3Packages.buildPythonApplication rec {
4 pname = "pywal";
5+ version = "3.2.1";
67 src = python3Packages.fetchPypi {
8 inherit pname version;
9+ sha256 = "1pj30h19ijwhmbm941yzbkgr19q06dhp9492h9nrqw1wfjfdbdic";
10 };
1112 # necessary for imagemagick to be found during tests
···19 # The websites youtube-dl deals with are a very moving target. That means that
20 # downloads break constantly. Because of that, updates should always be backported
21 # to the latest stable release.
22- version = "2018.11.18";
2324 src = fetchurl {
25 url = "https://yt-dl.org/downloads/${version}/${pname}-${version}.tar.gz";
26- sha256 = "1wvvwyvxg9aadgpbcz0p6nzqmvnxzlbsqja3j6487l41s1ky1fyq";
27 };
2829 nativeBuildInputs = [ makeWrapper ];
···19 # The websites youtube-dl deals with are a very moving target. That means that
20 # downloads break constantly. Because of that, updates should always be backported
21 # to the latest stable release.
22+ version = "2018.12.17";
2324 src = fetchurl {
25 url = "https://yt-dl.org/downloads/${version}/${pname}-${version}.tar.gz";
26+ sha256 = "1nd4zr3wd35vldm775m9wcgbzma2013yyj134lcz19ipjs38isrk";
27 };
2829 nativeBuildInputs = [ makeWrapper ];