[Nix-commits] [NixOS/nixpkgs] 37ec46: bcache-tools: add name to the source store path

2017-06-25 Thread Bjørn Forsman
  Branch: refs/heads/release-17.03
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 37ec462019deea8f275111f3fd83ac9898921049
  
https://github.com/NixOS/nixpkgs/commit/37ec462019deea8f275111f3fd83ac9898921049
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-06-25 (Sun, 25 Jun 2017)

  Changed paths:
M pkgs/tools/filesystems/bcache-tools/default.nix

  Log Message:
  ---
  bcache-tools: add name to the source store path

So that

 $ nix-build -A bcache-tools.src

gives

 /nix/store/HASH-bcache-tools-1.0.7.tar.gz

instead of

 /nix/store/HASH-v1.0.7.tar.gz

(cherry picked from commit f12b0a2179585d443bf0abab3ac1cfccebc24512)


  Commit: b71f5e311b7cf350f99b084c059691dd7749c265
  
https://github.com/NixOS/nixpkgs/commit/b71f5e311b7cf350f99b084c059691dd7749c265
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-06-25 (Sun, 25 Jun 2017)

  Changed paths:
M nixos/modules/system/boot/stage-1.nix
M pkgs/tools/filesystems/bcache-tools/default.nix

  Log Message:
  ---
  nixos/bcache: /bin/sh -> ${bash}/bin/sh

Or else `services.udev.packages = [ bcache-tools ]` cannot be used.

To not break bcache in the initrd I'm modifying this in stage-1.nix:

  -  --replace /bin/sh ${extraUtils}/bin/sh
  +  --replace ${bash}/bin/sh ${extraUtils}/bin/sh

Reasoning behind that change:

* If not modifying the /bin/sh pattern in any way, it will also match
  ${bash}/bin/sh, creating a broken path like
  /nix/store/HASH-bash/nix/store/HASH-bash/bin/sh in the udev rule file.

* The addition of /bin/sh was done in 775f381a9e34
  ("stage-1: add bcache support"). It seems somewhat plausible that
  no new users have appeared since then and we can take this opportunity
  to back out of this change without much fear of regressions.

  If there _are_ regressions, they should be in the form of build time
  errors, not runtime (boot), due to how the udev rule output is checked
  for invalid path references. So low risk, IMHO.

* An alternative approach could be to copy the /bin/sh substitute rule
  over to the non-initrd udev rules implementation in NixOS, but I think
  this way is better:
  - The rules file comes with a working path out of the box.
  - We can use more precise pattern matching when modifying the udev
rules for the initrd.

(cherry picked from commit 581226cfb456b4c116594f1b79f45945703a4a4c)


  Commit: d0ad6a76518aa6444d27a53de7d84a3928800dd1
  
https://github.com/NixOS/nixpkgs/commit/d0ad6a76518aa6444d27a53de7d84a3928800dd1
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-06-25 (Sun, 25 Jun 2017)

  Changed paths:
M nixos/modules/tasks/bcache.nix

  Log Message:
  ---
  nixos/bcache: add services.udev.packages = [ bcache-tools ]

