[Nix-commits] [NixOS/nixpkgs] 8a00d8: aubio: 0.4.4 -> 0.4.5

2017-06-19 Thread Franz Pletz
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 8a00d896187591cabfb38931ca65cc5b0a52dbdf
  
https://github.com/NixOS/nixpkgs/commit/8a00d896187591cabfb38931ca65cc5b0a52dbdf
  Author: Franz Pletz 
  Date:   2017-06-20 (Tue, 20 Jun 2017)

  Changed paths:
M pkgs/development/libraries/aubio/default.nix

  Log Message:
  ---
  aubio: 0.4.4 -> 0.4.5


  Commit: aea08dd53e54aead17c8de13eae2b78a754f65d2
  
https://github.com/NixOS/nixpkgs/commit/aea08dd53e54aead17c8de13eae2b78a754f65d2
  Author: Franz Pletz 
  Date:   2017-06-20 (Tue, 20 Jun 2017)

  Changed paths:
M pkgs/applications/misc/kanboard/default.nix

  Log Message:
  ---
  kanboard: 1.0.40 -> 1.0.44


  Commit: 21b509396654c5f8740300cd74c486016f7c5c96
  
https://github.com/NixOS/nixpkgs/commit/21b509396654c5f8740300cd74c486016f7c5c96
  Author: Franz Pletz 
  Date:   2017-06-20 (Tue, 20 Jun 2017)

  Changed paths:
M pkgs/development/libraries/libite/default.nix

  Log Message:
  ---
  libite: 1.8.2 -> 1.8.3


  Commit: 19a840cb66ef2b3a5cd484b382bc7bd769810229
  
https://github.com/NixOS/nixpkgs/commit/19a840cb66ef2b3a5cd484b382bc7bd769810229
  Author: Franz Pletz 
  Date:   2017-06-20 (Tue, 20 Jun 2017)

  Changed paths:
M pkgs/development/tools/continuous-integration/jenkins/default.nix

  Log Message:
  ---
  jenkins: 2.65 -> 2.66


  Commit: 60cddbe3da70b5b677a545966286e1acfd5a7a5e
  
https://github.com/NixOS/nixpkgs/commit/60cddbe3da70b5b677a545966286e1acfd5a7a5e
  Author: Franz Pletz 
  Date:   2017-06-20 (Tue, 20 Jun 2017)

  Changed paths:
M pkgs/tools/X11/screen-message/default.nix

  Log Message:
  ---
  screen-message: 0.24 -> 0.25


  Commit: 7f1fc9f838b3bf12525a5b7007ace86ba614c4a4
  
https://github.com/NixOS/nixpkgs/commit/7f1fc9f838b3bf12525a5b7007ace86ba614c4a4
  Author: Franz Pletz 
  Date:   2017-06-20 (Tue, 20 Jun 2017)

  Changed paths:
M pkgs/tools/system/collectd/default.nix

  Log Message:
  ---
  collectd: 5.7.0 -> 5.7.2


  Commit: 42dcabf4140dbaaaee4a69b101ca200c7e7b3048
  
https://github.com/NixOS/nixpkgs/commit/42dcabf4140dbaaaee4a69b101ca200c7e7b3048
  Author: Franz Pletz 
  Date:   2017-06-20 (Tue, 20 Jun 2017)

  Changed paths:
M pkgs/tools/networking/mitmproxy/default.nix

  Log Message:
  ---
  mitmproxy: 2.0.0 -> 2.0.2


  Commit: 99bd99db3d73185214862b0ff6a7704bcfb1e196
  
https://github.com/NixOS/nixpkgs/commit/99bd99db3d73185214862b0ff6a7704bcfb1e196
  Author: Franz Pletz 
  Date:   2017-06-20 (Tue, 20 Jun 2017)

  Changed paths:
M pkgs/games/bzflag/default.nix

  Log Message:
  ---
  bzflag: 2.4.8 -> 2.4.10


  Commit: c34d43a4ce6f9eb92bb066de63d56f003b651478
  
https://github.com/NixOS/nixpkgs/commit/c34d43a4ce6f9eb92bb066de63d56f003b651478
  Author: Franz Pletz 
  Date:   2017-06-20 (Tue, 20 Jun 2017)

  Changed paths:
M pkgs/games/openttd/default.nix

  Log Message:
  ---
  openttd: 1.6.1 -> 1.7.1


  Commit: 735dcc1a27d471a98acf2e5fcb4d9b5a0e995ca1
  
https://github.com/NixOS/nixpkgs/commit/735dcc1a27d471a98acf2e5fcb4d9b5a0e995ca1
  Author: Franz Pletz 
  Date:   2017-06-20 (Tue, 20 Jun 2017)

  Changed paths:
M pkgs/servers/irc/charybdis/default.nix

  Log Message:
  ---
  charybdis: 3.5.3 -> 3.5.5


  Commit: ed71a3a6785a9901e59bda5118e1f9a1fa341acc
  
https://github.com/NixOS/nixpkgs/commit/ed71a3a6785a9901e59bda5118e1f9a1fa341acc
  Author: Franz Pletz 
  Date:   2017-06-20 (Tue, 20 Jun 2017)

  Changed paths:
M pkgs/tools/networking/chrony/default.nix

  Log Message:
  ---
  chrony: 3.0 -> 3.1


  Commit: bc3ee6bfd47a3bab4c9491da51c550f4ec49106d
  
https://github.com/NixOS/nixpkgs/commit/bc3ee6bfd47a3bab4c9491da51c550f4ec49106d
  Author: Franz Pletz 
  Date:   2017-06-20 (Tue, 20 Jun 2017)

  Changed paths:
M pkgs/tools/networking/dnsmasq/default.nix

  Log Message:
  ---
  dnsmasq: 2.76 -> 2.77


  Commit: e7f5e7fe3b9faa58c4f9b050456a066719c5e693
  
https://github.com/NixOS/nixpkgs/commit/e7f5e7fe3b9faa58c4f9b050456a066719c5e693
  Author: Franz Pletz 
  Date:   2017-06-20 (Tue, 20 Jun 2017)

  Changed paths:
M pkgs/tools/networking/whois/default.nix

  Log Message:
  ---
  whois: 5.2.15 -> 5.2.16


  Commit: 11bf721290903950a124d3741f34c2665ba52508
  
https://github.com/NixOS/nixpkgs/commit/11bf721290903950a124d3741f34c2665ba52508
  Author: Franz Pletz 
  Date:   2017-06-20 (Tue, 20 Jun 2017)

  Changed paths:
M pkgs/development/libraries/mbedtls/1.3.nix

  Log Message:
  ---
  mbedtls_1_3: 1.3.18 

[Nix-commits] [NixOS/nixpkgs] 276496: linux: 4.12-rc5 -> 4.12-rc6

2017-06-19 Thread Tim Steinbach
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 2764961b877bd9a4813d21c5b2f47cf7e00e3b4a
  
https://github.com/NixOS/nixpkgs/commit/2764961b877bd9a4813d21c5b2f47cf7e00e3b4a
  Author: Tim Steinbach 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/os-specific/linux/kernel/linux-testing.nix

  Log Message:
  ---
  linux: 4.12-rc5 -> 4.12-rc6


___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


Re: [Nix-dev] displaymanager: gdm broken?

2017-06-19 Thread Laverne Schrock
On Mon, 2017-06-19 at 15:57 +0200, Roland Koebler wrote:
> Hi,
> 
> if I chose gdm as display-manger in NixOS, gdm fails to show a
> login-screen. Is this a known bug and is there a solution or
> workaround?
> 
> Chosing slim or lightdm as display-manager works (but slim is
> *really*
> user-unfriendly when using different sessions/windowmanagers, since
> it shows the selected session as white text on nearly-white
> background
> and does not tell you how to select which session to use).
> 
> Details:
> 
> - /etc/nixos/configuration.nix:
> 
> services.xserver.displayManager.gdm.enable = true;
> 
> - Then:
> 
>   # nixos-rebuild switch
>   # systemctl restart display-manager.service
> 
> - Afterwards, nothing seems to happen; tty1..tty6 all show a text-
> login-
>   prompt. gdm is running, but no X11/login-screen is shown.
> 
> - # systemctl status display-manager.service
>  
>   display-manager.service - X11 Server
>  Loaded: loaded (/nix/store/vpyvxzznl4b7s2sbfgz7daaw0jmj0hb3-
> unit-display-manager.service/display-manager.service; linked; vendor
> preset: enabled)
>  Active: active (running) since Mon 2017-06-19 15:49:30 CEST;
> 1min 45s ago
> Process: 22160
> ExecStartPre=/nix/store/k3ahl02n8pw0cpa4dahmi25jwfzrga7v-unit-
> script/bin/display-manager-pre-start (code=exited, status=0/SUCCESS)
>    Main PID: 22163 (gdm)
>   Tasks: 6 (limit: 4915)
>  CGroup: /system.slice/display-manager.service
>  ├─22163 /nix/store/nq1wc8kbl7r68d7kq5yh8giwv5h8r86s-gdm-
> 3.22.0/bin/gdm
>  └─22168 gdm-session-worker [pam/gdm-launch-environment]
> 
>   Jun 19 15:49:30 rala systemd[1]: Stopped X11 Server.
>   Jun 19 15:49:30 rala systemd[1]: Starting X11 Server...
>   Jun 19 15:49:30 rala systemd[1]: Started X11 Server.
>   Jun 19 15:49:30 rala gdm[22163]: Failed to list cached users:
> GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
> org.freedesktop.Accounts was not provided by any .service files
> 
> - ps x | grep gdm
> 
>   22163 ?Ssl0:00
> /nix/store/nq1wc8kbl7r68d7kq5yh8giwv5h8r86s-gdm-3.22.0/bin/gdm
>   22168 ?Sl 0:00 gdm-session-worker [pam/gdm-launch-
> environment]
>  
> 
> thanks
> Roland
> 
> 

