[Nix-commits] [NixOS/nixpkgs] 9ea503: python-modules/protobuf: fix darwin build by passi...
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: 9ea503fa55763f52b5a750fd440e270fb41326c1 https://github.com/NixOS/nixpkgs/commit/9ea503fa55763f52b5a750fd440e270fb41326c1 Author: Robert Vollmert Date: 2017-06-19 (Mon, 19 Jun 2017) Changed paths: M pkgs/development/python-modules/protobuf.nix Log Message: --- python-modules/protobuf: fix darwin build by passing C++ includes explicitly Fixes #26531. Copies the matplotlib solution, as mentioned by @knedlsepp. Commit: 031d26eb24b01cd0a60ca7c5d1e9423e7f7e8254 https://github.com/NixOS/nixpkgs/commit/031d26eb24b01cd0a60ca7c5d1e9423e7f7e8254 Author: Daiderd Jordan Date: 2017-06-21 (Wed, 21 Jun 2017) Changed paths: M pkgs/development/python-modules/protobuf.nix Log Message: --- Merge pull request #26709 from robx/fix-python-protobuf-v2 python-modules/protobuf: fix darwin build by passing C++ includes exp… Compare: https://github.com/NixOS/nixpkgs/compare/bb65640784e5...031d26eb24b0___ nix-commits mailing list nix-comm...@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-commits
Re: [Nix-dev] firefox package questions
On 06/19/2017 12:25 PM, Roland Koebler wrote: > I installed firefox-esr, but the started Firefox called itself "Nightly". Firefox trademark policy does *not* allow (us) to distribute with the brand for versions that we build ourselves. You may avoid that if you build it on your machines. See https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/browsers/firefox/common.nix#L47 --Vladimir ___ nix-dev mailing list nix-dev@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Backport nodejs-8_x to 17.03
On 06/20/2017 06:06 PM, Wout Mertens wrote: > I'd like to have Node 8 in 17.03, is there any reason why we shouldn't > do that? > > It would be a non-default attribute, like in master, so the only impact > would be on Hydra I suppose. I believe such additions are perfectly OK. (It should be `lowPrio`, too.) --Vladimir ___ nix-dev mailing list nix-dev@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] canon printer drivers (cnijfilter)
Thanks for that Matt! I wonder if the versioning thing is a windows-related behaviour. Could you say a few words about the link errors you had? Have you used patchelf? >* patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ *>* --set-rpath $libPath:$out/lib \ *>* $out/bin/cngpijmonmp250* Another option I could live with is if we could create a buildFHSUserEnv - I tried it with the binary canon drivers, but it turned out it's cups that needs to be inside for the pesky things to be found, but then systemd wouldn't let me restart cups.service inside a user env... Cheers, Nawal. On 21 June 2017 at 01:49, Matt McHenry wrote: > Hi Nawal, > > I see you've been trying to get canon's linux drivers working on nixos > [1][2][3]. I've also tried my hand at this. I think I've made more > progress than you, but was never able to get it working, and eventually > resigned myself to just printing with the gutenprint driver. I'd be > interested in continuing to hack at it as time permits, though. > > I got to the point of cups executing what I think is the correct chain of > filters, all built from the source that my nix expression pulls from the > Canon Japan website. However, at least one of the filters is unable to > load at least one dynamically linked library, so it fails. I don't know > much about shared libraries on linux in general or NixOS in particular, so > I was mostly just thrashing around a lot. > > I've pushed what I have to the cnijfilter branch in my nixpkgs clone [4]. > To try it, just add pkgs.cnijfilter to services.printing.drivers in > configuration.nix. (I also tried adding cnijfilter to > environment.systemPackages, that didn't seem to help.) > > I've gleaned a lot from the other distros builds [5][6][7]. In > particular, the cnijfilter-common library does not follow a normal > versioning pattern -- each version supports a certain set of printers. So > you don't want the latest, you want whatever matches up with your printer. > (My printer is an MX-700, which uses the mp520 driver. So I've been > working on version 2.80 of cnijfilter-common.) But my hope is that the > overall structure of the build would be very portable between versions. > > It looks like you've worked from the debian packages -- perhaps looking in > more detail at how they are built will give us some more clues? > > I'm not sure whether it makes more sense to open an issue to document this > work, or keep discussing on the mailing list. > > [1] https://mailman.science.uu.nl/pipermail/nix-dev/2017-June/023942.html > [2] https://mailman.science.uu.nl/pipermail/nix-dev/2017-June/023943.html > [3] https://mailman.science.uu.nl/pipermail/nix-dev/2017-June/023946.html > > [4] https://github.com/jerith666/nixpkgs/tree/cnijfilter > > [5] https://bugs.gentoo.org/show_bug.cgi?id=130645 > [6] https://aur.archlinux.org/packages/cnijfilter-mp620/?comments=all > [7] https://github.com/spremi/cnijfilter-source-3.80 > ___ nix-dev mailing list nix-dev@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-dev
[Nix-commits] [NixOS/nixpkgs] 922d70: wineStaging: 2.7 -> 2.10
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: 922d706e819f4363eae602c18c8a46f1011ef997 https://github.com/NixOS/nixpkgs/commit/922d706e819f4363eae602c18c8a46f1011ef997 Author: Cray Elliott Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/misc/emulators/wine/sources.nix Log Message: --- wineStaging: 2.7 -> 2.10 wineUnstable: 2.7 -> 2.10 Commit: bb65640784e5d0a7bc4261eb37cfb0ace0d3ed03 https://github.com/NixOS/nixpkgs/commit/bb65640784e5d0a7bc4261eb37cfb0ace0d3ed03 Author: Michael Raskin <7c6f4...@mail.ru> Date: 2017-06-21 (Wed, 21 Jun 2017) Changed paths: M pkgs/misc/emulators/wine/sources.nix Log Message: --- Merge pull request #26728 from MP2E/wine-staging-update wineStaging, wineUnstable: 2.7 -> 2.10 Compare: https://github.com/NixOS/nixpkgs/compare/d04286be345c...bb65640784e5___ nix-commits mailing list nix-comm...@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-commits
[Nix-commits] Success: Hydra job nixpkgs:trunk:tarball on x86_64-linux
Hi, The status of Hydra job ‘nixpkgs:trunk:tarball’ (on x86_64-linux) has changed from "Failed" to "Success". For details, see https://hydra.nixos.org/build/54694909 This may be due to 12 commits by Daiderd Jordan , Eric Bailey , Franz Pletz , Gabriel Ebner , Gleb Peregud or Jörg Thalheim . Yay! Regards, The Hydra build daemon. ___ nix-commits mailing list nix-comm...@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-commits
[Nix-commits] [NixOS/nixpkgs] d04286: quiterss: 0.18.5 -> 0.18.6
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: d04286be345c653a5b0f5ba377cabef76dec2afd https://github.com/NixOS/nixpkgs/commit/d04286be345c653a5b0f5ba377cabef76dec2afd Author: Michael Weiss Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/applications/networking/newsreaders/quiterss/default.nix Log Message: --- quiterss: 0.18.5 -> 0.18.6 ___ nix-commits mailing list nix-comm...@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-commits
[Nix-commits] [NixOS/nixpkgs]
Branch: refs/heads/moreutils-darwin-fix Home: https://github.com/NixOS/nixpkgs ___ nix-commits mailing list nix-comm...@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-commits
[Nix-commits] [NixOS/nixpkgs] 065bb6: moreutils: fix darwin build
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: 065bb61330ba73025980e724242f8b5af13310bf https://github.com/NixOS/nixpkgs/commit/065bb61330ba73025980e724242f8b5af13310bf Author: Pascal Wittmann Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/tools/misc/moreutils/default.nix Log Message: --- moreutils: fix darwin build ___ nix-commits mailing list nix-comm...@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-commits
[Nix-commits] [NixOS/nixpkgs] 8fe525: mtr: do not do 'setcap' on installPhase, it would ...
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: 8fe525b6c77ca5fdd2d1922d2e863fbb9198781c https://github.com/NixOS/nixpkgs/commit/8fe525b6c77ca5fdd2d1922d2e863fbb9198781c Author: Volth Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/tools/networking/mtr/default.nix Log Message: --- mtr: do not do 'setcap' on installPhase, it would fail anyway ___ nix-commits mailing list nix-comm...@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-commits
[Nix-commits] [NixOS/nixpkgs] a21ddf: pythonPackages.bcdoc: Disable tests
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: a21ddfb1586c38cc37fccaab27af34598115 https://github.com/NixOS/nixpkgs/commit/a21ddfb1586c38cc37fccaab27af34598115 Author: Shea Levy Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/top-level/python-packages.nix Log Message: --- pythonPackages.bcdoc: Disable tests ___ nix-commits mailing list nix-comm...@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-commits
[Nix-commits] [NixOS/nixpkgs] 6fd606: awscli: 1.11.95 -> 1.11.105
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: 6fd606bdf3a1718577b37d08c39b7c90b7dbbfb3 https://github.com/NixOS/nixpkgs/commit/6fd606bdf3a1718577b37d08c39b7c90b7dbbfb3 Author: Isaac Shapira Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/top-level/python-packages.nix Log Message: --- awscli: 1.11.95 -> 1.11.105 ___ nix-commits mailing list nix-comm...@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-commits
Re: [Nix-dev] /usr/bin/gs and /usr/bin/cifmp250
Well, the log you posted is pretty clear on that: `pstocanonij` is calling it. Googling `pstocanonij` gives me this: https://github.com/endlessm/cnijfilter-common/blob/master/pstocanonij/filter/pstocanonij.c#L45-L52 and sure enough https://github.com/endlessm/cnijfilter-common/blob/master/pstocanonij/filter/pstocanonij.c#L687-L695 Now, the question is what to do. It looks like the source of `pstocanonij` is public (but you‘ll have to check what is this github repository, and where does the code come from, to be on the safe side with the licence, especially if you want to submit this expression to nixpkgs later). If this part of the driver is really opensource, than the answer is obvious, you just go there and fix the paths ;). On Tue, Jun 20, 2017 at 10:33 PM Nawal Husnoo wrote: > Ah the lesson is I need to wake up fully before coding! Thank you! > > Still stuck - so close and yet so far! > > Error: > == > > Jun 20 20:17:17 heisenbug cupsd[21991]: pstocanonij: /usr/bin/gs -r600 > -g4958x7016 -q -dNOPROMPT -dSAFER -sDEVICE=ppmraw -sOutputFile=- -| > /usr/bin/cifmp250 --imageres 600 --papersize a4 --media plain --paperload > asf --bbox 9,14,586,834 --fit > Jun 20 20:17:17 heisenbug cupsd[21991]: /bin/sh: /usr/bin/gs: No such file > or directory > Jun 20 20:17:17 heisenbug cupsd[21991]: /bin/sh: /usr/bin/cifmp250: No > such file or directory > Jun 20 20:17:17 heisenbug cupsd[21991]: Sent 0 bytes... > > Of course, the files /usr/bin/gs and /usr/bin/cifmp250 don't exist, this > being nix and all... > > > [nawal@heisenbug:~/data/nixos/user/pkgs/canon]$ which gs > /home/nawal/.nix-profile/bin/gs > > [nawal@heisenbug:~/data/nixos/user/pkgs/canon]$ which cifmp250 > /home/nawal/.nix-profile/bin/cifmp250 > > Closest thing I found was: > > https://github.com/NixOS/nixpkgs/blob/master/pkgs/misc/cups/drivers/canon/default.nix > > https://github.com/NixOS/nixpkgs/blob/master/pkgs/misc/cups/drivers/canon/preload.c > > but it's not clear to me how to port that to my problem... It's not even > clear to me who's calling these two binaries, as grepping the deb file > contents isn't turning up anything... > > thanks for any ideas! > > Nawal > > > > > default.nix > == > { stdenv > , pkgs > , udev > , alsaLib > , gtk2-x11 > , patchelf > , binutils > , popt > , cups > , cairo > , pango > , fontconfig > , glib > , dpkg > , atk > , procps > , gdk_pixbuf > , zlib > , libxml2 > , perl > , libtiff > , firefox > , libX11 > , libXcursor > , libXrandr > , libXext > , libXinerama > , libXrender > , libXi > , libXfixes > , libpng12 > , pkgconfig > }: > > stdenv.mkDerivation { > name = "canon-mp250"; > src = ./usr; > builder = ./builder.sh; > buildInputs = [libtiff perl pkgconfig]; > > configurePhase = '' > echo "CONFIGURE TIFF ${libtiff.out}/lib/libtiff.so" > ''; > > libPath = stdenv.lib.makeLibraryPath [ > stdenv.cc.cc > udev > alsaLib > gtk2-x11 > binutils > popt > cups > cairo > pango > fontconfig > glib > dpkg > atk > procps > patchelf > gdk_pixbuf > libxml2 > libtiff > libpng12 > libX11 > libXcursor > libXrandr > libXext > libXinerama > libXrender > libXi > libXfixes > ]; > > } > > > > > > builder.sh > == > source $stdenv/setup > > mkdir -p $out/ > cp -r $src/* $out/ > > > chmod 777 -R $out/* > > patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ > --set-rpath $libPath:$out/lib \ > $out/bin/cngpijmonmp250 > > patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ > --set-rpath $libPath:$out/lib \ > $out/bin/cngpij > > patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ > --set-rpath $libPath:$out/lib \ > $out/bin/cnijnetprn > > patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ > --set-rpath $libPath:$out/lib \ > $out/bin/lgmonmp250 > > patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ > --set-rpath $libPath:$out/lib \ > $out/bin/cifmp250 > > patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ > --set-rpath $libPath:$out/lib \ > $out/bin/printuimp250 > > patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ > --set-rpath $libPath:$out/lib \ > $out/bin/cnijnpr > > patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ > --set-rpath $libPath:$out/lib \ > $out/lib/cups/filter/pstocanonij > > patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ > --set-rpath $libPath:$out/lib \ > $out/lib/cups/backend/cnijusb > > patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ > --set-rpath $libPath:$out/lib \ > $out/lib/cups/backend/cnijnet > > ls -lh $out/lib/ > ls -lh $out/ > > ln -sv $out/lib/libcnbpcmcm356.so.8.0.1 $out/lib/libcnbpcmcm356.so > ln -sv $out/lib/libcnbpcnclbjcmd356.so.3.3.0 > $out/lib/libcnbpcnclbjcmd356.so > ln -sv $out/lib
[Nix-dev] /usr/bin/gs and /usr/bin/cifmp250
Ah the lesson is I need to wake up fully before coding! Thank you! Still stuck - so close and yet so far! Error: == Jun 20 20:17:17 heisenbug cupsd[21991]: pstocanonij: /usr/bin/gs -r600 -g4958x7016 -q -dNOPROMPT -dSAFER -sDEVICE=ppmraw -sOutputFile=- -| /usr/bin/cifmp250 --imageres 600 --papersize a4 --media plain --paperload asf --bbox 9,14,586,834 --fit Jun 20 20:17:17 heisenbug cupsd[21991]: /bin/sh: /usr/bin/gs: No such file or directory Jun 20 20:17:17 heisenbug cupsd[21991]: /bin/sh: /usr/bin/cifmp250: No such file or directory Jun 20 20:17:17 heisenbug cupsd[21991]: Sent 0 bytes... Of course, the files /usr/bin/gs and /usr/bin/cifmp250 don't exist, this being nix and all... [nawal@heisenbug:~/data/nixos/user/pkgs/canon]$ which gs /home/nawal/.nix-profile/bin/gs [nawal@heisenbug:~/data/nixos/user/pkgs/canon]$ which cifmp250 /home/nawal/.nix-profile/bin/cifmp250 Closest thing I found was: https://github.com/NixOS/nixpkgs/blob/master/pkgs/misc/cups/drivers/canon/default.nix https://github.com/NixOS/nixpkgs/blob/master/pkgs/misc/cups/drivers/canon/preload.c but it's not clear to me how to port that to my problem... It's not even clear to me who's calling these two binaries, as grepping the deb file contents isn't turning up anything... thanks for any ideas! Nawal default.nix == { stdenv , pkgs , udev , alsaLib , gtk2-x11 , patchelf , binutils , popt , cups , cairo , pango , fontconfig , glib , dpkg , atk , procps , gdk_pixbuf , zlib , libxml2 , perl , libtiff , firefox , libX11 , libXcursor , libXrandr , libXext , libXinerama , libXrender , libXi , libXfixes , libpng12 , pkgconfig }: stdenv.mkDerivation { name = "canon-mp250"; src = ./usr; builder = ./builder.sh; buildInputs = [libtiff perl pkgconfig]; configurePhase = '' echo "CONFIGURE TIFF ${libtiff.out}/lib/libtiff.so" ''; libPath = stdenv.lib.makeLibraryPath [ stdenv.cc.cc udev alsaLib gtk2-x11 binutils popt cups cairo pango fontconfig glib dpkg atk procps patchelf gdk_pixbuf libxml2 libtiff libpng12 libX11 libXcursor libXrandr libXext libXinerama libXrender libXi libXfixes ]; } builder.sh == source $stdenv/setup mkdir -p $out/ cp -r $src/* $out/ chmod 777 -R $out/* patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ --set-rpath $libPath:$out/lib \ $out/bin/cngpijmonmp250 patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ --set-rpath $libPath:$out/lib \ $out/bin/cngpij patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ --set-rpath $libPath:$out/lib \ $out/bin/cnijnetprn patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ --set-rpath $libPath:$out/lib \ $out/bin/lgmonmp250 patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ --set-rpath $libPath:$out/lib \ $out/bin/cifmp250 patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ --set-rpath $libPath:$out/lib \ $out/bin/printuimp250 patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ --set-rpath $libPath:$out/lib \ $out/bin/cnijnpr patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ --set-rpath $libPath:$out/lib \ $out/lib/cups/filter/pstocanonij patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ --set-rpath $libPath:$out/lib \ $out/lib/cups/backend/cnijusb patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ --set-rpath $libPath:$out/lib \ $out/lib/cups/backend/cnijnet ls -lh $out/lib/ ls -lh $out/ ln -sv $out/lib/libcnbpcmcm356.so.8.0.1 $out/lib/libcnbpcmcm356.so ln -sv $out/lib/libcnbpcnclbjcmd356.so.3.3.0 $out/lib/libcnbpcnclbjcmd356.so ln -sv $out/lib/libcnbpess356.so.3.3.3 $out/lib/libcnbpess356.so ln -sv $out/lib/libcnnet.so.1.2.0 $out/lib/libcnnet.so ln -sv $out/lib/libcnbpcnclapi356.so.3.5.0 $out/lib/libcnbpcnclapi356.so ln -sv $out/lib/libcnbpcnclui356.so.3.6.0 $out/lib/libcnbpcnclui356.so ln -sv $out/lib/libcnbpo356.so.1.0.2 $out/lib/libcnbpo356.so LIBTIFF=$(pkg-config --libs-only-L libtiff-4 | sed -e 's/-L//g')/libtiff.so.5 ln -s $LIBTIFF $out/lib/libtiff.so.4 On 20 June 2017 at 10:11, Kirill Elagin wrote: > You do `chmod 777` on a bunch of files, but not on `$out/lib`, but it’s > the creation of a link in `$out/lib` that fails, and according to your > output of `ls` the `lib` directory does not have the `w` permission indeed, > which is required to create a link in it. > > I am not sure how this works exactly, but it seems that `cp` removes the > `w` permission when copying, so you either have to reset this permissions > yourself or, probably simpler, `mkdir -p "$out/lib"` beforehand, in which > case `cp` will not overwrite its permissions. > > On Tue, Jun 20, 2017 at 11:28 AM Nawal Husnoo wrote: > >> Hi >> >> I have the following defa
[Nix-commits] [NixOS/nixpkgs] a54f6c: moreutils: fix darwin build
Branch: refs/heads/moreutils-darwin-fix Home: https://github.com/NixOS/nixpkgs Commit: a54f6c353c3248a97bf21f17fd3211e767e6eca1 https://github.com/NixOS/nixpkgs/commit/a54f6c353c3248a97bf21f17fd3211e767e6eca1 Author: Pascal Wittmann Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/tools/misc/moreutils/default.nix Log Message: --- moreutils: fix darwin build ___ nix-commits mailing list nix-comm...@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-commits
[Nix-dev] Backport nodejs-8_x to 17.03
I'd like to have Node 8 in 17.03, is there any reason why we shouldn't do that? It would be a non-default attribute, like in master, so the only impact would be on Hydra I suppose. ___ nix-dev mailing list nix-dev@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-dev
[Nix-commits] [NixOS/nixpkgs] 14a320: moreutils: fix build on darwin
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: 14a320ace869a5f1eba3b2e26441e8b62802267e https://github.com/NixOS/nixpkgs/commit/14a320ace869a5f1eba3b2e26441e8b62802267e Author: Domen Kožar Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/tools/misc/moreutils/default.nix Log Message: --- moreutils: fix build on darwin ___ nix-commits mailing list nix-comm...@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-commits
[Nix-commits] [NixOS/nixpkgs] c02e26: wallabag: 2.2.2 -> 2.2.3
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: c02e26f8a0de163de12c03fea88becdcfdb681e0 https://github.com/NixOS/nixpkgs/commit/c02e26f8a0de163de12c03fea88becdcfdb681e0 Author: schneefux Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/servers/web-apps/wallabag/default.nix Log Message: --- wallabag: 2.2.2 -> 2.2.3 Commit: 613dd68ab6c17a9810d2eadd1efbcb21acb5e24f https://github.com/NixOS/nixpkgs/commit/613dd68ab6c17a9810d2eadd1efbcb21acb5e24f Author: Pascal Wittmann Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/servers/web-apps/wallabag/default.nix Log Message: --- Merge pull request #26725 from schneefux/pkg.wallabag wallabag: 2.2.2 -> 2.2.3 Compare: https://github.com/NixOS/nixpkgs/compare/908157c6c551...613dd68ab6c1___ nix-commits mailing list nix-comm...@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-commits
[Nix-commits] [NixOS/nixops] 0fec83: use group id in case the security group is in vpc
Branch: refs/heads/master Home: https://github.com/NixOS/nixops Commit: 0fec83d0c7fc6fdc3b676ea3034afab673e95d21 https://github.com/NixOS/nixops/commit/0fec83d0c7fc6fdc3b676ea3034afab673e95d21 Author: Amine Chikhaoui Date: 2017-05-19 (Fri, 19 May 2017) Changed paths: M nixops/resources/ec2_security_group.py Log Message: --- use group id in case the security group is in vpc Commit: 4983f23d8e153aa828a4ed367fbcb6062fc75c00 https://github.com/NixOS/nixops/commit/4983f23d8e153aa828a4ed367fbcb6062fc75c00 Author: Amine Chikhaoui Date: 2017-05-20 (Sat, 20 May 2017) Changed paths: M nixops/resources/ec2_security_group.py Log Message: --- get the security group id from the state Commit: 9ef885f9e2f424930194a52ea8ee0350139b0a76 https://github.com/NixOS/nixops/commit/9ef885f9e2f424930194a52ea8ee0350139b0a76 Author: Amine Chikhaoui Date: 2017-06-08 (Thu, 08 Jun 2017) Changed paths: M nix/auto-luks.nix M nix/ec2-security-group.nix M nix/keys.nix M nixops/backends/__init__.py M nixops/backends/virtualbox.py A tests/functional/single_machine_elsewhere_key.nix M tests/functional/test_send_keys_sends_keys.py Log Message: --- Merge branch 'master' of https://github.com/NixOS/nixops into fix-669 Commit: dbc9b97a9cfbae238392ca63b168b39777957fa2 https://github.com/NixOS/nixops/commit/dbc9b97a9cfbae238392ca63b168b39777957fa2 Author: Amine Chikhaoui Date: 2017-06-08 (Thu, 08 Jun 2017) Changed paths: M nixops/resources/ec2_security_group.py Log Message: --- Fix describe security groups api call in case it's in VPC. Commit: cc85837a5271465758a88e63eab1a8c41c2f6a5b https://github.com/NixOS/nixops/commit/cc85837a5271465758a88e63eab1a8c41c2f6a5b Author: Amine Chikhaoui Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M doc/manual/hacking.xml M nix/auto-luks.nix M nix/ec2-properties.nix M nix/eval-machine-info.nix M nix/gce.nix M nixops/backends/__init__.py M nixops/backends/azure_vm.py M nixops/backends/ec2.py M nixops/backends/gce.py M nixops/deployment.py M nixops/resources/ec2_common.py M nixops/util.py M release.nix M tests/functional/__init__.py M tests/functional/single_machine_elsewhere_key.nix M tests/functional/single_machine_test.py A tests/functional/single_machine_vbox_base.nix Log Message: --- Merge branch 'master' of https://github.com/NixOS/nixops into fix-669 Commit: 7b9b91e3d2bad94b2a178db76afd8c3557fceac7 https://github.com/NixOS/nixops/commit/7b9b91e3d2bad94b2a178db76afd8c3557fceac7 Author: Amine Chikhaoui Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M nixops/ec2_utils.py M nixops/resources/ec2_security_group.py Log Message: --- make sure to store the rules using the sg name so that it's possible to compare with the definition later. Commit: 429bf932bbbf15b5a914803900da8a480283f9c7 https://github.com/NixOS/nixops/commit/429bf932bbbf15b5a914803900da8a480283f9c7 Author: Amine Chikhaoui Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M nixops/resources/ec2_security_group.py Log Message: --- remove extra line Commit: b4c52c3a154107ae3ae02cee9a11289ba2a09491 https://github.com/NixOS/nixops/commit/b4c52c3a154107ae3ae02cee9a11289ba2a09491 Author: Amine Chikhaoui Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M nixops/ec2_utils.py Log Message: --- catch the case where the security group is not found Commit: d4b2fc58fae2386fed2da5fe881eeb9ac5b8b6b4 https://github.com/NixOS/nixops/commit/d4b2fc58fae2386fed2da5fe881eeb9ac5b8b6b4 Author: Rob Vermaas Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M nixops/ec2_utils.py M nixops/resources/ec2_security_group.py Log Message: --- Merge pull request #670 from AmineChikhaoui/fix-669 Fix #669: Use security group id in the api call in case it's deployed in a VPC Compare: https://github.com/NixOS/nixops/compare/94450e246608...d4b2fc58fae2___ nix-commits mailing list nix-comm...@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-commits
[Nix-commits] [NixOS/nixpkgs] 53c5b9: vulnix: fix eval
Branch: refs/heads/staging Home: https://github.com/NixOS/nixpkgs Commit: 53c5b9163eb3ed54ce633ae09b9a63f235f0493f https://github.com/NixOS/nixpkgs/commit/53c5b9163eb3ed54ce633ae09b9a63f235f0493f Author: Domen Kožar Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/tools/security/vulnix/requirements.nix Log Message: --- vulnix: fix eval ___ nix-commits mailing list nix-comm...@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-commits
[Nix-commits] [NixOS/nixpkgs] 8ae8e5: Revert "fix eval"
Branch: refs/heads/staging Home: https://github.com/NixOS/nixpkgs Commit: 8ae8e51dc3652e01926ae99fd93f8f273797ed73 https://github.com/NixOS/nixpkgs/commit/8ae8e51dc3652e01926ae99fd93f8f273797ed73 Author: Domen Kožar Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/tools/admin/cli53/default.nix Log Message: --- Revert "fix eval" This reverts commit 650f64c7790c3fecbc855eb4caf62d63d35e312e. Commit: 843b3faa18488375b31036cd3aed940b44a48e70 https://github.com/NixOS/nixpkgs/commit/843b3faa18488375b31036cd3aed940b44a48e70 Author: Domen Kožar Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/tools/admin/cli53/default.nix Log Message: --- Revert "cli53: 0.4.4 -> 0.8.8" This reverts commit c25b145815c1a7411621e33e69147c9545833509. Compare: https://github.com/NixOS/nixpkgs/compare/650f64c7790c...843b3faa1848___ nix-commits mailing list nix-comm...@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-commits
[Nix-commits] [NixOS/nixpkgs] 650f64: fix eval
Branch: refs/heads/staging Home: https://github.com/NixOS/nixpkgs Commit: 650f64c7790c3fecbc855eb4caf62d63d35e312e https://github.com/NixOS/nixpkgs/commit/650f64c7790c3fecbc855eb4caf62d63d35e312e Author: Domen Kožar Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/tools/admin/cli53/default.nix Log Message: --- fix eval ___ nix-commits mailing list nix-comm...@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-commits
[Nix-commits] [NixOS/nixpkgs] 1ab7ac: aws-sdk-cpp: 1.0.60 -> 1.0.127
Branch: refs/heads/release-17.03 Home: https://github.com/NixOS/nixpkgs Commit: 1ab7ac7368209e2b1c9a901caf0699660e085b6d https://github.com/NixOS/nixpkgs/commit/1ab7ac7368209e2b1c9a901caf0699660e085b6d Author: Eelco Dolstra Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/development/libraries/aws-sdk-cpp/default.nix Log Message: --- aws-sdk-cpp: 1.0.60 -> 1.0.127 (cherry picked from commit 3b44cd731c81420810659cc3b254389562cbe505) Commit: b506b9437b7af7129ed353aecd94749d79543137 https://github.com/NixOS/nixpkgs/commit/b506b9437b7af7129ed353aecd94749d79543137 Author: Eelco Dolstra Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/development/libraries/aws-sdk-cpp/default.nix Log Message: --- aws-sdk-cpp: 1.0.127 -> 1.0.153 (cherry picked from commit ac8451508b7dc04a045a6825f5e1c0cad449e7a4) Compare: https://github.com/NixOS/nixpkgs/compare/76d649b59484...b506b9437b7a___ nix-commits mailing list nix-comm...@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-commits
[Nix-commits] [NixOS/nix] c7346a: Restore thunks on any exception
Branch: refs/heads/master Home: https://github.com/NixOS/nix Commit: c7346a275c4cdcb59b3961241ddc52b79452d716 https://github.com/NixOS/nix/commit/c7346a275c4cdcb59b3961241ddc52b79452d716 Author: Eelco Dolstra Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M src/libexpr/eval-inline.hh Log Message: --- Restore thunks on any exception There's no reason to restrict this to Error exceptions. This shouldn't matter to #1407 since the repl doesn't catch non-Error exceptions anyway, but you never know... ___ nix-commits mailing list nix-comm...@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-commits
[Nix-commits] [NixOS/nixpkgs] 908157: prometheus-blackbox-exporter: 0.4.0 -> 0.5.0
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: 908157c6c5517b6404c7ab13b9953a02f0f76229 https://github.com/NixOS/nixpkgs/commit/908157c6c5517b6404c7ab13b9953a02f0f76229 Author: Robin Gloster Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/servers/monitoring/prometheus/blackbox-exporter.nix Log Message: --- prometheus-blackbox-exporter: 0.4.0 -> 0.5.0 ___ nix-commits mailing list nix-comm...@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-commits
[Nix-commits] [NixOS/nixpkgs] b6bacc: llvmPackage_{3.4, 3.5, 3.7, 3.8, 3.9}: fix output of l...
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: b6bacc4bb2e9cc1e8ee7c810e697e93439b83529 https://github.com/NixOS/nixpkgs/commit/b6bacc4bb2e9cc1e8ee7c810e697e93439b83529 Author: Jörg Thalheim Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: R pkgs/development/compilers/llvm/3.4/fix-llvm-config.patch M pkgs/development/compilers/llvm/3.4/llvm.nix M pkgs/development/compilers/llvm/3.5/llvm.nix R pkgs/development/compilers/llvm/3.7/fix-llvm-config.patch M pkgs/development/compilers/llvm/3.7/llvm.nix A pkgs/development/compilers/llvm/3.8/fix-llvm-config.patch M pkgs/development/compilers/llvm/3.8/llvm.nix M pkgs/development/compilers/llvm/3.9/llvm.nix A pkgs/development/compilers/llvm/fix-llvm-config.patch Log Message: --- llvmPackage_{3.4,3.5,3.7,3.8,3.9}: fix output of llvm-config llvm-config is a tool to output compile and linker flags, when compiling against llvm. The tool however outputs static library names despite libllvm is build as shared library on nixos. This was fixed for llvm 3.4, 3.5 and 3.7. For llvm 3.8 and 3.9 it printed the library extension twice (.so.so). This was fixed in 4.0 and the patch is backported to 3.8 and 3.9 in this pull request. ``` $ for i in 34 35 37 38 39; do echo "\nllvm-$i"; nix-shell -p llvmPackages_$i.llvm --run 'llvm-config --libnames'; done llvm-34 libLLVMInstrumentation.so libLLVMIRReader.so libLLVMAsmParser.so ... llvm-35 libLLVMLTO.so libLLVMObjCARCOpts.so libLLVMLinker.so libLLVMipo.so ... llvm-37 libLLVMLTO.so libLLVMObjCARCOpts.so libLLVMLinker.so libLLVMBitWriter.so ... llvm-38 libLLVM-3.8.1.so llvm-39 libLLVM-3.9.so ``` fixes #26713 ___ nix-commits mailing list nix-comm...@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-commits
Re: [Nix-dev] symlink permission denied in builder.sh
You do `chmod 777` on a bunch of files, but not on `$out/lib`, but it’s the creation of a link in `$out/lib` that fails, and according to your output of `ls` the `lib` directory does not have the `w` permission indeed, which is required to create a link in it. I am not sure how this works exactly, but it seems that `cp` removes the `w` permission when copying, so you either have to reset this permissions yourself or, probably simpler, `mkdir -p "$out/lib"` beforehand, in which case `cp` will not overwrite its permissions. On Tue, Jun 20, 2017 at 11:28 AM Nawal Husnoo wrote: > Hi > > I have the following default.nix and builder.sh, copied from the acroread > example and adapted. They are called from config.nix. I'm getting > permission denied when I try to create a symbolic link. Any ideas? > > thanks > > Nawal > > > Error: > > [nawal@heisenbug:~/data/nixos/user/pkgs/canon]$ nix-env -i all > warning: there are multiple derivations named ‘all’; using the first one > replacing old ‘all’ > installing ‘all’ > these derivations will be built: > /nix/store/w1w639kybx0lgvdmnb9ipg0j1xvb9wlq-canon-mp250.drv > /nix/store/bmp2ibgc82rmx14bgavd3pknwxwdp4ld-all.drv > building path(s) ‘/nix/store/q5qyxyqrfscdv7yj6aywx9v518215wdr-canon-mp250’ > total 764K > dr-xr-xr-x 2 nixbld1 nixbld 4.0K Jun 20 08:23 bjlib > dr-xr-xr-x 4 nixbld1 nixbld 4.0K Jun 20 08:23 cups > -r-xr-xr-x 1 nixbld1 nixbld 47K Jun 20 08:23 libcnbpcmcm356.so.8.0.1 > -r-xr-xr-x 1 nixbld1 nixbld 41K Jun 20 08:23 libcnbpcnclapi356.so.3.5.0 > -r-xr-xr-x 1 nixbld1 nixbld 21K Jun 20 08:23 libcnbpcnclbjcmd356.so.3.3.0 > -r-xr-xr-x 1 nixbld1 nixbld 29K Jun 20 08:23 libcnbpcnclui356.so.3.6.0 > -r-xr-xr-x 1 nixbld1 nixbld 522K Jun 20 08:23 libcnbpess356.so.3.3.3 > -r-xr-xr-x 1 nixbld1 nixbld 42K Jun 20 08:23 libcnbpo356.so.1.0.2 > -r-xr-xr-x 1 nixbld1 nixbld 38K Jun 20 08:23 libcnnet.so.1.2.0 > total 12K > dr-xr-xr-x 2 nixbld1 nixbld 4.0K Jun 20 08:23 bin > dr-xr-xr-x 4 nixbld1 nixbld 4.0K Jun 20 08:23 lib > dr-xr-xr-x 7 nixbld1 nixbld 4.0K Jun 20 08:23 share > ln: failed to create symbolic link > '/nix/store/q5qyxyqrfscdv7yj6aywx9v518215wdr-canon-mp250/lib/libcnbpcmcm356.so': > Permission denied > builder for ‘/nix/store/w1w639kybx0lgvdmnb9ipg0j1xvb9wlq-canon-mp250.drv’ > failed with exit code 1 > cannot build derivation > ‘/nix/store/bmp2ibgc82rmx14bgavd3pknwxwdp4ld-all.drv’: 1 dependencies > couldn't be built > error: build of ‘/nix/store/bmp2ibgc82rmx14bgavd3pknwxwdp4ld-all.drv’ > failed > > > > config.nix > with import {}; > > { > allowUnfree = true; > > packageOverrides = pkgs_: with pkgs_; { > canon = callPackage ./pkgs/canon { > inherit (pkgs) pkgs; > }; > > > all = with pkgs; buildEnv { > name = "all"; > paths = [ > canon > ]; > }; > }; > } > > > default.nix: > { stdenv > , pkgs > , udev > , alsaLib > , gtk2-x11 > , patchelf > , binutils > , popt > , cups > , cairo > , pango > , fontconfig > , glib > , dpkg > , atk > , procps > , gdk_pixbuf > , zlib > , libxml2 > , libtiff > , firefox > , libX11 > , libXcursor > , libXrandr > , libXext > , libXinerama > , libXrender > , libXi > , libXfixes > }: > > stdenv.mkDerivation { > name = "canon-mp250"; > src = ./usr; > builder = ./builder.sh; > libPath = stdenv.lib.makeLibraryPath [ > stdenv.cc.cc > udev > alsaLib > gtk2-x11 > binutils > popt > cups > cairo > pango > fontconfig > glib > dpkg > atk > procps > patchelf > gdk_pixbuf > libxml2 > libtiff > libX11 > libXcursor > libXrandr > libXext > libXinerama > libXrender > libXi > libXfixes > ]; > > } > > > builder.sh: > source $stdenv/setup > > mkdir -p $out/ > cp -r $src/* $out/ > > > chmod 777 -R $out/bin/* > chmod 777 -R $out/lib/cups/filter/* > chmod 777 -R $out/lib/cups/backend/* > > patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ > --set-rpath $libPath:$out/lib \ > $out/bin/cngpijmonmp250 > > patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ > --set-rpath $libPath:$out/lib \ > $out/bin/cngpij > > patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ > --set-rpath $libPath:$out/lib \ > $out/bin/cnijnetprn > > patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ > --set-rpath $libPath:$out/lib \ > $out/bin/lgmonmp250 > > patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ > --set-rpath $libPath:$out/lib \ > $out/bin/cifmp250 > > patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ > --set-rpath $libPath:$out/lib \ > $out/bin/printuimp250 > > patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ > --set-rpath $libPath:$out/lib \ > $out/bin/cnijnpr > > patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ > --set-rpath $libPath:$out/lib \ > $out/lib/cups/filter/pstocanonij > > patchelf --interpreter "$(cat $NIX_CC/
[Nix-commits] [NixOS/nixpkgs] 47f7aa: sudo: 1.8.20p1 -> 1.8.20p2
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: 47f7aa96b0dc3756ed324790c71187ce865ff2a0 https://github.com/NixOS/nixpkgs/commit/47f7aa96b0dc3756ed324790c71187ce865ff2a0 Author: Franz Pletz Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/tools/security/sudo/default.nix Log Message: --- sudo: 1.8.20p1 -> 1.8.20p2 Commit: 127937f0b6248d7ed797a36bfa3cca798325e19b https://github.com/NixOS/nixpkgs/commit/127937f0b6248d7ed797a36bfa3cca798325e19b Author: Franz Pletz Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/tools/misc/aptly/default.nix R pkgs/tools/misc/aptly/deps.nix Log Message: --- aptly: 0.9.7 -> 1.0.1 Commit: b6cf652e08bb132a69eb7be16b4f3eb6344bf9d1 https://github.com/NixOS/nixpkgs/commit/b6cf652e08bb132a69eb7be16b4f3eb6344bf9d1 Author: Franz Pletz Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/applications/science/misc/boinc/default.nix Log Message: --- boinc: 7.4.42 -> 7.8.0 Commit: e9840d04827582362f8aa9d5c5f95103948ce366 https://github.com/NixOS/nixpkgs/commit/e9840d04827582362f8aa9d5c5f95103948ce366 Author: Franz Pletz Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/tools/package-management/librepo/default.nix Log Message: --- librepo 1.7.18 -> 1.7.20 Commit: cacc16c39090e2f891053285a6f4f107a1440d56 https://github.com/NixOS/nixpkgs/commit/cacc16c39090e2f891053285a6f4f107a1440d56 Author: Franz Pletz Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/development/libraries/libass/default.nix Log Message: --- libass: 0.13.4 -> 0.13.7 Commit: 63eb0e9c37270e7d4ca32d46033a7ec39e65ace3 https://github.com/NixOS/nixpkgs/commit/63eb0e9c37270e7d4ca32d46033a7ec39e65ace3 Author: Franz Pletz Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/development/libraries/libbsd/default.nix Log Message: --- libbsd: 0.8.3 -> 0.8.4 Commit: 45035b74df48c6f0a72dd750fa7d1ebcbabcc3b8 https://github.com/NixOS/nixpkgs/commit/45035b74df48c6f0a72dd750fa7d1ebcbabcc3b8 Author: Franz Pletz Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/development/libraries/libchardet/default.nix Log Message: --- libchardet: 1.0.4 -> 1.0.5 Commit: 17026869c80882f7ed053fc7c2bdc9d0f5d5c6ef https://github.com/NixOS/nixpkgs/commit/17026869c80882f7ed053fc7c2bdc9d0f5d5c6ef Author: Franz Pletz Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/development/libraries/libpwquality/default.nix Log Message: --- libpwquality: 1.3.0 -> 1.4.0 Commit: baf28b60e47356b54f6b8baf14f039b40191edef https://github.com/NixOS/nixpkgs/commit/baf28b60e47356b54f6b8baf14f039b40191edef Author: Franz Pletz Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/os-specific/linux/libcap-ng/default.nix Log Message: --- libcap_ng: 0.7.7 -> 0.7.8 Commit: 3c33ceadb6c4b60bf7b9886b6473a3c18ebe78d6 https://github.com/NixOS/nixpkgs/commit/3c33ceadb6c4b60bf7b9886b6473a3c18ebe78d6 Author: Franz Pletz Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/development/libraries/libpfm/default.nix Log Message: --- libpfm: 4.5.0 -> 4.8.0 Commit: 84a3f1c67257a18d08d5397cc91f259b4a3091bc https://github.com/NixOS/nixpkgs/commit/84a3f1c67257a18d08d5397cc91f259b4a3091bc Author: Franz Pletz Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/development/libraries/libnotify/default.nix Log Message: --- libnotify: 0.7.6 -> 0.7.7 Commit: f4734e75db9dc31ac0d16bf9851d752c10676333 https://github.com/NixOS/nixpkgs/commit/f4734e75db9dc31ac0d16bf9851d752c10676333 Author: Franz Pletz Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/os-specific/linux/libnl/default.nix Log Message: --- libnl: 3.2.29 -> 3.3.0 Commit: 12a31293ad046580acc097f3c706c65ed17d7d9b https://github.com/NixOS/nixpkgs/commit/12a31293ad046580acc097f3c706c65ed17d7d9b Author: Franz Pletz Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/servers/quagga/default.nix Log Message: --- quagga: 1.2.0 -> 1.2.1 Commit: 7d1eb8a56349428efddd411b789ad5b48b13cf37 https://github.com/NixOS/nixpkgs/commit/7d1eb8a56349428efddd411b789ad5b48b13cf37 Author: Franz Pletz Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/development/libraries/libnice/default.nix Log Message: --- libnice: 0.1.13 -> 0.1.14 Commit: c2a271e825f18ee45354153efbc1ff84b9f332ff https://github.com/NixOS/nixpkgs/commit/c2a271e825f18ee45354153efbc1ff84b9f332ff Author: Franz Pletz Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M pkgs/development/libraries/libmtp/default.nix Log
Re: [Nix-dev] printing on nix
Thanks for the suggestion! I'm now trying to get it to build as a proper package so that cups can access it... On 20 June 2017 at 08:09, Kirill Elagin wrote: > I’m not quite sure, but I always thought CUPS was searching for the filter > in the PATH: > > https://github.com/NixOS/nixpkgs/blob/50fadc8b18fb3da6bda2f3710009a1 > 5f6ac45567/nixos/modules/services/printing/cupsd.nix#L79 > > I don’t think the NixOS module has a simple way to adjust PATH, but you > could try to put the filter into one of the mentioned directories. > > Another option that should definitely work is to replace the filter name > with the absolute path in the ppd file itself. > > On Tue, Jun 20, 2017 at 12:55 AM Nawal Husnoo wrote: > >> Hi, >> >> I've got the default.nix below, and I run it using nix-shell. I opened >> firefox, and went to 127.0.0.1:631 and added a printer, and selected the >> ppd file from /opt/share/ppd/canonmp250.ppd. >> >> Unfortunately, when I try to print a test page I get the error message: >> >> Idle - "File "/nix/store/wy6c4mlp6zhjj4j3cjwrhwfi4ba9bx >> ab-cups-progs/lib/cups/filter/pstocanonij" not available: No such file >> or directory" >> >> The file lives at /opt/lib/cups/filter/pstocanonij. >> >> How do I override cups path in nix? >> >> thanks, >> >> Nawal. >> >> >> { pkgs ? import {}}: >> >> (pkgs.buildFHSUserEnv { >> name = "simple-x11-env"; >> targetPkgs = pkgs: (with pkgs; [ >> udev >> alsaLib >> gtk2-x11 >> patchelf >> binutils >> popt >> cups >> dpkg >> cairo >> pango >> fontconfig >> glib >> dpkg >> atk >> gdk_pixbuf >> libxml2 >> libtiff >> firefox >> ]) ++ (with pkgs.xorg; [ >> libX11 >> libXcursor >> libXrandr >> libXext >> libXinerama >> libXrender >> libXi >> libXfixes >> ]); >> multiPkgs = pkgs: (with pkgs; [ >> ]); >> >> extraBuildCommands = '' >> echo "instaling environment for cups printing with canon mp >> 250..." >> >> ls -lh $out/ >> mkdir -p $out/opt/bin/ >> mkdir -p $out/opt/lib/ >> cp -r /home/nawal/data/nixos/user/pkgs/canon/tmp/cnijfilter-common/usr/bin/* >> $out/opt/bin/ >> cp -r >> /home/nawal/data/nixos/user/pkgs/canon/tmp/cnijfilter-common/usr/share/* >> $out/opt/share/ >> cp -r /home/nawal/data/nixos/user/pkgs/canon/tmp/cnijfilter-common/usr/lib/* >> $out/opt/lib/ >> >> cp -r >> /home/nawal/data/nixos/user/pkgs/canon/tmp/cnijfilter-mp250series/usr/bin/* >> $out/opt/bin/ >> cp -r >> /home/nawal/data/nixos/user/pkgs/canon/tmp/cnijfilter-mp250series/usr/share/* >> $out/opt/share/ >> cp -r >> /home/nawal/data/nixos/user/pkgs/canon/tmp/cnijfilter-mp250series/usr/lib/* >> $out/opt/lib/ >> >> ln -s $out/opt/lib/libcnbpcmcm356.so.8.0.1 $out/opt/lib/libcnbpcmcm356.so >> ln -s $out/opt/lib/libcnbpcnclbjcmd356.so.3.3.0 $out/opt/lib/ >> libcnbpcnclbjcmd356.so >> ln -s $out/opt/lib/libcnbpess356.so.3.3.3 $out/opt/lib/libcnbpess356.so >> ln -s $out/opt/lib/libcnnet.so.1.2.0 $out/opt/lib/libcnnet.so >> ln -s $out/opt/lib/libcnbpcnclapi356.so.3.5.0 $out/opt/lib/ >> libcnbpcnclapi356.so >> ln -s $out/opt/lib/libcnbpcnclui356.so.3.6.0 >> $out/opt/lib/libcnbpcnclui356.so >> ln -s $out/opt/lib/libcnbpo356.so.1.0.2 $out/opt/lib/libcnbpo356.so >> >> >> echo "OUT=$out" >> ''; >> >> profile = '' >> export LD_LIBRARY_PATH=$out/opt/lib:$LD_LIBRARY_PATH >> export PATH=$out/opt/bin:$PATH >> export TZDIR=/etc/zoneinfo >> ''; >> >> runScript = '' >> bash >> ''; >> }).env >> >> >> #${dpkg}/bin/dpkg -x ./debs/cnijfilter-common_3.40-1_amd64.deb >> tmp/cnijfilter-common >> #${dpkg}/bin/dpkg -x ./debs/cnijfilter-mp250series_3.40-1_amd64.deb >> tmp/cnijfilter-mp250series >> >> ___ >> nix-dev mailing list >> nix-dev@lists.science.uu.nl >> https://mailman.science.uu.nl/mailman/listinfo/nix-dev >> > ___ nix-dev mailing list nix-dev@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-dev
[Nix-dev] symlink permission denied in builder.sh
Hi I have the following default.nix and builder.sh, copied from the acroread example and adapted. They are called from config.nix. I'm getting permission denied when I try to create a symbolic link. Any ideas? thanks Nawal Error: [nawal@heisenbug:~/data/nixos/user/pkgs/canon]$ nix-env -i all warning: there are multiple derivations named ‘all’; using the first one replacing old ‘all’ installing ‘all’ these derivations will be built: /nix/store/w1w639kybx0lgvdmnb9ipg0j1xvb9wlq-canon-mp250.drv /nix/store/bmp2ibgc82rmx14bgavd3pknwxwdp4ld-all.drv building path(s) ‘/nix/store/q5qyxyqrfscdv7yj6aywx9v518215wdr-canon-mp250’ total 764K dr-xr-xr-x 2 nixbld1 nixbld 4.0K Jun 20 08:23 bjlib dr-xr-xr-x 4 nixbld1 nixbld 4.0K Jun 20 08:23 cups -r-xr-xr-x 1 nixbld1 nixbld 47K Jun 20 08:23 libcnbpcmcm356.so.8.0.1 -r-xr-xr-x 1 nixbld1 nixbld 41K Jun 20 08:23 libcnbpcnclapi356.so.3.5.0 -r-xr-xr-x 1 nixbld1 nixbld 21K Jun 20 08:23 libcnbpcnclbjcmd356.so.3.3.0 -r-xr-xr-x 1 nixbld1 nixbld 29K Jun 20 08:23 libcnbpcnclui356.so.3.6.0 -r-xr-xr-x 1 nixbld1 nixbld 522K Jun 20 08:23 libcnbpess356.so.3.3.3 -r-xr-xr-x 1 nixbld1 nixbld 42K Jun 20 08:23 libcnbpo356.so.1.0.2 -r-xr-xr-x 1 nixbld1 nixbld 38K Jun 20 08:23 libcnnet.so.1.2.0 total 12K dr-xr-xr-x 2 nixbld1 nixbld 4.0K Jun 20 08:23 bin dr-xr-xr-x 4 nixbld1 nixbld 4.0K Jun 20 08:23 lib dr-xr-xr-x 7 nixbld1 nixbld 4.0K Jun 20 08:23 share ln: failed to create symbolic link '/nix/store/q5qyxyqrfscdv7yj6aywx9v518215wdr-canon-mp250/lib/libcnbpcmcm356.so': Permission denied builder for ‘/nix/store/w1w639kybx0lgvdmnb9ipg0j1xvb9wlq-canon-mp250.drv’ failed with exit code 1 cannot build derivation ‘/nix/store/bmp2ibgc82rmx14bgavd3pknwxwdp4ld-all.drv’: 1 dependencies couldn't be built error: build of ‘/nix/store/bmp2ibgc82rmx14bgavd3pknwxwdp4ld-all.drv’ failed config.nix with import {}; { allowUnfree = true; packageOverrides = pkgs_: with pkgs_; { canon = callPackage ./pkgs/canon { inherit (pkgs) pkgs; }; all = with pkgs; buildEnv { name = "all"; paths = [ canon ]; }; }; } default.nix: { stdenv , pkgs , udev , alsaLib , gtk2-x11 , patchelf , binutils , popt , cups , cairo , pango , fontconfig , glib , dpkg , atk , procps , gdk_pixbuf , zlib , libxml2 , libtiff , firefox , libX11 , libXcursor , libXrandr , libXext , libXinerama , libXrender , libXi , libXfixes }: stdenv.mkDerivation { name = "canon-mp250"; src = ./usr; builder = ./builder.sh; libPath = stdenv.lib.makeLibraryPath [ stdenv.cc.cc udev alsaLib gtk2-x11 binutils popt cups cairo pango fontconfig glib dpkg atk procps patchelf gdk_pixbuf libxml2 libtiff libX11 libXcursor libXrandr libXext libXinerama libXrender libXi libXfixes ]; } builder.sh: source $stdenv/setup mkdir -p $out/ cp -r $src/* $out/ chmod 777 -R $out/bin/* chmod 777 -R $out/lib/cups/filter/* chmod 777 -R $out/lib/cups/backend/* patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ --set-rpath $libPath:$out/lib \ $out/bin/cngpijmonmp250 patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ --set-rpath $libPath:$out/lib \ $out/bin/cngpij patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ --set-rpath $libPath:$out/lib \ $out/bin/cnijnetprn patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ --set-rpath $libPath:$out/lib \ $out/bin/lgmonmp250 patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ --set-rpath $libPath:$out/lib \ $out/bin/cifmp250 patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ --set-rpath $libPath:$out/lib \ $out/bin/printuimp250 patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ --set-rpath $libPath:$out/lib \ $out/bin/cnijnpr patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ --set-rpath $libPath:$out/lib \ $out/lib/cups/filter/pstocanonij patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ --set-rpath $libPath:$out/lib \ $out/lib/cups/backend/cnijusb patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ --set-rpath $libPath:$out/lib \ $out/lib/cups/backend/cnijnet ls -lh $out/lib/ ls -lh $out/ ln -sv $out/lib/libcnbpcmcm356.so.8.0.1 $out/lib/libcnbpcmcm356.so ln -sv $out/lib/libcnbpcnclbjcmd356.so.3.3.0 $out/lib/libcnbpcnclbjcmd356.so ln -sv $out/lib/libcnbpess356.so.3.3.3 $out/lib/libcnbpess356.so ln -sv $out/lib/libcnnet.so.1.2.0 $out/lib/libcnnet.so ln -sv $out/lib/libcnbpcnclapi356.so.3.5.0 $out/lib/libcnbpcnclapi356.so ln -sv $out/lib/libcnbpcnclui356.so.3.6.0 $out/lib/libcnbpcnclui356.so ln -sv $out/lib/libcnbpo356.so.1.0.2 $out/lib/libcnbpo356.so ___ nix-dev mailing list nix-dev@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-dev
[Nix-commits] [NixOS/nixops] 94450e: Undo accidentally commited changes.
Branch: refs/heads/master Home: https://github.com/NixOS/nixops Commit: 94450e2466086ed4c5e85bf7d77e27b73c2e4fb7 https://github.com/NixOS/nixops/commit/94450e2466086ed4c5e85bf7d77e27b73c2e4fb7 Author: Rob Vermaas Date: 2017-06-20 (Tue, 20 Jun 2017) Changed paths: M nixops/resources/ec2_security_group.py Log Message: --- Undo accidentally commited changes. ___ nix-commits mailing list nix-comm...@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-commits
Re: [Nix-dev] printing on nix
I’m not quite sure, but I always thought CUPS was searching for the filter in the PATH: https://github.com/NixOS/nixpkgs/blob/50fadc8b18fb3da6bda2f3710009a15f6ac45567/nixos/modules/services/printing/cupsd.nix#L79 I don’t think the NixOS module has a simple way to adjust PATH, but you could try to put the filter into one of the mentioned directories. Another option that should definitely work is to replace the filter name with the absolute path in the ppd file itself. On Tue, Jun 20, 2017 at 12:55 AM Nawal Husnoo wrote: > Hi, > > I've got the default.nix below, and I run it using nix-shell. I opened > firefox, and went to 127.0.0.1:631 and added a printer, and selected the > ppd file from /opt/share/ppd/canonmp250.ppd. > > Unfortunately, when I try to print a test page I get the error message: > > Idle - "File > "/nix/store/wy6c4mlp6zhjj4j3cjwrhwfi4ba9bxab-cups-progs/lib/cups/filter/pstocanonij" > not available: No such file or directory" > > The file lives at /opt/lib/cups/filter/pstocanonij. > > How do I override cups path in nix? > > thanks, > > Nawal. > > > { pkgs ? import {}}: > > (pkgs.buildFHSUserEnv { > name = "simple-x11-env"; > targetPkgs = pkgs: (with pkgs; [ > udev > alsaLib > gtk2-x11 > patchelf > binutils > popt > cups > dpkg > cairo > pango > fontconfig > glib > dpkg > atk > gdk_pixbuf > libxml2 > libtiff > firefox > ]) ++ (with pkgs.xorg; [ > libX11 > libXcursor > libXrandr > libXext > libXinerama > libXrender > libXi > libXfixes > ]); > multiPkgs = pkgs: (with pkgs; [ > ]); > > extraBuildCommands = '' > echo "instaling environment for cups printing with canon mp 250..." > > ls -lh $out/ > mkdir -p $out/opt/bin/ > mkdir -p $out/opt/lib/ > cp -r > /home/nawal/data/nixos/user/pkgs/canon/tmp/cnijfilter-common/usr/bin/* > $out/opt/bin/ > cp -r > /home/nawal/data/nixos/user/pkgs/canon/tmp/cnijfilter-common/usr/share/* > $out/opt/share/ > cp -r > /home/nawal/data/nixos/user/pkgs/canon/tmp/cnijfilter-common/usr/lib/* > $out/opt/lib/ > > cp -r > /home/nawal/data/nixos/user/pkgs/canon/tmp/cnijfilter-mp250series/usr/bin/* > $out/opt/bin/ > cp -r > /home/nawal/data/nixos/user/pkgs/canon/tmp/cnijfilter-mp250series/usr/share/* > $out/opt/share/ > cp -r > /home/nawal/data/nixos/user/pkgs/canon/tmp/cnijfilter-mp250series/usr/lib/* > $out/opt/lib/ > > ln -s $out/opt/lib/libcnbpcmcm356.so.8.0.1 $out/opt/lib/libcnbpcmcm356.so > ln -s $out/opt/lib/libcnbpcnclbjcmd356.so.3.3.0 > $out/opt/lib/libcnbpcnclbjcmd356.so > ln -s $out/opt/lib/libcnbpess356.so.3.3.3 $out/opt/lib/libcnbpess356.so > ln -s $out/opt/lib/libcnnet.so.1.2.0 $out/opt/lib/libcnnet.so > ln -s $out/opt/lib/libcnbpcnclapi356.so.3.5.0 > $out/opt/lib/libcnbpcnclapi356.so > ln -s $out/opt/lib/libcnbpcnclui356.so.3.6.0 > $out/opt/lib/libcnbpcnclui356.so > ln -s $out/opt/lib/libcnbpo356.so.1.0.2 $out/opt/lib/libcnbpo356.so > > > echo "OUT=$out" > ''; > > profile = '' > export LD_LIBRARY_PATH=$out/opt/lib:$LD_LIBRARY_PATH > export PATH=$out/opt/bin:$PATH > export TZDIR=/etc/zoneinfo > ''; > > runScript = '' > bash > ''; > }).env > > > #${dpkg}/bin/dpkg -x ./debs/cnijfilter-common_3.40-1_amd64.deb > tmp/cnijfilter-common > #${dpkg}/bin/dpkg -x ./debs/cnijfilter-mp250series_3.40-1_amd64.deb > tmp/cnijfilter-mp250series > > ___ > nix-dev mailing list > nix-dev@lists.science.uu.nl > https://mailman.science.uu.nl/mailman/listinfo/nix-dev > ___ nix-dev mailing list nix-dev@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-dev