Question:
I've just set on my laptop while on holiday. The timezone never updates (tried restarting, waiting a while). Running I see: I see in that the service is run as the user. If I run: I also see the message . Whereas if I run there is no output and the timezone immediately updates (as shown by an immediate change in the time in my status bar, and confirmed by running ). It seems that the user just doesn't have permission to set the timezone. in (and unset ) to see if timezone changes , look for messages with "Failed to set timezone" (will only appear if the timezone it would need to set is different than the current timezone) system: host os: multi-user?: sandbox: version: channels(root): nixpkgs:
It worked for me after a reboot. Maybe the polkit rules are not getting appliead during a ?

<del> { stdenv, systemd, polkit, fetchFromGitHub, buildGoPackage, m4}: </del> <ins> { stdenv, fetchFromGitHub, buildGoPackage, m4 }: </ins> buildGoPackage rec { name = "localtime-2017-11-07";


Question:
I've just set on my laptop while on holiday. The timezone never updates (tried restarting, waiting a while). Running I see: I see in that the service is run as the user. If I run: I also see the message . Whereas if I run there is no output and the timezone immediately updates (as shown by an immediate change in the time in my status bar, and confirmed by running ). It seems that the user just doesn't have permission to set the timezone. in (and unset ) to see if timezone changes , look for messages with "Failed to set timezone" (will only appear if the timezone it would need to set is different than the current timezone) system: host os: multi-user?: sandbox: version: channels(root): nixpkgs:
It worked for me after a reboot. Maybe the polkit rules are not getting appliead during a ?

}; goPackagePath = "github.com/Stebalien/localtime"; <del> buildInputs = [ systemd polkit m4 ]; </del> <ins> buildInputs = [ m4 ]; </ins> <del> makeFlags = [ "PREFIX=$(out)" ]; </del> <ins> makeFlags = [ "PREFIX=${placeholder "out"}" "BINDIR=${placeholder "bin"}/bin" ]; </ins> buildPhase = '' cd go/src/${goPackagePath} <del> make localtimed </del> <ins> make $makeFlags </ins> ''; installPhase = '' <del> mkdir -p $bin/bin install -Dm555 localtimed $bin/bin </del> <ins> make install $makeFlags </ins> ''; meta = with stdenv.lib; {


Question:
Using with a doesn't work right anymore after (and the bugfix commit ). I have a simple Docker image I'm using as a , which sets up a user and puts some files in their home directory . (The exact setup doesn't matter.) When I use , the files that are present in the home folder in the base image are lost. This used to work before the commits above. I made this repro derivation: Try running and compare that output to the base image: You will see that the repro image is missing files. CC
(To be clear, it is now broken for a normal , not a layered one.)
Friendly ping , can you tell what broke here?
it seems to be related to the layers ordering. If you both images, you will see layers are reversed. Could you check the associated PR fixes this issue?
Yes, that seems to work! Many thanks :)
Merged so this should be fixed. Thanks !
Oh no, I found another aspect of this which is still broken :(. I think it's still covered under this issue, so I think we should reopen this one rather than file another, is that okay? There's still a problem when you have a command in the command: the layers from the base image aren't present. Here's my repro from above with that addition: If you run and look at the build output, you'll see the output of the command. Because the base image I'm using has an user named "user", you should see a line like this: but due to the regression from you don't see that line. This is preventing me from doing some extra setup that depends on stuff in the base image. Any chance you can see a fix ? :)
Does fix this issue?
Yes , that seems to work! Thanks again

imageJson=$(cat ${baseJson} | jq ". + {"rootfs": {"diff_ids": [], "type": "layers"}}") manifestJson=$(jq -n "[{"RepoTags":["$imageName:$imageTag"]}]") <del> for layerTar in $(cat ./layer-list); do </del> <ins> for layerTar in $(tac ./layer-list); do </ins> layerChecksum=$(sha256sum image/$layerTar | cut -d ' ' -f1) imageJson=$(echo "$imageJson" | jq ".history |= [{"created": "$(jq -r .created ${baseJson})"}] + .") imageJson=$(echo "$imageJson" | jq ".rootfs.diff_ids |= ["sha256:$layerChecksum"] + .")


Question:
References to (5) should have hyperlinks to the article/section.
These are references to man pages so there can't easily be a hyperlink. I made a PR that makes sure these are referenced to using , though. So that they at least carry some semantic meaning.
My bad I didn't think about the man pages. There are man pages online, too. I found this site: but it'd be nice to have them generated into the NixOS documentation. Having the man page sources piped into HTML would be useful I not a huge space waster.

networks are set, it will default to using a configuration file at <literal>/etc/wpa_supplicant.conf</literal>. You should edit this file yourself to define wireless networks, WPA keys and so on (see <del> wpa_supplicant.conf(5)). </del> <ins> <citerefentry> <refentrytitle>wpa_supplicant.conf</refentrytitle> <manvolnum>5</manvolnum> </citerefentry>). </ins> </para> <para>


Question:
References to (5) should have hyperlinks to the article/section.
These are references to man pages so there can't easily be a hyperlink. I made a PR that makes sure these are referenced to using , though. So that they at least carry some semantic meaning.
My bad I didn't think about the man pages. There are man pages online, too. I found this site: but it'd be nice to have them generated into the NixOS documentation. Having the man page sources piped into HTML would be useful I not a huge space waster.

''; description = '' Use this option to configure advanced authentication methods like EAP. <del> See wpa_supplicant.conf(5) for example configurations. </del> <ins> See <citerefentry> <refentrytitle>wpa_supplicant.conf</refentrytitle> <manvolnum>5</manvolnum> </citerefentry> for example configurations. </ins> Mutually exclusive with <varname>psk</varname> and <varname>pskRaw</varname>. '';


Question:
References to (5) should have hyperlinks to the article/section.
These are references to man pages so there can't easily be a hyperlink. I made a PR that makes sure these are referenced to using , though. So that they at least carry some semantic meaning.
My bad I didn't think about the man pages. There are man pages online, too. I found this site: but it'd be nice to have them generated into the NixOS documentation. Having the man page sources piped into HTML would be useful I not a huge space waster.

''; description = '' Extra configuration lines appended to the network block. <del> See wpa_supplicant.conf(5) for available options. </del> <ins> See <citerefentry> <refentrytitle>wpa_supplicant.conf</refentrytitle> <manvolnum>5</manvolnum> </citerefentry> for available options. </ins> ''; };


Question:
References to (5) should have hyperlinks to the article/section.
These are references to man pages so there can't easily be a hyperlink. I made a PR that makes sure these are referenced to using , though. So that they at least carry some semantic meaning.
My bad I didn't think about the man pages. There are man pages online, too. I found this site: but it'd be nice to have them generated into the NixOS documentation. Having the man page sources piped into HTML would be useful I not a huge space waster.

''; description = '' Extra lines appended to the configuration file. <del> See wpa_supplicant.conf(5) for available options. </del> <ins> See <citerefentry> <refentrytitle>wpa_supplicant.conf</refentrytitle> <manvolnum>5</manvolnum> </citerefentry> for available options. </ins> ''; }; };


Question:
the python binding for krita are not build correctly. Please run and paste the results.
more details wouldn't hurt...
well I don't exactly know what is happening here, to build the python binding, it requires and . So when are to the buildInputs, cmake finds all the dependencies correctly; however, at around 98% the compilation fails due to not finding some sip bindings. Alternatively, if is to the buildInputs, everything works fine as intended. But the python interpreter overwrite the python interpreter in the nix-env, so that doesn't seem to be the right fix.
also tried setting the variable, but that didn't work either.
cc who worked on / in