`nix-rebuild switch` has been kind of flakey for me since I switched to
GDM (which was also when I switched 
to 17.03). A reboot is usually needed for my system to get X11 back.

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] How to build a Haskell binding to a C++ library (OpenCV) on OS X

2017-06-19 Thread Linus
On 19 June 2017 18:05:36 BST, Bas van Dijk  wrote:
>Thanks Vincent, you are spot on!
>
>I went with the following change:
>
>https://github.com/LumiGuide/haskell-opencv/commit/6b78bc4c431d693b0bc828cc86708882a26f777c
>
>Bas
>
>On 19 June 2017 at 17:00, Vincent Laporte 
>wrote:
>
>> Hi,
>>
>> Notice that if you replace the two occurrences of ‘g++’ by ‘clang++’
>in
>> the file ‘opencv/Setup.hs’, then ‘nix-build’ succeeds.
>>
>> This issue might be reported upstream: they apparently need a
>configure
>> step to select the correct name of the C++ compiler.
>>
>> The following patch also appears to make ‘nix-build’ work.
>>
>> Regards,
>> --
>> Vincent.
>>
>> ```
>> diff --git a/opencv/Setup.hs b/opencv/Setup.hs
>> index 031daa1..3c92176 100644
>> --- a/opencv/Setup.hs
>> +++ b/opencv/Setup.hs
>> @@ -3,6 +3,6 @@ import System.Environment ( getArgs )
>>
>>  main = do
>>  args <- getArgs
>> -let args' | "configure" `elem` args = args ++
>["--with-gcc","g++",
>> "--with-ld","g++"]
>> +let args' | "configure" `elem` args = args
>>| otherwise   = args
>>  defaultMainArgs args'
>> diff --git a/opencv/opencv.nix b/opencv/opencv.nix
>> index a28674c..80ed995 100644
>> --- a/opencv/opencv.nix
>> +++ b/opencv/opencv.nix
>> @@ -103,8 +103,8 @@ mkDerivation ({
>>libraryPkgconfigDepends = [ opencv3 ];
>>
>>configureFlags =
>> -[ "--with-gcc=g++"
>> -  "--with-ld=g++"
>> +[ "--with-gcc=${stdenv.cc}/bin/c++"
>> +  "--with-ld=${stdenv.cc}/bin/c++"
>>  ];
>>
>>hardeningDisable = [ "bindnow" ];
>> ```
>> ___
>> nix-dev mailing list
>> nix-dev@lists.science.uu.nl
>> https://mailman.science.uu.nl/mailman/listinfo/nix-dev
>>

I believe stdenv also sets the CC and CXX environment variables to the 
preferred C compiler, which could be useful to avoid additional nix code.

Linus
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] printing on nix

2017-06-19 Thread Nawal Husnoo
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-commits] [NixOS/nixpkgs] cb6a99: haskell-test-framework-quickcheck2: force update t...

2017-06-19 Thread Peter Simons
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: cb6a99d878c34b9e805fd74a7f9d6459d048403b
  
https://github.com/NixOS/nixpkgs/commit/cb6a99d878c34b9e805fd74a7f9d6459d048403b
  Author: Peter Simons 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/development/haskell-modules/configuration-hackage2nix.yaml

  Log Message:
  ---
  haskell-test-framework-quickcheck2: force update to latest version

We need 0.3.0.4 to build successfully. LTS 8.x will catch up, eventually, but
until then we force the update.


  Commit: bb394afa2509fb730f00a8d9a888cf29f58e01a9
  
https://github.com/NixOS/nixpkgs/commit/bb394afa2509fb730f00a8d9a888cf29f58e01a9
  Author: Peter Simons 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/development/haskell-modules/configuration-hackage2nix.yaml

  Log Message:
  ---
  haskell-ghc-syb-utils: force update to latest version

We need 0.2.3.2 to build successfully. LTS 8.x will catch up, eventually, but
until then we force the update.

Closes https://github.com/NixOS/nixpkgs/issues/26689.


  Commit: 534a8efe170215aeb840c7e840d184de5d1b5e28
  
https://github.com/NixOS/nixpkgs/commit/534a8efe170215aeb840c7e840d184de5d1b5e28
  Author: Peter Simons 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/development/haskell-modules/hackage-packages.nix

  Log Message:
  ---
  hackage-packages.nix: automatic Haskell package set update

This update was generated by hackage2nix v2.2.1-11-gb2cb3cb from Hackage 
revision
https://github.com/commercialhaskell/all-cabal-hashes/commit/da66240a000524241e8b6bc53fb83e2740ac01ea.


Compare: https://github.com/NixOS/nixpkgs/compare/10c2f39df0d9...534a8efe1702___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


Re: [Nix-dev] Trying to install the SailfishOS SDK

2017-06-19 Thread David Costa
On Sun, 18 Jun 2017 12:11:59 +0200
David Izquierdo  wrote:

> I'll ask a more general question: Is there any other piece of
> softrware in nixpkgs that's based on a QtInstallerFramework?

Is the installer only a way to avoid packaging the SDK for one thousand
distros? If so we can build the SDK from sources and avoid the
installer at all.

> I suspect the secret sauce will be, unsurprisingly, in the AUR.

The AUR solution calls the installer with a --script option, passing
enough javascript to make the setup fully automated. I hadn't time to
try if this works in a headless environment or not.

Unless the SDK has binary only and unfree components I'd prefer a
package that can build it from source, but I don't know if we have a
guideline about wrapping binary releases.
For instance, is libreoffice compiled from source by hydra or just
wrapped?

> The installer for Sailfish SDK [...] runs via steam-run

Thank you so much ! I didn't think of steam-run, now I can give it a
whirl!
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


[Nix-commits] [NixOS/nixpkgs] 183708: alsa-lib: 1.1.2 -> 1.1.4.1

2017-06-19 Thread Frederik Rietdijk
  Branch: refs/heads/staging
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 1837089670aa7a857aa6485828142f2c5b762173
  
https://github.com/NixOS/nixpkgs/commit/1837089670aa7a857aa6485828142f2c5b762173
  Author: Bart Brouns 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/os-specific/linux/alsa-lib/default.nix

  Log Message:
  ---
  alsa-lib: 1.1.2 -> 1.1.4.1


  Commit: 886f9057e3e86c8b91803568ebc057c9bda190e2
  
https://github.com/NixOS/nixpkgs/commit/886f9057e3e86c8b91803568ebc057c9bda190e2
  Author: Bart Brouns 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/os-specific/linux/alsa-plugins/default.nix

  Log Message:
  ---
  alsa-plugins: 1.1.1 -> 1.1.4


  Commit: 285a837674b2cb8558c1703de150b42048019601
  
https://github.com/NixOS/nixpkgs/commit/285a837674b2cb8558c1703de150b42048019601
  Author: Bart Brouns 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/os-specific/linux/alsa-tools/default.nix

  Log Message:
  ---
  alsa-tools: 1.1.0 -> 1.1.3


  Commit: cb7e49b3df4bb479916fedc536650e3aaf7fecfe
  
https://github.com/NixOS/nixpkgs/commit/cb7e49b3df4bb479916fedc536650e3aaf7fecfe
  Author: Bart Brouns 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/os-specific/linux/alsa-utils/default.nix

  Log Message:
  ---
  alsa-utils: 1.1.2 -> 1.1.4


  Commit: 285b749976452e7848ee28bddfcc0c005bfe180d
  
