<eacameron>
Is nix smart enough not to download dependencies for running the tests in a Haskell package when I deploy the app to a server with nixops?
<LnL>
I'm pretty sure those are only build time dependencies
wangoe has quit [(Ping timeout: 256 seconds)]
wangoe has joined #nixos
digitus has quit [(Quit: digitus)]
roygbiv has joined #nixos
<ndowens08>
clever: hey I put in that foo = foo.override { stdenv = clangStdenv } and gives undefind variable foo, so i created { foo, clangStdenv }: and then gives called without required argument ‘clangStdenv
<clever>
ndowens08: can you gist all of the involved files?
<ndowens08>
Error: No such file or directory @ rb_sysopen - /home/ndowens/nixpkgs/nox-review lol figures
<clever>
ndowens08: this defines a function for applying overrides, and it will modify the foo package to use clang instead of gcc
<ma9e>
is there a way to manage python packages outside of pip? like AUR's python packages
jsgrant- has quit [(Ping timeout: 240 seconds)]
<ndowens08>
clever: attribute foo missing lol
<clever>
yeah, foo has to be replaced with the name of the package you want to override
<ndowens08>
ah darn lol
<LnL>
ma9e: we have a bunch in the pythonPackages attribute, eg. nix-shell -p pythonPackages.cryptography
<ma9e>
nice, thanks!
Rizy has quit [(Quit: Rizy)]
ericsagnes has joined #nixos
ma9e has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vyoqG
<NixOS_GitHub>
nixpkgs/master 8d3c35a Tuomas Tynkkynen: SDL2_gfx: Fix non-x86 build
spluko has quit [(Ping timeout: 260 seconds)]
<samae>
hey, anything I should know about `networking.supplicant`? The generated keeps failing to start with a "touch: cannot touch …" something in the /nix/store
wangoe has quit [(Ping timeout: 256 seconds)]
kampfschlaefer has quit [(Ping timeout: 240 seconds)]
griff_ has joined #nixos
estewei has quit [(Quit: Quit)]
<Ptival>
would anyone be able to assist me in trying to use liquidhaskell under nix? it won't build because, through a chain of dependencies, it eventually requires concurrent-output-1.7.7, which has a directory<1.3 dependency
<NixOS_GitHub>
[nixpkgs] shlevy pushed 1 new commit to staging: https://git.io/vyomw
<NixOS_GitHub>
nixpkgs/staging fb4c43d Shea Levy: curl: Use CA bundle in nix default profile by default
<NixOS_GitHub>
[nixpkgs] shlevy closed pull request #23723: curl: Use CA bundle in nix default profile by default (staging...darwin-ca-bundle) https://git.io/vyrVX
AllanEspinosa has quit [(Ping timeout: 260 seconds)]
<clever>
samae: when i used wpa_supplicant, i just manualy copied a pre-existing config to /etc/wpa_supplicant.conf, and it just worked
markus1189 has joined #nixos
mudri has quit [(Ping timeout: 246 seconds)]
markus1199 has joined #nixos
<mythmon>
Is there a trick to using tox? I tried to use `nix-shell -p tox`, and it fails to import virtualenv, one of its dependencies
<clever>
samae: looks like all i did was networking = { wireless.enable = true; enableB43Firmware = true; }; and manualy poppulated /etc/wpa_supplicant.conf
<ndowens08>
gonna have to figure how to expand this ext4 partition, i am at 58% usage
<clever>
mythmon: did you try libtoxcore?
<mythmon>
er, make that -p pythonPackages.tox
<clever>
ndowens08: what is the ext4 fs ontop of?
<mythmon>
clever: sorry, different tox
<clever>
mythmon: pythonPackages.tox builds on my copy of nixos-unstable
markus1209 has quit [(Ping timeout: 240 seconds)]
<ndowens08>
clever: what ya mean? if you mean like if I have other OSes and yes, freebsd, windows
<mythmon>
it builds fine. it just doesn't work when it runs
<clever>
ndowens08: is the ext4 on a partition or lvm or luks?
<ndowens08>
yea i have several EFIs lol, but to me safer
<Ptival>
I guess my question should rather be: where does nix-shell figure out what the version of the hackage packages to use is?
<ndowens08>
one of the linux part. was arch but no more
<clever>
ndowens08: only options for resizing the ext4 in sda5 is to either delete/shrink partitions that come after it, or move it to a new drive
roygbiv has quit [(Quit: ™)]
<clever>
Ptival: it gets that from the nixpkgs in $NIX_PATH usually
<Ptival>
clever: ah I see, but I tend to use the nixpkgs in my clone in ~/nixpkgs, so I should set nix.nixPath in my config to point to that?
<clever>
Ptival: or use -I nixpkgs=/home/clever/nixpkgs when running nix-shell
<Ptival>
clever: but my default nix path points to some old revision that I don't even use
<clever>
Ptival: could change the default then
<Ptival>
ah no, I still have a channel in my root nix-channel
<ndowens08>
clever: iirc sda12 was arch , so would that work , guessing not
<Ptival>
hmm, would it be a bad idea to remove all channels for root?
<Acou_Bass>
eey folks, just a query - im building a package that uses CMake, and while it builds all good, running it fails with: IOError: [Errno 2] No such file or directory: '/usr/include/linux/input.h'
<Acou_Bass>
weirdly it runs great if i install the nixpkg on a non-nixos distro
<clever>
ndowens08: even if you delete sda12, you would need to move 6-11 down and out of the way
<Acou_Bass>
is this just going to be as simple as adding the linux package as a dependency...? XD
<clever>
ndowens08: and thats ~300gig you need to shift by 80gig
<clever>
ndowens08: this kind of problem is why i was throwing everything on LVM when i learned of it
<clever>
ndowens08: but now i just throw it all on zfs, heh
<nh2>
Acou_Bass: if that path exists in your non-nix distro but not in nixos, that would explain it
<nh2>
Acou_Bass: I haven't tried it but I suspect that it'll work if you add the appropriate linux headers package to buildInputs, as that will likely set the `-I` / INCLUDE_PATH so that it will manage to build
jsgrant- has joined #nixos
<ekleog>
hmm, anyone knows if there is a way to set which channel nixpkgs is supposed to follow in configuration.nix? (yes, in my case it does make sense, I'm copying a nixos derivation on a freshly bootstrapped machine with no channel set and would like to have a channel available rightaway without special configuration)
<ekleog>
special kudos if there is also a way to know what is the channel the current machine works on, but here I don't have much hope
<Acou_Bass>
nh2: turns out i already had pkgs.linux in the buildInputs... ill add headers too :P thanks!
Rizy has joined #nixos
octe has quit [(Ping timeout: 255 seconds)]
<Acou_Bass>
hmm... ok so i added pkgs.linux and pkgs.linuxHeaders to both buildInputs AND in the LD_LIBRARY_PATH for the wrapper part and im still getting this error when running
<clever>
it even says /usr/include right in the error
<Acou_Bass>
hmm
<clever>
Acou_Bass: so the problem, is that this code is ignoring the search path entirely, and just doing string concats to build a path
<clever>
that works on 99% of linux systems
<Acou_Bass>
that does add up - the daemon doesnt find libXfixes.so despite that being in the LD_LIBRARY_PATH too
dpren has quit [(Quit: Connection closed for inactivity)]
* Acou_Bass
strokes beard
<Acou_Bass>
so its probably hardcoded in the application itself
<clever>
Acou_Bass: so the real question, is why the python code is trying to open the header file directly
<clever>
and not calling a compiler to do the job
Rizy has quit [(Quit: Rizy)]
<Acou_Bass>
hmm, there was one part of the .nix where i had to substituteinplace one of the python files to have $out/share/ rather than the hard-coded /usr/share
<Acou_Bass>
probably a similar issue isnt it? =\
<clever>
thats one way to handle it
<clever>
substitute in ${linuxHeaders}/include/ maybe
<Acou_Bass>
yah thats what ima try, as soon as i find which file it needs to go in :P
<clever>
grep -r on the source
smw_ has joined #nixos
AllanEspinosa has joined #nixos
<smw_>
so, clever did you ever find an sd card writer? :-)
<ndowens08>
clever: yeah I like zfs but does nixos allow it during install?
<clever>
ndowens08: 5 of my systems run with a zfs rootfs
<clever>
ndowens08: one of them has zfs on lvm on luks
<NixOS_GitHub>
nixpkgs/master 8ac1343 Lluís Batlle i Rossell: bsc: init at 3.1.0...
<NixOS_GitHub>
nixpkgs/master 7aa5eff Lluís Batlle i Rossell: lzham: init at 1.0...
hexagoxel has quit [(Ping timeout: 260 seconds)]
smw_ has joined #nixos
hexagoxel has joined #nixos
smw_ has quit [(Ping timeout: 260 seconds)]
k2s has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 6 new commits to release-16.09: https://git.io/vyoum
<NixOS_GitHub>
nixpkgs/release-16.09 5aad6ec Franz Pletz: pidgin: 2.11.0 -> 2.12.0 for CVE-2017-2640...
<NixOS_GitHub>
nixpkgs/release-16.09 d9785e5 Franz Pletz: lxc: add patch for CVE-2017-5985...
<NixOS_GitHub>
nixpkgs/release-16.09 a18f122 Franz Pletz: linux: 3.12.70 -> 3.12.71...
k2s has quit [(Remote host closed the connection)]
<MichaelRaskin>
k749gtnc9l3w4189n6fl8qww
k2s has joined #nixos
k2s has quit [(Client Quit)]
<socksy>
hunter2
<sphalerite>
:D
<socksy>
anyone feel like some nixos evangelism?
jmeredith has quit [(Quit: Connection closed for inactivity)]
<socksy>
there's this node package that was required by some work project, nodegit
<socksy>
that failed to install on `npm install`
<socksy>
turns out that the package includes libssh2 as a dependency, which it builds from scratch
<socksy>
ok whatever, this works on NixOS
ninja_in_neopren has quit [(Quit: WeeChat 1.7)]
<socksy>
but (and i have no idea if this is common in the NPM world, quite possibly) the library is included by having the source distribution of it in a /vendor folder
<NixOS_GitHub>
[nixpkgs] fpletz pushed 2 new commits to master: https://git.io/vyouw
<NixOS_GitHub>
nixpkgs/master 70b174d Franz Pletz: Revert "libarchive: 3.2.2 -> 3.3.1"...
<NixOS_GitHub>
nixpkgs/master 7dfea0a Franz Pletz: youtubeDL: 2017.03.07 -> 2017.03.10
<socksy>
and the maintainer ran autoconfig on his setup, generated the configure file, and include it in the source (not in the original source distribution for libssh2)
<socksy>
of course, lots of /usr/bin references abound
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to staging: https://git.io/vyouo
<NixOS_GitHub>
nixpkgs/staging bf6c90e Franz Pletz: libarchive: 3.2.2 -> 3.3.1
<socksy>
so I make an issue in the repo, and now it's all "you're on your own on non-linux systems"
<socksy>
"unixlike platforms" even
<socksy>
so obviously i point out that nixos is a linux distro
<fpletz>
socksy: have you checked if it can detect libssh2 and use it if installed on the system?
<fpletz>
socksy: well, nixos does not conform to the linux filesystem hierachy standard :)
<socksy>
the npm package or the configure file?
<socksy>
sure, it's not LSB
<fpletz>
you probably have to check both :)
<MichaelRaskin>
Hm, using too many /usr/bin paths breaks on FreeBSD with probability close to one, too
<socksy>
now he's moved the goal post to "Most probably /usr/bin/file has been standardized by POSIX"
<MichaelRaskin>
I dunno, I guess quoting «Any of the standard utilities may be implemented as regular built-in utilities within the command language interpreter.» would be just trolling, right?
<MichaelRaskin>
Of course not
<MichaelRaskin>
I doubt SUS mentions /usr/ at all
<socksy>
my guess is that proving him wrong will just make him move the goal posts over to the FHS
kampfschlaefer has joined #nixos
<samae>
clever thanks for your answer
<fpletz>
they even vendor openssl
<MichaelRaskin>
Ouch ouch ouch
<samae>
I'll try and make it work this way (I have a working supplicant.conf already)
<fpletz>
and it looks like they use gyp to build those vendored packages and bypass the package-specific build systems?
<socksy>
turns out that this library was so much of an issue for our company that they rewrote the tool in golang for static linking anyway, so at this point pursuing the conversation is mostly out of petty vindicativeness
oscarvarto has joined #nixos
<socksy>
which to an extent i'm quite happy to do
<fpletz>
this looks really fucked up to me… well, I guess for the cool nodejs kids this is normal today \o/
k2s has joined #nixos
k2s has quit [(Client Quit)]
<sphalerite>
socksy: the FHS also doesn't specify where file should live. /bin would be just as appropriate
sivteck has joined #nixos
<socksy>
hahaha
<socksy>
ok
<sphalerite>
Not only do they vendor OpenSSL, they vendor a one-year-old version
<socksy>
sphalerite: would it be petty enough to open another issue about them vendoring libssl
<oscarvarto>
I git cloned nixpkgs repository, then did `$ nix-build ./pkgs/top-level/dotnet-packages.nix` but it is not working
<socksy>
oscarvarto: are you planning on modifying the package?
<MichaelRaskin>
socksy: petty revenge would be to write an exploit and file an issue pretending you were hit by it
<socksy>
ha.
<sphalerite>
MichaelRaskin: I like your thinking.
<socksy>
i wonder if anyone actually uses nodegit for something
<sphalerite>
Or how about writing an exploit and finding a way to hit them with it? :D
<samae>
clever: your simple solution just works, thanks again : )
<MichaelRaskin>
sphalerite: now that may fall under criminal law
<sphalerite>
oh yeah :/
<MichaelRaskin>
And I think pretending to be hit by an exploit would actually be more damaging for the reputation
<sphalerite>
Hm
<socksy>
seems like it's the library they're using for axosoft's gitkraken, an electron/node app
<MichaelRaskin>
Targeted hit, some details undisclosed, life happens. «I were owned just because you stupid people vendor a known-vulnerable OpenSSL what is wrong with you» — obvious violation of best practices which led to damage and is their obvious fault
<sphalerite>
Wow, you're truly evil :D
<MichaelRaskin>
Not really — this scheme would selfishly help me
<MichaelRaskin>
I mean, I don't expect this bug to be useful for rooting smartphones by their lawful owners.
<MichaelRaskin>
So no need to keep it in the wild
zarel has joined #nixos
<oscarvarto>
socksy: Not right now. I am just trying to get started
<socksy>
oscarvarto: then almost certainly you don't need to clone nixpkgs and run build directly just yet
<socksy>
oscarvarto: do you want to install all of those packages? Check out what "nix-env -qaP | grep dotnet"
<socksy>
i find the regex stuff a bit of a hassle
thc202 has joined #nixos
<socksy>
then you can add the correct package in the packages part of your nixos with the name on the left side, so e.g. `dotnetPackages.FSharpFormatting'
[0x4A6F] has quit [(Ping timeout: 260 seconds)]
[0x4A6F] has joined #nixos
<oscarvarto>
socksy, Thanks!
Rizy has quit [(Quit: Rizy)]
hexagoxel has quit [(Ping timeout: 258 seconds)]
hexagoxel has joined #nixos
<roundhouse>
ok I figured it out; Is a pull that adds this information to the nix readme welcome?
<apostolis>
sorry about that , trying to paste some nix code.
xvapx has joined #nixos
oscarvarto has joined #nixos
Jackneill has quit [(Ping timeout: 246 seconds)]
<alebatt>
Why cc is working and gcc is not ? how can i import gcc
Wizek has joined #nixos
Wizek_ has joined #nixos
<alebatt>
i tried to add them in the config nix and/or the default.nix of the library
xvapx has quit [(Client Quit)]
xvapx has joined #nixos
<sphalerite>
alebatt: you should probably be using $CC if you're not using a build system. Otherwise the build system should find the $CC environemnt vairbale
<sphalerite>
- typos
<alebatt>
i need to put it on the first line where { stdenv gcc }
<alebatt>
?
mudri has joined #nixos
Rizy has quit [(Quit: Rizy)]
<alebatt>
it's on my makefile, and my project are all using gcc, i can't afford to change that ... :/
<NixOS_GitHub>
[nixpkgs] globin pushed 3 new commits to release-17.03: https://git.io/vyo6t
<NixOS_GitHub>
nixpkgs/release-17.03 ae81e79 Gregor Kleen: das_watchdog: fix service type...
<NixOS_GitHub>
nixpkgs/release-17.03 8106e0f Joachim Fasting: pythonPackages.pep257: meta.lecense -> license...
<NixOS_GitHub>
nixpkgs/release-17.03 ead8fb7 Joachim Fasting: vndr: meta.licence -> license...
<alebatt>
sphalerite: can i add the gcc packet into the build ?
<alebatt>
just tried buildInputs = [ gcc ]; not working .. :/
<sphalerite>
alebatt: gcc is already in stdenv so it shouldn't be necessary.
iyzsong has quit [(Quit: ZNC 1.6.4 - http://znc.in)]
<sphalerite>
just change your makefile to use the environment variable CC
<sphalerite>
if you're using implicit rules it should work that out itself
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vyo6Z
<NixOS_GitHub>
nixpkgs/master 91bbd73 Robin Gloster: suil-qt5: fix build
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to release-17.03: https://git.io/vyo6c
<NixOS_GitHub>
nixpkgs/release-17.03 1712e58 Robin Gloster: suil-qt5: fix build...
justbeingglad has joined #nixos
<yorick>
fpletz: can you update linux-firmware again sometime soon? I'd like to get some of the newer kaby lake stuff in it
<frigate_freedom>
Yaniel: there is no ess package in MELPA and ELPA, official cite suggest to install it via package manager (for Fedora, Ubuntu, Debian and CentOS) or build from source
<Yaniel>
but your paste has an example "From main packages set" where it has pkgs.notmuch
<Yaniel>
pkgs is basically the root package list
<apostolis>
How can I find which attribute is empty?
<frigate_freedom>
now another problem with building emacs.nix, will try to fix it (can not build jxy-font-lock+.el because sha summs mismatch)
<frigate_freedom>
apostolis: from Melpa?
<apostolis>
new to emacs. i think it was elpa
nmattia has joined #nixos
exarkun has joined #nixos
<nmattia>
hi guys! I'm struggling to do something that should be very easy
<nmattia>
I see that the `nightly.nix` file (function? derivation?) takes a `targets` argument, but I'm not sure how I can actually use it in my setting
<nmattia>
do I have to copy the whole `rust/...` subdirectory if I want it to be overriden for a nix-shell?
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
blahdodo has quit [(Ping timeout: 260 seconds)]
<apostolis>
elpa/ess-20170227.802
<srk>
error: infinite recursion encountered, at undefined position
<srk>
:D
<srk>
it builds though
eacameron has joined #nixos
danharaj has joined #nixos
k0001_ has quit [(Ping timeout: 260 seconds)]
<oscarvarto>
Hello! Need some help to install a haskell package. I am trying `$ stack --nix install zlib` and I am getting `* Missing (or bad) header file: zlib.h`
nh2 has quit [(Quit: Leaving.)]
<nmattia>
oscarvarto: do you have zlib in your stack.yaml?
<nmattia>
(or local shell.nix?)
deepfire` has joined #nixos
<ndowens08>
How stable do you guys think btrfs is now
[0x4A6F] has quit [(Read error: Connection reset by peer)]
[0x4A6F] has joined #nixos
<chattered>
Does anyone use fcron?
<sphalerite>
nmattia: then put in your shell something like with import <nixpkgs> ; rustNightly.override {targets = [stuff];}
<sphalerite>
c0ff33: I used keybase a while back
<nmattia>
sphalerite: it works!
<nmattia>
so easy
<nmattia>
silly me.
<sphalerite>
:)
<c0ff33>
sphalerite: Is actual version of keybase client in nixpkgs able to connect to service for you?
<ertes>
is there a way to override the default GHC locally?
elon1 has joined #nixos
<c0ff33>
sphalerite: I'm talking about nixos-unstable channel
<sphalerite>
c0ff33: it didn't when I tried it from nixos-16.09 because it wasn't the latest version
Rizy has quit [(Quit: Rizy)]
<chattered>
ertes: packageOverrides in your config.nix?
<c0ff33>
sphalerite: The same for me. I installed keybase at 16.09 but it was in 10.0.17, then I upgraded to unstable because as I checked on nixpkgs GitHub there is 1.0.18 (newest one) there
<c0ff33>
sphaletie: But my keybase is still 1.0.17 and I'm curious what I did wrong
<sphalerite>
have you run nix-env -iA nixos.keybase again?
<c0ff33>
I installed keybase by configuration.nix
[0x4A6F] has quit [(Quit: Quit)]
<sphalerite>
have you done nixos-rebuild switch --upgrade?
<c0ff33>
Yup
[0x4A6F] has joined #nixos
<NixOS_GitHub>
[nixpkgs] jerith666 opened pull request #23754: pfixtools: patch for unbound API change (master...pfixtools-unbound) https://git.io/vyoMp
nh2 has joined #nixos
<NixOS_GitHub>
[nixpkgs] jerith666 opened pull request #23755: krfb: expose kde 5 version (master...krfb) https://git.io/vyoDv
<c0ff33>
I just tried to install keybase for my user by nix-env
<c0ff33>
And it failed with conflicting packages
<c0ff33>
That's it for conflict less operating system :P
frigate_freedom has left #nixos []
<kriztw>
c0ff33: usually when I get conflicts it's because I have e.g. both wireshark in systemPackages and programs.wireshark.enable = true
[0x4A6F]_ has joined #nixos
<c0ff33>
kriztw: I'm rechecking my config right now
<kriztw>
Those wiresharks might be different, and nixos has no way of knowing which you'd prefer
<c0ff33>
kriztw: but I think that my system resolves wrong package for keybase
[0x4A6F] has quit [(Ping timeout: 260 seconds)]
[0x4A6F]_ is now known as [0x4A6F]
smw_ has quit [(Quit: Computer has gone to sleep)]
smw_ has joined #nixos
<kriztw>
c0ff33: I'm on unstable, and I just did nix-env -iA nixos.keybase and I get version 1.0.18
<c0ff33>
kriztw: Thanks for info. My keybase is in environment.systemPackages and after nixos-rebuild switch --upgrade from 16.09 -> unstable its version is 10.0.17
<kriztw>
c0ff33: remember you need to do sudo nix-channel --add, not nix-channel --add
<kriztw>
as you need to set unstable as the system channel, not user channel
<kriztw>
Hmm, maybe system.stateVersion = "17.03"? Not sure what that changes though
smw_ has quit [(Client Quit)]
<c0ff33>
kriztw: It is system.stateVersion = "unstable"
<kriztw>
maybe you have the old keybase in your user environment? does nix-env -qs have keybase in it?
eacameron has quit [(Remote host closed the connection)]
<c0ff33>
Man...
<c0ff33>
How come?
<c0ff33>
It is here
<c0ff33>
I wiped all user-installed packages before upgrade
<c0ff33>
Ok, will remove this crap and check once again
eacameron has joined #nixos
<c0ff33>
Thank you
<kriztw>
np, glad I found the problem :D
marsam has joined #nixos
<kriztw>
That's why I try to avoid using nix-env -i
<c0ff33>
I think I installed it by nix-env to troubleshoot
<c0ff33>
And it stuck there for some reason
<c0ff33>
I think that -s switch does the trick
<kriztw>
I try to use nix-shell -p for temporary packages
<c0ff33>
Sorry for dumb question, I'm kinda new to whole nix idea
<kriztw>
To not clog up my environment
<c0ff33>
Nice tip, thanks
<c0ff33>
Now it is 1.0.18
<c0ff33>
Thank you very much
<clever>
c0ff33: stateVersion doesnt do what you think
<apostolis>
I am new to nixos. I am trying to install the master branch of agda at https://github.com/agda/agda but I fail.
<c0ff33>
clever: What do you mean?
<clever>
c0ff33: stateVersion doesnt control what version of nixos you get
eacameron has quit [(Ping timeout: 268 seconds)]
<clever>
c0ff33: it tells nixos what version the state on your hdd is in, so pgsql and similar dont break from upgrades
<c0ff33>
clever: Yeah, nix-channel does that
<c0ff33>
clever: Sorry to say but I really don't understand this idea
<c0ff33>
clever: but I have little to none db experience
<NixOS_GitHub>
[nixpkgs] dezgeg opened pull request #23756: channel.nix: Use filterSource to exclude unnecessary files from nixpkgs (master...pr-filtersource) https://git.io/vyoyv
<c0ff33>
clever: So to estabilish some good practice - when I'm on unstable nixos.stateVersion should be on some version? Like 17.03
<clever>
brb
<NixOS_GitHub>
[nixpkgs] butterflya opened pull request #23757: evolution:configure script refers to /usr/bin/file (master...patch-4) https://git.io/vyoSt
cfricke has quit [(Ping timeout: 240 seconds)]
anddam has left #nixos ["WeeChat 1.8-dev"]
blahdodo has joined #nixos
endformationage has joined #nixos
alx741_ has joined #nixos
alx741_ has quit [(Client Quit)]
alx741_ has joined #nixos
alx741_ has quit [(Client Quit)]
nh2 has quit [(Ping timeout: 260 seconds)]
alx741 has quit [(Ping timeout: 246 seconds)]
alebatt has quit [(Ping timeout: 268 seconds)]
<NixOS_GitHub>
[nixpkgs] butterflya opened pull request #23758: hydra-eval-failures.py: Remove Python 2 specific syntax (master...patch-5) https://git.io/vyoSF
<shlevy>
niksnut: ping
<shlevy>
niksnut: Getting a protocol mismatch using build-remote against a 1.11 ssh store that only allows "nix-store --serve" as the command
<joachifm>
c0ff33: stateVersion is mostly for modules to use internally, I think
<NixOS_GitHub>
[nixpkgs] butterflya opened pull request #23759: debian-patches.sh: clean up maintainer script (master...patch-6) https://git.io/vyo9J
systemfault has joined #nixos
eacameron has joined #nixos
eacameron has quit [(Remote host closed the connection)]
eacameron has joined #nixos
jsgrant- has joined #nixos
fhoffmeyer has quit [(Ping timeout: 268 seconds)]
<NixOS_GitHub>
[nixpkgs] butterflya opened pull request #23760: Dockerfile: Use a more recent nix/cleanup (master...patch-7) https://git.io/vyo9G
<clever>
c0ff33: and the whole point of stateVersion, is so nixos knows which version you originaly installed
<clever>
c0ff33: changing stateVersion will break the things it was meant to protect
<jsgrant->
LnL: Main 'desktop'-rig is a ~4 y/o laptop; Could max it to 16 ... but at this point, considering buying a proper workstation by this time next year. That being said, not nearly as much of problem since switching to the aforementioned KDE.
<Rotaerk>
basically, there are expressions designed to be imported into all-packages.nix; they take parameters that can be filled in by all-packages.nix
<Rotaerk>
the expressions defining haskell packages are designed to be imported into something else
eacameron has quit [(Remote host closed the connection)]
Laboon3k has joined #nixos
<NixOS_GitHub>
[nix] domenkozar pushed 1 new commit to master: https://git.io/vyo52
<NixOS_GitHub>
nix/master ae56884 Domen Kožar: Dockerfile: 1.11.2 -> 1.11.7
<Laboon3k>
Hello, people! Can you help me?
<apostolis>
ok, I will look into this chapter to find some information.
<Laboon3k>
Here, Virtualbox can't open the dialogue window for select a ISO image file - except if I use root.
<Rotaerk>
apostolis, it has to do with the fact that the ACTUAL derivation that's being put into all-packages must be GHC itself, and you have a new GHC derivation for every combination of haskell packages that you want to use
alebatt has quit [(Ping timeout: 258 seconds)]
<NixOS_GitHub>
[nixpkgs] domenkozar pushed 1 new commit to master: https://git.io/vyo51
<NixOS_GitHub>
nixpkgs/master bd4285a Domen Kožar: Remove Dockerfile...
<NixOS_GitHub>
[nixpkgs] domenkozar closed pull request #23760: Dockerfile: Use a more recent nix/cleanup (master...patch-7) https://git.io/vyo9G
<bennofs>
apostolis: use haskellPackages.callPackage instead of callPackage if you want to use the haskellPackage's callPackage in all-packages
<apostolis>
I do not know. It seems the same to me.
<bennofs>
apostolis: just replace callPackage by haskellPackages.callPackage
<apostolis>
There are other packages that are not haskell, like emacs.
eacameron has joined #nixos
<Rotaerk>
bennofs, what does that do? create a ghc instance with JUST that package?
<bennofs>
apostolis: you can pass them explictly, like: haskellPackages.callPackage ./path/to/pkg { inherit (pkgs) emacs; }
<bennofs>
Rotaerk: no, it just takes the "callPackage" function from the haskellPackages set
<apostolis>
ok, I will give it a try.
<Rotaerk>
but what's the result of the derivation?
<bennofs>
Rotaerk: the same as what callPackage would give you?
<bennofs>
Rotaerk: it's just that the "scope" (where callPackage auto-fills the arguments from) is different, the result isn't changed by callPackage
frigate_freedom has quit [(Ping timeout: 260 seconds)]
<bennofs>
Rotaerk: you can do haskellPackages.callPackage ({ mkDerivation }: 4) and the result is an int
Laboon3k has quit [(Quit: Leaving)]
<apostolis>
Yea, I figured that the problem is with regards with the scope.
<bennofs>
(well, perhaps not exactly since callPackage also adds some attributes to the result, so it expects the result to at least be a set, but that's about it)
<bennofs>
Rotaerk: I think you were thinking of haskellPackages.ghcWithPackages, which is an entirely different function
xvapx has joined #nixos
<Rotaerk>
well my concern is that putting a result from haskellPackages.callPackage into all-packages.nix wouldn't be a useful result
ndowens08 has quit [(Quit: WeeChat 1.7)]
<bennofs>
Rotaerk: it is useful if the package builds a haskell executable
<Rotaerk>
I thought you had to take the result of that and put it into something like... haskellPackages.override { overrides = self: super: { mynewpackage = self.callPackage ...; } }
<Rotaerk>
or whatever
<bennofs>
Rotaerk: that is necessary for libraries, so that other packages can depend upon your package
<avn_nb>
Folks, what I try to do wrong? `error: attribute ‘system’ in selection path ‘config.system.build.isoImage’ not found`
<Rotaerk>
oh I see; for an executable that requires haskell to *build*, you can just do it the way you were describing
<Rotaerk>
producing an overridden haskellPackages, and *then* simply calling haskellPackages.callPackage on my own project
<apostolis>
Good news, everybody, it works, now it tries to download stuff.
<Rotaerk>
heh
<apostolis>
Unfortunately, my agda code depended on a beta version of agda, thus I had to install agda from git.
<Yaniel>
does nix support version numbers like x.y-pre?
<LnL>
as in name = "name-version"?
<Rotaerk>
apostolis, what I linked above is pulling in several things from git
<Rotaerk>
and one thing from hackage directly
<avn_nb>
Folks, I need help with building zfs enabled install media, anyone can help?
<Yaniel>
I'm (still) packaging renderdoc, and it's got some fixes since the last release, but the version number in the source has already been bumped.
<Yaniel>
So I was thinking to publish it as version 0.34-pre since the last release is 0.33
<bennofs>
Yaniel: anything after the first - component that starts with digit is considered a version by nix
<Yaniel>
does it upgrade seamlessly from 0.34-pre to 0.34 then?
<bennofs>
Yaniel: no idea what nix-env does tbh
<LnL>
the version starts at the first dash separated part that starts with a digit
<LnL>
but I don't know how the version order is dermined
<avn_nb>
`attribute ‘boot’ at /etc/nixos/nixpkgs/nixos/modules/installer/cd-dvd/zfsconf.nix:9:7 already defined at /etc/nixos/nixpkgs/nixos/modules/installer/cd-dvd/zfsconf.nix:8:7` Any ideas?
<avn_nb>
Building iso looks like pure magic
<apostolis>
Unfortunately, my agda code depended on a beta version of agda, thus I had to install agda from git.
<LnL>
avn_nb: nix-build -I nixos-config=/src/nixpkgs/nixos/modules/installer/cd-dvd/iso-image.nix '<nixos/nixos>' -A config.system.build.isoImage
<avn_nb>
LnL: yes, it what I doing
contrapumpkin has joined #nixos
<LnL>
avn_nb: you can create a configuration.nix with the iso-image module in the imports and configure other stuff you wan in the iso
<avn_nb>
adding zfs stuff in copied installation-cd-base.nix make that mess
<contrapumpkin>
is cloudfront down?
<contrapumpkin>
I'm getting 503s from it
<contrapumpkin>
hitting S3 directly seemed to work
<avn_nb>
I hit issue when grub unable boot from zfs, and need install media to boot up and fix stuff
mudri has joined #nixos
revtintin has quit [(Quit: WeeChat 0.4.2)]
<clever>
avn_nb: ive only done it with an ext4 /boot, but i have seen a zfs option in grub
<clever>
Dezgeg: zfs claims to support swap in zvols, and its also a cow filesystem
<clever>
Dezgeg: but zfs is also pretty memory hungry, and allocating memory while swapping isnt a good idea
<Dezgeg[m]>
but does it support swap to files?
<clever>
havent tried a swap file
<clever>
and because of the deadlock stuff ive heard about, my laptop is (swap + zfs) on lvm, on luks
<clever>
i just trust lvm more with swap
contrapumpkin has quit [(Ping timeout: 260 seconds)]
<clever>
this allows you to do cmakeFlags = [ "a" "--foo=${builtins.placeholder "out"}" ]; at the nix lvel
<clever>
but its not in 1.11.7, so it probably wont even work on nixpkgs master
<NixOS_GitHub>
[nixpkgs] periklis opened pull request #23764: Revert "Revert "Merge pull request #23602 from periklis/topic_qt57_darwin"" (master...topic_qt57_darwin) https://git.io/vyoNm
brh has joined #nixos
<ndowens08>
sigh, oh-my-zsh install gives I dont have zsh installed and I do
<brh>
Hi guys, I have a question about how to pull the latest packages. I see 2 weeks ago that the password-store pkg was updated to version 1.7. I'm using the nixpkgs-unstable channel, but when I do nix-channel --update and then nix-env -u pass, it still just has 1.6.5. Is there something newer than nixpkgs-unstable?
<NixOS_GitHub>
[nixpkgs] jerith666 closed pull request #23754: pfixtools: patch for unbound API change (master...pfixtools-unbound) https://git.io/vyoMp
<brh>
clever: thanks a lot! looks like I'm all set now
seagreen has quit [(Ping timeout: 240 seconds)]
slack1256 has quit [(Remote host closed the connection)]
<Yaniel>
hmm is the usage of these placeholders documented somewhere?
<Yaniel>
ah, in the commit message
<Yaniel>
yeah this looks precisely like what I need
<octe>
is this an appropriate channel for nixops questions?
oscarvarto has joined #nixos
<oscarvarto>
Hi! I am getting a lot of collisions for haskell packages I installed previously with those installed with `nix-env -f "<nixpkgs>" -iA myHaskellEnv` Suggestions?
<Yaniel>
clever: is there an ETA for placeholders?
<clever>
Yaniel: i'm guessing nix 1.11.8
<clever>
no idea when that is though
contrapumpkin has joined #nixos
<contrapumpkin>
which output do bash completions traditionally go into?
alx741 has joined #nixos
seagreen has joined #nixos
<Dezgeg>
with the binaries
<Yaniel>
okay, I'll leave it at the preConfigure hack and a TODO then
marsam has joined #nixos
DutchWolfie has quit [(Quit: Konversation terminated!)]
civodul has joined #nixos
nh2 has joined #nixos
bb has joined #nixos
oscarvarto has quit [(Remote host closed the connection)]
<clever>
zetok: i prefer either tab-completing in the repl or using nox
<zetok>
thanks, I'll check it out
<zetok>
is it something like eix in Gentoo?
<clever>
nox is a python program that will cache the package list, and then do searches on that cache
zraexy has quit [(Ping timeout: 240 seconds)]
alx741_ has joined #nixos
<bb>
Hey everyone, how would I go about submitting a new package? I followed the instructions for writing one, and it works, as far as I can tell. What now? Just submit a pr?
eacameron has quit [(Remote host closed the connection)]
alx741 has quit [(Ping timeout: 264 seconds)]
<zetok>
>No manual entry for nox
<zetok>
:f
<clever>
just run "nox obs"
<zetok>
ok, nox is not what I'm looking for
eacameron has joined #nixos
<zetok>
anyway, isn't the inconsistency that I've linked to above a bug?
<clever>
not sure, could open an issue and see what others think
<Dezgeg>
I think the regex match applies to the name part of firefox-45.7.0esr
ixxie has joined #nixos
<zetok>
Dezgeg: even if that's the case, why would it not apply to e.g. `obs-studio-0.15.2` ?
<Dezgeg>
if the regex acts like '^obs$' by default
roygbiv has joined #nixos
<zetok>
ok
<zetok>
why would it match strictly by default though?
<zetok>
i.e. if someone wants to search for something, it's very likely that they're going to type in only part of the name
eacameron has quit [(Ping timeout: 240 seconds)]
<zetok>
on the other hand, if someone wants to make an exact match against name (which seems to be less common use-case), they can always use `^$` in the regexp
<Dezgeg>
probably legacy - I think it didn't always support regex
<zetok>
would there be an interest in slightly breaking the "compatibility" with legacy behaviour in order to improve usability?
<Dezgeg>
there are some plans to totally rewrite the CLI interface, not sure how soon that will be finished
<zetok>
I see
<zetok>
good to know, thanks
<Dezgeg>
because the command syntax of nix-env is from the rpm era :)
zarel has quit [(Quit: Leaving)]
eacameron has joined #nixos
<contrapumpkin>
Dezgeg: thanks!
<contrapumpkin>
the new CLI is in progress
fnljk has joined #nixos
<contrapumpkin>
you can use it in nixUnstable
alx741 has joined #nixos
ixxie has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub>
[nixpkgs] benley opened pull request #23765: ykpers: consolidate into yubikey-personalization (master...ykpers-duplicate) https://git.io/vyohJ
eacameron has quit [(Ping timeout: 268 seconds)]
xvapx has quit [(Remote host closed the connection)]
<benley>
contrapumpkin: any idea how far nix 1.12 is from release?
xvapx has joined #nixos
<johnw>
niksnut: ping
fresheyeball has quit [(Ping timeout: 246 seconds)]
fresheyeball has joined #nixos
<kragniz>
has anyone installed nixos on a kimsufi box recently?
<joepie91>
kragniz: iirc OVH's rescue boot system has been roughly the same for the past years
<joepie91>
so I doubt it'll have changed much
<joepie91>
if at all
eacameron has quit [(Remote host closed the connection)]
<clever>
the linode guide on the wiki should work just fine
nh2 has quit [(Ping timeout: 258 seconds)]
Sonarpulse has quit [(Ping timeout: 268 seconds)]
<clever>
the biggest benefit i see with the OVH rescue setup, is that you can remotely trigger it even if the machine is bricked
<kragniz>
cool, thanks
<clever>
i recently switched 2 servers to nixos at another datacenter, and i had to open a support ticket just to get the cd tray closed, lol
<ivan>
be really careful with OVH rescue environments the tools are sometimes old and I have hosed an ext4 partition with them
<kragniz>
:<
<ivan>
back when I didn't know to use xfs
hiratara has quit [(Ping timeout: 246 seconds)]
<zetok>
ok, regarding my earlier question about enabling debug symbols for all packages, there is `environment.enableDebugInfo` but changing it to `true` clearly doesn't affect presence of debugging symbols
<zetok>
which kinda makes me think that nixos doesn't have support for enabling debugging symbols :/
<clever>
zetok: you need to run enableDebugging over a derivation, like nix-build -E 'with import <nixpkgs> {}; enableDebugging hello'
hiratara has joined #nixos
Wizek_ has quit [(Ping timeout: 256 seconds)]
<zetok>
clever: from what I understand, that would need to be run on every package?
<clever>
zetok: every package you want debug symbols for
Wizek has quit [(Ping timeout: 260 seconds)]
<zetok>
so, every package
slyfox_ is now known as slyfox
<clever>
another way of using it, foo.override { bar = pkgs.enableDebugging pkgs.bar; };
<clever>
so now bar gets symbols, and foo link against the debug build of bar
<clever>
but foo lacks symbols
eacameron has joined #nixos
nh2 has joined #nixos
<clever>
i usualy identify which derivation the fault is in via gdb, then rebuild just that with symbols
<zetok>
yeah, no
<clever>
what are you trying to do?
<zetok>
enable debug symbols for all packages
<Rotaerk>
with nix expressions, is there a nice way to do function composition? f(g(h(x))) is getting old
<zetok>
um, except for the kernel
<zetok>
I don't expect that to be crashing
<Rotaerk>
well, not necessarily composition, but chained application
<zetok>
Rotaerk: have a function that applies functions to its arg?
<Rotaerk>
yea, but that's only pretty in haskell because it's an operator
<clever>
Rotaerk: you can probably use fold to run a list of functions on eachothers output, with x being the initial input
<Rotaerk>
hmm, k
steshaw has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej opened pull request #23766: kcachegrind: init at 16.2.2 (master...kcachegrind-kdelibs) https://git.io/vyojS
<clever>
nix-repl> builtins.foldl' (a: b: a + b) "initial" [ "1" "2" "3" ]
<clever>
"initial123"
<benley>
I keep looking at nixpkgs/nixos/from-env.nix and wondering if there is a reason it still hasn't been replaced with a reference to nixpkgs.lib.maybeEnv. Anyone know the story there?
<clever>
Rotaerk: so if you gave it a list of functions, it would run the lamba with "initial" f1, then f1(initial) f2 ...
<benley>
like, is maybeEnv deprecated?
<Rotaerk>
yea, I get what you mean; probably the best way to avoid explicitly nesting the function calls
xvapx has quit [(Remote host closed the connection)]
<clever>
Rotaerk: and similiar to haskell, you can return a partialy applied primop, so you can just do thing = builtins.foldl' (a: b: a + b)
<clever>
Rotaerk: and then later do thing "initial" [ "1" "2" "3" ];
<Rotaerk>
nix-repl> builtins.foldl' (f: g: x: f (g x)) (x: x) [(x: x + 1) (x: x * 2)] 5
<Rotaerk>
11 :P
xvapx has joined #nixos
<Rotaerk>
though, it doesn't work if the types of the functions you're composing don't match
<Rotaerk>
as in, I can't make the last one convert from number to string
<clever>
yeah
<clever>
you need to builtins.toString and expect a number
hlolli has joined #nixos
<hlolli>
In which nix package do I need to install to get include <boost/algorithms/string.hpp> ?
<johnw>
just boost
<clever>
and installing things never gives you headers
<clever>
nix skips the dev output
<johnw>
for boost, the headers are an installation item
<johnw>
they aren't just for building boost
<clever>
i'm talking about nix-env -i vs nix-hell
mkoenig has joined #nixos
<johnw>
ah
bb has quit [(Ping timeout: 260 seconds)]
<hlolli>
ok, so I want to update the nix package csound, but csound needs this header file. How should I do this, doesn't sound self contained if I need to include it seperately? (btw just installed nix today for the first time)
<clever>
hlolli: put boost into the buildInputs of the package
danharaj has quit [(Ping timeout: 240 seconds)]
<hlolli>
ahh ok, should have the nix script download it? Do you have a .nix example that I can study?