<del> { mkDerivation, lib, stdenv, fetchurl, cmake, extra-cmake-modules </del> <ins> { mkDerivation, lib, stdenv, makeWrapper, fetchurl, cmake, extra-cmake-modules </ins> , karchive, kconfig, kwidgetsaddons, kcompletion, kcoreaddons , kguiaddons, ki18n, kitemmodels, kitemviews, kwindowsystem , kio, kcrash


Question:
the python binding for krita are not build correctly. Please run and paste the results.
more details wouldn't hurt...
well I don't exactly know what is happening here, to build the python binding, it requires and . So when are to the buildInputs, cmake finds all the dependencies correctly; however, at around 98% the compilation fails due to not finding some sip bindings. Alternatively, if is to the buildInputs, everything works fine as intended. But the python interpreter overwrite the python interpreter in the nix-env, so that doesn't seem to be the right fix.
also tried setting the variable, but that didn't work either.
cc who worked on / in

sha256 = "0h2rplc76r82b8smk61zci1ijj9xkjmf20pdqa8fc2lz4zicjxh4"; }; <del> nativeBuildInputs = [ cmake extra-cmake-modules python3Packages.sip ]; </del> <ins> nativeBuildInputs = [ cmake extra-cmake-modules python3Packages.sip makeWrapper ]; </ins> buildInputs = [ karchive kconfig kwidgetsaddons kcompletion kcoreaddons kguiaddons


Question:
the python binding for krita are not build correctly. Please run and paste the results.
more details wouldn't hurt...
well I don't exactly know what is happening here, to build the python binding, it requires and . So when are to the buildInputs, cmake finds all the dependencies correctly; however, at around 98% the compilation fails due to not finding some sip bindings. Alternatively, if is to the buildInputs, everything works fine as intended. But the python interpreter overwrite the python interpreter in the nix-env, so that doesn't seem to be the right fix.
also tried setting the variable, but that didn't work either.
cc who worked on / in

"-DCMAKE_BUILD_TYPE=RelWithDebInfo" ]; <ins> postInstall = '' for i in $out/bin/*; do wrapProgram $i --prefix PYTHONPATH : "$PYTHONPATH" done ''; </ins> meta = with lib; { description = "A free and open source painting application"; homepage = https://krita.org/;


Question:
, (nixos-unstable) (nixos-unstable) (nixos-unstable) (nixos-unstable) Scanned versions: nixos-unstable: . May contain false positives.
Fixed in staging (again) via PR

stdenv.mkDerivation rec { name = "file-${version}"; <del> version = "5.35"; </del> <ins> version = "5.36"; </ins> src = fetchurl { urls = [ "ftp://ftp.astron.com/pub/file/${name}.tar.gz" "https://distfiles.macports.org/file/${name}.tar.gz" ]; <del> sha256 = "0ijm1fabm68ykr1zbx0bxnka5jr3n42sj8y5mbkrnxs0fj0mxi1h"; </del> <ins> sha256 = "0ya330cdkvfi2d28h8gvhghj4gnhysmifmryysl0a97xq2884q7v"; </ins> }; nativeBuildInputs = stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) file;


Question: I stumbled upon this package broken while working on , filing an issue to track it. Tested on commit . system: host os: multi-user?: sandbox: version: channels(root): channels(kalbasit): channels(yl): nixpkgs:

sha256 = "134xk7rfj0xki9znryk5qf1nsfa318ahrrsi1k6ia7kipp7i3hb4"; }; <del> buildInputs = [ proot patchelf fakechroot runc simplejson pycurl coreutils nose mock ]; </del> <ins> buildInputs = [ proot patchelf fakechroot runc simplejson pycurl coreutils ]; </ins> postPatch = '' substituteInPlace udocker.py --replace /usr/sbin:/sbin:/usr/bin:/bin $PATH


Question: I stumbled upon this package broken while working on , filing an issue to track it. Tested on commit . system: host os: multi-user?: sandbox: version: channels(root): channels(kalbasit): channels(yl): nixpkgs:

substituteInPlace udocker.py --replace "autoinstall = True" "autoinstall = False" ''; <ins> checkInputs = [ nose mock ]; </ins> checkPhase = '' NOSE_EXCLUDE=test_03_create_repo,test_04_is_repo,test_02__get_group_from_host nosetests -v tests/unit_tests.py '';


Question: , (nixos-19.03) Scanned versions: nixos-19.03: . May contain false positives.

# Media support MEDIA_CAMERA_SUPPORT? y MEDIA_RC_SUPPORT? y <ins> MEDIA_USB_SUPPORT y </ins> ${if kernelPlatform ? kernelExtraConfig then kernelPlatform.kernelExtraConfig else ""} ${extraConfig}


Question:
is currently set to just , but I was able to build it fine with on macos (10.14.3) and haven't run into any issues running very basic commands so far.
Would you mind making a pull request?
I don't, but I'm not in the loop and won't be of much use if it's any more involved than changing it to .
So perhaps should be just .

''; license     = licenses.gpl2; maintainers = [ maintainers.matthiasbeyer ]; <del> platforms   = platforms.linux; </del> <ins> platforms   = platforms.unix; </ins> }; }


Question:
When trying to build llvm-7.0.1 on my armv7 machine, I get the following error during the test phase: Looking around, I see quite a few changes to llvm recently (also the aarch64 failure in ). Ideas? Are these tests expected to fail?
just because I know you know about these things. I know armv7 isn't "really" supported, but this definitely used to work, so... FWIW, I have tried to disable DebugInfo tests, using the method already used to disable other tests, like this: But this didn't do anything. I do not know the test system for llvm though, I just tried to identify which cpp file to remove by grepping around. So maybe this is not even one of the right files, or maybe I disabled it wrong. I have not been able to find how to disable the llvm-dwarfdump tests, also. Hints welcome, if you have any!
I am also able to reproduce these failures. I get the same list of failing tests as what's shown above.
Oh - in case it's not obvious to everybody, I should point out that these are x86-specific tests. Obviously they're supposed to work from any host architecture, but since most developers' machines are x86, I think it's entirely possible that somebody upstream introduced an unintended dependency on the host architecture. I've looked around a bit for any upstream bug report, but so far I haven't found one.
If you're in the situation I was in, and are unable to rebuild your ARMv7 system because it has inexplicably decided it needs llvm 7.0.1 as part of that build when it didn't used to, you can add something along the lines of the following to your You will have to adapt it for whichever package is pulling in the unbuildable LLVM, which you can discover by looking at the list of unbuildable packages that nixos-rebuild spits out at the end and finding the one immediately after LLVM. You can verify that it's the right one by checking all- in the repo and seeing that its callPackage parameters specify llvmPackages_7.
Thanks for the helpful workaround,
Thanks!

substituteInPlace unittests/Support/CMakeLists.txt  --replace "add_subdirectory(DynamicLibrary)" "" rm unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp <ins> '' + optionalString stdenv.hostPlatform.isAarch32 '' # skip failing X86 test cases on armv7l rm test/DebugInfo/X86/debug_addr.ll rm test/tools/llvm-dwarfdump/X86/debug_addr.s rm test/tools/llvm-dwarfdump/X86/debug_addr_address_size_mismatch.s rm test/tools/llvm-dwarfdump/X86/debug_addr_dwarf4.s rm test/tools/llvm-dwarfdump/X86/debug_addr_unsupported_version.s rm test/tools/llvm-dwarfdump/X86/debug_addr_version_mismatch.s </ins> '' + '' patchShebangs test/BugPoint/compile-custom.ll.py '';


Question:
migrated from python branch issue tracker
this is not an issue if propagedBuildInputs are used - whether that is good or bad is another thing.
the python rework solved this

|---------------------------+--------------------------------------------| | Model                     | Path                                       | |---------------------------+--------------------------------------------| <del> | Acer Aspire 4810T         | ~<nixos-hardware/acer/aspire/4810t>~       | </del> <ins> | [[file:acer/aspire/4810t][Acer Aspire 4810T]]         | ~<nixos-hardware/acer/aspire/4810t>~       | </ins> | Airis N990                | ~<nixos-hardware/airis/n990>~              | <del> | Apple MacBook Pro 10,1    | ~<nixos-hardware/apple/macbook-pro/10-1>~  | </del> <ins> | Apple MacBook Air 4,X     | ~<nixos-hardware/apple/macbook-air/4>~     | | Apple MacBook Air 6,X     | ~<nixos-hardware/apple/macbook-air/6>~     | | [[file:apple/macbook-pro/10-1][Apple MacBook Pro 10,1]]    | ~<nixos-hardware/apple/macbook-pro/10-1>~  | </ins> | Apple MacBook Pro 12,1    | ~<nixos-hardware/apple/macbook-pro/12-1>~  | <del> | Dell XPS 15 9550          | ~<nixos-hardware/dell/xps/15-9550>~        | | Inverse Path USB armory   | ~<nixos-hardware/inversepath/usbarmory>~   | </del> <ins> | [[file:dell/xps/15-9550][Dell XPS 15 9550]]          | ~<nixos-hardware/dell/xps/15-9550>~        | | [[file:inversepath/usbarmory][Inverse Path USB armory]]   | ~<nixos-hardware/inversepath/usbarmory>~   | </ins> | Lenovo IdeaPad Z510       | ~<nixos-hardware/lenovo/ideapad/z510>~     | | Lenovo ThinkPad T410      | ~<nixos-hardware/lenovo/thinkpad/t410>~    | | Lenovo ThinkPad T440p     | ~<nixos-hardware/lenovo/thinkpad/t440p>~   | | Lenovo ThinkPad T460s     | ~<nixos-hardware/lenovo/thinkpad/t460s>~   | | Lenovo ThinkPad X140e     | ~<nixos-hardware/lenovo/thinkpad/x140e>~   | | Lenovo ThinkPad X220      | ~<nixos-hardware/lenovo/thinkpad/x220>~    | <del> | Microsoft Surface Pro 3   | ~<nixos-hardware/microsoft/surface-pro/3>~ | | Raspberry Pi 2            | ~<nixos-hardware/raspberry-pi/2>~          | | Samsung Series 9 NP900X3C | ~<nixos-hardware/samsung/np900x3c>~        | </del> <ins> | Lenovo ThinkPad X250      | ~<nixos-hardware/lenovo/thinkpad/x250>~    | | [[file:microsoft/surface-pro/3][Microsoft Surface Pro 3]]   | ~<nixos-hardware/microsoft/surface-pro/3>~ | | [[file:raspberry-pi/2][Raspberry Pi 2]]            | ~<nixos-hardware/raspberry-pi/2>~          | | [[file:samsung/np900x3c][Samsung Series 9 NP900X3C]] | ~<nixos-hardware/samsung/np900x3c>~        | </ins> | Supermicro A1SRi-2758F    | ~<nixos-hardware/supermicro/a1sri-2758f>~  | | Supermicro X10SLL-F       | ~<nixos-hardware/supermicro/x10sll-f>~     | |---------------------------+--------------------------------------------|


Question:
migrated from python branch issue tracker
this is not an issue if propagedBuildInputs are used - whether that is good or bad is another thing.
the python rework solved this

<del> { lib, ... }: </del> <ins> { config, lib, ... }: </ins> { <ins> boot.kernelParams = [ "hid_apple.iso_layout=0" ]; hardware.facetimehd.enable = lib.mkDefault (config.nixpkgs.config.allowUnfree or false); </ins> services.mbpfan.enable = lib.mkDefault true; }


Question:
migrated from python branch issue tracker
this is not an issue if propagedBuildInputs are used - whether that is good or bad is another thing.
the python rework solved this

<ins> { lib, ... }: { imports = [ ../. ]; boot.kernelParams = [ "acpi_backlight=vendor" ]; services.xserver.deviceSection = lib.mkDefault '' Option "TearFree" "true" ''; } </ins>


Question:
migrated from python branch issue tracker
this is not an issue if propagedBuildInputs are used - whether that is good or bad is another thing.
the python rework solved this

"vm.laptop_mode" = lib.mkDefault 5; }; <ins> # TODO: fix in NixOS/nixpkgs # Disable governor set in hardware-configuration.nix, # required when services.tlp.enable is true: powerManagement.cpuFreqGovernor = lib.mkForce null; </ins> services.tlp.enable = lib.mkDefault true; }


Question:
migrated from python branch issue tracker
this is not an issue if propagedBuildInputs are used - whether that is good or bad is another thing.
the python rework solved this

<ins> { config, lib, pkgs, ... }: { imports = [ ../. ../../../common/cpu/intel ]; # Thinkfan is enabled by thinkpad profile. # However it requires to set a different `sensor` for this hardware, since there is no /proc/acpi/ibm/thermal # Regulation also works fine without thinkfan daemon though. services.thinkfan.enable = lib.mkOverride 900 false; # maintainers: Mic92 } </ins>


Question:
migrated from python branch issue tracker
this is not an issue if propagedBuildInputs are used - whether that is good or bad is another thing.
the python rework solved this

<ins> ** Status The code in master as of June 2015 should be able to prepare a bootable NixOS for Raspberry PI 2. There are still some drawbacks: NixOS does not provide a /boot/config.txt (the FAT32 partition). Making NixOS work in the Raspberry PI 2 is mainly the result of the recent work of ambro718, Dezgeg and viric (#nixos@irc.freenode.net). ** Download If you want to test, you can flash this 4GB SD image (DOS partition table + fat32 + ext4 rootfs): magnet:?xt=urn:btih:0def3f6acb3bceddb22cb24098f58e40e2853ec2&dn=rpi2-nixos-4b09501f2-img.xz&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80 Then you should be able to nixos-rebuild any configuration.nix changes. The image is the result of a "nixos-install" alone. No root password has been set, and it does not include a nixpkgs checkout or channel. In fact I (viric) created the FS into a NBD, not a real SD, to create this image. </ins>


Question:
migrated from python branch issue tracker
this is not an issue if propagedBuildInputs are used - whether that is good or bad is another thing.
the python rework solved this

<del> imported from https://nixos.org/wiki/Raspberry_Pi_2 ** # Status The code in master as of June 2015 should be able to prepare a bootable NixOS for Raspberry PI 2. There are still some drawbacks: NixOS does not provide a /boot/config.txt (the FAT32 partition). Making NixOS work in the Raspberry PI 2 is mainly the result of the recent work of ambro718, Dezgeg and viric (#nixos@irc.freenode.net). # Download If you want to test, you can flash this 4GB SD image (DOS partition table + fat32 + ext4 rootfs): magnet:?xt=urn:btih:0def3f6acb3bceddb22cb24098f58e40e2853ec2&dn=rpi2-nixos-4b09501f2-img.xz&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80 Then you should be able to nixos-rebuild any configuration.nix changes. The image is the result of a "nixos-install" alone. No root password has been set, and it does not include a nixpkgs checkout or channel. In fact I (viric) created the FS into a NBD, not a real SD, to create this image. </del>


Question:
migrated from python branch issue tracker
I'm closing this as it seems no longer relevant. From what I could find, python-virtinst is "CLI tools for building virtual machines using libvirt". But it is now merged with virtmanager: <-- contains one single file named MERGEDWITHVIRTMANAGER

in assert lib.all (p: p.enabled -> ! (builtins.elem null p.buildInputs)) plugins; stdenv.mkDerivation rec { <del> version = "2.6"; </del> <ins> version = "2.7"; </ins> pname = "weechat"; src = fetchurl { url = "https://weechat.org/files/src/weechat-${version}.tar.bz2"; <del> sha256 = "1narazk28m7lmn1vqi7bhyvnr8apjrmaa4w1hbadn64hwr8ya1hb"; </del> <ins> sha256 = "00hzchzw1w2181kczcrrnj8ngml3bwk7qciha3higxq3qynf0h8c"; </ins> }; outputs = [ "out" "man" ] ++ map (p: p.name) enabledPlugins;


Question:
migrated from python branch issue tracker
I'm closing this as it seems no longer relevant. From what I could find, python-virtinst is "CLI tools for building virtual machines using libvirt". But it is now merged with virtmanager: <-- contains one single file named MERGEDWITHVIRTMANAGER

cmakeFlags = with stdenv.lib; [ "-DENABLE_MAN=ON" "-DENABLE_DOC=ON" <ins> "-DENABLE_JAVASCRIPT=OFF"  # Requires v8 <= 3.24.3, https://github.com/weechat/weechat/issues/360 "-DENABLE_PHP=OFF" </ins> ] ++ optionals stdenv.isDarwin ["-DICONV_LIBRARY=${libiconv}/lib/libiconv.dylib" "-DCMAKE_FIND_FRAMEWORK=LAST"] ++ map (p: "-D${p.cmakeFlag}=" + (if p.enabled then "ON" else "OFF")) plugins


Question:
migrated from python branch issue tracker
I'm closing this as it seems no longer relevant. From what I could find, python-virtinst is "CLI tools for building virtual machines using libvirt". But it is now merged with virtmanager: <-- contains one single file named MERGEDWITHVIRTMANAGER

in assert lib.all (p: p.enabled -> ! (builtins.elem null p.buildInputs)) plugins; stdenv.mkDerivation rec { <del> version = "2.6"; </del> <ins> version = "2.7.1"; </ins> pname = "weechat"; src = fetchurl { url = "https://weechat.org/files/src/weechat-${version}.tar.bz2"; <del> sha256 = "1narazk28m7lmn1vqi7bhyvnr8apjrmaa4w1hbadn64hwr8ya1hb"; </del> <ins> sha256 = "0acz41jg7lmipni9z2agfqw4dhmx5hf6k9w4pvr4zih1fhkldva2"; </ins> }; outputs = [ "out" "man" ] ++ map (p: p.name) enabledPlugins;


Question:
migrated from python branch issue tracker
I'm closing this as it seems no longer relevant. From what I could find, python-virtinst is "CLI tools for building virtual machines using libvirt". But it is now merged with virtmanager: <-- contains one single file named MERGEDWITHVIRTMANAGER


Question:
I'm using the latest from and it works fine, mostly. I notice the following errors during start-up, though: Looking at the build it seems like all recommended dependencies are there so it doesn't seem likely that those plugins weren't built, no? But why are they missing at run-time? And why are others (like the equalizer) not missing?
After some bisecting I found to be the cause of this, reverting it fixes it. I'm not entirely sure why that is though, investigating..
Was fixed in calf with , which is in the latest version, I have opened a PR to update calf

stdenv.mkDerivation rec { name = "calf-${version}"; <del> version = "0.90.0"; </del> <ins> version = "0.90.2"; </ins> src = fetchurl { url = "https://calf-studio-gear.org/files/${name}.tar.gz"; <del> sha256 = "0dijv2j7vlp76l10s4v8gbav26ibaqk8s24ci74vrc398xy00cib"; </del> <ins> sha256 = "0bn4j1klw2yfxz8clbmasaydifq25rdfsv0n6iisxrzcj1lx7sgh"; </ins> }; <del> patches = [ # Fix memory leak in limiter # https://github.com/flathub/com.github.wwmm.pulseeffects/issues/12 (fetchpatch { url = https://github.com/calf-studio-gear/calf/commit/7afdefc0d0489a6227fd10f15843d81dc82afd62.patch; sha256 = "056662iw6hp4ykwk4jyrzg5yarcn17ni97yc060y5kcnzy29ddg6"; }) ]; </del> <ins> enableParallelBuilding = true; </ins> buildInputs = [ cairo expat fftwSinglePrec fluidsynth glib gtk2 libjack2 ladspaH


Question:
Installing the gimpPlugins.resynthesizer2 package does not result in a working plugin; the python scripts are installed, but not the two native executables it depends on (called "resynthesizer" and "resynthesizer" Try to install the package "gimpPlugins.resynthesizer2". Expected result: There should be a few new menu options in the Gimp, amongst them "Filter -Enhance -Heal Selection..." Actual result: No new menu options; python scripts cannot find the executables. Possible solution: I made it work by creating a derivation that adds a the following postInstall: postInstall = "installPlugins src/resynthesizer/resynthesizer src/resynthesizer-gui/resynthesizergui"; system: host os: multi-user?: sandbox: version: channels(cable): nixpkgs:
You need to make the plugins available to GIMP, not install it locally. The following should work:
Just tried it (on a nix shell) - but same result; the resulting installation of gimp-with-plugins links to a resynthesizer2 package that lacks the native executables, only has the python scripts (which don't work without the executables)
Hmm, there was an issue with , saves us.

} // a // { <del> name = "gimp-plugin-${a.name}"; </del> <ins> name = "gimp-plugin-${a.name or "${a.pname}-${a.version}"}"; </ins> buildInputs = [ gimp gimp.gtk glib ] ++ (a.buildInputs or []); nativeBuildInputs = [ pkgconfig intltool ] ++ (a.nativeBuildInputs or []); }


Question:
Installing the gimpPlugins.resynthesizer2 package does not result in a working plugin; the python scripts are installed, but not the two native executables it depends on (called "resynthesizer" and "resynthesizer" Try to install the package "gimpPlugins.resynthesizer2". Expected result: There should be a few new menu options in the Gimp, amongst them "Filter -Enhance -Heal Selection..." Actual result: No new menu options; python scripts cannot find the executables. Possible solution: I made it work by creating a derivation that adds a the following postInstall: postInstall = "installPlugins src/resynthesizer/resynthesizer src/resynthesizer-gui/resynthesizergui"; system: host os: multi-user?: sandbox: version: channels(cable): nixpkgs:
You need to make the plugins available to GIMP, not install it locally. The following should work:
Just tried it (on a nix shell) - but same result; the resulting installation of gimp-with-plugins links to a resynthesizer2 package that lacks the native executables, only has the python scripts (which don't work without the executables)
Hmm, there was an issue with , saves us.

"; }; <del> resynthesizer2 = pluginDerivation { </del> <ins> resynthesizer2 = pluginDerivation rec { </ins> /* menu: Filters/Map/Resynthesize Filters/Enhance/Smart enlarge Filters/Enhance/Smart sharpen Filters/Enhance/Smart remove selection */ <del> name = "resynthesizer-2.0.1"; </del> <ins> pname = "resynthesizer"; version = "2.0.3"; </ins> buildInputs = with pkgs; [ fftw ]; nativeBuildInputs = with pkgs; [ autoreconfHook ]; <del> makeFlags = "GIMP_LIBDIR=$out/lib/gimp/2.0/"; </del> <ins> makeFlags = [ "GIMP_LIBDIR=${placeholder "out"}/lib/gimp/2.0" ]; </ins> src = fetchFromGitHub { owner = "bootchk"; repo = "resynthesizer"; <del> rev = "2.0.1"; sha256 = "1d214s0jsqxz83l9dd8vhnz3siw9fyw7xdhhir25ra7jiwxc99hd"; </del> <ins> rev = "v${version}"; sha256 = "1jwc8bhhm21xhrgw56nzbma6fwg59gc8anlmyns7jdiw83y0zx3j"; </ins> }; };