https://github.com/NixOS/nixpkgs/commit/285b749976452e7848ee28bddfcc0c005bfe180d
  Author: Frederik Rietdijk 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/os-specific/linux/alsa-lib/default.nix
M pkgs/os-specific/linux/alsa-plugins/default.nix
M pkgs/os-specific/linux/alsa-tools/default.nix
M pkgs/os-specific/linux/alsa-utils/default.nix

  Log Message:
  ---
  Merge pull request #26643 from magnetophon/alsa

Update alsa lib, plugins, tools and utils


Compare: https://github.com/NixOS/nixpkgs/compare/55616ad9388d...285b74997645___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nix] 04ed11: Let hydra choose an alternate list of systems

2017-06-19 Thread Shea Levy
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nix
  Commit: 04ed11a978bf70e04042df95f8b125c2977e070d
  
https://github.com/NixOS/nix/commit/04ed11a978bf70e04042df95f8b125c2977e070d
  Author: Shea Levy 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M release.nix

  Log Message:
  ---
  Let hydra choose an alternate list of systems


___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] 10c2f3: vimPlugins.vimwiki: readd

2017-06-19 Thread Jörg Thalheim
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 10c2f39df0d94204bb9fe1197e2d7bce95a48657
  
https://github.com/NixOS/nixpkgs/commit/10c2f39df0d94204bb9fe1197e2d7bce95a48657
  Author: Jörg Thalheim 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/misc/vim-plugins/default.nix

  Log Message:
  ---
  vimPlugins.vimwiki: readd

was remove accidentally removed in 425bc07d43


___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] 76d649: firefox-*-bin: update to latest

2017-06-19 Thread Rok Garbas
  Branch: refs/heads/release-17.03
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 76d649b59484607901f0c1b8f737d8376a904019
  
https://github.com/NixOS/nixpkgs/commit/76d649b59484607901f0c1b8f737d8376a904019
  Author: Rok Garbas 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/applications/networking/browsers/firefox-bin/beta_sources.nix
M pkgs/applications/networking/browsers/firefox-bin/default.nix
A pkgs/applications/networking/browsers/firefox-bin/release_sources.nix
R pkgs/applications/networking/browsers/firefox-bin/sources.nix
M pkgs/applications/networking/browsers/firefox-bin/update.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  firefox-*-bin: update to latest


___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


Re: [Nix-dev] How to build a Haskell binding to a C++ library (OpenCV) on OS X

2017-06-19 Thread Bas van Dijk
Thanks Vincent, you are spot on!

I went with the following change:

https://github.com/LumiGuide/haskell-opencv/commit/6b78bc4c431d693b0bc828cc86708882a26f777c

Bas

On 19 June 2017 at 17:00, Vincent Laporte  wrote:

> Hi,
>
> Notice that if you replace the two occurrences of ‘g++’ by ‘clang++’ in
> the file ‘opencv/Setup.hs’, then ‘nix-build’ succeeds.
>
> This issue might be reported upstream: they apparently need a configure
> step to select the correct name of the C++ compiler.
>
> The following patch also appears to make ‘nix-build’ work.
>
> Regards,
> --
> Vincent.
>
> ```
> diff --git a/opencv/Setup.hs b/opencv/Setup.hs
> index 031daa1..3c92176 100644
> --- a/opencv/Setup.hs
> +++ b/opencv/Setup.hs
> @@ -3,6 +3,6 @@ import System.Environment ( getArgs )
>
>  main = do
>  args <- getArgs
> -let args' | "configure" `elem` args = args ++ ["--with-gcc","g++",
> "--with-ld","g++"]
> +let args' | "configure" `elem` args = args
>| otherwise   = args
>  defaultMainArgs args'
> diff --git a/opencv/opencv.nix b/opencv/opencv.nix
> index a28674c..80ed995 100644
> --- a/opencv/opencv.nix
> +++ b/opencv/opencv.nix
> @@ -103,8 +103,8 @@ mkDerivation ({
>libraryPkgconfigDepends = [ opencv3 ];
>
>configureFlags =
> -[ "--with-gcc=g++"
> -  "--with-ld=g++"
> +[ "--with-gcc=${stdenv.cc}/bin/c++"
> +  "--with-ld=${stdenv.cc}/bin/c++"
>  ];
>
>hardeningDisable = [ "bindnow" ];
> ```
> ___
> 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-commits] [NixOS/nixpkgs] 544693: nix: 1.11.10 -> 1.11.11

2017-06-19 Thread Eelco Dolstra
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 5446934b41cf180aa50c2fb69e12593720522036
  
https://github.com/NixOS/nixpkgs/commit/5446934b41cf180aa50c2fb69e12593720522036
  Author: Eelco Dolstra 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M nixos/modules/installer/tools/nix-fallback-paths.nix
M pkgs/tools/package-management/nix/default.nix

  Log Message:
  ---
  nix: 1.11.10 -> 1.11.11

(cherry picked from commit 7b1e936b24ca60810cdb6d46b68300cd179836f1)


___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] 7b1e93: nix: 1.11.10 -> 1.11.11

2017-06-19 Thread Eelco Dolstra
  Branch: refs/heads/release-17.03
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 7b1e936b24ca60810cdb6d46b68300cd179836f1
  
https://github.com/NixOS/nixpkgs/commit/7b1e936b24ca60810cdb6d46b68300cd179836f1
  Author: Eelco Dolstra 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M nixos/modules/installer/tools/nix-fallback-paths.nix
M pkgs/tools/package-management/nix/default.nix

  Log Message:
  ---
  nix: 1.11.10 -> 1.11.11


___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nix]

2017-06-19 Thread edolstra
  Branch: refs/tags/1.11.11
  Home:   https://github.com/NixOS/nix
___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nix] 00aa7c: Show aws-sdk-cpp log messages

2017-06-19 Thread Eelco Dolstra
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nix
  Commit: 00aa7c6705c073aab8b24ae945ea9a09d5d256aa
  
https://github.com/NixOS/nix/commit/00aa7c6705c073aab8b24ae945ea9a09d5d256aa
  Author: Eelco Dolstra 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M src/libstore/s3-binary-cache-store.cc

  Log Message:
  ---
  Show aws-sdk-cpp log messages


  Commit: 1c969611ba962a860744b2718fa6f989e7be5165
  
https://github.com/NixOS/nix/commit/1c969611ba962a860744b2718fa6f989e7be5165
  Author: Eelco Dolstra 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M src/libstore/s3-binary-cache-store.cc

  Log Message:
  ---
  Suppress "will retry in N ms" for non-retriable errors

Newer versions of aws-sdk-cpp call CalculateDelayBeforeNextRetry()
even for non-retriable errors (like NoSuchKey) whih causes log spam in
hydra-queue-runner.


  Commit: b33621d4253addc4a0cdf1fb7a4082109aaafa78
  
https://github.com/NixOS/nix/commit/b33621d4253addc4a0cdf1fb7a4082109aaafa78
  Author: Eelco Dolstra 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M src/libstore/s3-binary-cache-store.cc

  Log Message:
  ---
  Handle S3Errors::RESOURCE_NOT_FOUND from aws-sdk-cpp

This is returned by recent versions. Also handle NO_SUCH_KEY even
though the library doesn't actually return that at the moment.


  Commit: 82a0d614cf17b2997ba5f895c1db4c2cde41e88d
  
https://github.com/NixOS/nix/commit/82a0d614cf17b2997ba5f895c1db4c2cde41e88d
  Author: Eelco Dolstra 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M src/libstore/s3-binary-cache-store.cc

  Log Message:
  ---
  Support creating S3 caches in other regions than us-east-1


  Commit: a1355917ecf75e1f1f37101505a351743d590121
  
https://github.com/NixOS/nix/commit/a1355917ecf75e1f1f37101505a351743d590121
  Author: Eelco Dolstra 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M src/libstore/s3-binary-cache-store.cc

  Log Message:
  ---
  Disable use of virtual hosting in aws-sdk-cpp

Recently aws-sdk-cpp quietly switched to using S3 virtual host URIs
(https://github.com/aws/aws-sdk-cpp/commit/69d9c53882), i.e. it sends
requests to http://..s3.amazonaws.com rather than
http://.s3.amazonaws.com/. However this interacts
badly with curl connection reuse. For example, if we do the following:

1) Check whether a bucket exists using GetBucketLocation.
2) If it doesn't, create it using CreateBucket.
3) Do operations on the bucket.

then 3) will fail for a minute or so with a NoSuchBucket exception,
presumably because the server being hit is a fallback for cases when
buckets don't exist.