Adds /dev/disk/by-{id,label}/* symlinks for bcache device nodes, in the
final rootfs.

Symlinks will only be created for bcache devices that contain
filesystems. So if you have a blank bcache device or run LVM on top of
bcache you will not get this kind of symlink.

(cherry picked from commit 5b48368386864af78658b7c18608df57f8e8a386)


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


[Nix-commits] [NixOS/nixpkgs] 6916f2: treewide: enableParallelBuild -> enableParallelBui...

2017-06-24 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 6916f24e84ea4233f671ebc75de0ba10187c86b6
  
https://github.com/NixOS/nixpkgs/commit/6916f24e84ea4233f671ebc75de0ba10187c86b6
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-06-24 (Sat, 24 Jun 2017)

  Changed paths:
M pkgs/desktops/plasma-5/khotkeys.nix
M pkgs/development/libraries/qt-5/5.9/qtlocation.nix

  Log Message:
  ---
  treewide: enableParallelBuild -> enableParallelBuilding


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


[Nix-commits] [NixOS/nixpkgs] b8658f: fetchgit: support "git@server:repo" URLs

2017-06-24 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: b8658f629b598d9a5bb0acba2421e0ad99f67847
  
https://github.com/NixOS/nixpkgs/commit/b8658f629b598d9a5bb0acba2421e0ad99f67847
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-06-24 (Sat, 24 Jun 2017)

  Changed paths:
M pkgs/build-support/fetchgit/default.nix
M pkgs/build-support/fetchgit/nix-prefetch-git

  Log Message:
  ---
  fetchgit: support "git@server:repo" URLs

Update the code that extracts the base name from a git repo URL so that
it can deal with URLs like "git@server:repo".


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


[Nix-commits] [NixOS/nixpkgs] c95f3a: sdcc: 3.5.0 -> 3.6.0

2017-06-11 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: c95f3a36cd2ab9c2565bfc9fd88eae57023146a5
  
https://github.com/NixOS/nixpkgs/commit/c95f3a36cd2ab9c2565bfc9fd88eae57023146a5
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-06-11 (Sun, 11 Jun 2017)

  Changed paths:
M pkgs/development/compilers/sdcc/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  sdcc: 3.5.0 -> 3.6.0

* requires texinfo
* --std=c99 unneeded, fixed upstream
* can build with nixpkgs default boost (v1.62), so let's do that


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


[Nix-commits] [NixOS/nixpkgs] 7a0e95: nixos/acme: support "full.pem" (for lighttpd)

2017-06-09 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 7a0e958b972f61b23f93a8e39fee5590aec47348
  
https://github.com/NixOS/nixpkgs/commit/7a0e958b972f61b23f93a8e39fee5590aec47348
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-06-09 (Fri, 09 Jun 2017)

  Changed paths:
M nixos/modules/security/acme.nix

  Log Message:
  ---
  nixos/acme: support "full.pem" (for lighttpd)

* Create "full.pem" from selfsigned certificate
* Tell simp_le to create "full.pem"
* Inject service dependency between lighttpd and the generation of certificates

Side note: According to the internet these servers also use the
"full.pem" format: pound, ejabberd, pure-ftpd.


  Commit: 6a55fda61e899092a7c73b6b004783bbf1a73773
  
https://github.com/NixOS/nixpkgs/commit/6a55fda61e899092a7c73b6b004783bbf1a73773
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-06-09 (Fri, 09 Jun 2017)

  Changed paths:
M nixos/modules/security/acme.nix

  Log Message:
  ---
  nixos/acme: improve documentation

* Use literalExample for better readability
* Clarify a bit wrt. 'webroot' and 'allowKeysForGroup'


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


Re: [Nix-dev] Hydra and security updates

2017-06-03 Thread Bjørn Forsman
On 4 June 2017 at 00:35, Nicolas Pierron <nicolas.b.pier...@nbp.name> wrote:
> So I started SOS [1] to make Nixpkgs more
> declarative.  Thus removing some of the function overhead from
> packages, which would help fixing a lot of the issues reported by the
> static-analysis.

I think you forgot to add the link to the SOS thing. (I'm interested.)

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


[Nix-commits] [NixOS/nixpkgs] f16a9f: cgdb: remove unneeded 'help2man' dependency

2017-06-01 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: f16a9f694e97db99c7a26cb5c2de3df343f82efb
  
https://github.com/NixOS/nixpkgs/commit/f16a9f694e97db99c7a26cb5c2de3df343f82efb
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-06-01 (Thu, 01 Jun 2017)

  Changed paths:
M pkgs/development/tools/misc/cgdb/default.nix

  Log Message:
  ---
  cgdb: remove unneeded 'help2man' dependency

Unused since version 0.7.0:

  https://raw.githubusercontent.com/cgdb/cgdb/v0.7.0/NEWS


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


Re: [Nix-dev] Polkit action files installed via nix-env don't appear to be recognised by Polkit/Pkexec/Pkaction

2017-05-31 Thread Bjørn Forsman
On 31 May 2017 at 07:44, Roger Qiu <roger@matrix.ai> wrote:
> Hi all,
>
> Normally a polkit action file on a non-NixOS system would be installed in
> /usr/share/polkit-1/actions. On NixOS this location is instead at
> /run/current-system/sw/share/polkit-1/actions. The action files stored here
> are recognised by polkit, which can be demonstrated by running `pkaction`,
> this results in showing the titles of each action id.
>
> However some packages may supply action files, and are installed via
> nix-env. The action files in this case are instead stored in
> ~/.nix-profile/share/polkit-1/actions. My tests show that these action files
> are not being recognised by polkit. Running pkaction does not show any
> package the action files that are inside ~/.nix-profile/...
>
> Is there a work around here?
>
> Browsing the polkit docs doesn't mention anything about looking up
> user-specific action files, they all just say action files are to be at
> /usr/share/polkit-1/actions. If polkit only looks up 1 location, then should
> nix-env be symlinking action files into
> /run/current/system/sw/share/polkit-1/actions?

Wouldn't that mean unprivileged users are allowed to raise their own
permissions? (That doesn't sound like a good idea.)

Best regards,
Bjørn Forsman
___
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 all of nixpkgs?

2017-05-28 Thread Bjørn Forsman
On 23 May 2017 at 23:31, Bjørn Forsman <bjorn.fors...@gmail.com> wrote:
> Another bit of important information is that the release.nix files map
> over pkgs with builtins.tryEval (with the packagePlatforms function)
> to filter out unsupported packages (among other things). With that
> knowledge I should be able to create my own "release.nix" file that
> builds the world.

I finally have something that seems to be working:

8<
let
  pkgs = import  {
# ensure we don't get an impure config
config = { allowUnfree = false; allowBroken = false; };
  };

  lib = pkgs.lib;

  canEval = val: (builtins.tryEval val).success;

  canEvalStrict = val: (builtins.tryEval (builtins.deepSeq val val)).success;

  # myfilter arguments
  recurseYes = true;
  recurseNo = false;

  # Filter out all packages that don't evaluate or have unsupported platform.
  # Attributes of unsupported packages will be set to an empty attrset.
  myfilter = platform: recurse:
lib.mapAttrs
  (n: v:
let
  res = builtins.tryEval (
#builtins.trace ''name=${n}, type=${builtins.typeOf v}${if
v ? name then ", v.name=" + v.name else ""}''
(
  # for recurseForDerivations and recurseForRelease (bool)
  if builtins.typeOf v == "bool" then
v
  else if !canEval v then
{}
  else if lib.isDerivation v && canEval v.drvPath &&
builtins.elem platform (v.meta.platforms or []) then
v
  else if recurse && (v.recurseForDerivations or false ||
v.recurseForRelease or false) then
myfilter platform recurse v
  else
{}
)
  );
in
  if res.success then res.value else {}
  );

in
{
  # error: Package
‘Agda-Sheaves-8a06162a8f0f7df308458db91d720cf8f7345d69’ in [...] is
marked as broken, refusing to evaluate.
  inherit pkgs;

  # This shouldn't stop due to eval errors, but expect plenty of build
  # failures. Better run with "--keep-going" if you want to build as much as
  # possible.
  filtered = myfilter "x86_64-linux" recurseYes pkgs;
}
>8

Knowing builtins.tryEval wasn't enough, because there are some errors
that are not caught by it. I particularly struggled when applying
recursion to my filter and hit a "error: value is a set while a
Boolean was expected", with no location info or trace back. Luckily
there is builtins.trace.

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] glibc issues from a proprietary binary distributed as an RPM

2017-05-25 Thread Bjørn Forsman
On 25 May 2017 at 20:19, Peter Jones <mli...@pmade.com> wrote:
> I find myself in the (sickening) position of needing to use a
> closed-source tool on NixOS.  I have an overlay package that almost
> works.  After using patchelf, most of the binaries seem to work.  But
> one of them is being a pain:
>
> JLinkGDBServer: relocation error: JLinkGDBServer: symbol , version
> GLIBC_2.2.5 not defined in file libc.so.6 with link time reference
>
> The collective wisdom of the web suggests this might have something to
> do with the binary using symbols from libc that are not in my version of
> glibc.  As far as I can tell the company that makes this just has an RPM
> with no system requirements so I can't tell which glibc I should be
> using.  Also, strace wasn't much help here either.
>
> I would love some help figuring this out.  The derivation that I'm
> working on can be found here:
>
> https://github.com/pjones/nixpkgs-jlink

I know it's not what you asked, but as a workaround perhaps you can
use openocd instead?

Side note: I have a similar problem with Altera Quartus toolsuite (for
FPGAs). I managed to get it working in NixOS 16.09, but in 17.03 there
is some incompatibility with glibc that I cannot figure out.

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] glibc issues from a proprietary binary distributed as an RPM

2017-05-25 Thread Bjørn Forsman
On 25 May 2017 at 20:19, Peter Jones <mli...@pmade.com> wrote:
> I find myself in the (sickening) position of needing to use a
> closed-source tool on NixOS.  I have an overlay package that almost
> works.  After using patchelf, most of the binaries seem to work.  But
> one of them is being a pain:
>
> JLinkGDBServer: relocation error: JLinkGDBServer: symbol , version
> GLIBC_2.2.5 not defined in file libc.so.6 with link time reference
>
> The collective wisdom of the web suggests this might have something to
> do with the binary using symbols from libc that are not in my version of
> glibc.  As far as I can tell the company that makes this just has an RPM
> with no system requirements so I can't tell which glibc I should be
> using.  Also, strace wasn't much help here either.
>
> I would love some help figuring this out.  The derivation that I'm
> working on can be found here:
>
> https://github.com/pjones/nixpkgs-jlink

I know it's not what you asked, but as a workaround perhaps you can
use openocd instead?

Side note: I have a similar problem with Altera Quartus toolsuite (for
FPGAs). I managed to get it working in NixOS 16.09, but in 17.03 there
is some incompatibility with glibc that I cannot figure out.

Best regards,
Bjørn Forsman
___
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 all of nixpkgs?

2017-05-23 Thread Bjørn Forsman
On 22 May 2017 at 18:04, Freddy Rietdijk <freddyrietd...@fridh.nl> wrote:
> If I am correct Hydra first checks which jobs evaluate, and then builds
> those. It checks using the findJobs function in this file
> https://github.com/NixOS/hydra/blob/master/src/hydra-eval-jobs/hydra-eval-jobs.cc

Thanks, that was helpful.

Another bit of important information is that the release.nix files map
over pkgs with builtins.tryEval (with the packagePlatforms function)
to filter out unsupported packages (among other things). With that
knowledge I should be able to create my own "release.nix" file that
builds the world.

Best regards,
Bjørn Forsman
___
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 all of nixpkgs?

2017-05-22 Thread Bjørn Forsman
On 22 May 2017 at 17:21, Tomasz Czyż <tomasz.c...@gmail.com> wrote:
> Look there, that's how all packages are build by CI:
> http://hydra.nixos.org/jobset/nixpkgs/trunk#tabs-configuration
> It uses pkgs/top-level/release.nix to build all of that.
> Also it passes nixpkgs. So maybe you need to do something like

I have looked there. That's why I'm wondering what magic Hydra does,
because I cannot get this thing to work with nix-build:

$ nix-build -I nixpkgs=/path/to/my/nixpkgs pkgs/top-level/release.nix
error: value is a set while a Boolean was expected

$ nix-build pkgs/top-level/release.nix --arg nixpkgs \"./.\" --arg
officialRelease false
error: value is a set while a Boolean was expected

Please let me know if you manage to build that with nix-build.

Best regards,
Bjørn Forsman
___
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 all of nixpkgs?

2017-05-22 Thread Bjørn Forsman
On 21 May 2017 at 19:26, Tomasz Czyż <tomasz.c...@gmail.com> wrote:
> check release.nix (release-*.nix)

I've tried to look at some of those. For instance,
./pkgs/top-level/release{,-small}.nix, and
./nixos/release-{small,combined}.nix. But I don't seem to get them
working like I want with 'nix-build'.

Examples:

1. "nix-build ./pkgs/top-level/release-small.nix" doesn't build any of
the packages, it only builds channel, manual, isos and a bunch of VM
tests. It seems to be because the attributes of the 'nixpkgs'
attribute in that top-level expression does not contain direct
derivations as sub-attributes but rather the derivations are one level
further down, in an 'arch' attribute. Like mypkg.x86_64-linux instead
of just mypkg. I tried adding 'recurseIntoAttrs', but it didn't help.

2. "nix-build ./pkgs/top-level/release.nix" gives "error: value is a
set while a Boolean was expected". AFAICT, the expression has sensible
default arguments. I don't know where it fails and --show-trace
doesn't show any trace. So I'm stuck there.

3. "nix-build ./nixos/release-combined.nix" (and the -small variant)
doesn't build any packages from the 'nixpkgs' set because it doesn't
contain (direct) derivations. Same problem as (1).

So is Hydra doing some magic with these expressions? Is it possible to
build "world" with a simple "nix-build"?

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


[Nix-commits] [NixOS/nixpkgs] 582e8d: vino: add missing gsettings schema

2017-05-19 Thread Bjørn Forsman
  Branch: refs/heads/release-17.03
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 582e8d0ccfb3be226a05ca7a694ab13399266cae
  
https://github.com/NixOS/nixpkgs/commit/582e8d0ccfb3be226a05ca7a694ab13399266cae
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-05-19 (Fri, 19 May 2017)

  Changed paths:
M pkgs/desktops/gnome-3/3.22/core/vino/default.nix

  Log Message:
  ---
  vino: add missing gsettings schema

Fixes this:

  $ ./result/libexec/vino-server
  ...
  (vino-server:13915): GLib-GIO-ERROR **: Settings schema 'org.gnome.Vino' is 
not installed

(cherry picked from commit 94c47b08841043ca2a8aa4341fd53bf5260a2d68)


  Commit: 836e237ebec4014f7eb169b205a4ce38d586ec60
  
https://github.com/NixOS/nixpkgs/commit/836e237ebec4014f7eb169b205a4ce38d586ec60
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-05-19 (Fri, 19 May 2017)

  Changed paths:
M nixos/modules/services/x11/desktop-managers/gnome3.nix

  Log Message:
  ---
  nixos/gnome3: fix screen sharing

Without this change there will be silent errors when enabling screen
sharing. The GUI thinks it enables the service when it in fact does not
(errors are seen in the system journal).

vino is already in the closure of gnome-control-center, so this is
basically free.

Configuration of screen sharing is done in GNOME control center.

(cherry picked from commit f9633c779153f58f231bf65c0e87fade3ebc3f3a)


  Commit: 9ece08dee6b8e0eb02deb3eb73a18bf66b0db64a
  
https://github.com/NixOS/nixpkgs/commit/9ece08dee6b8e0eb02deb3eb73a18bf66b0db64a
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-05-19 (Fri, 19 May 2017)

  Changed paths:
M pkgs/desktops/gnome-3/3.22/core/vino/default.nix

  Log Message:
  ---
  vino: use wrapGAppsHook

Fixes this:

  .vino-server-wr[8931]: Using the 'memory' GSettings backend. \
  Your settings will not be saved or shared with other applications.

Still, the screen sharing settings under "gnome-control-center sharing"
does not seem to be persisted (except the enabling/disabling sharing
flag itself). Making changes and then re-opening gnome-control-center
shows the default screen sharing settings. Sigh.

(cherry picked from commit 0eff1d9f2af05353a827a3896ebcc2bce20d2fdd)


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


[Nix-commits] [NixOS/nixpkgs] 0eff1d: vino: use wrapGAppsHook

2017-05-18 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 0eff1d9f2af05353a827a3896ebcc2bce20d2fdd
  
https://github.com/NixOS/nixpkgs/commit/0eff1d9f2af05353a827a3896ebcc2bce20d2fdd
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-05-18 (Thu, 18 May 2017)

  Changed paths:
M pkgs/desktops/gnome-3/3.22/core/vino/default.nix

  Log Message:
  ---
  vino: use wrapGAppsHook

Fixes this:

  .vino-server-wr[8931]: Using the 'memory' GSettings backend. \
  Your settings will not be saved or shared with other applications.

Still, the screen sharing settings under "gnome-control-center sharing"
does not seem to be persisted (except the enabling/disabling sharing
flag itself). Making changes and then re-opening gnome-control-center
shows the default screen sharing settings. Sigh.


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


[Nix-commits] [NixOS/nixpkgs] 94c47b: vino: add missing gsettings schema

2017-05-17 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 94c47b08841043ca2a8aa4341fd53bf5260a2d68
  
https://github.com/NixOS/nixpkgs/commit/94c47b08841043ca2a8aa4341fd53bf5260a2d68
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-05-17 (Wed, 17 May 2017)

  Changed paths:
M pkgs/desktops/gnome-3/3.22/core/vino/default.nix

  Log Message:
  ---
  vino: add missing gsettings schema

Fixes this:

  $ ./result/libexec/vino-server
  ...
  (vino-server:13915): GLib-GIO-ERROR **: Settings schema 'org.gnome.Vino' is 
not installed


  Commit: f9633c779153f58f231bf65c0e87fade3ebc3f3a
  
https://github.com/NixOS/nixpkgs/commit/f9633c779153f58f231bf65c0e87fade3ebc3f3a
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-05-17 (Wed, 17 May 2017)

  Changed paths:
M nixos/modules/services/x11/desktop-managers/gnome3.nix

  Log Message:
  ---
  nixos/gnome3: fix screen sharing

Without this change there will be silent errors when enabling screen
sharing. The GUI thinks it enables the service when it in fact does not
(errors are seen in the system journal).

vino is already in the closure of gnome-control-center, so this is
basically free.

Configuration of screen sharing is done in GNOME control center.


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


Re: [Nix-dev] Nvidia & Cuda & Optimus - root required?

2017-05-12 Thread Bjørn Forsman
On 12 May 2017 at 16:07, Marc Weber <marco-owe...@gmx.de> wrote:
> Nvidia & Cuda:
>
> As root it works, as user it doesn't (even exporting the env from root).
> Easiest way to reproduce:
>
>   $(nix-build cudatoolkit)/extras/demo_suite/deviceQuery
>
>   Either outputs 'FAILED' or some info
>
> Has anybody a solution yet?

Isn't there some /dev/* file representing the device that you can set
permissions on? (Half guessing here...)

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


[Nix-commits] [NixOS/nixpkgs] 978cae: borgbackup: 1.0.9 -> 1.0.10

2017-05-03 Thread Bjørn Forsman
  Branch: refs/heads/release-17.03
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 978cae2c5faf86434aebc94ead504f8d844df927
  
https://github.com/NixOS/nixpkgs/commit/978cae2c5faf86434aebc94ead504f8d844df927
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-05-03 (Wed, 03 May 2017)

  Changed paths:
M pkgs/tools/backup/borg/default.nix

  Log Message:
  ---
  borgbackup: 1.0.9 -> 1.0.10

(cherry picked from commit 5f1398ce13048714a5d94e1532dc0049a748b02a)


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


Re: [Nix-dev] Suggestion: programs are *always* in the path

2017-05-01 Thread Bjørn Forsman
On 1 May 2017 at 12:05, Eelco Dolstra <eelco.dols...@logicblox.com> wrote:
> Hi,
>
> On 05/01/2017 11:55 AM, regiv...@gmail.com wrote:
>
>> If you enter a command, you want to run it.
>>
>> If the corresponding program is not installed, the command is a symbolic 
>> link to
>> a script that says:
>>
>> _ download the program and its dependencies,
>> _ install it,
>> _ run it.
>
> On NixOS, you can already do something like that by setting $NIX_AUTO_RUN to 
> 1.
>
> E.g.
>
> $ export NIX_AUTO_RUN=1

Follow up:

NIX_AUTO_RUN=1 means the program will be run via nix-shell. (The
grabage collector may remove it on the next GC run.)

NIX_AUTO_INSTALL=1 means the program will be installed with nix-env
and then run from your normal shell. (It won't be automatically
garbage collected.)

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


[Nix-commits] [NixOS/nixpkgs] c282de: nixos/munin: remove duplicated /run/current-system...

2017-04-30 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: c282de710381c803f09da98a18683ab775902436
  
https://github.com/NixOS/nixpkgs/commit/c282de710381c803f09da98a18683ab775902436
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-04-30 (Sun, 30 Apr 2017)

  Changed paths:
M nixos/modules/services/monitoring/munin.nix

  Log Message:
  ---
  nixos/munin: remove duplicated /run/current-system/sw/bin path

A side effect of commit ff2117192105c4c356a6ce31514ca93da2e837ff
("Fix references to current-system/sw/sbin"). It changed "sbin" to "bin"
but didn't check for duplicates.


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


[Nix-commits] [NixOS/nixpkgs] 472fbe: owncloud-client: 2.3.0 -> 2.3.1

2017-04-30 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 472fbe651f6107aac7e8fdfdb57f8e17a5fc1782
  
https://github.com/NixOS/nixpkgs/commit/472fbe651f6107aac7e8fdfdb57f8e17a5fc1782
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-04-30 (Sun, 30 Apr 2017)

  Changed paths:
M pkgs/applications/networking/owncloud-client/default.nix

  Log Message:
  ---
  owncloud-client: 2.3.0 -> 2.3.1


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


[Nix-commits] [NixOS/nixpkgs] fdcb4f: owncloud-client: unbreak build (qt58 -> qt56)

2017-04-30 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: fdcb4fa4b8d100215c1fa6cb1fc585d7476740c1
  
https://github.com/NixOS/nixpkgs/commit/fdcb4fa4b8d100215c1fa6cb1fc585d7476740c1
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-04-30 (Sun, 30 Apr 2017)

  Changed paths:
M pkgs/applications/networking/owncloud-client/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  owncloud-client: unbreak build (qt58 -> qt56)

The build fails due to missing qt linguist tools. That's solved by
adding 'qttools'. But the build fails soon after with missing 'Sql'
module. I didn't manage to solve that, so use Qt 5.6 where it works.

Using libsForQt seems to be the way Qt packages are composed today, so
use that (seems safer).


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


Re: [Nix-dev] How to escape $'\t' in Nix multi-line string?

2017-04-30 Thread Bjørn Forsman
On 30 April 2017 at 19:53, Profpatsch <m...@profpatsch.de> wrote:
> On 17-04-30 03:07pm, Bjørn Forsman wrote:
>> On 30 April 2017 at 15:01, Bjørn Forsman <bjorn.fors...@gmail.com> wrote:
>> > Hi all,
>> >
>> > I'm stuck trying to pass $'\t' to bash via Nix multi-line strings:
>> >
>> > nix-repl> ''cut -d $'\t' -f 1''
>> > error: syntax error, unexpected $undefined, expecting IND_STR or
>> > DOLLAR_CURLY or IND_STRING_CLOSE, at (string):1:10
>>
>> Oh, it was only missing double single-quotes before the dollar sign.
>>
>> What tripped me was that the documentation says ${ is special in
>> strings, not $'.
>
> How should we improve the manual in this regard?

Sure. But I'm also quite interested in knowing why $' needs escaping,
especially when $ ' (space between) does not.

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


[Nix-commits] [NixOS/nixpkgs] 83129a: qgit: fix meta: maintainer -> maintainers

2017-04-30 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 83129a6eed23007eaf57c515e9c3bc2191646dc7
  
https://github.com/NixOS/nixpkgs/commit/83129a6eed23007eaf57c515e9c3bc2191646dc7
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-04-30 (Sun, 30 Apr 2017)

  Changed paths:
M pkgs/applications/version-management/git-and-tools/qgit/default.nix

  Log Message:
  ---
  qgit: fix meta: maintainer -> maintainers


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


Re: [Nix-dev] How to escape $'\t' in Nix multi-line string?

2017-04-30 Thread Bjørn Forsman
On 30 April 2017 at 15:01, Bjørn Forsman <bjorn.fors...@gmail.com> wrote:
> Hi all,
>
> I'm stuck trying to pass $'\t' to bash via Nix multi-line strings:
>
> nix-repl> ''cut -d $'\t' -f 1''
> error: syntax error, unexpected $undefined, expecting IND_STR or
> DOLLAR_CURLY or IND_STRING_CLOSE, at (string):1:10

Oh, it was only missing double single-quotes before the dollar sign.

What tripped me was that the documentation says ${ is special in
strings, not $'.

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] How to escape $'\t' in Nix multi-line string?

2017-04-30 Thread Bjørn Forsman
Hi all,

I'm stuck trying to pass $'\t' to bash via Nix multi-line strings:

nix-repl> ''cut -d $'\t' -f 1''
error: syntax error, unexpected $undefined, expecting IND_STR or
DOLLAR_CURLY or IND_STRING_CLOSE, at (string):1:10

I've looked at https://nixos.org/nix/manual/#ssec-values but I don't
see how to fix this case.

If I add a space between $ and ' the error goes away, that's as close
to a "solution" as I've got. (Why does Nix care about the
two-character sequence $'?) Another "solution" is to change the outer
"double single quotes" into "single quotes". But that's not what I
want, because it causes issues with the rest of the script (not shown
here).

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


[Nix-commits] [NixOS/nixpkgs] ddb788: OVMF: get version number from edk2

2017-04-23 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: ddb788b6711af38d7251177f9ff2544496bca1c3
  
https://github.com/NixOS/nixpkgs/commit/ddb788b6711af38d7251177f9ff2544496bca1c3
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-04-23 (Sun, 23 Apr 2017)

  Changed paths:
M pkgs/applications/virtualization/OVMF/default.nix

  Log Message:
  ---
  OVMF: get version number from edk2

OVMF is built from edk2 sources so that's where its version number comes
from (logically). The edk2 version number is 2014-12-10, so this change
only ensures the version numbers won't drift apart in the future. (There
is no hash change.)


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


[Nix-commits] [NixOS/nixpkgs] ff252c: Fix typo in comment

2017-04-19 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: ff252c799db18ea05cc9aab408c57ec6054bbe44
  
https://github.com/NixOS/nixpkgs/commit/ff252c799db18ea05cc9aab408c57ec6054bbe44
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-04-19 (Wed, 19 Apr 2017)

  Changed paths:
M pkgs/top-level/default.nix

  Log Message:
  ---
  Fix typo in comment


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


[Nix-commits] [NixOS/nixpkgs] d9514e: hydra: add dependency on Nix' perl bindings

2017-04-19 Thread Bjørn Forsman
  Branch: refs/heads/release-17.03
  Home:   https://github.com/NixOS/nixpkgs
  Commit: d9514e0aa223dc0903a69dc0c253c1e9d0bb31a9
  
https://github.com/NixOS/nixpkgs/commit/d9514e0aa223dc0903a69dc0c253c1e9d0bb31a9
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-04-19 (Wed, 19 Apr 2017)

  Changed paths:
M pkgs/development/tools/misc/hydra/default.nix

  Log Message:
  ---
  hydra: add dependency on Nix' perl bindings

This unbreaks the build since the latest nixUnstable update
(3dd66ec6e91c).

It's basically the same fix as in hydra git repo:

  https://github.com/nixos/hydra/commit/a0376a92e5fd90f38d784df3000cdc76ccf314b3

(cherry picked from commit 9c830c845644a353491b0da41982df57a32e49aa)


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


[Nix-commits] [NixOS/nixpkgs] 1d4568: nixos/lighttpd: set $HOME for gitweb sub-service

2017-04-17 Thread Bjørn Forsman
  Branch: refs/heads/release-17.03
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 1d45682ca095234f6cee805a08aeebafd98e659e
  
https://github.com/NixOS/nixpkgs/commit/1d45682ca095234f6cee805a08aeebafd98e659e
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-04-17 (Mon, 17 Apr 2017)

  Changed paths:
M nixos/modules/services/web-servers/lighttpd/gitweb.nix

  Log Message:
  ---
  nixos/lighttpd: set $HOME for gitweb sub-service

This allows gitweb to expand '~' in /etc/gitconfig. Without a $HOME
variable, it fails to list any projects and instead show the text
"No such projects found" in the UI.

Setting $HOME to the gitweb project root seems like a sensible value.

(cherry picked from commit d916ce2ef40e412c361805531eff5966a309da1d)


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


[Nix-commits] [NixOS/nixpkgs] ab88d3: nixos/lighttpd: set $HOME for gitweb sub-service

2017-04-17 Thread Bjørn Forsman
  Branch: refs/heads/release-16.09
  Home:   https://github.com/NixOS/nixpkgs
  Commit: ab88d3fe96d3022e91dc52cc376445a0fe2ace5e
  
https://github.com/NixOS/nixpkgs/commit/ab88d3fe96d3022e91dc52cc376445a0fe2ace5e
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-04-17 (Mon, 17 Apr 2017)

  Changed paths:
M nixos/modules/services/web-servers/lighttpd/gitweb.nix

  Log Message:
  ---
  nixos/lighttpd: set $HOME for gitweb sub-service

This allows gitweb to expand '~' in /etc/gitconfig. Without a $HOME
variable, it fails to list any projects and instead show the text
"No such projects found" in the UI.

Setting $HOME to the gitweb project root seems like a sensible value.

(cherry picked from commit d916ce2ef40e412c361805531eff5966a309da1d)


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


[Nix-commits] [NixOS/nixpkgs] d916ce: nixos/lighttpd: set $HOME for gitweb sub-service

2017-04-11 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: d916ce2ef40e412c361805531eff5966a309da1d
  
https://github.com/NixOS/nixpkgs/commit/d916ce2ef40e412c361805531eff5966a309da1d
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-04-11 (Tue, 11 Apr 2017)

  Changed paths:
M nixos/modules/services/web-servers/lighttpd/gitweb.nix

  Log Message:
  ---
  nixos/lighttpd: set $HOME for gitweb sub-service

This allows gitweb to expand '~' in /etc/gitconfig. Without a $HOME
variable, it fails to list any projects and instead show the text
"No such projects found" in the UI.

Setting $HOME to the gitweb project root seems like a sensible value.


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


[Nix-commits] [NixOS/nixpkgs] d45df0: release(-lib).nix: add nixpkgsArgs parameter

2017-04-11 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: d45df036c3aac928c84b2512ddb11d1a78335fed
  
https://github.com/NixOS/nixpkgs/commit/d45df036c3aac928c84b2512ddb11d1a78335fed
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-04-11 (Tue, 11 Apr 2017)

  Changed paths:
M pkgs/top-level/release-lib.nix
M pkgs/top-level/release.nix

  Log Message:
  ---
  release(-lib).nix: add nixpkgsArgs parameter

This allows customizing the nixpkgs arguments by the caller. My use case
is creating a personal nixpkgs channel containing some unfree packages.

The default is still to not build unfree packages, so for nixpkgs this
is no functional change.


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


[Nix-commits] [NixOS/nixpkgs] 9c830c: hydra: add dependency on Nix' perl bindings

2017-04-11 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 9c830c845644a353491b0da41982df57a32e49aa
  
https://github.com/NixOS/nixpkgs/commit/9c830c845644a353491b0da41982df57a32e49aa
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-04-11 (Tue, 11 Apr 2017)

  Changed paths:
M pkgs/development/tools/misc/hydra/default.nix

  Log Message:
  ---
  hydra: add dependency on Nix' perl bindings

This unbreaks the build since the latest nixUnstable update
(3dd66ec6e91c).

It's basically the same fix as in hydra git repo:

  https://github.com/nixos/hydra/commit/a0376a92e5fd90f38d784df3000cdc76ccf314b3


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


[Nix-commits] [NixOS/nixpkgs] 604740: pythonPackages.boto3: disable tests (fails due to ...

2017-04-11 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 6047401a71b736bd8f203127bb05ea5592237b82
  
https://github.com/NixOS/nixpkgs/commit/6047401a71b736bd8f203127bb05ea5592237b82
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-04-11 (Tue, 11 Apr 2017)

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

  Log Message:
  ---
  pythonPackages.boto3: disable tests (fails due to network access)

The test failure started happening with commit
8d18f67a9705617953d43c5a0624 ("awscli: 1.11.45 -> 1.11.75"). That commit
also updates botocore, a dependency of boto3.

This unbreaks 'nixops' (a dependee).


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


Re: [Nix-dev] gentoo like nixpkgs globala useflags in nixpkgs config - would it be worth it?

2017-03-29 Thread Bjørn Forsman
On 29 March 2017 at 13:30, Profpatsch  wrote:
> On 17-03-25 11:47pm, Ertugrul Söylemez wrote:
>> >> Issue pulseSupport -> does it make sense to have a global 'enable
>> >> pulse for all packgages' config.pulseSupport = true flag?
>> >>
>> >> packages could be using:  config.pulseSupport or false to disable by
>> >> default then.
>> >
>> > In my opinion baking global implicit state into nixpkgs is not a good
>> > idea.
>>
>> It's not *state*, is it?  We're basically already doing global
>> configuration, and I think the proposal is about actually using this to
>> get a USE-like system.
>
> Once you have some kind of implicit config file for your user
> there is state.

Whatever we call it, it's already there. ~/.nixpkgs/config.nix can
affect your build.

It'd be nice to have a flag to turn that off. Like --extra-pure? :-)

- Bjørn
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] NixOS 16.09 channel is broken

2017-03-28 Thread Bjørn Forsman
Yay, it is unbroken!

- Bjørn
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] NixOS 16.09 channel is broken

2017-03-27 Thread Bjørn Forsman
Hi all,

The last chromium bump still doesn't build[1] and a recent commit
broke the tarball job ("error: attribute ‘haxe’ missing").

What's going on? It's supposed to be a _stable_ branch... :-/

[1] https://github.com/NixOS/nixpkgs/issues/24217

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-commits] [NixOS/nixpkgs] b94092: perlPackages.OpenGL: 0.6703 -> 0.70

2017-03-24 Thread Bjørn Forsman
  Branch: refs/heads/release-17.03
  Home:   https://github.com/NixOS/nixpkgs
  Commit: b94092c301a594c96c7fa38348db112c121b7888
  
https://github.com/NixOS/nixpkgs/commit/b94092c301a594c96c7fa38348db112c121b7888
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-03-24 (Fri, 24 Mar 2017)

  Changed paths:
M pkgs/development/perl-modules/perl-opengl.patch
M pkgs/top-level/perl-packages.nix

  Log Message:
  ---
  perlPackages.OpenGL: 0.6703 -> 0.70

Fixes https://github.com/NixOS/nixpkgs/issues/19271 ("slic3r gui
fails").


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


[Nix-commits] [NixOS/nixpkgs] 6b6454: perlPackages.OpenGL: 0.6703 -> 0.70

2017-03-24 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 6b6454f190960eff595e06305d0633c283ea55a7
  
https://github.com/NixOS/nixpkgs/commit/6b6454f190960eff595e06305d0633c283ea55a7
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-03-24 (Fri, 24 Mar 2017)

  Changed paths:
M pkgs/development/perl-modules/perl-opengl.patch
M pkgs/top-level/perl-packages.nix

  Log Message:
  ---
  perlPackages.OpenGL: 0.6703 -> 0.70

Fixes https://github.com/NixOS/nixpkgs/issues/19271 ("slic3r gui
fails").


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


Re: [Nix-dev] dnsmasq fails to start

2017-03-22 Thread Bjørn Forsman
On 22 March 2017 at 01:55, Mark Gardner  wrote:
> [Sorry for the earlier empty message...]
>
> I am trying to use dnsmasq per the manual:
>
>   services = {
> dnsmasq = {
>   enable = true;
>   servers = [ "208.67.222.123" "208.67.220.123" ];
> };
>   };
>
> The daemon fails to start:
>
> Mar 21 20:41:25 foobar systemd[1]: Starting Dnsmasq Daemon...
> Mar 21 20:41:25 foobar dnsmasq-pre-start[30845]: dnsmasq: syntax check OK.
> Mar 21 20:41:25 foobar dnsmasq[30856]: dnsmasq: DBus error: Connection
> ":1.34" is not allowed to own the service "uk.org.thekelleys.dnsmasq" due to
> security policies in the configuration file
> Mar 21 20:41:25 foobar systemd[1]: dnsmasq.service: Main process exited,
> code=exited, status=5/NOTINSTALLED
> Mar 21 20:41:25 foobar systemd[1]: Failed to start Dnsmasq Daemon.
> Mar 21 20:41:25 foobar systemd[1]: dnsmasq.service: Unit entered failed
> state.
> Mar 21 20:41:25 foobar systemd[1]: dnsmasq.service: Failed with result
> 'exit-code'.
>
> I have been unsuccessful in figuring out what I am doing wrong. It appears
> to be something to do with Dbus policy. Anyone running dnsmasq that can give
> me pointers?

Have you tried restarting the machine after adding that config? I
think e.g. avahi misbehaves on the first "nixos-rebuild switch" due to
some dbus issue (fixed by rebooting), perhaps this is like that?

- Bjørn
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] The Church of Suckless NixOS is looking for followers

2017-03-21 Thread Bjørn Forsman
On 21 March 2017 at 17:39, Adrien Devresse  wrote:
> NixOS, contrary to arch and the other Linux distributions, does not use
> ld cache, and consequently do significantly more "stat()" stress on the
> file system each time it charges an executable with dynamic libraries.

I wonder if it's possible to use "prelink". I think someone mentioned
it on the ML some years back.

- Bjørn
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] How to download all sources for all of nixpkgs?

2017-03-20 Thread Bjørn Forsman
On 16 March 2017 at 10:07, Bjørn Forsman <bjorn.fors...@gmail.com> wrote:
> Hi all Nixers,
>
> I would like to use Nix on an air gapped network. For that I need to
> download all sources referred by nixpkgs.

I started digging into ./maintainers/scripts/find-tarballs.nix and
found that there was just small changes needed to make it output all
fetch* derivations, not just fetchurl ones (unless I'm mistaken --
haven't fully verified it).

However, due to evaluation problems in nixpkgs and a stack overflow,
it's unuseable :-(

The code is here:
https://github.com/bjornfor/nixpkgs/blob/find-all-sources/maintainers/scripts/all-sources.nix

In the top of the file I list the problems I faced.

Any suggestions?

Can we have a bounty for implementing "nix fetch-sources --recursive
$expr"? I'll pay! :-)

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] YouCompleteMe in 16.09

2017-03-19 Thread Bjørn Forsman
On 19 March 2017 at 20:50, ben...@gmail.com <ben...@gmail.com> wrote:
> That results in just a `vim` executable that does not load any user
> .vimrc at startup, and none of the other binaries like
> gvim/xxd/vimdiff.  What I'm after (and what I suspect most new users
> expect to find) is something like you would get if you installed vim
> and some plugins in a traditional linux distribution.

Does vim pick up plugins installed in profiles? If not, we should add
that (IMHO). "nix-env -i vim vim-plugin-X" should work.

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] The Church of Suckless NixOS is looking for followers

2017-03-19 Thread Bjørn Forsman
On 19 March 2017 at 12:00, Jan Malakhovski <o...@oxij.org> wrote:
> [...] we want smaller Linux
> systems for routers, RPis and BBones.

+1.

Also +1 to many of the other goals you listed earlier. I'll be sad if
most of the features you plan to work on does not eventually get
merged to NixOS. I think NixOS/nixpkgs should be very configurable
(different libcs, init managers), even though the main build server
(hydra.nixos.org) would have to build only a subset, like
glibc+systemd.

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] How to download all sources for all of nixpkgs?

2017-03-16 Thread Bjørn Forsman
Hi all Nixers,

I would like to use Nix on an air gapped network. For that I need to
download all sources referred by nixpkgs.

All attempts so far have failed. You can read about it below my
signature. Any suggestions are welcome.

Wish list item N+1:
  * "nix fetch-sources --recursive $expr"

Best regards,
Bjørn Forsman

1.

Adapted the command line from
https://nixos.org/wiki/Download_all_sources. That page shows how to
download for a small subset of nixpkgs, I need "all" of it.

$ nix-store -r $(grep -l outputHash $(nix-store -qR $(nix-instantiate
'') | grep '.drv$'))
error: Package ‘Agda-Sheaves-8a06162a8f0f7df308458db91d720cf8f7345d69’
in 
‘/nix/store/0dwbbd9cm5vnb0l2qj90i14r036f2c42-nixos-16.09.1821.0cb2838/nixos/pkgs/development/libraries/agda/Agda-Sheaves/default.nix:18’
is marked as broken, refusing to evaluate.
a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build` or any other Nix command you can add
  { allowBroken = true; }
to ~/.nixpkgs/config.nix.

At this point it just hangs. Running the only the inner command,
"nix-instantiate ''", it becomes clear that after the above
error is printed, this command exits. So the composed command line
will never produce what I want.

Trying harder:

$ NIXPKGS_ALLOW_BROKEN=1 NIXPKGS_ALLOW_UNFREE=1 nix-instantiate ''
error: assertion failed at
/nix/store/0dwbbd9cm5vnb0l2qj90i14r036f2c42-nixos-16.09.1821.0cb2838/nixos/pkgs/top-level/all-packages.nix:6177:19

This is the failing assert:

$ sed -n 6177p 
/nix/store/0dwbbd9cm5vnb0l2qj90i14r036f2c42-nixos-16.09.1821.0cb2838/nixos/pkgs/top-level/all-packages.nix
  binutilsCross = assert crossSystem != null; lowPrio (forceNativeDrv (

So yeah, that doesn't seem like a way forward...


2.

Using find-tarballs.nix:

$ nix-instantiate --eval --json --strict
./maintainers/scripts/find-tarballs.nix --arg expr "(import ./. {})"
--show-trace
error: while evaluating anonymous function at
/home/bfo/nixpkgs/maintainers/scripts/find-tarballs.nix:6:1, called
from undefined position:
while evaluating ‘derivationsIn'’ at
/home/bfo/nixpkgs/maintainers/scripts/find-tarballs.nix:30:20, called
from /home/bfo/nixpkgs/maintainers/scripts/find-tarballs.nix:26:28:
while evaluating anonymous function at
/home/bfo/nixpkgs/lib/attrsets.nix:224:10, called from undefined
position:
while evaluating anonymous function at
/home/bfo/nixpkgs/maintainers/scripts/find-tarballs.nix:34:60, called
from /home/bfo/nixpkgs/lib/attrsets.nix:224:16:
while evaluating ‘derivationsIn'’ at
/home/bfo/nixpkgs/maintainers/scripts/find-tarballs.nix:30:20, called
from /home/bfo/nixpkgs/maintainers/scripts/find-tarballs.nix:34:63:
while evaluating anonymous function at
/home/bfo/nixpkgs/lib/attrsets.nix:224:10, called from undefined
position:
while evaluating anonymous function at
/home/bfo/nixpkgs/maintainers/scripts/find-tarballs.nix:34:60, called
from /home/bfo/nixpkgs/lib/attrsets.nix:224:16:
while evaluating ‘derivationsIn'’ at
/home/bfo/nixpkgs/maintainers/scripts/find-tarballs.nix:30:20, called
from /home/bfo/nixpkgs/maintainers/scripts/find-tarballs.nix:34:63:
while evaluating ‘canEval’ at
/home/bfo/nixpkgs/maintainers/scripts/find-tarballs.nix:48:13, called
from /home/bfo/nixpkgs/maintainers/scripts/find-tarballs.nix:31:9:
while evaluating the attribute ‘alice’ at
/home/bfo/nixpkgs/pkgs/development/beam-modules/hex-packages.nix:1579:5:
while evaluating ‘callPackageWith’ at
/home/bfo/nixpkgs/lib/customisation.nix:95:35, called from
/home/bfo/nixpkgs/pkgs/development/beam-modules/hex-packages.nix:1548:19:
while evaluating ‘makeOverridable’ at
/home/bfo/nixpkgs/lib/customisation.nix:54:24, called from
/home/bfo/nixpkgs/lib/customisation.nix:99:8:
anonymous function at
/home/bfo/nixpkgs/pkgs/development/beam-modules/hex-packages.nix:1550:9
called without required argument ‘redix_0_3_6’, at
/home/bfo/nixpkgs/lib/customisation.nix:56:12

Aborts early on / doesn't finish.


3.

(Failed attempts at) using all-tarballs.nix:

$ nix-instantiate ./maintainers/scripts/all-tarballs.nix
error: value is a set while a Boolean was expected

$ (export NIXPKGS_ALLOW_UNFREE=1 NIXPKGS_ALLOW_INSECURE=1
NIXPKGS_ALLOW_BROKEN=1; nix-store -r $(grep -l outputHash $(nix-store
-qR $(nix-instantiate --eval --json --strict
./maintainers/scripts/all-tarballs.nix
error: assertion failed at
/home/bfo/nixpkgs/pkgs/os-specific/linux/dpdk/default.nix:3:1
(use ‘--show-trace’ to show detailed location information)
bash: /run/current-system/sw/bin/nix-store: Argument list too long


4.

I changed ./maintainers/scripts/copy-tarballs.pl slightly to remove
uploading to AWS/S3. That gave me all all but the git repos. First
issue is that copy-tarballs.pl excludes non HTTP/FTP/.. URLs. The
second issue is that the full list of URLs it iterates over comes from
find-tarballs.nix, and that expression seems to not include git URLs
anyway! I don't

Re: [Nix-dev] how to find packages by file?

2017-03-15 Thread Bjørn Forsman
On 15 March 2017 at 16:39, Domen Kožar <do...@dev.si> wrote:
> It's a few GB per channel commit. At least stored in SQL as-is.
>
> With compression and denormalization that could be improved though :)

Ah, I guess that's why you have to run "apt-file update" on Debian to
get it. It's not there by default.

I checked one of the files that it downloads (Contents-amd64.gz).
That's a 32 MiB file that when extracted becomes a 480 MiB plain text
file. So it's comparable to your figure -- apt-file downloads a few of
these files (one per apt repository).

However, apt-file never extracts the files, it simply runs zfgrep on
the ~32 MiB sized .gz files. So it's not that bad.

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] how to find packages by file?

2017-03-15 Thread Bjørn Forsman
On 15 March 2017 at 16:00, Domen Kožar <do...@dev.si> wrote:
> https://github.com/Enlambda/nix-channelstatus has working RESTful API to
> search by files,
> I plan to publish that as a web service in upcoming weeks.

That's nice, but IMHO we need that info offline. I think it could be
made a part of a channel, like the command-not-found DB, but for all
files, not just binaries.

Debian has apt-file, we should have something similar.

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-commits] [NixOS/nixpkgs] bc5692: wordpress: security upgrade: 4.7.2 -> 4.7.3 & othe...

2017-03-15 Thread Bjørn Forsman
  Branch: refs/heads/release-17.03
  Home:   https://github.com/NixOS/nixpkgs
  Commit: bc56929a89d9ef28e606e9828d2d3b90a5291e7a
  
https://github.com/NixOS/nixpkgs/commit/bc56929a89d9ef28e606e9828d2d3b90a5291e7a
  Author: Bas van Dijk <v.dijk@gmail.com>
  Date:   2017-03-15 (Wed, 15 Mar 2017)

  Changed paths:
M nixos/modules/services/web-servers/apache-httpd/wordpress.nix
M nixos/tests/wordpress.nix
A pkgs/servers/web-apps/wordpress/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  wordpress: security upgrade: 4.7.2 -> 4.7.3 & other improvements (#23837)

* Moved the wordpress sources derivation to the attribute pkgs.wordpress. This
  makes it easier to override.

* Also introduce the `package` option for the wordpress virtual host config 
which
  defaults to pkgs.wordpress.

* Also fixed the test in nixos/tests/wordpress.nix.
(cherry picked from commit 308c09d41f309e5055e45c66c07454581945d458)


  Commit: 7b710ef6d0ad90fea665c428ba3362dca94537e6
  
https://github.com/NixOS/nixpkgs/commit/7b710ef6d0ad90fea665c428ba3362dca94537e6
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-03-15 (Wed, 15 Mar 2017)

  Changed paths:
M pkgs/development/libraries/qt-5/5.6/default.nix

  Log Message:
  ---
  qt56.full: add missing modules

qtquickcontrols2, qtwebkit.

Added in the same order as the modules are listed in default.nix (and
then reformatted the block).

(The qt55 expression already has all modules in *full.)

(cherry picked from commit 961c73a78c95b783d4c235b9401ed4b2d0ec377f)


  Commit: 5028bbaba7464bb5399e55330e57d3108be51b87
  
https://github.com/NixOS/nixpkgs/commit/5028bbaba7464bb5399e55330e57d3108be51b87
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-03-15 (Wed, 15 Mar 2017)

  Changed paths:
M pkgs/development/libraries/qt-5/5.7/default.nix

  Log Message:
  ---
  qt57.full: add missing modules

qtquickcontrols2, qtwebchannel, qtwebengine, qtwebkit.

Added in the same order as the modules are listed in default.nix (and
then reformatted the block).

(cherry picked from commit db937b9d60c281ab34f329867f593cbacaa6866a)


Compare: https://github.com/NixOS/nixpkgs/compare/dc857403dd44...5028bbaba746___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] 961c73: qt56.full: add missing modules

2017-03-14 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 961c73a78c95b783d4c235b9401ed4b2d0ec377f
  
https://github.com/NixOS/nixpkgs/commit/961c73a78c95b783d4c235b9401ed4b2d0ec377f
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-03-14 (Tue, 14 Mar 2017)

  Changed paths:
M pkgs/development/libraries/qt-5/5.6/default.nix

  Log Message:
  ---
  qt56.full: add missing modules

qtquickcontrols2, qtwebkit.

Added in the same order as the modules are listed in default.nix (and
then reformatted the block).

(The qt55 expression already has all modules in *full.)


  Commit: db937b9d60c281ab34f329867f593cbacaa6866a
  
https://github.com/NixOS/nixpkgs/commit/db937b9d60c281ab34f329867f593cbacaa6866a
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-03-14 (Tue, 14 Mar 2017)

  Changed paths:
M pkgs/development/libraries/qt-5/5.7/default.nix

  Log Message:
  ---
  qt57.full: add missing modules

qtquickcontrols2, qtwebchannel, qtwebengine, qtwebkit.

Added in the same order as the modules are listed in default.nix (and
then reformatted the block).


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


Re: [Nix-dev] Aarch64!

2017-03-09 Thread Bjørn Forsman
On 9 March 2017 at 22:14, Graham Christensen  wrote:
> As of yesterday, with the excellent help of Tuomas (Dezgeg) and others,
> plus the generous donation of 96-core Cavium ThunderX machines from
> Packet.net, we now have Nixpkgs unstable building Aarch64 packages!

Hooray!

- Bjørn
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Cannot run "hydra-create-user" ("no such table: Users")

2017-03-06 Thread Bjørn Forsman
On 5 March 2017 at 01:21, Bjørn Forsman <bjorn.fors...@gmail.com> wrote:

> Hi Bas,
>
> On 5 March 2017 at 00:49, Bas van Dijk <v.dijk@gmail.com> wrote:
>
>> Hi Bjørn,
>>
>> At LumiGuide I use the following systemd service to setup hydra:
>>
>> # Create a hydra admin user named "" and copy the GitHub private SSH
>> # key to hydra's home directory so that it can connect to GitHub to clone
>> # our repo's.
>> systemd.services.lumi-hydra-setup = {
>> wantedBy = [ "multi-user.target" ];
>> requires = [ "hydra-init.service" "postgresql.service" ];
>> after = [ "hydra-init.service" "postgresql.service" ];
>> environment = config.systemd.services.hydra-init.environment;
>> path = [ config.services.hydra.package ];
>> script =
>> let hydraHome = config.users.users.hydra.home;
>> hydraQueueRunnerHome = config.users.users.hydra-queue-runner.home;
>> in ''
>> hydra-create-user  \
>> --full-name '' \
>> --email-address 'x...@lumiguide.nl' \
>> --password '${cfg.Password}' \
>> --role admin
>>
>> mkdir -p "${hydraHome}/.ssh"
>> chmod 700 "${hydraHome}/.ssh"
>> cp "**" "${hydraHome}/.ssh/id_rsa"
>> chown -R hydra:hydra "${hydraHome}/.ssh"
>> chmod 600 "${hydraHome}/.ssh/id_rsa"
>> mkdir -p "${hydraQueueRunnerHome}/.ssh"
>> chmod 700 "${hydraQueueRunnerHome}/.ssh"
>> cp "**" "${hydraQueueRunnerHome}/.ssh/id_rsa"
>> chown -R hydra-queue-runner:hydra "${hydraQueueRunnerHome}/.ssh"
>> chmod 600 "${hydraQueueRunnerHome}/.ssh/id_rsa"
>> '';
>> serviceConfig = {
>> Type = "oneshot";
>> RemainAfterExit = true;
>> };
>> }; Note that I set the environment to be the hydra-init environment.
>> With a bit of luck that's the solution for your problem.
>>
>
> Thanks for the tip and example code. Yes, it was a missing environment
> variable! After looking at the environment for the hydra-init service
>
>   $ nixos-option systemd.services.hydra-init.environment
>   Value:
>   { HYDRA_CONFIG = "/var/lib/hydra/hydra.conf"; [...snipped...]
>
> and trying various combinations of those environment variables, I found
> that I only needed HYDRA_CONFIG to make it work.
>
>   $ sudo -u hydra -E HYDRA_CONFIG="/var/lib/hydra/hydra.conf"
> hydra-create-user alice --full-name 'Alice Q. User' --email-address '
> al...@example.org' --password alice --role admin
>   creating new user `alice'
>

Since the nixpkgs hydra module defines all HYDRA_* environment variables to
be global environment variables (set in NixOS environment.variables
option), I guess what blocked me the first time was that sudo restricts the
environment. I guess the the better/easier way would be "sudo -E
hydra-create-user ..." (unless using a systemd service that is).

  $ sudo -E hydra-create-user bfo --full-name 'Bjørn Forsman' --password
bfo --role admin
  updating existing user `bfo'

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Cannot run "hydra-create-user" ("no such table: Users")

2017-03-06 Thread Bjørn Forsman
On 5 March 2017 at 01:21, Bjørn Forsman <bjorn.fors...@gmail.com> wrote:

> Hi Bas,
>
> On 5 March 2017 at 00:49, Bas van Dijk <v.dijk@gmail.com> wrote:
>
>> Hi Bjørn,
>>
>> At LumiGuide I use the following systemd service to setup hydra:
>>
>> # Create a hydra admin user named "" and copy the GitHub private SSH
>> # key to hydra's home directory so that it can connect to GitHub to clone
>> # our repo's.
>> systemd.services.lumi-hydra-setup = {
>> wantedBy = [ "multi-user.target" ];
>> requires = [ "hydra-init.service" "postgresql.service" ];
>> after = [ "hydra-init.service" "postgresql.service" ];
>> environment = config.systemd.services.hydra-init.environment;
>> path = [ config.services.hydra.package ];
>> script =
>> let hydraHome = config.users.users.hydra.home;
>> hydraQueueRunnerHome = config.users.users.hydra-queue-runner.home;
>> in ''
>> hydra-create-user  \
>> --full-name '' \
>> --email-address 'x...@lumiguide.nl' \
>> --password '${cfg.Password}' \
>> --role admin
>>
>> mkdir -p "${hydraHome}/.ssh"
>> chmod 700 "${hydraHome}/.ssh"
>> cp "**" "${hydraHome}/.ssh/id_rsa"
>> chown -R hydra:hydra "${hydraHome}/.ssh"
>> chmod 600 "${hydraHome}/.ssh/id_rsa"
>> mkdir -p "${hydraQueueRunnerHome}/.ssh"
>> chmod 700 "${hydraQueueRunnerHome}/.ssh"
>> cp "**" "${hydraQueueRunnerHome}/.ssh/id_rsa"
>> chown -R hydra-queue-runner:hydra "${hydraQueueRunnerHome}/.ssh"
>> chmod 600 "${hydraQueueRunnerHome}/.ssh/id_rsa"
>> '';
>> serviceConfig = {
>> Type = "oneshot";
>> RemainAfterExit = true;
>> };
>> }; Note that I set the environment to be the hydra-init environment.
>> With a bit of luck that's the solution for your problem.
>>
>
> Thanks for the tip and example code. Yes, it was a missing environment
> variable! After looking at the environment for the hydra-init service
>
>   $ nixos-option systemd.services.hydra-init.environment
>   Value:
>   { HYDRA_CONFIG = "/var/lib/hydra/hydra.conf"; [...snipped...]
>
> and trying various combinations of those environment variables, I found
> that I only needed HYDRA_CONFIG to make it work.
>
>   $ sudo -u hydra -E HYDRA_CONFIG="/var/lib/hydra/hydra.conf"
> hydra-create-user alice --full-name 'Alice Q. User' --email-address '
> al...@example.org' --password alice --role admin
>   creating new user `alice'
>

What I wrote above is wrong. It's "sudo -E" (pass along existing
environment variables) that makes it work, not only HYDRA_CONFIG=...

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Cannot run "hydra-create-user" ("no such table: Users")

2017-03-06 Thread Bjørn Forsman
Hi Bas,

On 5 March 2017 at 00:49, Bas van Dijk <v.dijk@gmail.com> wrote:

> Hi Bjørn,
>
> At LumiGuide I use the following systemd service to setup hydra:
>
> # Create a hydra admin user named "" and copy the GitHub private SSH
> # key to hydra's home directory so that it can connect to GitHub to clone
> # our repo's.
> systemd.services.lumi-hydra-setup = {
> wantedBy = [ "multi-user.target" ];
> requires = [ "hydra-init.service" "postgresql.service" ];
> after = [ "hydra-init.service" "postgresql.service" ];
> environment = config.systemd.services.hydra-init.environment;
> path = [ config.services.hydra.package ];
> script =
> let hydraHome = config.users.users.hydra.home;
> hydraQueueRunnerHome = config.users.users.hydra-queue-runner.home;
> in ''
> hydra-create-user  \
> --full-name '' \
> --email-address 'x...@lumiguide.nl' \
> --password '${cfg.Password}' \
> --role admin
>
> mkdir -p "${hydraHome}/.ssh"
> chmod 700 "${hydraHome}/.ssh"
> cp "**" "${hydraHome}/.ssh/id_rsa"
> chown -R hydra:hydra "${hydraHome}/.ssh"
> chmod 600 "${hydraHome}/.ssh/id_rsa"
> mkdir -p "${hydraQueueRunnerHome}/.ssh"
> chmod 700 "${hydraQueueRunnerHome}/.ssh"
> cp "**" "${hydraQueueRunnerHome}/.ssh/id_rsa"
> chown -R hydra-queue-runner:hydra "${hydraQueueRunnerHome}/.ssh"
> chmod 600 "${hydraQueueRunnerHome}/.ssh/id_rsa"
> '';
> serviceConfig = {
> Type = "oneshot";
> RemainAfterExit = true;
> };
> }; Note that I set the environment to be the hydra-init environment. With
> a bit of luck that's the solution for your problem.
>

Thanks for the tip and example code. Yes, it was a missing environment
variable! After looking at the environment for the hydra-init service

  $ nixos-option systemd.services.hydra-init.environment
  Value:
  { HYDRA_CONFIG = "/var/lib/hydra/hydra.conf"; [...snipped...]

and trying various combinations of those environment variables, I found
that I only needed HYDRA_CONFIG to make it work.

  $ sudo -u hydra -E HYDRA_CONFIG="/var/lib/hydra/hydra.conf"
hydra-create-user alice --full-name 'Alice Q. User' --email-address '
al...@example.org' --password alice --role admin
  creating new user `alice'

I find it strange that hydra-create-user gives such a misleading/useless
error message ("no such table: Users") just because it doesn't have access
to hydra.conf. It's not like hydra.conf deals with the database:

  8< (/var/lib/hydra/hydra.conf)
  using_frontend_proxy 1
  base_uri http://localhost:3000/
  notification_sender hydra-nore...@bforsman.name
  max_servers 25

  gc_roots_dir /nix/var/nix/gcroots/hydra
  >8

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-commits] [NixOS/nixpkgs] b6f590: Add ndowens to maintainers.nix (unbreak tarball jo...

2017-03-05 Thread Bjørn Forsman
  Branch: refs/heads/release-16.09
  Home:   https://github.com/NixOS/nixpkgs
  Commit: b6f590a10ecb51aa50a2c99d4ba29422dbd60437
  
https://github.com/NixOS/nixpkgs/commit/b6f590a10ecb51aa50a2c99d4ba29422dbd60437
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-03-05 (Sun, 05 Mar 2017)

  Changed paths:
M lib/maintainers.nix

  Log Message:
  ---
  Add ndowens to maintainers.nix (unbreak tarball job)

Should have been included before commit bef80f1693
("wgetpaste: 2.25 -> 2.28"). Oops. Copied from master branch.


  Commit: 2482e8cf0ab7aa468490a1488ae7306a8094686b
  
https://github.com/NixOS/nixpkgs/commit/2482e8cf0ab7aa468490a1488ae7306a8094686b
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-03-05 (Sun, 05 Mar 2017)

  Changed paths:
M pkgs/tools/backup/borg/default.nix

  Log Message:
  ---
  borgbackup: 1.0.9 -> 1.0.10

(cherry picked from commit 5f1398ce13048714a5d94e1532dc0049a748b02a)


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


[Nix-commits] [NixOS/nixpkgs] 5f1398: borgbackup: 1.0.9 -> 1.0.10

2017-03-05 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 5f1398ce13048714a5d94e1532dc0049a748b02a
  
https://github.com/NixOS/nixpkgs/commit/5f1398ce13048714a5d94e1532dc0049a748b02a
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-03-05 (Sun, 05 Mar 2017)

  Changed paths:
M pkgs/tools/backup/borg/default.nix

  Log Message:
  ---
  borgbackup: 1.0.9 -> 1.0.10


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


Re: [Nix-dev] 'nixos-stable' channel? (was: Re: NixOS 17.03 Beta, 16.09 Security Support Timeline)

2017-03-05 Thread Bjørn Forsman
On 5 March 2017 at 20:22, Kevin Cox <kevin...@kevincox.ca> wrote:
> Oops, forgot to include the list.
>
> On Mar 5, 2017 16:15, "Sander" <ni...@humilis.net> wrote:
>
> Graham Christensen wrote (ao):
>> NixOS 17.03 has entered Beta. This means we now have 3 versions of NixOS
>> being developed:
>>
>>  - 16.09 (stable)
>>  - 17.03 (beta)
>>  - unstable
>
> Would it make sense to have a 'nixos-stable' channel that points to
> whatever channel is stable?
>
> It's kinda a weird concept, as there would be breaking changes whenever it
> switched between releases but I do see the use of a more tested stream then
> nixos-unstable. Maybe it would be a channel with breaking changes but "no"
> broken packages?
>
> I would love to hear what people think about this.

As long as the nixos-stable channel is an opt-in, why not?

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-commits] [NixOS/nixpkgs] 77777e: nixos/nix-daemon: doc: use literalExample

2017-03-05 Thread Bjørn Forsman
  Branch: refs/heads/release-17.03
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 7e6d450da19882add989c549c9653276f769
  
https://github.com/NixOS/nixpkgs/commit/7e6d450da19882add989c549c9653276f769
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-03-05 (Sun, 05 Mar 2017)

  Changed paths:
M nixos/modules/services/misc/nix-daemon.nix

  Log Message:
  ---
  nixos/nix-daemon: doc: use literalExample

Makes the example more readable by not squashed everything onto one
single line.

(cherry picked from commit 316e7d67646d2d12382871ca439db99ba168740c)


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


[Nix-commits] [NixOS/nixpkgs] 316e7d: nixos/nix-daemon: doc: use literalExample

2017-03-05 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 316e7d67646d2d12382871ca439db99ba168740c
  
https://github.com/NixOS/nixpkgs/commit/316e7d67646d2d12382871ca439db99ba168740c
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-03-05 (Sun, 05 Mar 2017)

  Changed paths:
M nixos/modules/services/misc/nix-daemon.nix

  Log Message:
  ---
  nixos/nix-daemon: doc: use literalExample

Makes the example more readable by not squashed everything onto one
single line.


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


[Nix-dev] Cannot run "hydra-create-user" ("no such table: Users")

2017-03-04 Thread Bjørn Forsman
Hi all Hydra + Nixpkgs users,

How did you manage to run "hydra-create-user"? It fails for me:

  $ sudo -u hydra hydra-create-user alice --full-name 'Alice Q. User'
--email-address 'al...@example.org' --password alice --role admin
  DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception:
DBD::SQLite::db prepare_cached failed: no such table: Users at
/nix/store/2jy4y3nml6qljayqjlrf8mx6rrgj8g4l-hydra-2017-02-03/bin/.hydra-create-user-wrapped
line 56

This is on NixOS 17.03, using the hydra module provided by nixpkgs.
I've set "services.hydra.enable = true" in configuration.nix,
activated the configuration and verified that the hydra webUI is up. I
even have the 'Users' table that "hydra-create-user" says does not
exist:

  $ sudo psql -U hydra
  psql (9.5.6)
  Type "help" for help.

  hydra=> select * from Users;
   username | fullname | emailaddress | password | emailonerror | type
| publicdashboard
  
--+--+--+--+--+--+-
  (0 rows)

Any suggestions?

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] binutils missing libbfd

2017-03-02 Thread Bjørn Forsman
On 3 March 2017 at 00:27, Nawal Husnoo <na...@husnoo.com> wrote:
> Hi,
>
> I'm trying to build simulavr, using the script below. However, it's not
> finding *binutils-2.27/lib/libbfd.so
>
>
> bfd search-
> /nix/store/43cpb15i8jjing1gwn8rmbg80lhl8kqv-binutils-2.27/lib/libbfd.la in
> "include" and ""... no
> configure: error:
> Could not locate libbfd.so/libbfd.a and/or bfd.h.
>
>
> But it's possible to have it installed:
>
> $ ls /nix/store/*binutils*/lib/libbfd*
> /nix/store/2mvblw8kq86ncaidjrp3x4rssy1lhlhi-binutils-2.27/lib/libbfd-2.27.so
> /nix/store/2mvblw8kq86ncaidjrp3x4rssy1lhlhi-binutils-2.27/lib/libbfd.la
> /nix/store/2mvblw8kq86ncaidjrp3x4rssy1lhlhi-binutils-2.27/lib/libbfd.so
> /nix/store/b7sf8p9fgjlrwr1ndwvwdy71lfnn02pv-binutils-2.27-lib/lib/libbfd-2.27.so
> /nix/store/b7sf8p9fgjlrwr1ndwvwdy71lfnn02pv-binutils-2.27-lib/lib/libbfd.la
> /nix/store/b7sf8p9fgjlrwr1ndwvwdy71lfnn02pv-binutils-2.27-lib/lib/libbfd.so
> /nix/store/cwxfpjwr4fp6mhyfc46pj0apy4w4dwyr-binutils-2.27-lib/lib/libbfd-2.27.so
> /nix/store/cwxfpjwr4fp6mhyfc46pj0apy4w4dwyr-binutils-2.27-lib/lib/libbfd.la
> /nix/store/cwxfpjwr4fp6mhyfc46pj0apy4w4dwyr-binutils-2.27-lib/lib/libbfd.so
> /nix/store/j1myzr7f9139kckijcy6yqv4l62vml8j-binutils-2.27-lib/lib/libbfd-2.27.so
> /nix/store/j1myzr7f9139kckijcy6yqv4l62vml8j-binutils-2.27-lib/lib/libbfd.la
> /nix/store/j1myzr7f9139kckijcy6yqv4l62vml8j-binutils-2.27-lib/lib/libbfd.so