Question:
The tests for python27Packages.jinja2 fail and thereby the derivation fails to evaluate. (Full log below) I'm crosscompiling an aarch64 sd image with . I'm crosscompiling aarch64 with nixpkgs .
I had the same issue too, this fixes it for me.
Fixed by

packageOverrides = lib.foldr lib.composeExtensions (self: super: { }) ([ (mkOverride "flask"       "0.10.1" "0wrkavjdjndknhp8ya8j850jq7a1cli4g5a93mg8nh1xz2gq50sc") (mkOverride "flask_login" "0.2.11" "1rg3rsjs1gwi2pw6vr9jmhaqm9b3vc9c4hfcsvp4y8agbh7g3mc3") <del> (mkOverride "jinja2"      "2.8.1"  "14aqmhkc9rw5w0v311jhixdm6ym8vsm29dhyxyrjfqxljwx1yd1m") </del> (mkOverride "pylru"       "1.0.9"  "0b0pq0l7xv83dfsajsc49jcxzc99kb9jfx1a1dlx22hzcy962dvi") (mkOverride "sarge"       "0.1.4"  "08s8896973bz1gg0pkr592w6g4p6v47bkfvws5i91p9xf8b35yar") (mkOverride "tornado"     "4.5.3"  "02jzd23l4r6fswmwxaica9ldlyc2p6q8dk6dyff7j58fmdzf853d") # https://github.com/NixOS/nixpkgs/pull/58179#issuecomment-478605134 (mkOverride "werkzeug"    "0.14.1" "c3fd7a7d41976d9f44db327260e263132466836cef6f91512889ed60ad26557c") <ins> # Octoprint holds back jinja2 to 2.8.1 due to breaking changes. # This old version does not have updated test config for pytest 4, # and pypi tarball doesn't contain tests dir anyways. (pself: psuper: { jinja2 = psuper.jinja2.overridePythonAttrs (oldAttrs: rec { version = "2.8.1"; src = oldAttrs.src.override { inherit version; sha256 = "14aqmhkc9rw5w0v311jhixdm6ym8vsm29dhyxyrjfqxljwx1yd1m"; }; doCheck = false; }); }) </ins> ]); };


Question:
The tests for python27Packages.jinja2 fail and thereby the derivation fails to evaluate. (Full log below) I'm crosscompiling an aarch64 sd image with . I'm crosscompiling aarch64 with nixpkgs .
I had the same issue too, this fixes it for me.
Fixed by

pylru pyyaml sarge feedparser netifaces click websocket_client scandir chainmap future dateutil futures wrapt monotonic emoji frozendict <del> ]; </del> <ins> ] ++ lib.optionals stdenv.isDarwin [ py.pkgs.appdirs ]; </ins> checkInputs = with py.pkgs; [ nose mock ddt ];


Question:
The tests for python27Packages.jinja2 fail and thereby the derivation fails to evaluate. (Full log below) I'm crosscompiling an aarch64 sd image with . I'm crosscompiling aarch64 with nixpkgs .
I had the same issue too, this fixes it for me.
Fixed by