Disabling the use of virtual hosts ensures that 3) succeeds
immediately. (I don't know what S3's consistency guarantees are for
bucket creation, but in practice buckets appear to be available
immediately.)


Compare: https://github.com/NixOS/nix/compare/1888f7889b10...a1355917ecf7___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] 2d8b86: pythonPackages.sphinx: Tests seem to be broken on ...

2017-06-19 Thread Shea Levy
  Branch: refs/heads/release-17.03
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 2d8b86954bd7d4bd4a69d12c519c48dc47e978c0
  
https://github.com/NixOS/nixpkgs/commit/2d8b86954bd7d4bd4a69d12c519c48dc47e978c0
  Author: Shea Levy 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/top-level/python-packages.nix

  Log Message:
  ---
  pythonPackages.sphinx: Tests seem to be broken on darwin


___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


Re: [Nix-dev] In multi-user Nix, let the daemon handle creation of GC roots

2017-06-19 Thread sbaugh
Tuomas Tynkkynen  writes:
> How would deleting indirect roots work? Keep in mind that currently
> users can simply delete any result symlinks from nix-build with 'rm' or
> any other file management tool to remove the root. That won't work
> over NFS because such an indirect root could be created on a different
> filesystem (e.g. any local fs) that the machine running nix-daemon can't
> access to verify whether the symlink is still there.
>
> Additionally there's the problem of paths being in use by running processes
> on other machines being garbage collected under their feet.

Both of these could be handled client-side. Instead of having a per-user
roots directory in /nix/var/nix, we would have some truly per-user
directory (in /home/user/.var/nix/ or something) where roots are
put. We'd also have some kind of state tracking for what roots we've
told the nix-daemon about. Then when we one runs nix-store --gc, it
would:

1. Clean up broken links in .var/nix/roots
2. Search for runtime roots as the current user (this, incidentally, is
a critical feature on its own; my systems run with an unprivileged
nix-daemon and hidepid=2, so the nix-daemon (as it should be) cannot
determine what programs other users are running)
3. Tell the nix-daemon to remove any roots that were previously
registered and are no longer present, excluding roots that are currently
runtime roots.

Unfortunately, this would mean that if a user runs a program out of the
store, without first contacting the daemon and registering a (temporary)
root, the store paths for that program could be GC'd out from under
it. But I think that makes sense, anyway - the runtime root stuff
inherently requires a lot of privileges for the nix-daemon, which are
impractical/inadvisable to grant it in containerized/multi-host setups.
Much better to move runtime root detection to be as local as possible.

This would be an optional mode of operation, of course, global runtime
roots are still helpful if you can get them.

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] How to build a Haskell binding to a C++ library (OpenCV) on OS X

2017-06-19 Thread Vincent Laporte
Hi,

Notice that if you replace the two occurrences of ‘g++’ by ‘clang++’ in
the file ‘opencv/Setup.hs’, then ‘nix-build’ succeeds.

This issue might be reported upstream: they apparently need a configure
step to select the correct name of the C++ compiler.

The following patch also appears to make ‘nix-build’ work.

Regards,
--
Vincent.

```
diff --git a/opencv/Setup.hs b/opencv/Setup.hs
index 031daa1..3c92176 100644
--- a/opencv/Setup.hs
+++ b/opencv/Setup.hs
@@ -3,6 +3,6 @@ import System.Environment ( getArgs )

 main = do
 args <- getArgs
-let args' | "configure" `elem` args = args ++ ["--with-gcc","g++",
"--with-ld","g++"]
+let args' | "configure" `elem` args = args
   | otherwise   = args
 defaultMainArgs args'
diff --git a/opencv/opencv.nix b/opencv/opencv.nix
index a28674c..80ed995 100644
--- a/opencv/opencv.nix
+++ b/opencv/opencv.nix
@@ -103,8 +103,8 @@ mkDerivation ({
   libraryPkgconfigDepends = [ opencv3 ];

   configureFlags =
-[ "--with-gcc=g++"
-  "--with-ld=g++"
+[ "--with-gcc=${stdenv.cc}/bin/c++"
+  "--with-ld=${stdenv.cc}/bin/c++"
 ];

   hardeningDisable = [ "bindnow" ];
``` 
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


[Nix-commits] [NixOS/nixpkgs] ffa048: afl: 2.42b -> 2.43b

2017-06-19 Thread Tuomas Tynkkynen
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: ffa04893104debbc01a434e8cae6a26af4ab3fa4
  
https://github.com/NixOS/nixpkgs/commit/ffa04893104debbc01a434e8cae6a26af4ab3fa4
  Author: Tuomas Tynkkynen 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/tools/security/afl/default.nix

  Log Message:
  ---
  afl: 2.42b -> 2.43b


  Commit: f19f6317ea1bc2d730bc8a80df08a8456a8bbf5a
  
https://github.com/NixOS/nixpkgs/commit/f19f6317ea1bc2d730bc8a80df08a8456a8bbf5a
  Author: Tuomas Tynkkynen 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/tools/system/fio/default.nix

  Log Message:
  ---
  fio: 2.20 -> 2.21


  Commit: 31703358bd38845e5bcc47df3c564f0e132272c5
  
https://github.com/NixOS/nixpkgs/commit/31703358bd38845e5bcc47df3c564f0e132272c5
  Author: Tuomas Tynkkynen 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/tools/misc/yle-dl/default.nix

  Log Message:
  ---
  yle-dl: 2.16 -> 2.17


Compare: https://github.com/NixOS/nixpkgs/compare/7d747e1b1681...31703358bd38___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] 9d0441: jackaudio: 1.9.10 -> 1.9.11-RC1

2017-06-19 Thread goibhniu
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 9d0441434db401bf5fbfb0b8681e17ce7a04f3cb
  
https://github.com/NixOS/nixpkgs/commit/9d0441434db401bf5fbfb0b8681e17ce7a04f3cb
  Author: Bart Brouns 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/development/libraries/libsoundio/default.nix
M pkgs/misc/jackaudio/default.nix
R pkgs/misc/jackaudio/jack-gcc5.patch
R pkgs/misc/jackaudio/unstable.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  jackaudio: 1.9.10 -> 1.9.11-RC1


  Commit: 7d747e1b16815b88f40f0bd03d526ad48364d164
  
https://github.com/NixOS/nixpkgs/commit/7d747e1b16815b88f40f0bd03d526ad48364d164
  Author: goibhniu 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/development/libraries/libsoundio/default.nix
M pkgs/misc/jackaudio/default.nix
R pkgs/misc/jackaudio/jack-gcc5.patch
R pkgs/misc/jackaudio/unstable.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  Merge pull request #26626 from magnetophon/jackaudio

jackaudio: 1.9.10 -> 1.9.11-RC1


Compare: https://github.com/NixOS/nixpkgs/compare/b1f76ebb738d...7d747e1b1681___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] a19514: firefox-beta-bin: 54.0b13 -> 55.0b2

2017-06-19 Thread Rok Garbas
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: a19514df76481c2306e84811bc6f188c2fd1eeff
  
https://github.com/NixOS/nixpkgs/commit/a19514df76481c2306e84811bc6f188c2fd1eeff
  Author: Rok Garbas 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/applications/networking/browsers/firefox-bin/beta_sources.nix

  Log Message:
  ---
  firefox-beta-bin: 54.0b13 -> 55.0b2


  Commit: b1f76ebb738df969cce17b38dce5bd17f406290d
  
https://github.com/NixOS/nixpkgs/commit/b1f76ebb738df969cce17b38dce5bd17f406290d
  Author: Rok Garbas 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/applications/networking/browsers/firefox-bin/devedition_sources.nix

  Log Message:
  ---
  firefox-devedition-bin: 54.0b14 -> 55.0b2


Compare: https://github.com/NixOS/nixpkgs/compare/311d06a7873c...b1f76ebb738d___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-dev] displaymanager: gdm broken?

2017-06-19 Thread Roland Koebler
Hi,

if I chose gdm as display-manger in NixOS, gdm fails to show a
login-screen. Is this a known bug and is there a solution or
workaround?

Chosing slim or lightdm as display-manager works (but slim is *really*
user-unfriendly when using different sessions/windowmanagers, since
it shows the selected session as white text on nearly-white background
and does not tell you how to select which session to use).

Details:

- /etc/nixos/configuration.nix:

services.xserver.displayManager.gdm.enable = true;

- Then:

  # nixos-rebuild switch
  # systemctl restart display-manager.service

- Afterwards, nothing seems to happen; tty1..tty6 all show a text-login-
  prompt. gdm is running, but no X11/login-screen is shown.

- # systemctl status display-manager.service
 
  display-manager.service - X11 Server
 Loaded: loaded 