I had the same problem in 2014[1]. Didn't solve it :-)

According to "./configure --help", the binutils package needs to be
the one cross-compiled for AVR.

Do you know how simulavr compares to simavr? simulavr seems pretty
dead, whereas simavr maintainer just put out a release. Or is simulavr
simply "completed"?

[1]: https://github.com/bjornfor/nixpkgs/tree/avr-stuff

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Copy a closure to machine with no Nix installed on it

2017-03-02 Thread Bjørn Forsman
On 2 March 2017 at 17:38, Volth <vo...@volth.com> wrote:
> Hello
>
> What is a good way to copy a closure to a Linux machine where Nix is
> not installed (and it is tricky to install: 1. there is only root
> account and 2. there may be no Internet access) ?
>
> "nix-copy-closure" expects "nix-store" on the target machine.
>
> Would "nix-store" be a single executable with no dependencies, it
> could be uploaded beforehand, but it has a lot of dependencies so its
> uploading is also the task of uploading a closure to a machine without
> Nix...

Don't know how to do it without Nix, but Nix can be installed offline.
Get the binary tarball for you system:

http://nixos.org/releases/nix/nix-1.11.7/nix-1.11.7-x86_64-linux.tar.bz2

Copy it to your target machine, unpack and run ./install from the
extracted tree.