''; checkPhase = '' <del> HOME=$(mktemp -d) nosetests </del> <ins> HOME=$(mktemp -d) nosetests ${lib.optionalString stdenv.isDarwin "--exclude=test_set_external_modification"} </ins> ''; meta = with stdenv.lib; {


Question: The new option has the example: This is a list of attrsets, but this doesn't match the type, which is Also, it would be nice to have an example config for as well. Besides this, the new declarative configuration options for syncthing have been working well for me. Thanks for including them. CC

description = '' Peers/devices which syncthing should communicate with. ''; <del> example = [ { name = "bigbox"; </del> <ins> example = { bigbox = { </ins> id = "7CFNTQM-IMTJBHJ-3UWRDIU-ZGQJFR6-VCXZ3NB-XUH3KZO-N52ITXR-LAIYUAU"; addresses = [ "tcp://192.168.0.10:51820" ]; <del> } ]; </del> <ins> }; }; </ins> type = types.attrsOf (types.submodule ({ config, ... }: { options = {


Question: The new option has the example: This is a list of attrsets, but this doesn't match the type, which is Also, it would be nice to have an example config for as well. Besides this, the new declarative configuration options for syncthing have been working well for me. Thanks for including them. CC

description = '' folders which should be shared by syncthing. ''; <ins> example = { "/home/user/sync" = { id = "syncme"; devices = [ "bigbox" ]; }; }; </ins> type = types.attrsOf (types.submodule ({ config, ... }: { options = {


Question:
So today I tried to build on unstable as described in the . This fails on the dependency . Thanks for your information in that guide! I tried to build according to the guide on and (with slight modifications for compatibility) on they both fail in at this point. Do you have any insights as to how you managed to get it to build? e.g. a nixpkgs commit?
Fix in

, sourceVersion , sha256 , passthruFun <ins> , static ? false </ins> }: assert x11Support -> tcl != null


Question:
So today I tried to build on unstable as described in the . This fails on the dependency . Thanks for your information in that guide! I tried to build according to the guide on and (with slight modifications for compatibility) on they both fail in at this point. Do you have any insights as to how you managed to get it to build? e.g. a nixpkgs commit?
Fix in

] # Never even try to use lchmod on linux, # don't rely on detecting glibc-isms. <del> ++ optional stdenv.hostPlatform.isLinux "ac_cv_func_lchmod=no"; </del> <ins> ++ optional stdenv.hostPlatform.isLinux "ac_cv_func_lchmod=no" ++ optional static "LDFLAGS=-static"; </ins> buildInputs = optional (stdenv ? cc && stdenv.cc.libc != null) stdenv.cc.libc ++


Question:
So today I tried to build on unstable as described in the . This fails on the dependency . Thanks for your information in that guide! I tried to build according to the guide on and (with slight modifications for compatibility) on they both fail in at this point. Do you have any insights as to how you managed to get it to build? e.g. a nixpkgs commit?
Fix in

stdenv.mkDerivation rec { pname = "proot"; <del> version = "5.1.0.20190305"; </del> <ins> version = "20190510"; </ins> src = fetchFromGitHub { repo = "proot"; owner = "proot-me"; <del> rev = "ff61c86cb26f71c06af22574d9d4cc3a77292781"; sha256 = "0qink34bjv0lshf3c8997w39r8yxgbhxpjbxw47l5xkvimlpc0dl"; </del> <ins> rev = "803e54d8a1b3d513108d3fc413ba6f7c80220b74"; sha256 = "0gwzqm5wpscj3fchlv3qggf3zzn0v00s4crb5ciwljan1zrqadhy"; </ins> }; postPatch = ''


Question:
So today I tried to build on unstable as described in the . This fails on the dependency . Thanks for your information in that guide! I tried to build according to the guide on and (with slight modifications for compatibility) on they both fail in at this point. Do you have any insights as to how you managed to get it to build? e.g. a nixpkgs commit?
Fix in

deps = [ python ]; substitutions = { inherit waf; <del> crossFlags = lib.optionalString (stdenv.hostPlatform != stdenv.targetPlatform) </del> <ins> crossFlags = lib.optionalString (stdenv.hostPlatform.system != stdenv.targetPlatform.system) </ins> ''--cross-compile "--cross-execute=${stdenv.targetPlatform.emulator pkgs}"''; }; } ../development/tools/build-managers/waf/setup-hook.sh;


Question:
So today I tried to build on unstable as described in the . This fails on the dependency . Thanks for your information in that guide! I tried to build according to the guide on and (with slight modifications for compatibility) on they both fail in at this point. Do you have any insights as to how you managed to get it to build? e.g. a nixpkgs commit?
Fix in

}; }; <ins> python27 = super.python27.override { static = true; }; </ins> }


Question:
When the service starts, the following message is printed to the logs: sshguard[]: sshg-fw-ipset: Could not initialize firewall Blocking does not actually work. Blocked hosts can still initialize ssh connections. Default sshguard config. system: host os: multi-user?: sandbox: version: channels(root): channels(XXXX): nixpkgs:
It seems like that is due to ipsets being created of different types than intended. I'm not sure where it's getting created with that though: # ipset -L Name: sshguard4 Type: hash:ip Revision: 4 Header: family inet hashsize 1024 maxelem Size in memory: 88 References: 1 Number of entries: 0 Members: Name: sshguard6 Type: hash:ip Revision: 4 Header: family inet6 hashsize 1024 maxelem Size in memory: 104 References: 2 Number of entries: 0 Members: Whereas the script intends to create types which is why it returns with an error. I do not see where in the sshguard is type of ipset getting created. I came across though.

path = with pkgs; [ iptables ipset iproute systemd ]; postStart = '' <del> ${pkgs.ipset}/bin/ipset -quiet create -exist sshguard4 hash:ip family inet ${pkgs.ipset}/bin/ipset -quiet create -exist sshguard6 hash:ip family inet6 </del> ${pkgs.iptables}/bin/iptables  -I INPUT -m set --match-set sshguard4 src -j DROP ${pkgs.iptables}/bin/ip6tables -I INPUT -m set --match-set sshguard6 src -j DROP '';


Question:
is unmaintained, superseded by node2nix and should therefore be removed from nixpkgs Please run and paste the results.
seems LGTM. Wanna open a PR ?

''; }; <del> npm2nix = nodePackages."npm2nix-git://github.com/NixOS/npm2nix.git#5.12.0".override { postInstall = "npm run-script prepublish"; }; </del> pnpm = nodePackages.pnpm.override { nativeBuildInputs = [ pkgs.makeWrapper ];


Question:
is unmaintained, superseded by node2nix and should therefore be removed from nixpkgs Please run and paste the results.
seems LGTM. Wanna open a PR ?

, "nodemon" , "node-red" , "npm" <del> , { "npm2nix": "git://github.com/NixOS/npm2nix.git#5.12.0" } </del> , "npm-check-updates" , "ocaml-language-server" , "peerflix"


Question:
is unmaintained, superseded by node2nix and should therefore be removed from nixpkgs Please run and paste the results.
seems LGTM. Wanna open a PR ?

bypassCache = true; reconstructLock = true; }; <del> "npm2nix-git://github.com/NixOS/npm2nix.git#5.12.0" = nodeEnv.buildNodePackage { name = "npm2nix"; packageName = "npm2nix"; version = "5.12.0"; src = fetchgit { url = "git://github.com/NixOS/npm2nix.git"; rev = "0c06be7d278a7f64fc853a5fd42d2031d14496d5"; sha256 = "e1b252cd883fd8c5c4618b157d03b3fb869fa6aad4170ef51e34681069d50bf5"; }; dependencies = [ sources."abbrev-1.1.1" sources."ajv-6.10.2" sources."ansi-regex-2.1.1" sources."aproba-1.2.0" sources."are-we-there-yet-1.1.5" sources."argparse-0.1.15" sources."asn1-0.2.4" sources."assert-plus-1.0.0" sources."asynckit-0.4.0" sources."aws-sign2-0.7.0" sources."aws4-1.8.0" sources."balanced-match-1.0.0" sources."bcrypt-pbkdf-1.0.2" sources."block-stream-0.0.9" sources."brace-expansion-1.1.11" sources."caseless-0.12.0" sources."chownr-0.0.2" sources."code-point-at-1.1.0" sources."coffee-script-1.12.7" sources."combined-stream-1.0.8" sources."concat-map-0.0.1" (sources."config-chain-1.1.12" // { dependencies = [ sources."ini-1.3.5" ]; }) sources."console-control-strings-1.1.0" sources."core-util-is-1.0.2" sources."couch-login-0.1.20" sources."dashdash-1.14.1" sources."delayed-stream-1.0.0" sources."delegates-1.0.0" sources."ecc-jsbn-0.1.2" sources."extend-3.0.2" sources."extsprintf-1.3.0" sources."fast-deep-equal-2.0.1" sources."fast-json-stable-stringify-2.0.0" sources."findit-1.2.0" sources."foreachasync-3.0.0" sources."forever-agent-0.6.1" sources."form-data-2.3.3" (sources."fs-extra-0.6.4" // { dependencies = [ sources."rimraf-2.2.8" ]; }) sources."fs.extra-1.3.2" sources."fs.realpath-1.0.0" (sources."fstream-0.1.31" // { dependencies = [ sources."graceful-fs-3.0.11" sources."mkdirp-0.5.1" ]; }) sources."gauge-2.7.4" sources."getpass-0.1.7" sources."glob-7.1.4" sources."graceful-fs-2.0.3" sources."har-schema-2.0.0" sources."har-validator-5.1.3" sources."has-unicode-2.0.1" sources."http-signature-1.2.0" sources."inflight-1.0.6" sources."inherits-2.0.4" sources."ini-1.1.0" sources."is-fullwidth-code-point-1.0.0" sources."is-typedarray-1.0.0" sources."isarray-1.0.0" sources."isstream-0.1.2" sources."jsbn-0.1.1" sources."json-schema-0.2.3" sources."json-schema-traverse-0.4.1" sources."json-stringify-safe-5.0.1" sources."jsonfile-1.0.1" sources."jsprim-1.4.1" sources."mime-db-1.40.0" sources."mime-types-2.1.24" sources."minimatch-3.0.4" sources."minimist-0.0.8" sources."mkdirp-0.3.5" sources."natives-1.1.6" sources."ncp-0.4.2" sources."nopt-2.2.1" (sources."npm-registry-client-0.2.27" // { dependencies = [ sources."semver-2.0.11" ]; }) (sources."npmconf-0.1.1" // { dependencies = [ sources."inherits-1.0.2" sources."once-1.1.1" sources."semver-2.3.2" ]; }) sources."npmlog-4.1.2" sources."number-is-nan-1.0.1" sources."oauth-sign-0.9.0" sources."object-assign-4.1.1" sources."once-1.4.0" sources."osenv-0.0.3" sources."path-is-absolute-1.0.1" sources."performance-now-2.1.0" sources."process-nextick-args-2.0.1" sources."proto-list-1.2.4" sources."psl-1.2.0" sources."punycode-2.1.1" sources."qs-6.5.2" (sources."readable-stream-2.3.6" // { dependencies = [ sources."safe-buffer-5.1.2" ]; }) sources."request-2.88.0" sources."retry-0.6.0" sources."rimraf-2.6.3" sources."safe-buffer-5.2.0" sources."safer-buffer-2.1.2" sources."semver-4.3.6" sources."set-blocking-2.0.0" sources."signal-exit-3.0.2" sources."slide-1.1.6" sources."sshpk-1.16.1" sources."string-width-1.0.2" (sources."string_decoder-1.1.1" // { dependencies = [ sources."safe-buffer-5.1.2" ]; }) sources."strip-ansi-3.0.1" (sources."tar-0.1.17" // { dependencies = [ sources."inherits-1.0.2" ]; }) (sources."temp-0.6.0" // { dependencies = [ sources."graceful-fs-1.2.3" sources."rimraf-2.1.4" ]; }) (sources."tough-cookie-2.4.3" // { dependencies = [ sources."punycode-1.4.1" ]; }) sources."tunnel-agent-0.6.0" sources."tweetnacl-0.14.5" sources."underscore-1.4.4" sources."underscore.string-2.3.3" sources."uri-js-4.2.2" sources."util-deprecate-1.0.2" sources."uuid-3.3.2" sources."verror-1.10.0" sources."walk-2.3.14" sources."wide-align-1.1.3" sources."wrappy-1.0.2" ]; buildInputs = globalBuildInputs; meta = { description = "Generate nix expressions to build npm packages"; homepage = https://github.com/NixOS/npm2nix; }; production = true; bypassCache = true; reconstructLock = true; }; </del> npm-check-updates = nodeEnv.buildNodePackage { name = "npm-check-updates"; packageName = "npm-check-updates";


Question:
is unmaintained, superseded by node2nix and should therefore be removed from nixpkgs Please run and paste the results.
seems LGTM. Wanna open a PR ?

bypassCache = true; reconstructLock = true; }; <del> } </del>  No newline at end of file <ins> } </ins>


Question:
is unmaintained, superseded by node2nix and should therefore be removed from nixpkgs Please run and paste the results.
seems LGTM. Wanna open a PR ?

nodePackages = nodePackages_10_x; <del> npm2nix = nodePackages.npm2nix; </del> now-cli = callPackage ../development/web/now-cli {}; file-rename = callPackage ../tools/filesystems/file-rename { };


Question:
no $ Add to installPhase
For some reason netpbm is installing the symlink to . Will be fixed by

"${ghostscript}/bin:" + (if aspell == null then "" else "${aspell}/bin:") + (if tex == null then "" else "${tex}/bin:") + <del> (if netpbm == null then "" else "${netpbm}/bin:") + </del> <ins> (if netpbm == null then "" else "${stdenv.lib.getBin netpbm}/bin:") + </ins> (if imagemagick == null then "" else "${imagemagick}/bin:"); enableParallelBuilding = true;


Question:
no $ Add to installPhase
For some reason netpbm is installing the symlink to . Will be fixed by

makeFlags = [ "PREFIX=${placeholder "out"}" "LEX=flex" <del> "RGBDEF=${netpbm}/share/netpbm/misc/rgb.txt" </del> <ins> "RGBDEF=${netpbm.out}/share/netpbm/misc/rgb.txt" </ins> ]; nativeBuildInputs = [


Question:
no $ Add to installPhase
For some reason netpbm is installing the symlink to . Will be fixed by

<del> { lib, stdenv, fetchsvn, pkgconfig, libjpeg, libpng, flex, zlib, perl, libxml2 , makeWrapper, libtiff , enableX11 ? false, libX11 }: </del> <ins> { lib , stdenv , fetchsvn , pkgconfig , libjpeg , libpng , flex , zlib , perl , libxml2 , makeWrapper , libtiff , enableX11 ? false , libX11 }: </ins> stdenv.mkDerivation { # Determine version and revision from: # https://sourceforge.net/p/netpbm/code/HEAD/log/?path=/advanced <del> name = "netpbm-10.82.01"; </del> <ins> name = "netpbm-10.89.1"; outputs = [ "bin" "out" "dev" ]; </ins> src = fetchsvn { url = "https://svn.code.sf.net/p/netpbm/code/advanced"; <del> rev = "3264"; sha256 = "17fmyjbxp1l18rma7gb0m8wd9kx2iwhqs8dd6fpalsn2cr8mf8hf"; </del> <ins> rev = "3735"; sha256 = "hRepEUBlf83p77Amjze+Qz7XTHhCuPdV01K/UabR89Q="; </ins> }; <del> postPatch = /* CVE-2005-2471, from Arch */ '' substituteInPlace converter/other/pstopnm.c  --replace '"-dSAFER"' '"-dPARANOIDSAFER"' </del> <ins> postPatch = '' # Install libnetpbm.so symlink to correct destination substituteInPlace lib/Makefile  --replace '/sharedlink' '/lib' </ins> ''; <del> buildInputs = [ pkgconfig flex zlib perl libpng libjpeg libxml2 makeWrapper libtiff ] ++ lib.optional enableX11 libX11; </del> <ins> nativeBuildInputs = [ pkgconfig flex makeWrapper ]; buildInputs = [ zlib perl libpng libjpeg libxml2 libtiff ] ++ lib.optional enableX11 libX11; </ins> configurePhase = '' <ins> runHook preConfigure </ins> cp config.mk.in config.mk <del> echo "STATICLIB_TOO = n" >> config.mk substituteInPlace "config.mk"  --replace "TIFFLIB = NONE" "TIFFLIB = ${libtiff.out}/lib/libtiff.so"  --replace "TIFFHDR_DIR =" "TIFFHDR_DIR = ${libtiff.dev}/include"  --replace "JPEGLIB = NONE" "JPEGLIB = ${libjpeg.out}/lib/libjpeg.so"  --replace "JPEGHDR_DIR =" "JPEGHDR_DIR = ${libjpeg.dev}/include" '' + stdenv.lib.optionalString stdenv.isDarwin '' </del> <ins> # Disable building static library echo "STATICLIB_TOO = N" >> config.mk # Use libraries from Nixpkgs echo "TIFFLIB = libtiff.so" >> config.mk echo "TIFFLIB_NEEDS_JPEG = N" >> config.mk echo "TIFFLIB_NEEDS_Z = N" >> config.mk echo "JPEGLIB = libjpeg.so" >> config.mk # Fix path to rgb.txt echo "RGB_DB_PATH = $out/share/netpbm/misc/rgb.txt" >> config.mk '' + stdenv.lib.optionalString stdenv.isDarwin '' </ins> echo "LDSHLIB=-dynamiclib -install_name $out/lib/libnetpbm.$(MAJ).dylib" >> config.mk echo "NETPBMLIBTYPE = dylib" >> config.mk echo "NETPBMLIBSUFFIX = dylib" >> config.mk <del> ''; preBuild = '' export LDFLAGS="-lz" substituteInPlace "pm_config.in.h"  --subst-var-by "rgbPath1" "$out/lib/rgb.txt"  --subst-var-by "rgbPath2" "/var/empty/rgb.txt"  --subst-var-by "rgbPath3" "/var/empty/rgb.txt" touch lib/standardppmdfont.c </del> <ins> runHook postConfigure </ins> ''; <del> enableParallelBuilding = false; </del> <ins> enableParallelBuilding = true; </ins> installPhase = '' <ins> runHook preInstall </ins> make package pkgdir=$out <del> rm -rf $out/link $out/*_template $out/{pkginfo,README,VERSION} $out/man/web </del> <ins> rm -rf $out/*_template $out/{pkginfo,README,VERSION} $out/man/web </ins> mkdir -p $out/share/netpbm mv $out/misc $out/share/netpbm/


Question:
no $ Add to installPhase
For some reason netpbm is installing the symlink to . Will be fixed by

for prog in ppmquant; do wrapProgram "$out/bin/$prog" --prefix PATH : "$out/bin" done <ins> moveToOutput bin "''${!outputBin}" runHook postInstall </ins> ''; <ins> passthru.updateScript = ./update.sh; </ins> meta = { <del> homepage = http://netpbm.sourceforge.net/; </del> <ins> homepage = "http://netpbm.sourceforge.net/"; </ins> description = "Toolkit for manipulation of graphic images"; <del> license = "GPL,free"; </del> <ins> license = lib.licenses.free; # http://netpbm.svn.code.sourceforge.net/p/netpbm/code/trunk/doc/copyright_summary </ins> platforms = with stdenv.lib.platforms; linux ++ darwin; }; }


Question:
no $ Add to installPhase
For some reason netpbm is installing the symlink to . Will be fixed by

<ins> #!/usr/bin/env nix-shell #!nix-shell -p bash -p subversion -p common-updater-scripts -i bash die() { echo "error: $1" >&2 exit 1 } attr=netpbm svnRoot=https://svn.code.sf.net/p/netpbm/code/advanced oldRev=$(nix-instantiate --eval -E "with import ./. {}; $attr.src.rev" | tr -d '"') if [[ -z "$oldRev" ]]; then die "Could not extract old revision." fi latestRev=$(svn info --show-item "last-changed-revision" "$svnRoot") if [[ -z "$latestRev" ]]; then die "Could not find out last changed revision." fi versionInfo=$(svn cat -r "$latestRev" "$svnRoot/version.mk") if [[ -z "$versionInfo" ]]; then die "Could not get version info." fi nixFile=$(nix-instantiate --eval --strict -A "$attr.meta.position" | sed -re 's/^"(.*):[0-9]+"$/1/') if [[ ! -f "$nixFile" ]]; then die "Could not evaluate '$attr.meta.position' to locate the .nix file!" fi # h remembers if we found the pattern; on the last line, if a pattern was previously found, we exit with 1 # https://stackoverflow.com/a/12145797/160386 sed -i "$nixFile" -re '/(brevbs*=s*)"'"$oldRev"'"/{ s||1"'"$latestRev"'"|; h }; ${x; /./{x; q1}; x}' && die "Unable to update revision." majorRelease=$(grep --perl-regex --only-matching 'NETPBM_MAJOR_RELEASE = K.+' <<< "$versionInfo") minorRelease=$(grep --perl-regex --only-matching 'NETPBM_MINOR_RELEASE = K.+' <<< "$versionInfo") pointRelease=$(grep --perl-regex --only-matching 'NETPBM_POINT_RELEASE = K.+' <<< "$versionInfo") update-source-version "$attr" "$majorRelease.$minorRelease.$pointRelease" </ins>


Question:
no $ Add to installPhase
For some reason netpbm is installing the symlink to . Will be fixed by

preConfigure = '' rm cmake/FindNETPBM.cmake <del> echo "SET(NETPBM_LIBRARY `find ${netpbm} -name "*.${stdenv.hostPlatform.extensions.sharedLibrary}*" -type f`)" >> cmake/FindNETPBM.cmake echo "SET(NETPBM_LIBRARIES `find ${netpbm} -name "*.${stdenv.hostPlatform.extensions.sharedLibrary}*" -type f`)" >> cmake/FindNETPBM.cmake echo "SET(NETPBM_INCLUDE_DIR ${netpbm}/include/netpbm)" >> cmake/FindNETPBM.cmake </del> <ins> echo "SET(NETPBM_LIBRARY `find ${stdenv.lib.getLib netpbm} -name "*.${stdenv.hostPlatform.extensions.sharedLibrary}*" -type f`)" >> cmake/FindNETPBM.cmake echo "SET(NETPBM_LIBRARIES `find ${stdenv.lib.getLib netpbm} -name "*.${stdenv.hostPlatform.extensions.sharedLibrary}*" -type f`)" >> cmake/FindNETPBM.cmake echo "SET(NETPBM_INCLUDE_DIR ${stdenv.lib.getDev netpbm}/include/netpbm)" >> cmake/FindNETPBM.cmake </ins> echo "INCLUDE(FindPackageHandleStandardArgs)" >> cmake/FindNETPBM.cmake echo "FIND_PACKAGE_HANDLE_STANDARD_ARGS(NETPBM DEFAULT_MSG NETPBM_LIBRARY NETPBM_INCLUDE_DIR)" >> cmake/FindNETPBM.cmake '';


Question:
no $ Add to installPhase
For some reason netpbm is installing the symlink to . Will be fixed by

buildInputs = [ libpng ]; configureFlags = [ <del> "--with-rgbtxt=${netpbm}/share/netpbm/misc/rgb.txt" </del> <ins> "--with-rgbtxt=${netpbm.out}/share/netpbm/misc/rgb.txt" </ins> ]; meta = with stdenv.lib; {


Question:
no $ Add to installPhase
For some reason netpbm is installing the symlink to . Will be fixed by

sed -i src/form.c -e '21i#include <stdlib.h>' # there is no point to bring in the whole netpbm package just for this file <del> install -Dm644 ${netpbm}/share/netpbm/misc/rgb.txt $out/share/yad/rgb.txt </del> <ins> install -Dm644 ${netpbm.out}/share/netpbm/misc/rgb.txt $out/share/yad/rgb.txt </ins> ''; postAutoreconf = ''


Question:
no $ Add to installPhase
For some reason netpbm is installing the symlink to . Will be fixed by

--replace "psselect" "${psutils}/bin/psselect" '' + stdenv.lib.optionalString (netpbm != null) '' substituteInPlace src/preproc/html/pre-html.cpp  <del> --replace "pnmcut" "${netpbm}/bin/pnmcut"  --replace "pnmcrop" "${netpbm}/bin/pnmcrop"  --replace "pnmtopng" "${netpbm}/bin/pnmtopng" </del> <ins> --replace "pnmcut" "${stdenv.lib.getBin netpbm}/bin/pnmcut"  --replace "pnmcrop" "${stdenv.lib.getBin netpbm}/bin/pnmcrop"  --replace "pnmtopng" "${stdenv.lib.getBin netpbm}/bin/pnmtopng" </ins> substituteInPlace tmac/www.tmac  <del> --replace "pnmcrop" "${netpbm}/bin/pnmcrop"  --replace "pngtopnm" "${netpbm}/bin/pngtopnm"  --replace "@PNMTOPS_NOSETPAGE@" "${netpbm}/bin/pnmtops -nosetpage" </del> <ins> --replace "pnmcrop" "${stdenv.lib.getBin netpbm}/bin/pnmcrop"  --replace "pngtopnm" "${stdenv.lib.getBin netpbm}/bin/pngtopnm"  --replace "@PNMTOPS_NOSETPAGE@" "${stdenv.lib.getBin netpbm}/bin/pnmtops -nosetpage" </ins> ''; buildInputs = [ ghostscript psutils netpbm perl ];


Question:
Describe the bug fails on Darwin. To Reproduce Steps to reproduce the behavior: Expected behavior Package builds Additional context Error log: <details<summaryError log</summary</detailsMetadata Please run and paste the result. host os: multi-user?: sandbox: version: channels(yl): nixpkgs: Maintainer information: Possibly related to
On the master branch, I removed the derivation from the nix store with and I built it without substitutes; failed with the same message. This is not caused by , but help me discover it due to the update of the requests python package.
maintainer:
I don't have a way to test on joblib for darwin so this is why I didn't have input on this PR. Is there an easy way to test nixpkgs on darwin? Hackintosh via kvm?
There is that works with some tweaking but I wouldn't describe it as easy. Another option is to ask @ GrahamcOfBorg to do the builds on the PR if there are not too many iterations to do.

, buildPythonPackage , fetchPypi , fetchpatch <ins> , stdenv </ins> , sphinx , numpydoc , pytest


Question:
Describe the bug fails on Darwin. To Reproduce Steps to reproduce the behavior: Expected behavior Package builds Additional context Error log: <details<summaryError log</summary</detailsMetadata Please run and paste the result. host os: multi-user?: sandbox: version: channels(yl): nixpkgs: Maintainer information: Possibly related to
On the master branch, I removed the derivation from the nix store with and I built it without substitutes; failed with the same message. This is not caused by , but help me discover it due to the update of the requests python package.
maintainer:
I don't have a way to test on joblib for darwin so this is why I didn't have input on this PR. Is there an easy way to test nixpkgs on darwin? Hackintosh via kvm?
There is that works with some tweaking but I wouldn't describe it as easy. Another option is to ask @ GrahamcOfBorg to do the builds on the PR if there are not too many iterations to do.

checkInputs = [ sphinx numpydoc pytest ]; propagatedBuildInputs = [ python-lz4 ]; <del> # test_disk_used is broken # https://github.com/joblib/joblib/issues/57 </del> <ins> # test_disk_used is broken: https://github.com/joblib/joblib/issues/57 # test_dispatch_multiprocessing is broken only on Darwin. </ins> checkPhase = '' <del> py.test joblib -k "not test_disk_used" </del> <ins> py.test -k 'not test_disk_used${lib.optionalString (stdenv.isDarwin) " and not test_dispatch_multiprocessing"}' joblib/test </ins> ''; meta = {


Question:
Trying to build zathura on unstable, I get: Additional context I can't really see what might have changed recently (I think it started happening about 2 weeks ago....) for it to no longer find synctex. The texlive package is being included as a build input, which should have synctex Metadata system: host os: multi-user?: sandbox: version: channels(root): nixpkgs:
I can build zathura on master and the hydra has been doing ok. Am I missing something?
Hm, I'm not sure. I can't seem to get it to build.... "nix-build -A zathura" on master gives me the same error
This also builds for me on master. Only thing i can think of is your branch isn't up to date.
What do you think could be wrong? My sources are up to date:
I notice that I get a different drv on my system (), I think you may not be building from the master. IIRC when you run it will build from which may not point to your git checkout. If you want to build expressions from the current directory you need to do nix also can download a tarball with expressions, for example like this:
If no path is given nix-build will read and If doesn't exist it will fail. So, command is fine.
I just checked on another x86_64-linux NixOS system that evaluates to on . If the command is correct then there must be an override or an overlay in or that affects the derivation.
Oh my god, you're totally right. I had an overlay in my , which I think I had to add to disable synctex at one point when it wasn't working. Removing that and it builds fine. So sorry for wasting your guys' time but thanks for the help! (Although I wonder why it says it can't find synctex when it should have been disabled with the overlay?) Anyways, I'll close this issue, thanks again, it was driving me crazy!
What was the overlay? There may still be a bug here.
The build indeed fails with . I don't have time to open a PR now but the fix is pretty easy: can you reopen the issue?
Sure - it also fails to build with synctexSupport = false, not sure if your fix addresses that as well?
The option was introduced in I think we should just drop variant

, gtk, girara, gettext, libxml2, check , sqlite, glib, texlive, libintl, libseccomp , file, librsvg <del> , gtk-mac-integration, synctexSupport ? true </del> <ins> , gtk-mac-integration </ins> }: <del> assert synctexSupport -> texlive != null; </del> with stdenv.lib; stdenv.mkDerivation rec {


Question:
Trying to build zathura on unstable, I get: Additional context I can't really see what might have changed recently (I think it started happening about 2 weeks ago....) for it to no longer find synctex. The texlive package is being included as a build input, which should have synctex Metadata system: host os: multi-user?: sandbox: version: channels(root): nixpkgs:
I can build zathura on master and the hydra has been doing ok. Am I missing something?
Hm, I'm not sure. I can't seem to get it to build.... "nix-build -A zathura" on master gives me the same error
This also builds for me on master. Only thing i can think of is your branch isn't up to date.
What do you think could be wrong? My sources are up to date:
I notice that I get a different drv on my system (), I think you may not be building from the master. IIRC when you run it will build from which may not point to your git checkout. If you want to build expressions from the current directory you need to do nix also can download a tarball with expressions, for example like this:
If no path is given nix-build will read and If doesn't exist it will fail. So, command is fine.
I just checked on another x86_64-linux NixOS system that evaluates to on . If the command is correct then there must be an override or an overlay in or that affects the derivation.
Oh my god, you're totally right. I had an overlay in my , which I think I had to add to disable synctex at one point when it wasn't working. Removing that and it builds fine. So sorry for wasting your guys' time but thanks for the help! (Although I wonder why it says it can't find synctex when it should have been disabled with the overlay?) Anyways, I'll close this issue, thanks again, it was driving me crazy!
What was the overlay? There may still be a bug here.
The build indeed fails with . I don't have time to open a PR now but the fix is pretty easy: can you reopen the issue?
Sure - it also fails to build with synctexSupport = false, not sure if your fix addresses that as well?
The option was introduced in I think we should just drop variant

# "-Dseccomp=enabled" "-Dmanpages=enabled" "-Dconvert-icon=enabled" <del> ] ++ optional synctexSupport "-Dsynctex=enabled"; </del> <ins> "-Dsynctex=enabled" ]; </ins> nativeBuildInputs = [ meson ninja pkgconfig desktop-file-utils python3.pkgs.sphinx


Question:
Trying to build zathura on unstable, I get: Additional context I can't really see what might have changed recently (I think it started happening about 2 weeks ago....) for it to no longer find synctex. The texlive package is being included as a build input, which should have synctex Metadata system: host os: multi-user?: sandbox: version: channels(root): nixpkgs:
I can build zathura on master and the hydra has been doing ok. Am I missing something?
Hm, I'm not sure. I can't seem to get it to build.... "nix-build -A zathura" on master gives me the same error
This also builds for me on master. Only thing i can think of is your branch isn't up to date.
What do you think could be wrong? My sources are up to date:
I notice that I get a different drv on my system (), I think you may not be building from the master. IIRC when you run it will build from which may not point to your git checkout. If you want to build expressions from the current directory you need to do nix also can download a tarball with expressions, for example like this:
If no path is given nix-build will read and If doesn't exist it will fail. So, command is fine.
I just checked on another x86_64-linux NixOS system that evaluates to on . If the command is correct then there must be an override or an overlay in or that affects the derivation.
Oh my god, you're totally right. I had an overlay in my , which I think I had to add to disable synctex at one point when it wasn't working. Removing that and it builds fine. So sorry for wasting your guys' time but thanks for the help! (Although I wonder why it says it can't find synctex when it should have been disabled with the overlay?) Anyways, I'll close this issue, thanks again, it was driving me crazy!
What was the overlay? There may still be a bug here.
The build indeed fails with . I don't have time to open a PR now but the fix is pretty easy: can you reopen the issue?
Sure - it also fails to build with synctexSupport = false, not sure if your fix addresses that as well?
The option was introduced in I think we should just drop variant

buildInputs = [ gtk girara libintl sqlite glib file librsvg <del> ] ++ optional synctexSupport texlive.bin.core ++ optional stdenv.isLinux libseccomp </del> <ins> texlive.bin.core ] ++ optional stdenv.isLinux libseccomp </ins> ++ optional stdenv.isDarwin gtk-mac-integration; doCheck = true;


Question:
Trying to build zathura on unstable, I get: Additional context I can't really see what might have changed recently (I think it started happening about 2 weeks ago....) for it to no longer find synctex. The texlive package is being included as a build input, which should have synctex Metadata system: host os: multi-user?: sandbox: version: channels(root): nixpkgs:
I can build zathura on master and the hydra has been doing ok. Am I missing something?
Hm, I'm not sure. I can't seem to get it to build.... "nix-build -A zathura" on master gives me the same error
This also builds for me on master. Only thing i can think of is your branch isn't up to date.
What do you think could be wrong? My sources are up to date:
I notice that I get a different drv on my system (), I think you may not be building from the master. IIRC when you run it will build from which may not point to your git checkout. If you want to build expressions from the current directory you need to do nix also can download a tarball with expressions, for example like this:
If no path is given nix-build will read and If doesn't exist it will fail. So, command is fine.
I just checked on another x86_64-linux NixOS system that evaluates to on . If the command is correct then there must be an override or an overlay in or that affects the derivation.
Oh my god, you're totally right. I had an overlay in my , which I think I had to add to disable synctex at one point when it wasn't working. Removing that and it builds fine. So sorry for wasting your guys' time but thanks for the help! (Although I wonder why it says it can't find synctex when it should have been disabled with the overlay?) Anyways, I'll close this issue, thanks again, it was driving me crazy!
What was the overlay? There may still be a bug here.
The build indeed fails with . I don't have time to open a PR now but the fix is pretty easy: can you reopen the issue?
Sure - it also fails to build with synctexSupport = false, not sure if your fix addresses that as well?
The option was introduced in I think we should just drop variant

{ config, pkgs # zathura_pdf_mupdf fails to load _opj_create_decompress at runtime on Darwin (https://github.com/NixOS/nixpkgs/pull/61295#issue-277982980) <del> , useMupdf ? config.zathura.useMupdf or (!pkgs.stdenv.isDarwin) , synctexSupport ? true }: </del> <ins> , useMupdf ? config.zathura.useMupdf or (!pkgs.stdenv.isDarwin) }: </ins> let callPackage = pkgs.newScope self;


Question:
Trying to build zathura on unstable, I get: Additional context I can't really see what might have changed recently (I think it started happening about 2 weeks ago....) for it to no longer find synctex. The texlive package is being included as a build input, which should have synctex Metadata system: host os: multi-user?: sandbox: version: channels(root): nixpkgs:
I can build zathura on master and the hydra has been doing ok. Am I missing something?
Hm, I'm not sure. I can't seem to get it to build.... "nix-build -A zathura" on master gives me the same error
This also builds for me on master. Only thing i can think of is your branch isn't up to date.
What do you think could be wrong? My sources are up to date:
I notice that I get a different drv on my system (), I think you may not be building from the master. IIRC when you run it will build from which may not point to your git checkout. If you want to build expressions from the current directory you need to do nix also can download a tarball with expressions, for example like this:
If no path is given nix-build will read and If doesn't exist it will fail. So, command is fine.
I just checked on another x86_64-linux NixOS system that evaluates to on . If the command is correct then there must be an override or an overlay in or that affects the derivation.
Oh my god, you're totally right. I had an overlay in my , which I think I had to add to disable synctex at one point when it wasn't working. Removing that and it builds fine. So sorry for wasting your guys' time but thanks for the help! (Although I wonder why it says it can't find synctex when it should have been disabled with the overlay?) Anyways, I'll close this issue, thanks again, it was driving me crazy!
What was the overlay? There may still be a bug here.
The build indeed fails with . I don't have time to open a PR now but the fix is pretty easy: can you reopen the issue?
Sure - it also fails to build with synctexSupport = false, not sure if your fix addresses that as well?
The option was introduced in I think we should just drop variant

self = rec { gtk = pkgs.gtk3; <del> zathura_core = callPackage ./core { inherit synctexSupport; }; </del> <ins> zathura_core = callPackage ./core { }; </ins> zathura_pdf_poppler = callPackage ./pdf-poppler { };


Question:
Is it possible to implement mount options for swap partition? This feature could be useful for machines with SSD only drive(s). User could change to options for automatic trimming. of this feature.
I think this is what you want
I still can't figure out solution with documentation pointed out. If I put raises an error. I am using NixOS 14.12 stable. As far as I know swap partition does not have mounting point.
you may do it like this: even though, i didn't test it, but using like this should work regards, iker
Still, it would be nice if there were a more idiomatic way to accomplish that.
Sorry for long pause. After some research, setting discard on swap is NOT good idea. (see ). Setting it, would trigger trim command every time block clears, which leads to poor performance when swap is under pressure. Issue can be closed.
according to the there is a single variant, which is NOT that bad idea:
On top of the case pointed out by of doing a oneshot discard of swap space on startup, there are some situations where there really isn't much of any performance impact. As a simple example, I'm running NixOS in a VM, and the hypervisor translates TRIM/UNMAP/DISCARD commands into calls to fallocate() with the FLPUNCHHOLE flag on the host side. This ends up completing almost instantly due to how my storage stack is set up (and will in most cases where people are using file-backed VM disks), and more importantly, it can be queued on the VM side because it's on an emulated SCSI device. There's literally no measurable performance impact in this case, but there's a big impact on the host side in terms of simplifying space management. Even ignoring use of virtualization, 90% of the performance issue for inline discards in general (not just for swap space) is due to most commodity hardware not being able to queue them, which results in them having about the same impact as an FUA request. Some hardware, however (notably most SCSI and NVMe devices) can queue them, and they have very little impact on performance there.
since this issue got new visits again, i've uploaded , which is a start. I've also looked into unifying and , but it seems a lot of work if such a change doesn't get merged.
What if both and options are in use? /etc/fstab gets 2 entries: Interestingly, the nixos-generate-config options is placed in a lower part of /etc/fstab. There is hope that the first entry gets precedence. But I don't know any mean of checking . the issue still unresolved. Can you reopen, please?
I'm using nixos 21.05 and want to add the "nofail" option for swap devices that are in raid1. Options: can send a PR for a option that gets passed to . I have this and can put it up quickly. This mirrors . can send a PR for a specific option. can use , which can support arbitrary options. But then won't be reproduced correctly. Any opinions?
The approach would get my vote, as it avoids any possibility of arguments between users and developers when a user wants to use an option the developer thinks should not be used (such as the option that started all of this).

merge = mergeEqualOption; }; <ins> nonEmptyStr = mkOptionType { name = "nonEmptyStr"; description = "non-empty string"; check = x: str.check x && builtins.match "[ tn]*" x == null; inherit (str) merge; }; </ins> strMatching = pattern: mkOptionType { name = "strMatching ${escapeNixString pattern}"; description = "string matching the pattern ${pattern}";


Question:
Is it possible to implement mount options for swap partition? This feature could be useful for machines with SSD only drive(s). User could change to options for automatic trimming. of this feature.
I think this is what you want
I still can't figure out solution with documentation pointed out. If I put raises an error. I am using NixOS 14.12 stable. As far as I know swap partition does not have mounting point.
you may do it like this: even though, i didn't test it, but using like this should work regards, iker
Still, it would be nice if there were a more idiomatic way to accomplish that.
Sorry for long pause. After some research, setting discard on swap is NOT good idea. (see ). Setting it, would trigger trim command every time block clears, which leads to poor performance when swap is under pressure. Issue can be closed.
according to the there is a single variant, which is NOT that bad idea:
On top of the case pointed out by of doing a oneshot discard of swap space on startup, there are some situations where there really isn't much of any performance impact. As a simple example, I'm running NixOS in a VM, and the hypervisor translates TRIM/UNMAP/DISCARD commands into calls to fallocate() with the FLPUNCHHOLE flag on the host side. This ends up completing almost instantly due to how my storage stack is set up (and will in most cases where people are using file-backed VM disks), and more importantly, it can be queued on the VM side because it's on an emulated SCSI device. There's literally no measurable performance impact in this case, but there's a big impact on the host side in terms of simplifying space management. Even ignoring use of virtualization, 90% of the performance issue for inline discards in general (not just for swap space) is due to most commodity hardware not being able to queue them, which results in them having about the same impact as an FUA request. Some hardware, however (notably most SCSI and NVMe devices) can queue them, and they have very little impact on performance there.
since this issue got new visits again, i've uploaded , which is a start. I've also looked into unifying and , but it seems a lot of work if such a change doesn't get merged.
What if both and options are in use? /etc/fstab gets 2 entries: Interestingly, the nixos-generate-config options is placed in a lower part of /etc/fstab. There is hope that the first entry gets precedence. But I don't know any mean of checking . the issue still unresolved. Can you reopen, please?
I'm using nixos 21.05 and want to add the "nofail" option for swap devices that are in raid1. Options: can send a PR for a option that gets passed to . I have this and can put it up quickly. This mirrors . can send a PR for a specific option. can use , which can support arbitrary options. But then won't be reproduced correctly. Any opinions?
The approach would get my vote, as it avoids any possibility of arguments between users and developers when a user wants to use an option the developer thinks should not be used (such as the option that started all of this).

''; }; <ins> options = mkOption { default = [ "defaults" ]; example = [ "nofail" ]; type = types.listOf types.nonEmptyStr; description = '' Options used to mount the swap. ''; }; </ins> deviceName = mkOption { type = types.str; internal = true;


Question:
Is it possible to implement mount options for swap partition? This feature could be useful for machines with SSD only drive(s). User could change to options for automatic trimming. of this feature.
I think this is what you want
I still can't figure out solution with documentation pointed out. If I put raises an error. I am using NixOS 14.12 stable. As far as I know swap partition does not have mounting point.
you may do it like this: even though, i didn't test it, but using like this should work regards, iker
Still, it would be nice if there were a more idiomatic way to accomplish that.
Sorry for long pause. After some research, setting discard on swap is NOT good idea. (see ). Setting it, would trigger trim command every time block clears, which leads to poor performance when swap is under pressure. Issue can be closed.
according to the there is a single variant, which is NOT that bad idea:
On top of the case pointed out by of doing a oneshot discard of swap space on startup, there are some situations where there really isn't much of any performance impact. As a simple example, I'm running NixOS in a VM, and the hypervisor translates TRIM/UNMAP/DISCARD commands into calls to fallocate() with the FLPUNCHHOLE flag on the host side. This ends up completing almost instantly due to how my storage stack is set up (and will in most cases where people are using file-backed VM disks), and more importantly, it can be queued on the VM side because it's on an emulated SCSI device. There's literally no measurable performance impact in this case, but there's a big impact on the host side in terms of simplifying space management. Even ignoring use of virtualization, 90% of the performance issue for inline discards in general (not just for swap space) is due to most commodity hardware not being able to queue them, which results in them having about the same impact as an FUA request. Some hardware, however (notably most SCSI and NVMe devices) can queue them, and they have very little impact on performance there.
since this issue got new visits again, i've uploaded , which is a start. I've also looked into unifying and , but it seems a lot of work if such a change doesn't get merged.
What if both and options are in use? /etc/fstab gets 2 entries: Interestingly, the nixos-generate-config options is placed in a lower part of /etc/fstab. There is hope that the first entry gets precedence. But I don't know any mean of checking . the issue still unresolved. Can you reopen, please?
I'm using nixos 21.05 and want to add the "nofail" option for swap devices that are in raid1. Options: can send a PR for a option that gets passed to . I have this and can put it up quickly. This mirrors . can send a PR for a specific option. can use , which can support arbitrary options. But then won't be reproduced correctly. Any opinions?
The approach would get my vote, as it avoids any possibility of arguments between users and developers when a user wants to use an option the developer thinks should not be used (such as the option that started all of this).

# https://wiki.archlinux.org/index.php/fstab#Filepath_spaces escape = string: builtins.replaceStrings [ " " "t" ] [ "040" "011" ] string; swapOptions = sw: concatStringsSep "," ( <del> [ "defaults" ] </del> <ins> sw.options </ins> ++ optional (sw.priority != null) "pri=${toString sw.priority}" ++ optional (sw.discardPolicy != null) "discard${optionalString (sw.discardPolicy != "both") "=${toString sw.discardPolicy}"}" );


Question:
Describe the bug When I'm trying to install he arduino or ino package on MacOS I get the error message has wrong length for hash type 'sha256'. , one of the MacOS entries has a hash that is longer than all the other hashes. To Reproduce Steps to reproduce the behavior: Run: Expected behavior Arduino is installed in a nix shell. Screenshots ! Metadata Please run and paste the result. Maintainer information:
In the pull request mentioned above I have corrected the obvious error in the hash. I don't have Nix on Darwin to try it on, can you?

}; "build/macosx/avrdude-6.3.0-arduino9-i386-apple-darwin11.tar.bz2" = fetchurl { url = "https://downloads.arduino.cc/tools/avrdude-6.3.0-arduino9-i386-apple-darwin11.tar.bz2"; <del> sha256 = "0rc4x8mcsva4v6j7ssfj8rdyg14l2pd9ivgdm39m5wnz8b06p85z11703f0r82aq3mmkiy7vwa4jfjhs9826qpp724hbng9dx74kk86r"; </del> <ins> sha256 = "0rc4x8mcsva4v6j7ssfj8rdyg14l2pd9ivgdm39m5wnz8b06p85z"; </ins> }; "build/macosx/appbundler/appbundler-1.0ea-arduino4.jar.zip" = fetchurl { url = "https://downloads.arduino.cc/appbundler-1.0ea-arduino4.jar.zip";


Question: Project description sasquatch is a varation of the unsquashfs utilty that can unpack a much larger amount of vendor specific flavours of squashfs that the regular unsquashfs utility cannot unpack. It is distributed as a patch to the regular squashfs-tools package (so might need some extra work to work with the squashfs-tools package already in nixpkgs). Metadata homepage URL: source URL: license: gpl2+ platforms: linux

githubId = 11016164; name = "Fedor Pakhomov"; }; <ins> pamplemousse = { email = "xav.maso@gmail.com"; github = "Pamplemousse"; githubId = 2647236; name = "Xavier Maso"; }; </ins> panaeon = { email = "vitalii.voloshyn@gmail.com"; github = "panaeon";


Question: Project description sasquatch is a varation of the unsquashfs utilty that can unpack a much larger amount of vendor specific flavours of squashfs that the regular unsquashfs utility cannot unpack. It is distributed as a patch to the regular squashfs-tools package (so might need some extra work to work with the squashfs-tools package already in nixpkgs). Metadata homepage URL: source URL: license: gpl2+ platforms: linux

<ins> { fetchFromGitHub , fetchurl , lz4 ? null , lz4Support ? false , lzma , lzo , stdenv , xz , zlib }: assert lz4Support -> (lz4 != null); let patch = fetchFromGitHub { owner = "devttys0"; repo = "sasquatch"; rev = "3e0cc40fc6dbe32bd3a5e6c553b3320d5d91ceed"; sha256 = "19lhndjv7v9w6nmszry63zh5rqii9v7wvsbpc2n6q606hyz955g2"; } + "/patches/patch0.txt"; in stdenv.mkDerivation rec { pname = "sasquatch"; version = "4.3"; src = fetchurl { url = mirror://sourceforge/squashfs/squashfs4.3.tar.gz; sha256 = "1xpklm0y43nd9i6jw43y2xh5zvlmj9ar2rvknh0bh7kv8c95aq0d"; }; buildInputs = [ lzma lzo xz zlib ] ++ stdenv.lib.optional lz4Support lz4; patches = [ patch ]; patchFlags = [ "-p0" ]; postPatch = '' cd squashfs-tools ''; installFlags = "INSTALL_DIR=${out}/bin"; makeFlags = [ "XZ_SUPPORT=1" ] ++ stdenv.lib.optional lz4Support "LZ4_SUPPORT=1"; meta = with stdenv.lib; { homepage = "https://github.com/devttys0/sasquatch"; description = "Set of patches to the standard unsquashfs utility (part of squashfs-tools) that attempts to add support for as many hacked-up vendor-specific SquashFS implementations as possible"; license = licenses.gpl2Plus; maintainers = [ maintainers.pamplemousse ]; platforms = platforms.linux; }; } </ins>


Question: Project description sasquatch is a varation of the unsquashfs utilty that can unpack a much larger amount of vendor specific flavours of squashfs that the regular unsquashfs utility cannot unpack. It is distributed as a patch to the regular squashfs-tools package (so might need some extra work to work with the squashfs-tools package already in nixpkgs). Metadata homepage URL: source URL: license: gpl2+ platforms: linux

samplicator = callPackage ../tools/networking/samplicator { }; <ins> sasquatch = callPackage ../tools/filesystems/sasquatch { }; </ins> sasview = callPackage ../applications/science/misc/sasview {}; scallion = callPackage ../tools/security/scallion { };


Question:
Project description Metadata homepage URL: source URL: license: lgpl2/lgpl3 platforms: linux
Previously: (which I never finished, sorry, but linking in case helps anyone tackle this).

<ins> { stdenv, fetchFromGitHub, meson, sassc, pkg-config, glib, ninja, python3, gtk3, gnome3, gtk-engine-murrine }: stdenv.mkDerivation rec { pname = "yaru"; version = "19.10.2"; src = fetchFromGitHub { owner = "ubuntu"; repo = "yaru"; rev = version; sha256 = "1azyn8pr0kpbq4wlz91f5amqyxqq0x2mxkglzl488sf39fl0gnbj"; }; nativeBuildInputs = [ meson sassc pkg-config glib ninja python3 ]; buildInputs = [ gtk3 gnome3.gnome-themes-extra ]; propagatedUserEnvPkgs = [ gtk-engine-murrine ]; postPatch = "patchShebangs ."; meta = with stdenv.lib; { description = "Ubuntu community theme 'yaru' - default Ubuntu theme since 18.10"; homepage = https://github.com/ubuntu/yaru; license = with licenses; [ cc-by-sa-40 gpl3 ]; platforms = platforms.linux; maintainers = [ maintainers.jD91mZM2 ]; }; } </ins>


Question:
Project description Metadata homepage URL: source URL: license: lgpl2/lgpl3 platforms: linux
Previously: (which I never finished, sorry, but linking in case helps anyone tackle this).

yanone-kaffeesatz = callPackage ../data/fonts/yanone-kaffeesatz {}; <ins> yaru-theme = callPackage ../data/themes/yaru {}; </ins> zafiro-icons = callPackage ../data/icons/zafiro-icons { }; zeal = libsForQt5.callPackage ../data/documentation/zeal { };


Question:
Describe the bug After installing inkscape either in the user or system profile, no icons are found. When opening dialogs such as "Fill and stroke" or "Layers" the program crashes. I've confirmed this on two of my machines. To Reproduce Steps to reproduce the behavior: inkscape that all icons display incorrectly to Object -Fill and Stroke crash Expected behavior Inkscape should have the full set of icons and dialogs should be accessible. Screenshots ! Additional Context <details<summaryConsole log</summary</detailsMetadata system: host os: multi-user?: sandbox: version: channels(root): channels(riley): nixpkgs:
I think you can easily fix this issue by installing an icon theme to your system.
I believe these icons are part of Inkscape. Possibly issue with gdk-pixbuf loaders – though, I cannot reproduce it within plain xterm session. What desktop environment are you running? Does adding to Inkscape’s help?
Sorry, I should have mentioned - I already tried the following overlay for inkscape after reading the gdk-pixbuf issue and related ones. Unfortunately it didn't seem to change anything after rebuilding and compiling. One of my computers is running sway (launched via startx) and the other i3 + sddm.
Maybe does not work because of :
That worked! I to the overlay and all the icons show up, and dialogs work. I tried looking up docs on but I couldn't find much about it, what does it do exactly?
:confused: I thought the issue with strictDeps only touched gobject-introspection
IIRC, it might also affect hook’s not being picked up correctly. Does the following work with enabled?
Yes, that worked! Would the best workaround for now be to add those inputs to the derivation?

, glibmm, libsigcxx, lcms, boost, gettext, makeWrapper , gsl, python2, poppler, imagemagick, libwpg, librevenge , libvisio, libcdr, libexif, potrace, cmake, hicolor-icon-theme <ins> , librsvg, wrapGAppsHook </ins> }: let


Question:
Describe the bug After installing inkscape either in the user or system profile, no icons are found. When opening dialogs such as "Fill and stroke" or "Layers" the program crashes. I've confirmed this on two of my machines. To Reproduce Steps to reproduce the behavior: inkscape that all icons display incorrectly to Object -Fill and Stroke crash Expected behavior Inkscape should have the full set of icons and dialogs should be accessible. Screenshots ! Additional Context <details<summaryConsole log</summary</detailsMetadata system: host os: multi-user?: sandbox: version: channels(root): channels(riley): nixpkgs:
I think you can easily fix this issue by installing an icon theme to your system.
I believe these icons are part of Inkscape. Possibly issue with gdk-pixbuf loaders – though, I cannot reproduce it within plain xterm session. What desktop environment are you running? Does adding to Inkscape’s help?
Sorry, I should have mentioned - I already tried the following overlay for inkscape after reading the gdk-pixbuf issue and related ones. Unfortunately it didn't seem to change anything after rebuilding and compiling. One of my computers is running sway (launched via startx) and the other i3 + sddm.
Maybe does not work because of :
That worked! I to the overlay and all the icons show up, and dialogs work. I tried looking up docs on but I couldn't find much about it, what does it do exactly?
:confused: I thought the issue with strictDeps only touched gobject-introspection
IIRC, it might also affect hook’s not being picked up correctly. Does the following work with enabled?
Yes, that worked! Would the best workaround for now be to add those inputs to the derivation?

--replace '"python-interpreter", "python"' '"python-interpreter", "${python2Env}/bin/python"' ''; <del> nativeBuildInputs = [ pkgconfig cmake makeWrapper python2Env ] </del> <ins> nativeBuildInputs = [ pkgconfig cmake makeWrapper python2Env wrapGAppsHook ] </ins> ++ (with perlPackages; [ perl XMLParser ]); buildInputs = [ libXft libpng zlib popt boehmgc


Question:
Describe the bug After installing inkscape either in the user or system profile, no icons are found. When opening dialogs such as "Fill and stroke" or "Layers" the program crashes. I've confirmed this on two of my machines. To Reproduce Steps to reproduce the behavior: inkscape that all icons display incorrectly to Object -Fill and Stroke crash Expected behavior Inkscape should have the full set of icons and dialogs should be accessible. Screenshots ! Additional Context <details<summaryConsole log</summary</detailsMetadata system: host os: multi-user?: sandbox: version: channels(root): channels(riley): nixpkgs:
I think you can easily fix this issue by installing an icon theme to your system.
I believe these icons are part of Inkscape. Possibly issue with gdk-pixbuf loaders – though, I cannot reproduce it within plain xterm session. What desktop environment are you running? Does adding to Inkscape’s help?
Sorry, I should have mentioned - I already tried the following overlay for inkscape after reading the gdk-pixbuf issue and related ones. Unfortunately it didn't seem to change anything after rebuilding and compiling. One of my computers is running sway (launched via startx) and the other i3 + sddm.
Maybe does not work because of :
That worked! I to the overlay and all the icons show up, and dialogs work. I tried looking up docs on but I couldn't find much about it, what does it do exactly?
:confused: I thought the issue with strictDeps only touched gobject-introspection
IIRC, it might also affect hook’s not being picked up correctly. Does the following work with enabled?
Yes, that worked! Would the best workaround for now be to add those inputs to the derivation?

gsl poppler imagemagick libwpg librevenge libvisio libcdr libexif potrace hicolor-icon-theme <ins> librsvg # for loading icons </ins> python2Env perlPackages.perl ];


Question:
Describe the bug After upgrading to 19.09pre, I am always asked for a password to unlock from . I don't recall this happening in 19.03 Some more info on how to set this up: To Reproduce Steps to reproduce the behavior: KDE with KWallet enabled out and back in to launch chromium that a password is needed Expected behavior Password used for login is used to unlock kwallet. Metadata Please run and paste the result. system: host os: multi-user?: sandbox: version: channels(root): channels(mbauer): nixpkgs: Maintainer information:
What display manager are you using?
This is the sddm display manager.
I've also noticed this.
I wasn't upgrading from stable, only from ~a few months ago, so it must have been relatively recent.
The issue here is with the pam module then if it's not automatically unlocked. ~Do you use Plasma 5 which adds?~ (read it says you use KDE) I believe this was broken with lightdm and I've recently fixed it there Could you try using lightdm and see if there's a difference?
Yeah, I think this one is KDE specific. Noticed this in my log: Looking at the coredump gives me this: Looks like a wrapping issue. This is what kwallet looks like:
I'd agree that it's most likely a wrapping issue since that's the only other major change we could tie it too. cc
I agree that the failure in sounds like a wrapping issue. Could you confirm that exists? Unfortunately, I can't tell which platform integration plugin it's trying to load; I would need to see the environment in which PAM loads.
twmn now crashes in QGuiApplicationPrivate::createPlatformIntegration again as well (I remember this happening a long time ago) I remember before I could do but even now that doesn't work
This looks like it's not happening anymore on my system. Probably fixed by either or
Actually still seeing it...
Not sure what's happening so I'll run a git bisect on it.
Should be fixed with .
It works correctly on 19.09, but regressed on current unstable:
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
Hi, I get this again on 20.09 stable. In my case this happens cause of: Core was generated by `/run/current-system/sw/bin/kwalletd5'. Program terminated with signal SIGSEGV, Segmentation fault. 0x00007fa0556062ec in QObject::disconnect(QObject const, char const, QObject const, char const) () from /nix/store/9fmvcacvkj6s65j3l5pf96nbqwjp73wb-qtbase- /run/current-system/sw/bin/kwalletd5 seems to crash only with Plasma sessions

postPatch = '' sed -i pam_kwallet_init -e "s|socat|${lib.getBin socat}/bin/socat|" ''; <ins> postFixup = '' wrapQtApp $out/libexec/pam_kwallet_init ''; dontWrapQtApps = true; </ins> }


Question:
Project description Oh My Fish provides core infrastructure to allow to install packages which extend or modify the look of fish shell. It's fast, extensible and easy to use. Very similar to Oh-my-zsh that is already in NixOs package repo Metadata homepage URL: source URL: license: mit platforms: unix, linux, darwin,
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly: for maintainers and people that previously touched the related code and @ mention them in a comment. on the . 3. Ask on the on .
Any news on this?
I am still trying to understand how oh-my-zsh works.
Well, it just looks like a copy-paste. Just a giant install phase. <details<summaryTREE</summary</details
Isn't this issue about oh-my-fish instead of zsh?
Yes, it is. And I am studying oh-my-zsh in order to use it as a "template".

<ins> { lib , stdenv , fetchFromGitHub , fish , runtimeShell , writeShellScript }: stdenv.mkDerivation rec { pname = "oh-my-fish"; version = "7+unstable=2021-03-03"; src = fetchFromGitHub { owner = pname; repo = pname; rev = "0b1396ad7962073fa25615bf03c43b53eddc2d56"; hash = "sha256-lwMo4+PcYR9kYJPWK+ALiMfBdxFSgB2vjtSn8QrmmEA="; }; buildInputs = [ fish ]; dontConfigure = true; dontBuild = true; installPhase = '' runHook preInstall mkdir -pv $out/bin $out/share/${pname} cp -vr * $out/share/${pname} cat << EOF > $out/bin/omf-install #!${runtimeShell} ${fish}/bin/fish  $out/share/${pname}/bin/install  --noninteractive  --offline=$out/share/${pname} EOF chmod +x $out/bin/omf-install runHook PostInstall ''; meta = with lib; { homepage = "https://github.com/oh-my-fish/oh-my-fish"; description = "The Fish Shell Framework"; longDescription = '' Oh My Fish provides core infrastructure to allow you to install packages which extend or modify the look of your shell. It's fast, extensible and easy to use. ''; license = licenses.mit; maintainers = with maintainers; [ AndersonTorres ]; platforms = fish.meta.platforms; }; } # TODO: customize the omf-install script </ins>


Question:
Project description Oh My Fish provides core infrastructure to allow to install packages which extend or modify the look of fish shell. It's fast, extensible and easy to use. Very similar to Oh-my-zsh that is already in NixOs package repo Metadata homepage URL: source URL: license: mit platforms: unix, linux, darwin,
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly: for maintainers and people that previously touched the related code and @ mention them in a comment. on the . 3. Ask on the on .
Any news on this?
I am still trying to understand how oh-my-zsh works.
Well, it just looks like a copy-paste. Just a giant install phase. <details<summaryTREE</summary</details
Isn't this issue about oh-my-fish instead of zsh?
Yes, it is. And I am studying oh-my-zsh in order to use it as a "template".

fish = callPackage ../shells/fish { }; <ins> oh-my-fish = callPackage ../shells/fish/oh-my-fish { }; </ins> wrapFish = callPackage ../shells/fish/wrapper.nix { }; fishPlugins = recurseIntoAttrs (callPackage ../shells/fish/plugins { });


Question:
Describe the bug A clear and concise description of what the bug is. Looks like a new failure for mariadb-server: Currently blocking nixpkgs-unstable
I strongly suspect the update in is the culprit

# Media support MEDIA_CAMERA_SUPPORT? y MEDIA_RC_SUPPORT? y <ins> MEDIA_USB_SUPPORT y </ins> ${if kernelPlatform ? kernelExtraConfig then kernelPlatform.kernelExtraConfig else ""} ${extraConfig}


Question:
, (nixos-19.09) (nixos-19.09) (nixos-19.09) (nixos-19.09) Scanned versions: nixos-19.09: . May contain false positives.
Needs patching on master, 19.09, 19.03. CVE-2019-: CVE-2019-: CVE-2019-: CVE-2019-:


Question:
, (nixos-19.09) (nixos-19.09) (nixos-19.09) (nixos-19.09) Scanned versions: nixos-19.09: . May contain false positives.
Needs patching on master, 19.09, 19.03. CVE-2019-: CVE-2019-: CVE-2019-: CVE-2019-:

<ins> commit 970fb11a296b5bbdc5e8425851253d2c5913c45e Author: Leon Bottou <leon@bottou.org> Date:   Tue Mar 26 20:36:31 2019 -0400 Fix bug#296 diff --git a/libdjvu/DjVmDir.cpp b/libdjvu/DjVmDir.cpp index a6a39e0..0a0fac6 100644 --- a/libdjvu/DjVmDir.cpp +++ b/libdjvu/DjVmDir.cpp @@ -299,42 +299,44 @@ DjVmDir::decode(const GP<ByteStream> &gstr) memcpy((char*) strings+strings_size, buffer, length); } DEBUG_MSG("size of decompressed names block=" << strings.size() << "n"); -      if (strings[strings.size()-1] != 0) -        { -         int strings_size=strings.size(); -         strings.resize(strings_size+1); -         strings[strings_size] = 0; -        } +      int strings_size=strings.size(); +      strings.resize(strings_size+3); +      memset((char*) strings+strings_size, 0, 4); -         // Copy names into the files +      // Copy names into the files const char * ptr=strings; for(pos=files_list;pos;++pos) { GP<File> file=files_list[pos]; - +         if (ptr >= (const char*)strings + strings_size) +           G_THROW( "DjVu document is corrupted (DjVmDir)" ); file->id=ptr; ptr+=file->id.length()+1; if (file->flags & File::HAS_NAME) { -            file->name=ptr; -            ptr+=file->name.length()+1; -         } else +           file->name=ptr; +           ptr+=file->name.length()+1; +         } +         else { file->name=file->id; } if (file->flags & File::HAS_TITLE) { -            file->title=ptr; -       ptr+=file->title.length()+1; -         } else -       file->title=file->id; -   /* msr debug:  multipage file, file->title is null. +           file->title=ptr; +           ptr+=file->title.length()+1; +         } +         else +         { +           file->title=file->id; +         } +         /* msr debug:  multipage file, file->title is null. DEBUG_MSG(file->name << ", " << file->id << ", " << file->title << ", " << file->offset << ", " << file->size << ", " << file->is_page() << "n"); */ } -         // Check that there is only one file with SHARED_ANNO flag on +      // Check that there is only one file with SHARED_ANNO flag on int shared_anno_cnt=0; for(pos=files_list;pos;++pos) { </ins>