(/nix/store/vpyvxzznl4b7s2sbfgz7daaw0jmj0hb3-unit-display-manager.service/display-manager.service;
 linked; vendor preset: enabled)
 Active: active (running) since Mon 2017-06-19 15:49:30 CEST; 1min 45s ago
Process: 22160 
ExecStartPre=/nix/store/k3ahl02n8pw0cpa4dahmi25jwfzrga7v-unit-script/bin/display-manager-pre-start
 (code=exited, status=0/SUCCESS)
   Main PID: 22163 (gdm)
  Tasks: 6 (limit: 4915)
 CGroup: /system.slice/display-manager.service
 ├─22163 
/nix/store/nq1wc8kbl7r68d7kq5yh8giwv5h8r86s-gdm-3.22.0/bin/gdm
 └─22168 gdm-session-worker [pam/gdm-launch-environment]

  Jun 19 15:49:30 rala systemd[1]: Stopped X11 Server.
  Jun 19 15:49:30 rala systemd[1]: Starting X11 Server...
  Jun 19 15:49:30 rala systemd[1]: Started X11 Server.
  Jun 19 15:49:30 rala gdm[22163]: Failed to list cached users: 
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name 
org.freedesktop.Accounts was not provided by any .service files

- ps x | grep gdm

  22163 ?Ssl0:00 
/nix/store/nq1wc8kbl7r68d7kq5yh8giwv5h8r86s-gdm-3.22.0/bin/gdm
  22168 ?Sl 0:00 gdm-session-worker [pam/gdm-launch-environment]
 

thanks
Roland

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


[Nix-commits] [NixOS/nixpkgs] 53b6f1: serd: 0.24.0 -> 0.26.0

2017-06-19 Thread Joachim F
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 53b6f15d34630f005c4faeb53a5842b691235504
  
https://github.com/NixOS/nixpkgs/commit/53b6f15d34630f005c4faeb53a5842b691235504
  Author: Bart Brouns 
  Date:   2017-06-16 (Fri, 16 Jun 2017)

  Changed paths:
M pkgs/development/libraries/serd/default.nix

  Log Message:
  ---
  serd: 0.24.0 -> 0.26.0


  Commit: 311d06a7873c5ded8fd51d07465ca2f94ca0d22c
  
https://github.com/NixOS/nixpkgs/commit/311d06a7873c5ded8fd51d07465ca2f94ca0d22c
  Author: Joachim F 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/development/libraries/serd/default.nix

  Log Message:
  ---
  Merge pull request #26648 from magnetophon/serd

serd: 0.24.0 -> 0.26.0


Compare: https://github.com/NixOS/nixpkgs/compare/babfd23364cc...311d06a7873c___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] 6ee183: musescore: 2.0.3 -> 2.1.0

2017-06-19 Thread Joachim F
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 6ee183b7f210a302d0f71e810dc4bf3a74d108e9
  
https://github.com/NixOS/nixpkgs/commit/6ee183b7f210a302d0f71e810dc4bf3a74d108e9
  Author: Jos van den Oever 
  Date:   2017-06-16 (Fri, 16 Jun 2017)

  Changed paths:
M pkgs/applications/audio/musescore/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  musescore: 2.0.3 -> 2.1.0


  Commit: babfd23364cc5fbd14e80c5d6fc639b0eb394b5a
  
https://github.com/NixOS/nixpkgs/commit/babfd23364cc5fbd14e80c5d6fc639b0eb394b5a
  Author: Joachim F 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/applications/audio/musescore/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  Merge pull request #26663 from vandenoever/musescore

musescore: 2.0.3 -> 2.1.0


Compare: https://github.com/NixOS/nixpkgs/compare/56be4bee34ad...babfd23364cc___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nix] 11dd08: macOS: Ugly hack to make the tests succeed

2017-06-19 Thread Eelco Dolstra
  Branch: refs/heads/1.11-maintenance
  Home:   https://github.com/NixOS/nix
  Commit: 11dd08f02e842722fb391bef1ce72e2df0f7b3ba
  
https://github.com/NixOS/nix/commit/11dd08f02e842722fb391bef1ce72e2df0f7b3ba
  Author: Eelco Dolstra 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M src/libstore/build.cc
M tests/common.sh.in

  Log Message:
  ---
  macOS: Ugly hack to make the tests succeed

Sandboxes cannot be nested, so if Nix's build runs inside a sandbox,
it cannot use a sandbox itself. I don't see a clean way to detect
whether we're in a sandbox, so use a test-specific hack.

https://github.com/NixOS/nix/issues/1413
(cherry picked from commit 1888f7889b107ecbca7ad47f3a1132c32a17d227)


  Commit: 026f4f9ae881d9196422981f1f85fa3137525014
  
https://github.com/NixOS/nix/commit/026f4f9ae881d9196422981f1f85fa3137525014
  Author: Eelco Dolstra 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M src/libstore/local-store.cc

  Log Message:
  ---
  macOS: Remove flags

In particular, UF_IMMUTABLE (uchg) needs to be cleared to allow the
path to be garbage-collected or optimised.

See https://github.com/NixOS/nixpkgs/issues/25819.
+   the file from being garbage-collected.

(cherry picked from commit b5bdfdef7320d74a98af1e53d64371e0cef2dbbe)


Compare: https://github.com/NixOS/nix/compare/3e574c3691fb...026f4f9ae881___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nix] b5bdfd: macOS: Remove flags

2017-06-19 Thread Eelco Dolstra
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nix
  Commit: b5bdfdef7320d74a98af1e53d64371e0cef2dbbe
  
https://github.com/NixOS/nix/commit/b5bdfdef7320d74a98af1e53d64371e0cef2dbbe
  Author: Eelco Dolstra 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M src/libstore/local-store.cc

  Log Message:
  ---
  macOS: Remove flags

In particular, UF_IMMUTABLE (uchg) needs to be cleared to allow the
path to be garbage-collected or optimised.

See https://github.com/NixOS/nixpkgs/issues/25819.
+   the file from being garbage-collected.


  Commit: 1888f7889b107ecbca7ad47f3a1132c32a17d227
  
https://github.com/NixOS/nix/commit/1888f7889b107ecbca7ad47f3a1132c32a17d227
  Author: Eelco Dolstra 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M src/libstore/build.cc
M tests/common.sh.in

  Log Message:
  ---
  macOS: Ugly hack to make the tests succeed

Sandboxes cannot be nested, so if Nix's build runs inside a sandbox,
it cannot use a sandbox itself. I don't see a clean way to detect
whether we're in a sandbox, so use a test-specific hack.

https://github.com/NixOS/nix/issues/1413


Compare: https://github.com/NixOS/nix/compare/a10951de0811...1888f7889b10___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


Re: [Nix-dev] How to build a Haskell binding to a C++ library (OpenCV) on OS X

2017-06-19 Thread Laverne Schrock
On Sun, 2017-06-18 at 21:47 +0200, Bas van Dijk wrote:
> Good evening,
> 
> I'm trying to build our Haskell binding to the OpenCV C++ library on
> OS X. The following commands should do the job:
> 
>   git clone https://github.com/LumiGuide/haskell-opencv.git
>   cd opencv
>   nix-build
> 
> Unfortunately it fails during the configure phase with:
> 
>   Setup: Cannot find the program 'gcc'.   User-specified path 'g++'
> does not refer  to an executable and the program is not on the system
> path.
> 
> If I add gcc to the build dependencies of opencv/opencv.nix using: 
> 
>   buildDepends = [ gcc ];
> 
> and invoke nix-build again I get a different error:
> 
>   Setup: Missing dependencies on foreign libraries:  * Missing C
> libraries: stdc++, opencv_stitching, opencv_superres, 
> opencv_videostab, opencv_aruco, opencv_bgsegm, opencv_bioinspired, 
> opencv_ccalib, opencv_dpm, opencv_freetype, opencv_fuzzy, 
> opencv_line_descriptor, opencv_optflow, opencv_reg, opencv_saliency, 
> opencv_stereo, opencv_structured_light, opencv_phase_unwrapping,
> opencv_rgbd,  opencv_surface_matching, opencv_tracking,
> opencv_datasets, opencv_text,  opencv_face, opencv_plot, opencv_dnn,
> opencv_xfeatures2d, opencv_shape,  opencv_video, opencv_ximgproc,
> opencv_calib3d, opencv_features2d,  opencv_flann, opencv_xobjdetect,
> opencv_objdetect, opencv_ml, opencv_xphoto,  opencv_highgui,
> opencv_videoio, opencv_imgcodecs, opencv_photo,  opencv_imgproc,
> opencv_core  This problem can usually be solved by installing the
> system packages that  provide these libraries (you may need the "-
> dev" versions). If the libraries  are already installed but in a non-
> standard location then you can use the  flags --extra-include-dirs=
> and --extra-lib-dirs= to specify where they are.
> 
> Any ideas how to get this working?
> 
> Regards,
> 
> Bas
> 

Have you tried adding opencv as a buildInput? Maybe something like:

`buildInputs = [ stdenv opencv3 ] ;`?

But I have no idea what `libraryPkgconfigDepends = [ opencv3 ];` is
supposed to be doing.___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


[Nix-commits] [NixOS/nixpkgs] 56be4b: cabal-install: fix closure size on OSX

2017-06-19 Thread Domen Kožar
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 56be4bee34ad4913f5697f6c920090ab5651c668
  
https://github.com/NixOS/nixpkgs/commit/56be4bee34ad4913f5697f6c920090ab5651c668
  Author: Domen Kožar 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  cabal-install: fix closure size on OSX


___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] 76beb0: python.pkgs: several maintenance bumps