That creates a single user install. It requires sudo to create the
/nix directory, everything else is owned and run by your user. (There
are ways to run nix from $HOME or wherever, I think "proot" is a good
search word.)

Once you have nix you have nix-copy-closure.

Hope that helps.

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-commits] [NixOS/nixpkgs] 2ebc19: simavr: 1.3 -> 1.5 (fixes build)

2017-03-01 Thread Bjørn Forsman
  Branch: refs/heads/release-17.03
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 2ebc198933e995e7ec7c427164a06a7d5d30854f
  
https://github.com/NixOS/nixpkgs/commit/2ebc198933e995e7ec7c427164a06a7d5d30854f
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-03-01 (Wed, 01 Mar 2017)

  Changed paths:
M pkgs/development/tools/simavr/default.nix

  Log Message:
  ---
  simavr: 1.3 -> 1.5 (fixes build)

(cherry picked from commit 96d774747bb04a95f39f1336a56248012bd007fb)


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


[Nix-commits] [NixOS/nixpkgs] 96d774: simavr: 1.3 -> 1.5 (fixes build)

2017-03-01 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 96d774747bb04a95f39f1336a56248012bd007fb
  
https://github.com/NixOS/nixpkgs/commit/96d774747bb04a95f39f1336a56248012bd007fb
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-03-01 (Wed, 01 Mar 2017)

  Changed paths:
M pkgs/development/tools/simavr/default.nix

  Log Message:
  ---
  simavr: 1.3 -> 1.5 (fixes build)


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


Re: [Nix-dev] Wrong tags in nixpkgs

2017-03-01 Thread Bjørn Forsman
On 1 March 2017 at 13:49, Kamil Chmielewski <kamil@gmail.com> wrote:
> 3 more left with names starting with 'black@'

Thanks, I didn't notice.

$ git push origin --delete black@2016-06-02 black@2016-08-31 black@2016-09-01
To https://github.com/NixOS/nixpkgs.git
 - [deleted] black@2016-06-02
 - [deleted] black@2016-08-31
 - [deleted] black@2016-09-01

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Qt and KDE updates

2017-02-28 Thread Bjørn Forsman
On 28 February 2017 at 21:10, Vladimír Čunát <vcu...@gmail.com> wrote:
> On 02/28/2017 12:51 PM, Thomas Tuegel wrote:
>> Package maintainers should read the updated Qt and KDE documentation in
>> the Nixpkgs manual (unfortunately this is not updated on nixos.org yet;
>> you can build the manual yourself or read the source on GitHub [1]).
>
> http://nixos.org/nixos/manual/ shows the one for 16.09 on purpose
> (current stable), so it should not be there yet.

I guess this is stating the obvious, but we really should have the
manuals for both stable and unstable available on nixos.org (IMHO).

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Wrong tags in nixpkgs

2017-02-28 Thread Bjørn Forsman
On 28 February 2017 at 21:16, Vladimír Čunát <vcu...@gmail.com> wrote:
> On 02/28/2017 09:12 PM, Kamil Chmielewski wrote:
>> I don't how could than happened and how could I remove it from upstream?
>
> I just ran:
> $ git push origin :v192
> To github.com:NixOS/nixpkgs.git
>  - [deleted] v192
>
> You can finish with the others (I'm not certain which they are).

Oh, I just took the rest!

$ git push origin --delete black@2016-05-13 v206 v208
To https://github.com/nixos/nixpkgs.git
 - [deleted]   black@2016-05-13
 - [deleted]   v206
 - [deleted]   v208

Hehe, I wondered what happened to v192 :-)

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Wrong tags in nixpkgs