2017-06-19 Thread Frederik Rietdijk
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 76beb0831384b5ae53592513507524990017e973
  
https://github.com/NixOS/nixpkgs/commit/76beb0831384b5ae53592513507524990017e973
  Author: Frederik Rietdijk 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/development/python-modules/Nikola/default.nix
M pkgs/development/python-modules/aenum/default.nix
M pkgs/development/python-modules/asgi_redis/default.nix
M pkgs/development/python-modules/channels/default.nix
M pkgs/development/python-modules/edward/default.nix
M pkgs/development/python-modules/fonttools/default.nix
M pkgs/development/python-modules/keras/default.nix
M pkgs/development/python-modules/markdown2.nix
M pkgs/development/python-modules/netcdf4/default.nix
M pkgs/development/python-modules/phonenumbers/default.nix
M pkgs/development/python-modules/plotly/default.nix
M pkgs/development/python-modules/pyroute2/default.nix
M pkgs/development/python-modules/trezor/default.nix
M pkgs/development/python-modules/typed-ast/default.nix
M pkgs/development/python-modules/xarray/default.nix
M pkgs/development/python-modules/yarl/default.nix

  Log Message:
  ---
  python.pkgs: several maintenance bumps


___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] 392f4a: kde-applications: fix command in doc

2017-06-19 Thread Peter Hoeg
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 392f4acee9b1ed4ef6a6b617932be8dd5b1cba71
  
https://github.com/NixOS/nixpkgs/commit/392f4acee9b1ed4ef6a6b617932be8dd5b1cba71
  Author: Peter Hoeg 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/applications/kde/fetch.sh

  Log Message:
  ---
  kde-applications: fix command in doc


  Commit: 9193bcb6b4488a768ca96dc542f16866758a4b74
  
https://github.com/NixOS/nixpkgs/commit/9193bcb6b4488a768ca96dc542f16866758a4b74
  Author: Peter Hoeg 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/applications/kde/default.nix
M pkgs/applications/kde/fetch.sh
M pkgs/applications/kde/srcs.nix
M pkgs/desktops/plasma-5/fetch.sh
M pkgs/development/libraries/kde-frameworks/fetch.sh

  Log Message:
  ---
  kde-applications: 17.04.1 -> 17.04.2

use https as the remote server expects it


Compare: https://github.com/NixOS/nixpkgs/compare/63011015b939...9193bcb6b448___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] 630110: virtmanager-qt: 0.43.70.2 -> 0.43.72

2017-06-19 Thread Peter Hoeg
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 63011015b93986a98760b7553cf0a8938d1d74bb
  
https://github.com/NixOS/nixpkgs/commit/63011015b93986a98760b7553cf0a8938d1d74bb
  Author: Peter Hoeg 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/applications/virtualization/virt-manager/qt.nix

  Log Message:
  ---
  virtmanager-qt: 0.43.70.2 -> 0.43.72


___
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

2017-06-19 Thread joachifm
On Mon, Jun 19, 2017, at 13:00, Roland Koebler wrote:
> Hi,
> 
> > > - Up to date versions:
> > >   Currently, NixOS only contains outdated Firefox-versions (53.0.3,
> > >   52.1.2esr);
> > >   there are newer official versions since about 1 week.
> > >   How long does it usually take until the newest version gets packaged?
> > 
> > Both the release branch and master carry firefox 54. Which channel are
> > following?
> 
> The default branch after installing NixOS:
> # nix-channel --list
> nixos https://nixos.org/channels/nixos-17.03

Unfortunately, the release channel has been blocked for a while; I
failed to realize how much it is lagging behind the release branch.
Unless you wish to pull nix expressions directly from the release
branch, there's
not much else to do than wait for the channel to catch up. That is, the
updates are there, they are just not being disseminated, for reasons
unrelated to firefox specifically.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] firefox package questions

2017-06-19 Thread Roland Koebler
Hi,

> > - Up to date versions:
> >   Currently, NixOS only contains outdated Firefox-versions (53.0.3,
> >   52.1.2esr);
> >   there are newer official versions since about 1 week.
> >   How long does it usually take until the newest version gets packaged?
> 
> Both the release branch and master carry firefox 54. Which channel are
> following?

The default branch after installing NixOS:
# nix-channel --list
nixos https://nixos.org/channels/nixos-17.03

The package-search on http://nixos.org/nixos/packages.html also only shows
the outdated versions.


thanks
Roland
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] firefox package questions

2017-06-19 Thread joachifm
On Mon, Jun 19, 2017, at 12:25, Roland Koebler wrote:
> Hi,
> 
> [ ...]
> - Up to date versions:
>   Currently, NixOS only contains outdated Firefox-versions (53.0.3,
>   52.1.2esr);
>   there are newer official versions since about 1 week.
>   How long does it usually take until the newest version gets packaged?

Both the release branch and master carry firefox 54. Which channel are
following?
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


[Nix-commits] [NixOS/nixpkgs] 102c00: hardware: add enableRedistributalFirmware

2017-06-19 Thread Jörg Thalheim
  Branch: refs/heads/release-17.03
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 102c006b606b3fdd9fb3b7dc64447f3b365051f7
  
https://github.com/NixOS/nixpkgs/commit/102c006b606b3fdd9fb3b7dc64447f3b365051f7
  Author: Jörg Thalheim 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M nixos/modules/hardware/all-firmware.nix
M nixos/modules/hardware/network/broadcom-43xx.nix
M nixos/modules/hardware/network/intel-2030.nix
M nixos/modules/hardware/network/intel-2100bg.nix
M nixos/modules/hardware/network/intel-3945abg.nix
M nixos/modules/hardware/network/intel-4965agn.nix
M nixos/modules/hardware/network/intel-5000.nix
M nixos/modules/hardware/network/intel-5150.nix
M nixos/modules/hardware/network/intel-6000.nix
M nixos/modules/hardware/network/intel-6000g2a.nix
M nixos/modules/hardware/network/intel-6000g2b.nix
M nixos/modules/hardware/network/ralink.nix
M nixos/modules/hardware/network/rtl8192c.nix
M nixos/modules/hardware/video/radeon.nix
M nixos/modules/installer/scan/not-detected.nix
M nixos/modules/profiles/all-hardware.nix

  Log Message:
  ---
  hardware: add enableRedistributalFirmware

Due the recent inclusion of broadcom-bt-firmware in enableAllFirmware,
it was required to set `nixpkgs.config.allowUnfree` to obtain the full
list. To make this dependency more explicit an assertion is added and an
alternative option `enableRedistributalFirmware` is provided to only
obtain firmware with an license allowing redistribution.

(cherry picked from commit 05aa80c06ab45da7c44b6bf1b858a87815665c71)


  Commit: cb90e6a0361554d01b7a576af6c6fae4c28d7513
  
https://github.com/NixOS/nixpkgs/commit/cb90e6a0361554d01b7a576af6c6fae4c28d7513
  Author: Jörg Thalheim 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M nixos/modules/hardware/all-firmware.nix
M nixos/modules/hardware/network/broadcom-43xx.nix
M nixos/modules/hardware/network/intel-2030.nix
M nixos/modules/hardware/network/intel-2100bg.nix
M nixos/modules/hardware/network/intel-3945abg.nix
M nixos/modules/hardware/network/intel-4965agn.nix
M nixos/modules/hardware/network/intel-5000.nix
M nixos/modules/hardware/network/intel-5150.nix
M nixos/modules/hardware/network/intel-6000.nix
M nixos/modules/hardware/network/intel-6000g2a.nix
M nixos/modules/hardware/network/intel-6000g2b.nix
M nixos/modules/hardware/network/ralink.nix
M nixos/modules/hardware/network/rtl8192c.nix
M nixos/modules/hardware/video/radeon.nix
M nixos/modules/installer/scan/not-detected.nix
M nixos/modules/profiles/all-hardware.nix

  Log Message:
  ---
  hardware.enableRedistributableFirmware: fix spelling error