2017-02-28 Thread Bjørn Forsman
Hi Kamil,

I think you mistakenly pushed some tags to upstream nixpkgs repo (some
of those tags are annotated, so they contain your email):

$ git pull
...
From https://github.com/nixos/nixpkgs
   63fee95d58..40de598c60  release-16.09-> origin/release-16.09
   0dee2a1bcc..62c5f68847  master   -> origin/master
 * [new branch]release-17.03-> origin/release-17.03
   079353e208..ffcc897090  staging  -> origin/staging
 * [new tag]   black@2016-05-13 -> black@2016-05-13
 * [new tag]   v192 -> v192
 * [new tag]   v206 -> v206
 * [new tag]   v208 -> v208

Care to remove them?

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-commits] [NixOS/nixpkgs] fc8e0c: sysdig: give the source tarball a meaningful name

2017-02-28 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: fc8e0ccc2e170f75a6fbfe4f9fc1b8602ccb0374
  
https://github.com/NixOS/nixpkgs/commit/fc8e0ccc2e170f75a6fbfe4f9fc1b8602ccb0374
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-28 (Tue, 28 Feb 2017)

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

  Log Message:
  ---
  sysdig: give the source tarball a meaningful name


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


Re: [Nix-dev] virtualbox broken in master

2017-02-27 Thread Bjørn Forsman
On 27 February 2017 at 23:27, Bjørn Forsman <bjorn.fors...@gmail.com> wrote:
> Hi all,
>
> On latest master:
>
> $ nix-build -A virtualbox
> ...
> Checking for Xmu: found, OK.
> Checking for Mesa / GLU: found (inactive), OK.
> Checking for Qt5:
>   ** qt5 not found!
> Check /tmp/nix-build-virtualbox-5.1.14.drv-0/VirtualBox-5.1.14/configure.log
> for details
> builder for 
> ‘/nix/store/asb216dgn9ihrsy11ral3qhmb9hbhmzy-virtualbox-5.1.14.drv’
> failed with exit code 1
> error: build of
> ‘/nix/store/asb216dgn9ihrsy11ral3qhmb9hbhmzy-virtualbox-5.1.14.drv’
> failed

config.log:

...
using the following command line:
g++  -fPIC -g -O -Wall -o
/tmp/nix-build-virtualbox-5.1.14.drv-0/VirtualBox-5.1.14/.tmp_out
/tmp/nix-build-virtualbox-5.1.14.drv-0/VirtualBox-5.1.14/.tmp_src.cc
"-L/nix/store/rg4d03j01pa1vawgcvk7jcp4ba6aa61a-qtbase-5.7.1/lib
-L/nix/store/rg4d03j01pa1vawgcvk7jcp4ba6aa61a-qtbase-5.7.1/lib
-lQt5Core -lpthread
-I/nix/store/5n6bpwng4cdh0fwmk1dq8vxwciddpmc5-qtbase-5.7.1-dev/include/QtCore
-I/nix/store/5n6bpwng4cdh0fwmk1dq8vxwciddpmc5-qtbase-5.7.1-dev/include"
In file included from
/nix/store/5n6bpwng4cdh0fwmk1dq8vxwciddpmc5-qtbase-5.7.1-dev/include/QtCore/qglobal.h:83:0,
 from
/nix/store/5n6bpwng4cdh0fwmk1dq8vxwciddpmc5-qtbase-5.7.1-dev/include/QtCore/QtGlobal:1,
 from
/tmp/nix-build-virtualbox-5.1.14.drv-0/VirtualBox-5.1.14/.tmp_src.cc:1:
/nix/store/5n6bpwng4cdh0fwmk1dq8vxwciddpmc5-qtbase-5.7.1-dev/include/QtCore/qcompilerdetection.h:562:6:
error: #error Qt requires a C++11 compiler and yours does not seem to
be that.
 #error Qt requires a C++11 compiler and yours does not seem to be that.

- Bjørn
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-commits] [NixOS/nixpkgs] 81de55: eclipse: add aliases for "latest" versions

2017-02-27 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 81de55118d2994a0097c8a93a965c11b6d339cc4
  
https://github.com/NixOS/nixpkgs/commit/81de55118d2994a0097c8a93a965c11b6d339cc4
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-27 (Mon, 27 Feb 2017)

  Changed paths:
M pkgs/applications/editors/eclipse/default.nix

  Log Message:
  ---
  eclipse: add aliases for "latest" versions

Add aliases like "eclipse-cpp = eclipse-cpp-46" so that user
configurations can point to "eclipse-cpp" and have it not regularly
break as nixpkgs is updated.


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


[Nix-commits] [NixOS/nixpkgs] 9e21b2: gst-python: align attrname with pkgname

2017-02-27 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 9e21b2c5e99a76379d5993b88f2de645ab2a390c
  
https://github.com/NixOS/nixpkgs/commit/9e21b2c5e99a76379d5993b88f2de645ab2a390c
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-27 (Mon, 27 Feb 2017)

  Changed paths:
M pkgs/applications/audio/morituri/default.nix
M pkgs/applications/audio/quodlibet/default.nix
M pkgs/applications/video/miro/default.nix
M pkgs/development/libraries/farsight2/default.nix
M pkgs/top-level/aliases.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  gst-python: align attrname with pkgname


  Commit: 4b2c7fe3d1c6f46d5829db0e4b9dab1bdbfd8c1b
  
https://github.com/NixOS/nixpkgs/commit/4b2c7fe3d1c6f46d5829db0e4b9dab1bdbfd8c1b
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-27 (Mon, 27 Feb 2017)

  Changed paths:
M pkgs/applications/audio/banshee/default.nix
M pkgs/applications/audio/transcribe/default.nix
M pkgs/applications/networking/instant-messengers/baresip/default.nix
M pkgs/applications/video/miro/default.nix
M pkgs/tools/security/tor/torbrowser.nix
M pkgs/top-level/aliases.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  gst-ffmpeg: align attrname with pkgname


  Commit: 0591cd607b3bcb2af298d978c1cedf8c5d9a1328
  
https://github.com/NixOS/nixpkgs/commit/0591cd607b3bcb2af298d978c1cedf8c5d9a1328
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-27 (Mon, 27 Feb 2017)

  Changed paths:
M pkgs/applications/audio/banshee/default.nix
M pkgs/applications/audio/morituri/default.nix
M pkgs/applications/audio/quodlibet/default.nix
M pkgs/applications/audio/transcribe/default.nix
M pkgs/applications/networking/instant-messengers/baresip/default.nix
M pkgs/applications/video/miro/default.nix
M pkgs/desktops/xfce/applications/xfce4-mixer.nix
M pkgs/tools/networking/uget/default.nix
M pkgs/tools/security/tor/torbrowser.nix
M pkgs/top-level/aliases.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  gst-plugins-good: align attrname with pkgname


  Commit: 1ea4146f66b7751f3bbabc351b18d37f0228a241
  
https://github.com/NixOS/nixpkgs/commit/1ea4146f66b7751f3bbabc351b18d37f0228a241
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-27 (Mon, 27 Feb 2017)

  Changed paths:
M pkgs/applications/audio/banshee/default.nix
M pkgs/applications/audio/quodlibet/default.nix
M pkgs/applications/audio/transcribe/default.nix
M pkgs/applications/networking/instant-messengers/baresip/default.nix
M pkgs/applications/networking/instant-messengers/gajim/default.nix
M pkgs/top-level/aliases.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  gst-plugins-bad: align attrname with pkgname


  Commit: 6b73e57e561ad5da21cd93b82674a5249ee6a391
  
https://github.com/NixOS/nixpkgs/commit/6b73e57e561ad5da21cd93b82674a5249ee6a391
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-27 (Mon, 27 Feb 2017)

  Changed paths:
M pkgs/applications/audio/banshee/default.nix
M pkgs/applications/audio/quodlibet/default.nix
M pkgs/applications/audio/transcribe/default.nix
M pkgs/top-level/aliases.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  gst-plugins-ugly: align attrname with pkgname


  Commit: 512bd7c52248b7a7a10d256c3ac68bd3aa9fc9ec
  
https://github.com/NixOS/nixpkgs/commit/512bd7c52248b7a7a10d256c3ac68bd3aa9fc9ec
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-27 (Mon, 27 Feb 2017)

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

  Log Message:
  ---
  qt-gstreamer: align attrname with pkgname


  Commit: c49533a4949b5fc7d3511dce7df4c27f811df4d7
  
https://github.com/NixOS/nixpkgs/commit/c49533a4949b5fc7d3511dce7df4c27f811df4d7
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-27 (Mon, 27 Feb 2017)

  Changed paths:
M pkgs/applications/networking/instant-messengers/telepathy/kde/default.nix
M pkgs/applications/science/robotics/qgroundcontrol/default.nix
M pkgs/top-level/aliases.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  qt-gstreamer1: align attrname with pkgname


  Commit: 3d104ab2b3e578cb4599b6fffbcc019b09547521
  
https://github.com/NixOS/nixpkgs/commit/3d104ab2b3e578cb4599b6fffbcc019b09547521
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-27 (Mon, 27 Feb 2017)

  Changed paths:
M pkgs/applications/audio/banshee/default.nix
M pkgs/applications/audio/clementine/default.nix
M pkgs/applications/audio/morituri/default.nix
M pkgs/applications/audio/quodlibet/default.nix
M pkgs/applications/audio/transcribe/default.nix
M pkgs/applications/networking/browsers/firefox-bi

[Nix-commits] [NixOS/nixpkgs] 63fee9: pythonPackages.gst-python: fix source hash

2017-02-26 Thread Bjørn Forsman
  Branch: refs/heads/release-16.09
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 63fee95d58fdd00e3bdd97ceb9c5b620bfdaa2d4
  
https://github.com/NixOS/nixpkgs/commit/63fee95d58fdd00e3bdd97ceb9c5b620bfdaa2d4
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-26 (Sun, 26 Feb 2017)

  Changed paths:
M pkgs/development/libraries/gstreamer/python/default.nix

  Log Message:
  ---
  pythonPackages.gst-python: fix source hash

Commit 5e937b173d4f6b9e90784e65c886e7e0f3798817
("gstreamer: 1.10.3 -> 1.10.4 for multiple CVEs") bumped the version but not
the hash.

(cherry picked from commit 392331ad58a6b5f9164ca59e3e70f3c56d476e16)


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


[Nix-commits] [NixOS/nixpkgs] 392331: pythonPackages.gst-python: fix source hash

2017-02-26 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 392331ad58a6b5f9164ca59e3e70f3c56d476e16
  
https://github.com/NixOS/nixpkgs/commit/392331ad58a6b5f9164ca59e3e70f3c56d476e16
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-26 (Sun, 26 Feb 2017)

  Changed paths:
M pkgs/development/libraries/gstreamer/python/default.nix

  Log Message:
  ---
  pythonPackages.gst-python: fix source hash

Commit 5e937b173d4f6b9e90784e65c886e7e0f3798817
("gstreamer: 1.10.3 -> 1.10.4 for multiple CVEs") bumped the version but not
the hash.


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


[Nix-commits] [NixOS/nixpkgs] 46e442: munin: add 'bc' (needed by 'acpi' and 'snort_pkts'...

2017-02-25 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 46e44222d6b656cc9830df0ae38a04c941d56f4b
  
https://github.com/NixOS/nixpkgs/commit/46e44222d6b656cc9830df0ae38a04c941d56f4b
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-25 (Sat, 25 Feb 2017)

  Changed paths:
M pkgs/servers/monitoring/munin/default.nix

  Log Message:
  ---
  munin: add 'bc' (needed by 'acpi' and 'snort_pkts' plugins)


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


[Nix-commits] [NixOS/nixpkgs] 64d058: Revert "sensu: 0.17.1 -> 0.28.0"

2017-02-24 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 64d058f472b80477330b7f658a6bdae7670d6d7d
  
https://github.com/NixOS/nixpkgs/commit/64d058f472b80477330b7f658a6bdae7670d6d7d
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-24 (Fri, 24 Feb 2017)

  Changed paths:
M pkgs/servers/monitoring/sensu/Gemfile.lock
M pkgs/servers/monitoring/sensu/default.nix
M pkgs/servers/monitoring/sensu/gemset.nix

  Log Message:
  ---
  Revert "sensu: 0.17.1 -> 0.28.0"

This reverts commit 4588f94396c72334ed40a2c3eda51f18a33f03c4.

Because it breaks nixpkgs evaluation.


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


[Nix-commits] [NixOS/nixpkgs] afd8c9: spotify: 1.0.49.125.g72ee7853-83 -> 1.0.49.125.g72...

2017-02-23 Thread Bjørn Forsman
  Branch: refs/heads/release-16.09
  Home:   https://github.com/NixOS/nixpkgs
  Commit: afd8c9deca83fef9fa88d10431a6b742556dd395
  
https://github.com/NixOS/nixpkgs/commit/afd8c9deca83fef9fa88d10431a6b742556dd395
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-23 (Thu, 23 Feb 2017)

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

  Log Message:
  ---
  spotify: 1.0.49.125.g72ee7853-83 -> 1.0.49.125.g72ee7853-111

(cherry picked from commit 52eab0376cdfb5282c5c0147f3286c36ffed88aa)


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


[Nix-commits] [NixOS/nixpkgs] 52eab0: spotify: 1.0.49.125.g72ee7853-83 -> 1.0.49.125.g72...

2017-02-23 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 52eab0376cdfb5282c5c0147f3286c36ffed88aa
  
https://github.com/NixOS/nixpkgs/commit/52eab0376cdfb5282c5c0147f3286c36ffed88aa
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-23 (Thu, 23 Feb 2017)

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

  Log Message:
  ---
  spotify: 1.0.49.125.g72ee7853-83 -> 1.0.49.125.g72ee7853-111


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


[Nix-commits] [NixOS/nixpkgs] 73112a: pcsctools: unbreak 'gscriptor' by adding cairo

2017-02-17 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 73112a6e788a0f41190bcf3d3a2247c2fc17a1e8
  
https://github.com/NixOS/nixpkgs/commit/73112a6e788a0f41190bcf3d3a2247c2fc17a1e8
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-17 (Fri, 17 Feb 2017)

  Changed paths:
M pkgs/tools/security/pcsctools/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  pcsctools: unbreak 'gscriptor' by adding cairo

Fixes this:

  $ gscriptor
  Can't load 
'/nix/store/17w6hdwbli924v7d43xxxp66qhgqpc24-perl-Pango-1.227/lib/perl5/site_perl/5.22.2/x86_64-linux-thread-multi/auto/Pango/Pango.so'
 for module Pango: 
/nix/store/17w6hdwbli924v7d43xxxp66qhgqpc24-perl-Pango-1.227/lib/perl5/site_perl/5.22.2/x86_64-linux-thread-multi/auto/Pango/Pango.so:
 undefined symbol: cairo_font_type_to_sv at 
/nix/store/5z1wn7knhckr3a0asb8lzp99sdai09f2-perl-5.22.2/lib/perl5/5.22.2/x86_64-linux-thread-multi/DynaLoader.pm
 line 193.
   at 
/nix/store/srdac7af3nz6fb74haa8l8ls9wd9pas0-perl-Gtk2-1.2498/lib/perl5/site_perl/5.22.2/x86_64-linux-thread-multi/Gtk2.pm
 line 31.
  Compilation failed in require at 
/nix/store/srdac7af3nz6fb74haa8l8ls9wd9pas0-perl-Gtk2-1.2498/lib/perl5/site_perl/5.22.2/x86_64-linux-thread-multi/Gtk2.pm
 line 31.
  BEGIN failed--compilation aborted at 
/nix/store/srdac7af3nz6fb74haa8l8ls9wd9pas0-perl-Gtk2-1.2498/lib/perl5/site_perl/5.22.2/x86_64-linux-thread-multi/Gtk2.pm
 line 31.
  Compilation failed in require at 
/nix/store/sgy2xsyvmam09pl25x8gb507gyiz9ybn-pcsc-tools-1.4.25/bin/.gscriptor-wrapped
 line 28.
  BEGIN failed--compilation aborted at 
/nix/store/sgy2xsyvmam09pl25x8gb507gyiz9ybn-pcsc-tools-1.4.25/bin/.gscriptor-wrapped
 line 28.


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


[Nix-commits] [NixOS/nixpkgs] e355b9: geteltorito: init at 0.6 (#18614)

2017-02-16 Thread Bjørn Forsman
  Branch: refs/heads/release-16.09
  Home:   https://github.com/NixOS/nixpkgs
  Commit: e355b970c79afec4fdd3fc0c4505821d8923e4c8
  
https://github.com/NixOS/nixpkgs/commit/e355b970c79afec4fdd3fc0c4505821d8923e4c8
  Author: Profpatsch <m...@profpatsch.de>
  Date:   2017-02-16 (Thu, 16 Feb 2017)

  Changed paths:
A pkgs/tools/misc/geteltorito/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  geteltorito: init at 0.6 (#18614)

(cherry picked from commit c535924f5f2cd1278d29a50d3f78042961088420)


  Commit: 5e303aaae8fb2beb5ee7c2896131059f09179784
  
https://github.com/NixOS/nixpkgs/commit/5e303aaae8fb2beb5ee7c2896131059f09179784
  Author: Profpatsch <m...@profpatsch.de>
  Date:   2017-02-16 (Thu, 16 Feb 2017)

  Changed paths:
M pkgs/tools/misc/geteltorito/default.nix

  Log Message:
  ---
  geteltorito: switch to upstream dist (#19226)

Upstream has now a versioned release, so we switch over from the github
mirror.
(cherry picked from commit bc8733aae609aa83678458f5a0dc47008fc7e22e)


  Commit: 3c227aaa5324186f2b943622ceed585e3880384d
  
https://github.com/NixOS/nixpkgs/commit/3c227aaa5324186f2b943622ceed585e3880384d
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-16 (Thu, 16 Feb 2017)

  Changed paths:
A pkgs/tools/filesystems/genimage/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  genimage: init at 9

Genimage is a tool to generate filesystem images from directory trees.

(cherry picked from commit a1892edcee7da13fb4dda1a2e6fc22b9d904671b)


Compare: https://github.com/NixOS/nixpkgs/compare/c1f233112196...3c227aaa5324___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] d4e5bb: nixos/geoip-updater: run as user 'geoip' instead o...

2017-02-15 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: d4e5bb34b76c98adee1d7fc00440adeb6a2a8c13
  
https://github.com/NixOS/nixpkgs/commit/d4e5bb34b76c98adee1d7fc00440adeb6a2a8c13
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-15 (Wed, 15 Feb 2017)

  Changed paths:
M nixos/modules/misc/ids.nix
M nixos/modules/services/misc/geoip-updater.nix

  Log Message:
  ---
  nixos/geoip-updater: run as user 'geoip' instead of 'nobody'

That way 'nobody' is prevented from messing with the databases.


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


[Nix-commits] [NixOS/nixpkgs] ce0a52: nixos/security.wrappers: improve documentation

2017-02-15 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: ce0a52f9bfd5bdc5e2e0ed09ee1abaa9b088638e
  
https://github.com/NixOS/nixpkgs/commit/ce0a52f9bfd5bdc5e2e0ed09ee1abaa9b088638e
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-15 (Wed, 15 Feb 2017)

  Changed paths:
M nixos/modules/security/wrappers/default.nix

  Log Message:
  ---
  nixos/security.wrappers: improve documentation

* The source attribute is mandatory, not optional
* The program attribute is optional
* Move the info about the mandatory attribute first (most important,
  IMHO)


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


[Nix-commits] [NixOS/nixpkgs] f9cb2b: nixos/security.wrappers: use literalExample in doc...

2017-02-15 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: f9cb2b56402a76b51fa9fd25a947372f5ec6ff81
  
https://github.com/NixOS/nixpkgs/commit/f9cb2b56402a76b51fa9fd25a947372f5ec6ff81
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-15 (Wed, 15 Feb 2017)

  Changed paths:
M nixos/modules/security/wrappers/default.nix

  Log Message:
  ---
  nixos/security.wrappers: use literalExample in documentation

It's much more readable when the example attrset is pretty printed
instead of written as one line.


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


[Nix-commits] [NixOS/nixpkgs] aaac02: nixos/atd: unbreak after new security.wrappers

2017-02-14 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: aaac02f6c47f509f9371be3b844c45ef779439b1
  
https://github.com/NixOS/nixpkgs/commit/aaac02f6c47f509f9371be3b844c45ef779439b1
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-15 (Wed, 15 Feb 2017)

  Changed paths:
M nixos/modules/services/scheduling/atd.nix

  Log Message:
  ---
  nixos/atd: unbreak after new security.wrappers

* convert list -> attrset
* 'atd' doesn't exist, 'at' does


  Commit: a45821e7a849db511ea4aa1f19040645c3e8d0b3
  
https://github.com/NixOS/nixpkgs/commit/a45821e7a849db511ea4aa1f19040645c3e8d0b3
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-15 (Wed, 15 Feb 2017)

  Changed paths:
M nixos/modules/services/scheduling/cron.nix

  Log Message:
  ---
  nixos/cron: unbreak since new security.wrapper


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


[Nix-commits] [NixOS/nixpkgs] 448acd: nixos: remove remaining reference to setuidProgram...

2017-02-14 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 448acd8e5e722bbd6396f6d069bf1b06993f72d0
  
https://github.com/NixOS/nixpkgs/commit/448acd8e5e722bbd6396f6d069bf1b06993f72d0
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-15 (Wed, 15 Feb 2017)

  Changed paths:
M nixos/modules/security/wrappers/default.nix

  Log Message:
  ---
  nixos: remove remaining reference to setuidPrograms

The option doesn't exist anymore.


  Commit: 34c1b74421f2c158dfb9f54c2855fd7b74ba1bc7
  
https://github.com/NixOS/nixpkgs/commit/34c1b74421f2c158dfb9f54c2855fd7b74ba1bc7
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-15 (Wed, 15 Feb 2017)

  Changed paths:
M nixos/modules/virtualisation/virtualbox-host.nix

  Log Message:
  ---
  nixos/virtualbox: unbreak wrt. new security.wrappers

The new option takes an attrset, not a list.


  Commit: b1bfe9d3db71de1aa9524ec76b188cfe4cd7dd3e
  
https://github.com/NixOS/nixpkgs/commit/b1bfe9d3db71de1aa9524ec76b188cfe4cd7dd3e
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-15 (Wed, 15 Feb 2017)

  Changed paths:
M nixos/modules/rename.nix

  Log Message:
  ---
  nixos: hint about security.setuidOwners/Programs -> security.wrappers

Let users know about the option rename / change during nixos-rebuild
with a useful message instead of an error (with no way forward).


Compare: https://github.com/NixOS/nixpkgs/compare/195ca7393c42...b1bfe9d3db71___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits


Re: [Nix-dev] Which option replaces security.setuidOwners?

2017-02-14 Thread Bjørn Forsman
On 14 February 2017 at 23:04, Bjørn Forsman <bjorn.fors...@gmail.com> wrote:
> On 14 February 2017 at 22:51, Domen Kožar <do...@dev.si> wrote:
>> We need to use renames for backwards compatibility then :)
>
> A rename implies same signature under different namespace (AFAICS).
> This is not the case here, because the option types are different.
>
> I've got a local change that is about to be pushed:
>
> +(mkRemovedOptionModule [ "security" "setuidOwners" ] "Use
> security.wrappers instead")
> +(mkRemovedOptionModule [ "security" "setuidPrograms" ] "Use
> security.wrappers instead")
>
> (I also do some other fixups that was wrt. new security.wrapper to
> make my NixOS build.)

I created PR: https://github.com/NixOS/nixpkgs/pull/22806

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Which option replaces security.setuidOwners?

2017-02-14 Thread Bjørn Forsman
On 14 February 2017 at 22:51, Domen Kožar <do...@dev.si> wrote:
> We need to use renames for backwards compatibility then :)

A rename implies same signature under different namespace (AFAICS).
This is not the case here, because the option types are different.

I've got a local change that is about to be pushed:

+(mkRemovedOptionModule [ "security" "setuidOwners" ] "Use
security.wrappers instead")
+(mkRemovedOptionModule [ "security" "setuidPrograms" ] "Use
security.wrappers instead")

(I also do some other fixups that was wrt. new security.wrapper to
make my NixOS build.)

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Which option replaces security.setuidOwners?

2017-02-14 Thread Bjørn Forsman
Hi all,

Now that security.setuiOwners is removed in master branch, which
option replaces it?

This is what users are faced with currently:

$ nixos-rebuild build -I nixpkgs=.
building Nix...
error: The option `security.setuidOwners' defined in
`/etc/nixos/config/base-small.nix' does not exist.
(use ‘--show-trace’ to show detailed location information)
error: The option `security.setuidOwners' defined in
`/etc/nixos/config/base-small.nix' does not exist.
(use ‘--show-trace’ to show detailed location information)
building the system configuration...
error: The option `security.setuidOwners' defined in
`/etc/nixos/config/base-small.nix' does not exist.
(use ‘--show-trace’ to show detailed location information)

$ git grep setuidOwners
(nothing)

I think we need an assert here telling which option to use instead.

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-commits] [NixOS/nixpkgs] 30e8d5: ccid: 1.4.23 -> 1.4.26

2017-02-14 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 30e8d577f10048526e92d15dd3d547d2fd975b9c
  
https://github.com/NixOS/nixpkgs/commit/30e8d577f10048526e92d15dd3d547d2fd975b9c
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-14 (Tue, 14 Feb 2017)

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

  Log Message:
  ---
  ccid: 1.4.23 -> 1.4.26


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


[Nix-dev] NixOS master broken again

2017-02-13 Thread Bjørn Forsman
Hi all,

Just a reminder to please test builds before pushing. NixOS master is
broken again.

See build error after my signature.

(Are the Hydra developers close to making Hydra build PRs and only
merge on success yet?)

-- 
Best regards,
Bjørn Forsman

$ sudo nixos-rebuild boot -I nixpkgs=. --keep-going
building Nix...
building the system configuration...
these derivations will be built:
  /nix/store/sb40ymc49g4bkfliqzx2iqx7alfw66fp-fgl-5.5.3.0.drv
  /nix/store/jahwq9rpv8v8cj2lm03cfi2xyl58kdwh-fgl-arbitrary-0.2.0.2.drv
  /nix/store/klc6v64zlasd9wil5516smkiri5qqr9d-graphviz-2999.18.1.2.drv
  /nix/store/ll0bwjjpd9iwh2ch8lxknll441n4mh8h-darcs-2.12.5.drv
  /nix/store/bc759vz8wdbyswiky943q2c018s33kk7-hydra-2017-02-03.drv
  /nix/store/zm4wyz3g0wbh3sh2rj5aygl61fs3ay44-nixos-version.drv
  /nix/store/4ldga2cnq2h85b1cm3h048xy62vgpwgz-system-path.drv
  /nix/store/1n56kpvpfqqlzhp26gvkr0czx3d9ws50-unit-polkit.service.drv
  
/nix/store/24a14izbji33xg7hpfp0m292l5l8j3vs-unit-hydra-update-gc-roots.service.drv
  /nix/store/x6cjf3wnga329wj2pl0n2n72px66w40j-xsession.drv
  /nix/store/l4yk0wgg07x9qdrvglq7z6rcmj9r7d4g-desktops.drv
  /nix/store/55srbh116cagywavvwxpsrndlzvwhg6k-unit-display-manager.service.drv
  
/nix/store/7l38c233962pb9xg30yc2d7z514sv190-unit-hydra-queue-runner.service.drv
  /nix/store/czqv3jyr2ayipckbzig4hid7kfi5hb1y-unit-hydra-server.service.drv
  /nix/store/4hx1w0wrrf5fmz7dfkrwpp53z9b2nd2d-dbus-conf.drv
  /nix/store/fr2sdv0lcd7in1k5c6mc1s4kaz8pw092-unit-dbus.service.drv
  /nix/store/s0vp3gqzg57lhdld7qkn3fky15hrci56-unit-hydra-evaluator.service.drv
  /nix/store/yfhr4risqg2b6djiq5v9m5blia8r4k4b-unit-hydra-send-stats.service.drv
  /nix/store/zvym5qpmbh4gzb0rgr03z2i8i7mkn8yx-unit-hydra-init.service.drv
  /nix/store/30aj339ym3i2mmwyf417jm2hqnp1lsiw-system-units.drv
  /nix/store/imk247swqajfyva88bki30gp3zhnvl0z-issue.drv
  /nix/store/s83sq58a2c3fakpcq6v9b60wsc5hvvcs-system-crontab.drv
  /nix/store/xg0m3jlrb48w7cp1zhpbhil15zq3z24v-crontabs.drv
  /nix/store/xvbrf8yl86ijaw54admk4xiphllsqqkc-etc-os-release.drv
  /nix/store/yknab2djk5wjvgyaxafl9z2w8aalf836-user-units.drv
  /nix/store/4kd4gf4v80kck46ywlmvznjr84cv1css-etc.drv
  
/nix/store/wmqwzd2afh9fr0y9x2z2lh3ncvm4mbjp-nixos-system-mini2-17.03.git.be57a1b.drv
building path(s) ‘/nix/store/cajsbw11jrg7dn6wb2pa7bc87zwldpm6-etc-os-release’
building path(s) ‘/nix/store/85q3pkg1bm8s41c98xmvl9yf90sq99yn-issue’
building path(s) ‘/nix/store/2l3wh690j7wggiph9c6yi5z4v7z9iniy-nixos-version’
building path(s) ‘/nix/store/4bqsx3v1c643rqwqg1951vpcxv25w8ys-fgl-5.5.3.0’
setupCompilerEnvironmentPhase
Build with /nix/store/jpbzm09yjfc8wrwyzrm979qhab1yk55b-ghc-8.0.2.
unpacking sources
unpacking source archive
/nix/store/jw1ibazwdw58df4xmxfbc779xqv1k14v-fgl-5.5.3.0.tar.gz
source root is fgl-5.5.3.0
setting SOURCE_DATE_EPOCH to timestamp 1468564825 of file
fgl-5.5.3.0/test/TestSuite.hs
patching sources
compileBuildDriverPhase
setupCompileFlags:
-package-db=/tmp/nix-build-fgl-5.5.3.0.drv-0/package.conf.d -j8
-threaded
[1 of 1] Compiling Main ( Setup.hs,
/tmp/nix-build-fgl-5.5.3.0.drv-0/Main.o )
Linking Setup ...
configuring
configureFlags: --verbose
--prefix=/nix/store/4bqsx3v1c643rqwqg1951vpcxv25w8ys-fgl-5.5.3.0
--libdir=$prefix/lib/$compiler --libsubdir=$pkgid --with-gcc=gcc
--package-db=/tmp/nix-build-fgl-5.5.3.0.drv-0/package.conf.d
--ghc-option=-optl=-Wl,-rpath=/nix/store/4bqsx3v1c643rqwqg1951vpcxv25w8ys-fgl-5.5.3.0/lib/ghc-8.0.2/fgl-5.5.3.0
--ghc-option=-j8 --disable-split-objs --disable-library-profiling
--disable-profiling --enable-shared --enable-library-vanilla
--enable-executable-dynamic --enable-tests
--ghc-option=-split-sections
Configuring fgl-5.5.3.0...
Setup: Encountered missing dependencies:
hspec >=2.1 && <2.3
builder for ‘/nix/store/sb40ymc49g4bkfliqzx2iqx7alfw66fp-fgl-5.5.3.0.drv’
failed with exit code 1
cannot build derivation
‘/nix/store/jahwq9rpv8v8cj2lm03cfi2xyl58kdwh-fgl-arbitrary-0.2.0.2.drv’:
1 dependencies couldn't be built
cannot build derivation
‘/nix/store/klc6v64zlasd9wil5516smkiri5qqr9d-graphviz-2999.18.1.2.drv’:
2 dependencies couldn't be built
cannot build derivation
‘/nix/store/ll0bwjjpd9iwh2ch8lxknll441n4mh8h-darcs-2.12.5.drv’: 2
dependencies couldn't be built
cannot build derivation
‘/nix/store/bc759vz8wdbyswiky943q2c018s33kk7-hydra-2017-02-03.drv’: 1
dependencies couldn't be built
cannot build derivation
‘/nix/store/4ldga2cnq2h85b1cm3h048xy62vgpwgz-system-path.drv’: 1
dependencies couldn't be built
cannot build derivation
‘/nix/store/s0vp3gqzg57lhdld7qkn3fky15hrci56-unit-hydra-evaluator.service.drv’:
1 dependencies couldn't be built
cannot build derivation
‘/nix/store/zvym5qpmbh4gzb0rgr03z2i8i7mkn8yx-unit-hydra-init.service.drv’:
1 dependencies couldn't be built
cannot build derivation
‘/nix/store/7l38c233962pb9xg30yc2d7z514sv190-unit-hydra-queue-runner.service.drv’:
1 dependencies couldn't be built
cannot build derivation
‘/nix/store/yfhr4risqg2b6djiq5v9m5blia8r4k4b-unit-hydra-send-stats.service.drv’:
1 dependencies cou

[Nix-commits] [NixOS/nixpkgs] 824d82: nixos/geoip-updater: new service

2017-02-12 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 824d82fa0f6fdd1b2213020283d8bd7aa77738b1
  
https://github.com/NixOS/nixpkgs/commit/824d82fa0f6fdd1b2213020283d8bd7aa77738b1
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-12 (Sun, 12 Feb 2017)

  Changed paths:
M nixos/modules/module-list.nix
A nixos/modules/services/misc/geoip-updater.nix

  Log Message:
  ---
  nixos/geoip-updater: new service

The GeoIP databases from MaxMind have no stable URLs and change every
month (or so). Our current method of packaging these database in Nix and
playing catch-up with ever-changing file hashes is a bad idea. For
instance, it makes it impossible to realize old NixOS configurations.

This patch adds a NixOS service that periodically updates the GeoIP
databases in /var/lib/geoip-databases. Moving NixOS modules over can be
done in later patches.

I tried adding MD5 check, but not all databases have them, so i skipped
it. We are downloading over HTTPS though, it should be good. I also
tried adding zip support, but the first zip file I extracted had a
different filename inside than the archive name, which breaks an
assumption in this service, so I skipped that too.

Changes v9 -> v10:
  - Pass "--max-time" to curl to set upper bound on downloads (ensures
no indefinite hanging if there's problem with networking).
Timeout for network connectivity check: 60s.
Timeout for geoip database (each): 15m.

Changes v8 -> v9:
  - Mention the random timer delay in the documentation for the
'interval' option.

Changes v7 -> v8:
  - Add "RemainAfterExit=true" for the setup service, so it won't be
restarted needlessly. (Thanks @danbst!)

Changes v6 -> v7:
  - Add --skip-existing flag to geoip-updater, which skips updating
existing database files. Pass that flag when we run the service on
boot (and on any NixOS configuration change).
(IMHO, this is somewhat a workaround for systemd persistent timers
not being triggered immediately when a timer has never expired
before. But it does have the nice side effect of ensuring that the
installed databases always correspond to the configured ones, since
the service is now always run after configuration changes.)

Changes v5 -> v6:
  - Update database files atomically (per DB)
  - If a database is removed from the configuration, it'll be removed
from /var/lib/geoip-databases too (on next run).
  - Add NixOS module assertion so that if user inputs non- .gz or .xz
file there will be a build time error instead of runtime.
  - Run updater as user "nobody" instead of "root".
  - Rename NixOS service from "geoip-databases" to "geoip-updater".
  - Drop RemainAfterExit, or else the timer won't trigger the unit.
  - Bring back "curl --fail", or else we won't catch and log curl
failures.

Changes v4 -> v5:
  - Add "GeoLite2-City.mmdb.gz" to default database list.

Changes v3 -> v4:
  - Remove unneeded geoip-updater-setup.service after adding
'wantedBy = [ "multi-user.target" ]' directly to
geoip-updater.service
  - Drop unneeded "Service" name from service descriptions.

Changes v2 -> v3:
  - Network may be down when starting from a cold boot, so try a few
times. Possibly, if using systemd-networkd, it'll pass on the first
try. But with default DHCP on NixOS, the service is started before
hostnames can be resolved and thus we need a few extra seconds.
  - Add error handling and mark service as failed if fatal error.
  - Add proper syslog log levels.
  - Add RandomizedDelaySec=3600 to the timer to not put high load on the
MaxMind servers. Suggested by @Mic92.
  - Set RemainAfterExit on geoip-updater.service instead of
geoip-updater-setup.service. (The latter is only a proxy that pulls
in the former service).

Changes v1 -> v2:
>From Данило Глинський (Danylo Hlynskyi) <abcz2.upr...@gmail.com>:
  nixos/geoip-databases: add `databases` option and fix initial setup

  There were two great issues when using this service:
  - When you just enable service, databases aren't downloaded, they are
downloaded when timer triggers. Fixed this with automatic download on
first system activation.
  - When there is no internet, updater outputs nothing to logs, which is
IMO misbehavior. Fixed this with removing `--fail` option, better be
explicit here.


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


[Nix-commits] [NixOS/nixpkgs] 8dd90a: autorevision: use sed word delimiters for better p...

2017-02-07 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 8dd90abc1763a50bcb2372468e1bb6f074433077
  
https://github.com/NixOS/nixpkgs/commit/8dd90abc1763a50bcb2372468e1bb6f074433077
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-07 (Tue, 07 Feb 2017)

  Changed paths:
M pkgs/tools/misc/autorevision/default.nix

  Log Message:
  ---
  autorevision: use sed word delimiters for better precision

Fixes wrongly replaced 'cat' in help text:

$ autorevision -h
usage: autorevision {-t output-type | -s symbol} [-o cache-file [-f] ] [-e 
name] [-U] [-V]
Options include:
-t output-type  = specify output type
-s symbol   = specify symbol output
-o cache-file   = specify cache file 
lo/nix/store/1rzzq2wdn5vfgbp5y9613jpdkf8i9ag6-coreutils-8.26/bin/cation
...

(Also replace all occurences per line, in case that should occur.)


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


[Nix-commits] [NixOS/nixpkgs] 462872: autorevision: specify full paths to 'sed' and 'tee...

2017-02-07 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 4628724469bf987adfdd49f4173e299128d859d9
  
https://github.com/NixOS/nixpkgs/commit/4628724469bf987adfdd49f4173e299128d859d9
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-07 (Tue, 07 Feb 2017)

  Changed paths:
M pkgs/tools/misc/autorevision/default.nix

  Log Message:
  ---
  autorevision: specify full paths to 'sed' and 'tee'


  Commit: 4853900dd3cf1908e92a6287a500368ed4752ef1
  
https://github.com/NixOS/nixpkgs/commit/4853900dd3cf1908e92a6287a500368ed4752ef1
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-07 (Tue, 07 Feb 2017)

  Changed paths:
M pkgs/tools/misc/autorevision/default.nix

  Log Message:
  ---
  autorevision: 1.14 -> 1.20


Compare: https://github.com/NixOS/nixpkgs/compare/e362a3d5c94b...4853900dd3cf___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] d3c7a9: openocd: 0.9.0 -> 0.10.0

2017-02-06 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: d3c7a94b77864949896dd1641200d185c83fd23c
  
https://github.com/NixOS/nixpkgs/commit/d3c7a94b77864949896dd1641200d185c83fd23c
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-06 (Mon, 06 Feb 2017)

  Changed paths:
M pkgs/development/tools/misc/openocd/default.nix

  Log Message:
  ---
  openocd: 0.9.0 -> 0.10.0

Announcement:
http://openocd.org/2017/01/openocd-0-10-0-release-is-out/

The udev rules were renamed. Add code to automatically detect renames in
the future.


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


[Nix-commits] [NixOS/nixpkgs] 8352de: hydra: 2016-04-15 -> 2016-12-09

2017-02-05 Thread Bjørn Forsman
  Branch: refs/heads/release-16.09
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 8352deed4ebddd9968c8a31d43323e1b711cd642
  
https://github.com/NixOS/nixpkgs/commit/8352deed4ebddd9968c8a31d43323e1b711cd642
  Author: Domen Kožar <do...@dev.si>
  Date:   2017-02-05 (Sun, 05 Feb 2017)

  Changed paths:
M pkgs/development/tools/misc/hydra/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  hydra: 2016-04-15 -> 2016-12-09

Fixes #19396 #21424

(cherry picked from commit 8940c68c09df3c96aea3c66603488b4c667f67f4)


  Commit: d837e52eb7367b22fda52c180cad419b24a82a35
  
https://github.com/NixOS/nixpkgs/commit/d837e52eb7367b22fda52c180cad419b24a82a35
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-05 (Sun, 05 Feb 2017)

  Changed paths:
M pkgs/development/tools/misc/hydra/default.nix

  Log Message:
  ---
  hydra: 2016-12-09 -> 2017-02-03

Unbreaks the build since commit dea81956fc0904c5723cf56f2bca4497b44ac3c3
("nixUnstable: 1.12pre4911_b30d1e7 -> 1.12pre4997_1351b0d").

(cherry picked from commit 5b4a8571263477f3163ecf345f059736e173312f)


Compare: https://github.com/NixOS/nixpkgs/compare/36ffe58e740c...d837e52eb736___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] 5b4a85: hydra: 2016-12-09 -> 2017-02-03

2017-02-04 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 5b4a8571263477f3163ecf345f059736e173312f
  
https://github.com/NixOS/nixpkgs/commit/5b4a8571263477f3163ecf345f059736e173312f
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-04 (Sat, 04 Feb 2017)

  Changed paths:
M pkgs/development/tools/misc/hydra/default.nix

  Log Message:
  ---
  hydra: 2016-12-09 -> 2017-02-03

Unbreaks the build since commit dea81956fc0904c5723cf56f2bca4497b44ac3c3
("nixUnstable: 1.12pre4911_b30d1e7 -> 1.12pre4997_1351b0d").


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


[Nix-commits] [NixOS/nixpkgs] d16259: hardinfo: init at 0.5.1

2017-02-01 Thread Bjørn Forsman
  Branch: refs/heads/release-16.09
  Home:   https://github.com/NixOS/nixpkgs
  Commit: d16259457fb8ece2837105fe9ac506b5fd62f4e2
  
https://github.com/NixOS/nixpkgs/commit/d16259457fb8ece2837105fe9ac506b5fd62f4e2
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-01 (Wed, 01 Feb 2017)

  Changed paths:
A pkgs/tools/system/hardinfo/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  hardinfo: init at 0.5.1

Display information about your hardware and operating system.

(cherry picked from commit 3e5022c787c2581aa3fc5685a3c0e08a2a0314a0)


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


[Nix-commits] [NixOS/nixpkgs] 3e5022: hardinfo: init at 0.5.1

2017-02-01 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 3e5022c787c2581aa3fc5685a3c0e08a2a0314a0
  
https://github.com/NixOS/nixpkgs/commit/3e5022c787c2581aa3fc5685a3c0e08a2a0314a0
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-01 (Wed, 01 Feb 2017)

  Changed paths:
A pkgs/tools/system/hardinfo/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  hardinfo: init at 0.5.1

Display information about your hardware and operating system.


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


[Nix-commits] [NixOS/nixpkgs] 2bf0fd: Revert "nmap: use python infra's .withPackages"

2017-02-01 Thread Bjørn Forsman
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 2bf0fd0f294e0c1e52e36b9c2aba257f5fe4d468
  
https://github.com/NixOS/nixpkgs/commit/2bf0fd0f294e0c1e52e36b9c2aba257f5fe4d468
  Author: Bjørn Forsman <bjorn.fors...@gmail.com>
  Date:   2017-02-01 (Wed, 01 Feb 2017)

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

  Log Message:
  ---
  Revert "nmap: use python infra's .withPackages"

This reverts commit 278d3050ae85e959e4c6485b5ad43bbba96eb829 because it
breaks zenmap:

$ zenmap
Could not import the zenmapGUI.App module: 'No module named zenmapGUI.App'.
I checked in these directories:
/nix/store/2hiz11plgjdrk2mziwc2jcxqalqh9hii-nmap-graphical-7.12/bin
/home/bfo/forks/nixpkgs
/nix/store/0l4lriqf07qah8c0kh9kcyc8l5iyij16-python-2.7.12/lib/python27.zip
/nix/store/0l4lriqf07qah8c0kh9kcyc8l5iyij16-python-2.7.12/lib/python2.7

/nix/store/0l4lriqf07qah8c0kh9kcyc8l5iyij16-python-2.7.12/lib/python2.7/plat-linux2

/nix/store/0l4lriqf07qah8c0kh9kcyc8l5iyij16-python-2.7.12/lib/python2.7/lib-tk

/nix/store/0l4lriqf07qah8c0kh9kcyc8l5iyij16-python-2.7.12/lib/python2.7/lib-old

/nix/store/0l4lriqf07qah8c0kh9kcyc8l5iyij16-python-2.7.12/lib/python2.7/lib-dynload

/nix/store/0l4lriqf07qah8c0kh9kcyc8l5iyij16-python-2.7.12/lib/python2.7/site-packages
If you installed Zenmap in another directory, you may have to add the
modules directory to the PYTHONPATH environment variable.


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


  1   2   3   4   5   6   7   >