(cherry picked from commit e69758567559e3dea4577921364328b6f98e4ed3)


Compare: https://github.com/NixOS/nixpkgs/compare/1e2cca428f97...cb90e6a03615___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-dev] firefox package questions

2017-06-19 Thread Roland Koebler
Hi,

I have recently installed NixOS on a PC and noticed some unexpected
things with Firefox on NixOS:

- Up to date versions:
  Currently, NixOS only contains outdated Firefox-versions (53.0.3, 52.1.2esr);
  there are newer official versions since about 1 week.
  How long does it usually take until the newest version gets packaged?

- Name:
  I installed firefox-esr, but the started Firefox called itself "Nightly".
  I searched the mailinglist, and it looks like it is called "Nightly"
  because it is built by NixOS/Hydra.
  I think this is irritating for most users; since the name probably
  cannot be changed to "Firefox", it would be nice if it would be
  mentioned e.g. in the Nix-manual (or maybe in the Firefox-About-Dialog?).

- Data choices:
  After starting Firefox, it tells me:
  "Nightly automatically sends some data to Mozilla so that we can
   improve your experience. [Choose What I Share]"

  When I click on "Choose What I Share", I get to the data-choices-
  preferences-dialog (Preferences -> Advanced -> Data Choices),
  but this dialog is empty.

  So, does the NixOS-Nightly-Firefox automatically send data?
  Is there a way to prevent this?
  And is this documented somewhere?

- Parallel install of esr and newest version:
  I would like to install both firefox and firefox-esr and access both
  in the same environment (without switching environments).
  Would it be possible to e.g. add a "firefox-esr"-executable-symlink by
  firefox-esr, so that it works as follows?
  - $ firefox
starts the newest version if both firefox and firefox-esr are installed,
or the newest or the esr version if only one is installed
  - $ firefox-esr
always starts the esr-version


thanks
Roland

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] In multi-user Nix, let the daemon handle creation of GC roots

2017-06-19 Thread Tuomas Tynkkynen
2017-06-18 5:49 GMT+03:00  :
>
> My understanding is that currently GC roots (symlinks in
> profiles/gcroots) are created and deleted directly by the various Nix
> tools, even in multi-user configurations. (whether on NixOS or on
> another Linux distribution)
>
> It seems to me that it would be useful for the daemon to handle making
> GC roots, and forbid users to directly create GC roots.

How would deleting indirect roots work? Keep in mind that currently
users can simply delete any result symlinks from nix-build with 'rm' or
any other file management tool to remove the root. That won't work
over NFS because such an indirect root could be created on a different
filesystem (e.g. any local fs) that the machine running nix-daemon can't
access to verify whether the symlink is still there.

Additionally there's the problem of paths being in use by running processes
on other machines being garbage collected under their feet.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


[Nix-commits] [NixOS/nixpkgs] 5413bf: Speed up parsing @args.rsp compiler arguments

2017-06-19 Thread Domen Kožar
  Branch: refs/heads/staging
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 5413bfa8e37d8fe7b3f5a80786d7ac6712e87089
  
https://github.com/NixOS/nixpkgs/commit/5413bfa8e37d8fe7b3f5a80786d7ac6712e87089
  Author: Orivej Desh 
  Date:   2017-06-14 (Wed, 14 Jun 2017)

  Changed paths:
M pkgs/build-support/cc-wrapper/utils.sh

  Log Message:
  ---
  Speed up parsing @args.rsp compiler arguments

Improves upon #25205

https://gist.github.com/pbogdan/9d6986bf931b58a70d75e14eb40ee8a1 parsing time is
reduced from one minute to one second


  Commit: 55616ad9388dd1f2a7c591d7d4a0400f49c30e78
  
https://github.com/NixOS/nixpkgs/commit/55616ad9388dd1f2a7c591d7d4a0400f49c30e78
  Author: Domen Kožar 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/build-support/cc-wrapper/utils.sh

  Log Message:
  ---
  Merge pull request #26554 from orivej/rsp

Speed up parsing @args.rsp compiler arguments


Compare: https://github.com/NixOS/nixpkgs/compare/66fdb94f5011...55616ad9388d___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


Re: [Nix-dev] In multi-user Nix, let the daemon handle creation of GC roots

2017-06-19 Thread Maarten Hoogendoorn
There appear to be sufficient people in favor of this feature. Time for a
RFC?

2017-06-19 11:28 GMT+02:00 Adrien Devresse :

> Note, sharing /nix is already not really possible because the metadata is
> stored in sqlite and its locking does not play nice with nfs. (*)
>
>
> Sharing is possible if you use a distributed file system that handle
> consistency correctly, like GPFS, Lustre or similar.
>
> We use Nix in shared model in production everyday in my organization.
>
>
> Another issue is that right now, nix does not /require/ the daemon to
> work, and this proposal would change that.
>
>
> It is not really an issue. It could be done the same way it is done
> currently. The client does the GC management if configured in single user
> mode, or does it through the daemon if configure in multi user mode.
>
> The strong point here is that only ONE user should write to /nix :
> - Yourself in single user mode
> - The nix-daemon in multi user mode.
>
> This is not the case currently.
>
>
> The features that come to mind:
> - Allows later implementing policy about GC roots/space consumption
> - Allows avoiding complicated locking around doing GC
> - Allows /nix to be put on network storage transparently
> - Allows /nix to be shared between containers transparently
>
> The network-storage-/nix use case may be the most important, since there
> seems to be a lot of people who want to put /nix on NFS.
>
> Thoughts? Has this been considered?
>
>
> I strongly support your idea.
>
> The roots / profile implementation is currently hacky, not really
> reliable, and potentially a security issue.
>
>
> Regards,
> Adev
>
>
> Le 18. 06. 17 à 07:43, Wout Mertens a écrit :
>
> Note, sharing /nix is already not really possible because the metadata is
> stored in sqlite and its locking does not play nice with nfs. (*)
> Another issue is that right now, nix does not /require/ the daemon to
> work, and this proposal would change that.
>
> However, you can totally share /nix between multiple hosts, you just have
> to pinkie-promise not to write to it from multiple hosts at the same time.
>
> Wout.
>
> (*): the reason is that fnctl() locking is broken on many implementations.
> If this testing project https://sourceforge.net/projects/locktests/files/?
> source=navbar says it's not broken, you can totally use nix on nfs.
>
> On Sun, 18 Jun 2017, 5:10 AM ,  wrote:
>
>>
>> My understanding is that currently GC roots (symlinks in
>> profiles/gcroots) are created and deleted directly by the various Nix
>> tools, even in multi-user configurations. (whether on NixOS or on
>> another Linux distribution)
>>
>> It seems to me that it would be useful for the daemon to handle making
>> GC roots, and forbid users to directly create GC roots.
>>
>> The features that come to mind:
>> - Allows later implementing policy about GC roots/space consumption
>> - Allows avoiding complicated locking around doing GC
>> - Allows /nix to be put on network storage transparently
>> - Allows /nix to be shared between containers transparently
>>
>> The network-storage-/nix use case may be the most important, since there
>> seems to be a lot of people who want to put /nix on NFS.
>>
>> Thoughts? Has this been considered?
>>
>> Thanks for Nix!
>>
>> ___
>> nix-dev mailing list
>> nix-dev@lists.science.uu.nl
>> https://mailman.science.uu.nl/mailman/listinfo/nix-dev
>>
>
>
> ___
> nix-dev mailing 
> listnix-...@lists.science.uu.nlhttps://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 mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] In multi-user Nix, let the daemon handle creation of GC roots

2017-06-19 Thread Adrien Devresse
> Note, sharing /nix is already not really possible because the metadata
> is stored in sqlite and its locking does not play nice with nfs. (*)

Sharing is possible if you use a distributed file system that handle
consistency correctly, like GPFS, Lustre or similar.

We use Nix in shared model in production everyday in my organization.


> Another issue is that right now, nix does not /require/ the daemon to
> work, and this proposal would change that.

It is not really an issue. It could be done the same way it is done
currently. The client does the GC management if configured in single
user mode, or does it through the daemon if configure in multi user mode.

The strong point here is that only ONE user should write to /nix :
- Yourself in single user mode
- The nix-daemon in multi user mode.

This is not the case currently.

>
> The features that come to mind:
> - Allows later implementing policy about GC roots/space consumption
> - Allows avoiding complicated locking around doing GC
> - Allows /nix to be put on network storage transparently
> - Allows /nix to be shared between containers transparently
>
> The network-storage-/nix use case may be the most important, since there
> seems to be a lot of people who want to put /nix on NFS.
>
> Thoughts? Has this been considered?

I strongly support your idea.

The roots / profile implementation is currently hacky, not really
reliable, and potentially a security issue.


Regards,
Adev


Le 18. 06. 17 à 07:43, Wout Mertens a écrit :
>
> Note, sharing /nix is already not really possible because the metadata
> is stored in sqlite and its locking does not play nice with nfs. (*)
>
> Another issue is that right now, nix does not /require/ the daemon to
> work, and this proposal would change that.
>
> However, you can totally share /nix between multiple hosts, you just
> have to pinkie-promise not to write to it from multiple hosts at the
> same time.
>
> Wout.
>
> (*): the reason is that fnctl() locking is broken on many
> implementations. If this testing
> project https://sourceforge.net/projects/locktests/files/?source=navbar says
> it's not broken, you can totally use nix on nfs.
>
> On Sun, 18 Jun 2017, 5:10 AM ,  > wrote:
>
>
> My understanding is that currently GC roots (symlinks in
> profiles/gcroots) are created and deleted directly by the various Nix
> tools, even in multi-user configurations. (whether on NixOS or on
> another Linux distribution)
>
> It seems to me that it would be useful for the daemon to handle making
> GC roots, and forbid users to directly create GC roots.
>
> The features that come to mind:
> - Allows later implementing policy about GC roots/space consumption
> - Allows avoiding complicated locking around doing GC
> - Allows /nix to be put on network storage transparently
> - Allows /nix to be shared between containers transparently
>
> The network-storage-/nix use case may be the most important, since
> there
> seems to be a lot of people who want to put /nix on NFS.
>
> Thoughts? Has this been considered?
>
> Thanks for Nix!
>
> ___
> 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




signature.asc
Description: OpenPGP digital signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


[Nix-commits] [NixOS/nixpkgs] 1e2cca: aws-sdk-cpp: Better fix for the failing credential...

2017-06-19 Thread Eelco Dolstra
  Branch: refs/heads/release-17.03
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 1e2cca428f97660e9d5f80df0edbadf3bed6a654
  
https://github.com/NixOS/nixpkgs/commit/1e2cca428f97660e9d5f80df0edbadf3bed6a654
  Author: Eelco Dolstra 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/development/libraries/aws-sdk-cpp/default.nix

  Log Message:
  ---
  aws-sdk-cpp: Better fix for the failing credentials test

(cherry picked from commit c1e5ca92b774325f6779bda203e3c04e60ed087d)


___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] c1e5ca: aws-sdk-cpp: Better fix for the failing credential...

2017-06-19 Thread Eelco Dolstra
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: c1e5ca92b774325f6779bda203e3c04e60ed087d
  
https://github.com/NixOS/nixpkgs/commit/c1e5ca92b774325f6779bda203e3c04e60ed087d
  Author: Eelco Dolstra 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/development/libraries/aws-sdk-cpp/default.nix

  Log Message:
  ---
  aws-sdk-cpp: Better fix for the failing credentials test


___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] 8c6fad: nixpkgs manual: advise against overriding whole ph...

2017-06-19 Thread Frederik Rietdijk
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 8c6fada372dba386c25e209a4dff440e2da5a0be
  
https://github.com/NixOS/nixpkgs/commit/8c6fada372dba386c25e209a4dff440e2da5a0be
  Author: Vladimír Čunát 
  Date:   2017-06-03 (Sat, 03 Jun 2017)

  Changed paths:
M doc/stdenv.xml

  Log Message:
  ---
  nixpkgs manual: advise against overriding whole phases

I've seen that mistake at least a few times already, e.g.
https://github.com/NixOS/nixpkgs/pull/26209#issuecomment-305925562
It might perhaps seem counter-intuitive if one doesn't know nixpkgs well.


  Commit: 75933da8823d1cc6354802e4f7b219edc1df0c74
  
https://github.com/NixOS/nixpkgs/commit/75933da8823d1cc6354802e4f7b219edc1df0c74
  Author: Frederik Rietdijk 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M doc/stdenv.xml

  Log Message:
  ---
  Merge pull request #26345 from vcunat/p/doc-override-phases

nixpkgs manual: advise against overriding whole phases


Compare: https://github.com/NixOS/nixpkgs/compare/d15927151647...75933da8823d___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] 2cb4b8: crashplan: move version and rev inside 'mkDerivati...

2017-06-19 Thread Frederik Rietdijk
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 2cb4b8fc701bc0a9f0f9cf6f4764cd199c0ec88d
  
https://github.com/NixOS/nixpkgs/commit/2cb4b8fc701bc0a9f0f9cf6f4764cd199c0ec88d
  Author: Matt McHenry 
  Date:   2017-06-17 (Sat, 17 Jun 2017)

  Changed paths:
M pkgs/applications/backup/crashplan/default.nix

  Log Message:
  ---
  crashplan: move version and rev inside 'mkDerivation rec', simplify src


  Commit: d159271516479961e8a60c297488ceb55ce910ea
  
https://github.com/NixOS/nixpkgs/commit/d159271516479961e8a60c297488ceb55ce910ea
  Author: Frederik Rietdijk 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/applications/backup/crashplan/default.nix

  Log Message:
  ---
  Merge pull request #26705 from jerith666/cp-ver-fix

crashplan: move version and rev inside 'mkDerivation rec', simplify src


Compare: https://github.com/NixOS/nixpkgs/compare/d1ca00d79bf4...d15927151647___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] 3d5a0f: mopidy-spotify: 3.0.0 -> 3.1.0

2017-06-19 Thread Pascal Wittmann
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 3d5a0f8c2f2efbb252d21e11738394489d8cff73
  
https://github.com/NixOS/nixpkgs/commit/3d5a0f8c2f2efbb252d21e11738394489d8cff73
  Author: Mario Rodas 
  Date:   2017-06-18 (Sun, 18 Jun 2017)

  Changed paths:
M pkgs/applications/audio/mopidy-spotify/default.nix

  Log Message:
  ---
  mopidy-spotify: 3.0.0 -> 3.1.0


  Commit: d1ca00d79bf4da673d5c614525394e53cb4fefd7
  
https://github.com/NixOS/nixpkgs/commit/d1ca00d79bf4da673d5c614525394e53cb4fefd7
  Author: Pascal Wittmann 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/applications/audio/mopidy-spotify/default.nix

  Log Message:
  ---
  Merge pull request #26701 from marsam/master

mopidy-spotify: 3.0.0 -> 3.1.0


Compare: https://github.com/NixOS/nixpkgs/compare/d454675ef6e6...d1ca00d79bf4___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] d45467: faust: 2.0.a51 -> 2.1.0

2017-06-19 Thread Bart Brouns
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: d454675ef6e6d06a933ce471c3ff69643138a1a8
  
https://github.com/NixOS/nixpkgs/commit/d454675ef6e6d06a933ce471c3ff69643138a1a8
  Author: Bart Brouns 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/applications/audio/faust/faust2.nix

  Log Message:
  ---
  faust: 2.0.a51 -> 2.1.0


___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] 8883b7: shaarli: 0.8.1 -> 0.8.4

2017-06-19 Thread Pascal Wittmann
  Branch: refs/heads/release-17.03
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 8883b77ba7e8a965e213bd8d987a5681bc5facd4
  
https://github.com/NixOS/nixpkgs/commit/8883b77ba7e8a965e213bd8d987a5681bc5facd4
  Author: Henri Bourcereau 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/servers/web-apps/shaarli/default.nix

  Log Message:
  ---
  shaarli: 0.8.1 -> 0.8.4

(cherry picked from commit 6e497974a623b60f6f81621479de912ba1f7127e)
Reason: Update Shaarli version to 0.8.4 in order to fix a login bug (cf. 
shaarli/Shaarli#711)


  Commit: 066a82fe8154512d4b3122043cd12424f698759a
  
https://github.com/NixOS/nixpkgs/commit/066a82fe8154512d4b3122043cd12424f698759a
  Author: Pascal Wittmann 
  Date:   2017-06-19 (Mon, 19 Jun 2017)

  Changed paths:
M pkgs/servers/web-apps/shaarli/default.nix

  Log Message:
  ---
  Merge pull request #26706 from mmai/release-17.03

shaarli: 0.8.1 -> 0.8.4


Compare: https://github.com/NixOS/nixpkgs/compare/c28e6eecaa95...066a82fe8154___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits