<YegorTimoshenko[>
place `shell.nix` alongside script you're trying to run and then call `nix-shell`. you will enter a shell that will work with that script
<YegorTimoshenko[>
i've assumed python3, but if script only supports python2, replace `python3Packages` with `pythonPackages`
<gchristensen>
* I think pythonPackages is python2 now, and you'd have to use python2Packages specifically
<YegorTimoshenko[>
it still seems to be python2 (at least on latest nixos-unstable-small), but it would be very nice to make it point to python3
<gchristensen>
oh I thought it was updated
<sir_guy_carleton>
YegorTimoshenko[: i replace 'example' with the script name, right?
<{^_^}>
[nixpkgs] @matthewbauer pushed 5 commits to master: https://git.io/vhaBD
<YegorTimoshenko[>
sir_guy_carleton: it can be any arbitrary string
justanotheruser has quit [Ping timeout: 265 seconds]
freeman42]NixOS has joined #nixos
<YegorTimoshenko[>
it is a derivation name. it is appended to nix store path to make it easier to navigate through it, also nix-env uses it to determine whether some derivation is a package update or a new package, and all nix tools use that to show what's currently being built
<YegorTimoshenko[>
s/through it/through the store/
tzemanovic has quit [Remote host closed the connection]
freeman42x]NixOS has quit [Ping timeout: 264 seconds]
mahalel_ has joined #nixos
mounty has quit [Ping timeout: 264 seconds]
offline has quit [Ping timeout: 245 seconds]
cloud-maingo has joined #nixos
mounty has joined #nixos
logzet has quit [Ping timeout: 255 seconds]
q3k has quit [Ping timeout: 240 seconds]
logzet_ has joined #nixos
justanotheruser has joined #nixos
offline has joined #nixos
ericsagn1 has joined #nixos
sorixelle has joined #nixos
TolleLege has joined #nixos
sbdchd has joined #nixos
<{^_^}>
[nixpkgs] @NeQuissimus pushed to master « linux-copperhead: LTS based on regular 4.14 »: https://git.io/vhaRY
<{^_^}>
[nixpkgs] @NeQuissimus pushed to release-18.03 « linux-copperhead: LTS based on regular 4.14 »: https://git.io/vhaRG
nuncanada has joined #nixos
hoshineko has joined #nixos
worldofpeace has joined #nixos
logzet_ has quit [Remote host closed the connection]
lord| has quit [Ping timeout: 256 seconds]
lord| has joined #nixos
andreabe_ has joined #nixos
<{^_^}>
[nixpkgs] @yegortimoshenko pushed to master « wireguard-go: drop redundant relative import patch »: https://git.io/vhaRy
<worldofpeace>
YegorTimoshenko[: Sorry I'm actually using a raw url to a file in GitLab. But it's a **private** repo so In order to curl It needs the access token in the header of the request
<YegorTimoshenko[>
worldofpeace: this is definitely a nixpkgs bug. i remember fetchurl arg handling being flaky
<{^_^}>
[nixpkgs] @bgamari opened pull request #41817 → cmake: Only apply application-services.patch with 3.11 → https://git.io/vhaRj
<YegorTimoshenko[>
could you open an issue?
<worldofpeace>
Yep. I have no idea what to describe exactly though.
<YegorTimoshenko[>
quoted arguments in fetchurl curlOpts don't work
<worldofpeace>
That does make sense. I was looking in nixpkgs tree and I only see unquoted arguments working.
q3k has joined #nixos
aarvar has quit [Ping timeout: 248 seconds]
<YegorTimoshenko[>
maybe as a workaround ''-G -H PRIVATE-TOKEN:\ XXX'' will work
<YegorTimoshenko[>
s/will/would/
<worldofpeace>
:( It doesn't. Looks like I'm hacking on fetchurl now :)
shiver has quit [Remote host closed the connection]
shiver has joined #nixos
MercurialAlchemi has joined #nixos
robstr has joined #nixos
Guanin has quit [Ping timeout: 264 seconds]
mahalel_ has quit [Ping timeout: 240 seconds]
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
Guanin has joined #nixos
inquisitiv3 has joined #nixos
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blankhart has joined #nixos
bluewolfy[m] has joined #nixos
andreabe_ has joined #nixos
Lev50 has joined #nixos
jmsb has joined #nixos
<jmsb>
hey everyone--i am having issues running godot and glxgears. glxgears is segfaulting--could use some guidance on how to diagnose
Lev50 has quit [Quit: Leaving]
jmsb has quit [Remote host closed the connection]
tzemanovic has joined #nixos
hamishmack has joined #nixos
hyper_ch2 has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
tzemanovic has quit [Ping timeout: 248 seconds]
testuser has joined #nixos
xy2_ has joined #nixos
sbdchd has joined #nixos
bitmapper[m] has joined #nixos
Have-Quick has quit [Quit: Have-Quick]
<hyper_ch2>
question: proxmox is pretty nice with creating VMs through webinterface and having that splice viewer for the vms available... if I just use kvm/qemu on my nixos, how would I integrate the splice viewer on a website on that server? anyone ever done that?
sbdchd has quit [Ping timeout: 256 seconds]
travankor has joined #nixos
xy2_ has quit [Ping timeout: 260 seconds]
goibhniu has joined #nixos
Lev50 has joined #nixos
<Lev50>
Any node2nix users here?
<andreabe_>
lev50: I'm using it right now
<andreabe_>
not understanding it too much but still ...
<andreabe_>
what's wrong with your file? no, I'm not
<Lev50>
So nix-npm-install is a script that calls node2nix for global installations
<Lev50>
Like grunt-cli is something you'd want to install with npm -g. Its meant to replace that. https://pastebin.com/ijSUc0Qi
johnw has quit [Ping timeout: 265 seconds]
mbrgm has joined #nixos
<Lev50>
But this line ` ${super.nodePackages.node2nix}/bin/node2nix -8 --input <( echo "[\"$1\"]")` has the -8 and yet the autogenerated file still shows nodejs_4
freeman42x[nix] has quit [Ping timeout: 256 seconds]
<clever>
mupf: and how did you write the image to the usb stick?
ericsagn1 has quit [Ping timeout: 256 seconds]
hoshineko has joined #nixos
<manveru>
quick question about cross compilation... i'd like to add e.g. aarch64 to the crystal package, but the build itself must be done x86_64-(linux|darwin), is that possible?
<mafo>
and when i run a script nix-shell with an error nix-shell exits
<mafo>
is there a way to keep nix-shell interactive?
<clever>
mupf: i think its `set +e`
hoshineko has quit [Quit: hoshineko]
<mafo>
i tried set +e but it didnt help
adamt has quit [Ping timeout: 256 seconds]
rardiol1 has quit [Remote host closed the connection]
<clever>
Mic92: what do you think about backporting my openat PR to 18.03 and/or 17.09?, they may have the same issue because the previous PR was also backported
judson has quit [Ping timeout: 240 seconds]
iyzsong has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @cleverca22 to release-18.03 « ntp: fix a missed syscall in seccomp »: https://git.io/vhah6
<clever>
Mic92: (facepalm), i think my pr that was just merged only fixes it on 32bit...
<mafo>
when i set +e it get
<mafo>
Builder called die: Cannot wrap '/nix/store/fq3c5vhzkiijbvsbsqxyx07y76v55n0w-linphone-3.12.0/bin/.buddy_status-wrapped_' because it is not an executable file Backtrace: 3 assertExecutable /nix/store/pa4bdc1nsw0vz1sn9fc9xrm03x5l5lws-hook/nix-support/setup-hook 6 makeWrapper /nix/store/pa4bdc1nsw0vz1sn9fc9xrm03x5l5lws-hook/nix-support/setup-hook 13 wrapProgram /nix/store/pa4bdc1nsw0vz1sn9fc9xrm03x5l5lws-hook/nix-support/setup-hook 0 _cal
<mafo>
i get a backtrace and a line that says exit
<clever>
mafo: backtraces, in a shell script??
<mafo>
yes
<mafo>
ok maybe its a backtrace from the nix-shell command
<mafo>
builder called die .....backtrace ..... exit
ericsagn1 has joined #nixos
judson has joined #nixos
judson is now known as Guest15446
<mafo>
what is the prefered way to debug a derivation and run build phases interactively? maybe i'm using nix-shell in the wrong way
<clever>
mafo: i think genericBuild may change the s state again
<clever>
e*
<clever>
mafo: i would just re-launch the shell after it fails, and then try make in the dir it made
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
__monty__ has joined #nixos
<clever>
Mic92: let me just upstream the fix and then file a PR with that diff
<Mic92>
clever: ok
<mafo>
ok thanks
hoshineko has joined #nixos
<hoshineko>
hello, is it possible to have package options (nixpkgs.config.*) per-user
<YegorTimoshenko[>
hoshineko: sure, add options to ~/.config/nixpkgs/config.nix and those will be available per-user
ixxie has joined #nixos
<logiq>
hi, trying to use cachix on a nixos docker image, i get a `InternalException (HandshakeFailed (Error_Protocol (\\\"certificate has unknown CA\\\",True,UnknownCa))))\""}` when doing a cachix push
<logiq>
has anyone seen this?
<logiq>
i tried installing the cacert package, but that didn't help
<gchristensen>
YegorTimoshenko[: when do you sleep?
iyzsong-x has joined #nixos
<YegorTimoshenko[>
gchristensen: 1AM - 8AM GMT
<gchristensen>
:D
iyzsong has quit [Ping timeout: 265 seconds]
alexteves_ has joined #nixos
hyper_ch2 has quit [Quit: Page closed]
mafo has quit [Quit: Page closed]
phdoerfler has quit [Ping timeout: 240 seconds]
humanoyd has quit [Quit: WeeChat 2.1]
nschoe has joined #nixos
<logiq>
also, can someone explain what `-f <nixpkgs>` means when installing? and how is it different from `-f .` mentioned in the manual?
phdoerfler has joined #nixos
<etu>
YegorTimoshenko[: So you don't care about leap seconds? :D
<clever>
logiq: `-f <nixpkgs>` will search for nixpkgs in $NIX_PATH, while `-f .` just opens the default.nix in the current dir
<logiq>
clever: got it. and is `-f <nixpgs>` "better" than `nix-env -iA nixpkgs.foo`?
<clever>
logiq: nix-env follows different rules, and will search for nixpkgs in ~/.nix-defexpr/, which will point to a channel called nixpkgs when added with nix-channel
<clever>
logiq: <nixpkgs> and `nix-env -iA nixpkgs.` can wind up pointing to different things
<clever>
logiq: and the channel is called nixos when on nixos, so you instead need `nix-env -iA nixos.foo`
<logiq>
ok.. (i'm not on nixos)
<logiq>
so which one should i use? :) i might have even mixed the two
<clever>
logiq: id usually stick to `nix-env -iA nixpkgs.foo`
<logiq>
btw, `NIX_PATH=nixpkgs=/home/asymmetric/.nix-defexpr/channels/nixpkgs` so it seems they're pointed to the same place
<etu>
YegorTimoshenko[: Well, since it's a channel of really niche people, I wouldn't be surprised if someone had the opinion that leap seconds are bad for some reason ;)
<etu>
gchristensen: Good man, I've tried that for a while. It was handy sometimes because I had lots of contact with people on IRC all over the timezones and we decided on meetings based on Swatch Internet time :D
<etu>
clever: :D
<gchristensen>
hah
<clever>
!tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<srhb>
Can rustPlatform be bootstrapped with musl these days?
<eisbaer>
is there a way to set rules for the forward chain in iptables, because rules specified by 'extraCommands' in either networking.firewall or networking.nat are added after the 'reject all' rules
<nschoe>
Hi everyone, I'm having an issue trying to develop with qtcreator. I have created a shell.nix with "buildInputs = [ pkgconfig cryptopp qt5Full qtcreator ];" inside. The ninside nix-shell I started a qtcreator, but when I try to compile I'm having error: "cannot find -lQt5Widgets, -lQt5Gui, -lQt5xml, -lQt5Core".
<{^_^}>
[nixpkgs] @xeji pushed commit from @kamilchm to master « ponyc: 0.22.6 -> 0.23.0 (#41833) »: https://git.io/vhVtz
MercurialAlchemi has quit [Ping timeout: 265 seconds]
gerschtli has joined #nixos
raynold has quit [Quit: Connection closed for inactivity]
xy2_ has joined #nixos
DwarfMaster has quit [Quit: WeeChat 2.1]
DwarfMaster has joined #nixos
rardiol1 has joined #nixos
<{^_^}>
[nixpkgs] @Assassinkin opened pull request #41839 → pythonPakchages.deap: init at 0.4.2 → https://git.io/vhVmO
dbmikus has joined #nixos
<hodapp>
nschoe: I feel vaguely like I've done this before... what NixOS version? and what/how are you trying to build?
xcmw has joined #nixos
<nschoe>
hodapp, I'm no 18.03
<nschoe>
hodapp, but I think I have found a solution:
<nschoe>
I have deleted my qtcreator option (or rather I relaunched it with a -settingspath option), and now, when I went into the options to add the Qt kit, it found the correct Qt version.
<nschoe>
hodapp, because I noticed that when I entered my shell with `nix-shell`, it downloaded a bunch of libraries etc, and everything was qt 5.11. But when I looked in the qtcreator options, it was talking abotu a qt5.9.
<hodapp>
ohh, okay. you were building from within Qt Creator, not from QMake yourself?
<nschoe>
So I figured this would come from this, so I restarted qtcreator with a blank settings file, and now it found qt5.11.
<nschoe>
hodapp, yes indeed.
<nschoe>
[shame]I configured some options in the .pro file, and then clicked the compile & run button on qtcreator [/shame]
<gerschtli>
hey, does anyone know where i could get an aarch64 iso of nixos?
<hodapp>
nschoe: was it picking up old user settings of yours then?
<gerschtli>
i need the result of `nix-build nixos -I nixos-config=nixos/modules/installer/cd-dvd/sd-image-aarch64.nix -A config.system.build.sdImage` but i dont have an aarch64 os installed
<hodapp>
nothing's shameful about build in Qt Creator; I'm just trying to remember how it gets its settings since IIRC it behaves somewhat differently from calling QMake
<nschoe>
hodapp, I suppose so :/
jperras has joined #nixos
knupfer has joined #nixos
<nschoe>
hodapp, what ticked me is that when I was in the config panel to chose / add a Qt Kit, it said "qt5.9" and in "path to qmake" there was "/home/nschoe/.nix-profile" and that seemed weird since I launched it from within nix-shell.
<nschoe>
I checked with nix-env -q and I do have qt-5.9 installed (I know this is an error, I'll uninstall)
<hodapp>
huh. wonder if it might be good to modify the Qt Creator derivation to point it by default at a specific Qt instance
<hodapp>
just to avoid confusion like this
<nschoe>
And since I did not know a good way to fix this, I tried launching it with "-settingspath .", figuring this would be a "fresh launch" (which it was indeeded)
<nschoe>
And now qtreator supposedly scanned the ENV variable (or performed some black magic fuckery ^^) and found the "correct" 5.11 version. Now, in "path to qmake" I have a path inside the nix-store. Which sounds better to me.
<nschoe>
hodapp, well I'm not sure, but it would be good if the qtcreator would scan the env variable to find the correct qt version.
<hodapp>
likely so. hmm... is there a global Qt Creator config that the user config just overrides?
<nschoe>
I'm hoping that next time I enter the nix-shell and it updates qt's version, then qtcreator will find this new version.
<nschoe>
hodapp, I don't know :/
<hodapp>
wondering if a derivation could write that global config to point to a certain Qt instance
<nschoe>
hodapp, yes but if you did this, then qtcreator would not follow qt updates?
<hodapp>
what sort of qt updates do you mean?
<nschoe>
hodapp, for instance 5.9 -> 5.10 -> 5.11
<hodapp>
if the Qt Creator derivation were parametrized over some Qt then it would just be updated along with it
<hodapp>
similar to how - for instance - RStudio can point to specific R environments
<nschoe>
hum, okay but how would this work: right now qtcreator is 4.5.
<nschoe>
This is not related to qt's version, right?
mkoenig_ has quit [Remote host closed the connection]
mkoenig has joined #nixos
reinzelmann has quit [Quit: Leaving]
seafood has quit [Quit: seafood]
<pauldub>
I'm trying to setup a projet with ruby 2.4.2 in shell.nix instead of the default 2.4.4 but I don't know how to do so, has anyone done it before?
matthewbauer has joined #nixos
camsbury has quit [Remote host closed the connection]
smallville7123 has quit [Read error: Connection reset by peer]
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
selaux has joined #nixos
ryantrinkle has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
cinimod_ has joined #nixos
sorixelle has quit [Ping timeout: 245 seconds]
sir_guy_carleton has quit [Quit: WeeChat 2.0]
tnks has joined #nixos
jensens has joined #nixos
<tnks>
the program I use for mapping extra keyboard keys to programs on another distribution isn't on Nix. These programs are a dime-a-dozen, though. Is there one people prefer in Nix?
<sgraf>
wanted to investigate/fix the default.nix in a local clone of nixpkgs. I'm wondering how I can launch a nix-shell environment. Since this is probably supposed to be used with callPackage, I tried the following invocation: nix-shell -E 'with import <nixpkgs> { }; callPackage ./path/to/default.nix { }'. This doesn't work, because llvmPackages and perlPackages aren't automatically brought 'in scope'. How do I do that?
<sgraf>
Or, in general, how do I build nixpkgs derivations locally?
<sphalerite>
or you can use any command that works with the system nixpkgs, but pass `-I nixpkgs=path/to/your/nixpkgs`, or (equivalently) put nixpkgs=path/to/your/nixpkgs in your NIX_PATH environment variable
<cinimod_>
I am trying to use R via nix but nix seems to be installing a very old version of R
<cinimod_>
Well installing is the wrong word - it is compiling an old version of R
knupfer has joined #nixos
<cinimod_>
And then failing
<cinimod_>
I thought these things were cached?
silver has quit [Ping timeout: 245 seconds]
<jD91mZM2>
cinimod_: When builds fail on the build server as well they aren't cached
<jD91mZM2>
cinimod_: Guessing the R package is broken. What channel are you on?
<cinimod_>
From the R website: "The latest release (2018-04-23, Joy in Playing)"
<jD91mZM2>
Ah, then that probably means that te R package is simply broken and that there isn't a newer version available in nixpkgs. You should make a pull request to nixpkgs!
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<YegorTimoshenko[>
i follow nixos-unstable-small and R works for me
<sgraf>
sphalerite: Thanks, didn't know about nix. Is that a recent Nix 2.0 thing?
<YegorTimoshenko[>
it's on 3.5.0
<{^_^}>
[nixpkgs] @flokli opened pull request #41844 → pythonPackages.GitPython: set path to git executable → https://git.io/vhVz6
<sphalerite>
sgraf: yes, the nix command was introduced with 2.0. It's not a stable interface yet but a lot of people already use it, especially because of the pretty progress info :)
<jD91mZM2>
sgraf: FYI you can also use the old nix-build path/to/nixpkgs -A <attrpath> (but you shouldn't since nix 2.0 is awesome)
npmccallum has quit [Ping timeout: 260 seconds]
<cinimod_>
@YegorTimoshenko[ I don't know how to use your suggestion
<cinimod_>
I just don't know how to get a standard nixpkgs
Ariakenom has quit [Ping timeout: 276 seconds]
ezemtsov has joined #nixos
<YegorTimoshenko[>
save this in foo.nix and run `nix-build foo.nix -I nixpkgs=https://github.com/nixos/nixpkgs-channels/archive/nixos-unstable-small.tar.gz`
<jD91mZM2>
Basically don't supply -I nixpkgs and you'll use the default
periklis has joined #nixos
Acou_Bass has quit [Ping timeout: 264 seconds]
<cinimod_>
But the default starts compiling a very old version of R which then fails
xcmw has joined #nixos
<cinimod_>
I am trying YegorTimoshenko['s suggestion
<ezemtsov>
hi. Could anyone explain please what's the approach for packaging eclipse-based proprietary tools? Need to install IBM integration bus toolkit
<cinimod_>
Ok that is building R 3.5
<cinimod_>
which is better but I was expecting it to be cached
<ezemtsov>
on normal linux I would just put it to some folder and just run, it does not work with nix :)
<tnks>
manveru: I'm a touch confused, though with your snippet. I'm using the "bindsym" keyword in my i3 config. I don't see this "keybindings =" syntax in the documentation.
Drakonis has joined #nixos
ezemtsov has quit [Ping timeout: 260 seconds]
ryantrinkle has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vhVwP
<tilpner>
sgraf - What tools?
<{^_^}>
[nixpkgs] @volth closed pull request #41516 → nixos/dhcpcd: add networking.dhcpcd.options to specify what to request from the DHCP server → https://git.io/vhRBX
<{^_^}>
[nixpkgs] @oxij opened pull request #41852 → nixos/tor: fix systemd service → https://git.io/vhVrX
matthewbauer has quit [Read error: Connection reset by peer]
jD91mZM2 has joined #nixos
matthewbauer has joined #nixos
periklis has quit [Remote host closed the connection]
jperras has quit [Quit: WeeChat 2.1]
pie_ has joined #nixos
selaux has quit [Remote host closed the connection]
matthewbauer has quit [Read error: Connection reset by peer]
wirew0rm has joined #nixos
matthewbauer has joined #nixos
<FruitieX>
hey, is there any way I can append to users.extraUsers.foo.extraGroups after it's been set once somewhere in the config?
<sgraf>
tilpner: Hmm... I'm not so sure that this overrides package arguments. Or at least it doesn't really change anything in the build (still llvm 4) besides adding llvm 6 as a dependency
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<FruitieX>
what I'm trying to achieve is to define my user account at the top of the config file (users.extraUsers.foo = {...};)
<infinisil>
FruitieX: Yeah, that will work automatically
<FruitieX>
and then later append stuff to that user account's extraGroups, e.g. adding the "audio" group where I'm configuring pulseaudio, or "adbusers" where I'm configuring Android adb crap
<infinisil>
FruitieX: All the groups you set in all files will get merged (concatenated in the case of lists)
<tilpner>
sgraf - How do you tell? Are you sure the overlay is active?
<{^_^}>
[nixpkgs] @matthewbauer pushed to master « llvm: fix darwin cross bootstrapping cmake »: https://git.io/vhVKR
Ralith_ has quit [Ping timeout: 264 seconds]
<FruitieX>
infinisil: Hmm so it should work... For me it's complaining that attribute 'users.extraUsers.foo.extraGroups' already defined at [where I define my user account]
<sgraf>
tilpner: I'm pretty sure, because by overriding buildInputs so that it finds the llvm 6 toolset before it finds the llvm 4 one, the configure step tells me it found 6 vs. 4
<sgraf>
tilpner: Also, before the build broke at 97% of clang_delta. Can tell you in a sec if it still breaks with the modified buildInputs
<sgraf>
tilpner: Yay, that seems to have worked :)
Sonarpulse has joined #nixos
<LnL>
sgraf: oh wait you where asking the question, what platform are you on?
<sgraf>
LnL: I'm on Ubuntu 18.04
<LnL>
weird, I'd expect .override to be enough then
<sgraf>
tilpner: I still don't get why I can't call override instead of overrideAlt (and ignoring the old parameter) in that example in general. If I put all overrides inside the override block, it crashes
<sgraf>
as soon as I put the binding for name inside the override block, it complains with
<sgraf>
error: anonymous function at .../creduce/default.nix called with unexpected argument 'name', at ...
FruitieX has joined #nixos
<clever>
sgraf: you used the wrong override function i believe
<LnL>
oh, you can't override attributes with .override only inputs
<{^_^}>
[nixpkgs] @FRidh merged pull request #41844 → pythonPackages.GitPython: set path to git executable → https://git.io/vhVz6
<{^_^}>
[nixpkgs] @xeji pushed commit from @oxij to master « uim: 1.8.6-20180501-git -> 1.8.8 (#41850) »: https://git.io/vhV1P
<ixxie>
so it shouldn't be hard to write kubernetes deployments in Nix I guess
<ixxie>
this would be advertised except I don't think most of us do that sort of thing often?
Mrmaxmeier has joined #nixos
fendor has quit [Ping timeout: 240 seconds]
pie_ has quit [Quit: Leaving]
<ixxie>
gchristensen: so, one could probably deploy cool Nix-based build-everything networks which deploy with NixOps+Kubernetes
<ixxie>
can Nix build for Windows?
matthewbauer has joined #nixos
matrium has joined #nixos
<matrium>
hi, can someone tell me how to fix "error: attribute 'old-time' missing" when trying to build a haskell package with "pkgs.haskell.packages.ghcjs" from the unstable channel?
sigmundv has quit [Ping timeout: 240 seconds]
morenoh149 has joined #nixos
<morenoh149>
what's the easiest way to update nix? I need to get on 2.0
<tilpner>
Are you on NixOS?
<morenoh149>
osx
<clever>
morenoh149: single-user or multi-user install? (is nix-daemon running)
<morenoh149>
I'm assuming multi-user install
<clever>
morenoh149: `sudo -i`, then `nix-channel --update` and `nix-env -iA nixpkgs.nix`
<matthewbauer>
matrium: this should be fixed in master
<johanot>
our kubernetes production cluster is based on the current nixos kubernetes module. I'm currently preparing a new PR with some more options.. Like if 111 wasn't enough.
<ixxie>
johanot: awesome! Can I ask a couple of questions?
jperras has joined #nixos
<johanot>
ixxie: of course!
<ixxie>
johanot: are you managing any VMs with this system?
<ixxie>
or just containers?
<johanot>
containers only. our entire cluster counts 8 (soon 16) container nodes and 3 master nodes, mostly physical hardware. all running NixOS. But kubernetes itself manages only containers.
<ixxie>
NixOS containers or Docker or what?
<morenoh149>
clever: thanks
<ixxie>
^ johanot
<johanot>
docker containers.. Basically our node config is: virtualization.docker.enable = true; services.kubernetes.enable = true; + a couple of thousand more lines of k8s config. :)
<ixxie>
thousands!
<ixxie>
so its very difficult to configure I guess?
<{^_^}>
[nixpkgs] @xeji merged pull request #41849 → docker: Ensure references to go are removed from docker-containerd → https://git.io/vhVVB
<{^_^}>
[nixpkgs] @xeji pushed commit from @srhb to master « docker: Ensure references to go are removed from docker-containerd (#41849) »: https://git.io/vhVST
<johanot>
ixxie: No I don't think so.. We just learned the hard way, that vanilla config doesn't work very well for us. In an on-prem environment with a lot of custom network components etc. But perhaps we should look into upstreaming even more of our changes, because some of them are more or less generic - obviously.
baconicsynergy has quit [Quit: Leaving]
<andi->
johanot: how do you treat storage for anything? There is not permanent storage?
<johanot>
ixxie: https://github.com/kelseyhightower/kubernetes-the-hard-way .. Have a look a this, if you haven't already. I think the biggest problem of setting up kubernetes, is handling PKI in a sane and secure manner. You don't want your secrets ending up in the store. And therefore you need something like a custom vault pki or cfssl setup, with proper key rotation setup.
<Plato[m]>
I have a game that's distributed in "mojoscript" form, so a single bash script that has commands at the top and a zip file at the bottom. Were I to create a nix expression for it, what would I pass as the "src"? It's not freely available.
<johanot>
andi-: Currently we run only stateless workloads, but we are in the process of setting up an on-prem Ceph cluster
<andi->
ah ok, I would have been surprise if it would be anything but ceph :-)
<tilpner>
Plato[m] - Do you just want to run it? Try steam-run
<matrium>
matthewbauer: thanks, it seems to work now! :-)
<Plato[m]>
tilpner: Oh, didn't know that existed.
Neo--- has joined #nixos
<andi->
johanot: I guess that will also be with nixos? Are the ceph packages/modules working (again)?
Mrmaxmeier has joined #nixos
<johanot>
actually we already have a production ceph cluster in house. :) just not worked geared and tailored for kubernetes, yet.
<matthewbauer>
matrium: there's still some weird ghcjs issues but we are slowly working through them
<tilpner>
Plato[m] - The real answer to your question would be requireFile
m0rphism has quit [Quit: WeeChat 1.9.1]
<johanot>
andi-: Yes.. AFAIK... although I'm not personally working with ceph. :) srhb?
<tilpner>
Plato[m] - But I'm not really a fan of adding lots of expressions for paid closed-source software to nixpkgs, if that's what you were going to do :/
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vhVSj
Mrmaxmeier has quit [Remote host closed the connection]
Neo---- has quit [Ping timeout: 256 seconds]
<andi->
johanot: Have you considered opening up the nix expressions you are using? I am in th eprocess of deploying a new kubernetes cluster at my dayjob.. I am so sick of all the other distributions...
<{^_^}>
[nixpkgs] @xeji pushed commit from @srhb to release-18.03 « docker: Ensure references to go are removed from docker-containerd (#41849) »: https://git.io/vhV9I
winem_ has joined #nixos
<tilpner>
Plato[m] - Did you try steam-run now? I'm assuming you were asking because it didn't run without patching?
<johanot>
andi-: Will definitely look into that at some point. Just don't have the bandwidth currently to percolate our current closure for secrets.
<ixxie>
johanot: I am interested to push this kinda stuff at work but we are a Windows shop, but maybe cross-compilation to windows is possible
<Plato[m]>
tilpner: I'm trying. This failed, but it might have something to do with me editing the file earlier.
<Plato[m]>
So I'm re-downloading
vandenoever has joined #nixos
<tilpner>
Plato[m] - What errors? (And what's mojoscript form?)
<tilpner>
($SEARCH_ENGINE doesn't find much for that)
<Plato[m]>
tilpner: I think mojoscript is the program that generates this bash/binary files.
<{^_^}>
[nixpkgs] @xeji pushed commit from @Gerschtli to master « pythonPackages.pdf2image: init at 0.1.13 (#41741) »: https://git.io/vhV9x
<clever>
ixxie: ive also found .net stuff to be weird, ive seen a project linking a .exe file as the linux build!, and it just works when you run mono on it under nixpkgs!
Neo--- has quit [Ping timeout: 276 seconds]
<ixxie>
odd
<{^_^}>
[nixpkgs] @xeji merged pull request #41822 → asio: add old version 1.10.8 → https://git.io/vha6n
<{^_^}>
[nixpkgs] @xeji pushed commit from @Izorkin to master « asio: add old version 1.10.8 (#41822) »: https://git.io/vhVHm
silver has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
<YegorTimoshenko[>
clever: .exe can be mono executables, like java .jar
<clever>
YegorTimoshenko[: yeah, it was just a bit weird to be given an exe file when i askd for a linux binary
grp has quit [Quit: box shutting down...]
matrium has quit [Ping timeout: 260 seconds]
<johanot>
packaged .net applications are just small native binary stubs invoking the runtime with the application as parameter. A java jar has no such stub, although it would be pretty much as simple as: "exec java -jar app.jar"
<Lev50>
How can I install node2nix 1.6.0 ?
<Lev50>
nix-env -f '<nixpkgs>' -iA nodePackages.node2nix installs 1.5.3. I am on macOS
<tnks>
the new environment variables are still confusing me. What happened to NIX_REMOTE? I don't see it in my installation of NixOS in `env`.
* etu
runs some mono-stuff on his arch-box (not yet migrated to nixos) and it's so weird with path/to/dot.exe-files is the ps output
vaninwagen has joined #nixos
mizu_no_oto has joined #nixos
Ariakenom has joined #nixos
johnw_ is now known as johnw
johnw has quit [Changing host]
johnw has joined #nixos
<infinisil>
tnks: Nix 2.0 doesn't need them anymore, not sure why
<tnks>
infinisil: I can imagine a world where stuff is autodetected.
<tnks>
I just wish I could find clear documentation of what's up.
<Lev50>
infinisil: working on this, I've clone the repo locally and run nix-build. But this isn't enough to install it for use from the command line, `which node2nix` still points me at a 1.5.3
<Lev50>
very new to this... probably should rtfm but what am I missing?
<infinisil>
lev50: Read the page I linked, what's the latest release?
<Lev50>
Oh wow
<Lev50>
my bad.
nuncanada has joined #nixos
<infinisil>
;)
<Lev50>
For the sake of my learning, if I wanted to replace the official Nixpkgs version (1.5.3) with bleeding edge straight-from-the-repo 1.6.0, is there a way to do that?
<manveru>
has anyone got a wordpress derivation that also allows installing plugins/themes via the web ui?
<Lev50>
I've got a file /nix/store/x32p3iv0xg3d0a6hhw2j2j0wqsgyazip-node-node2nix-1.6.0
<manveru>
or should i just use docker for this...
<infinisil>
lev50: Does running `nix-env -f '<nixpkgs>' -iA nodePackages.node2nix` in the cloned repo work?
<infinisil>
Oh wait
<infinisil>
Nah that won't do
<Lev50>
I wouldn't expect that to work. -f should point to local somehow
rardiol1 has joined #nixos
<infinisil>
lev50: nix-build release.nix -A package.x86_64-linux
<infinisil>
Something like that
<Lev50>
does that not do the same as a plain nix-build ?
<Lev50>
I am trying it
<infinisil>
Yeah, you can install it with `nix-env -if release.nix -A package.x86_64-linux` I think
myshoe has quit [Ping timeout: 264 seconds]
<ixxie>
johanot: do you think there would be any need to tools for integrating NixOS and Kubernetes beyond the configuration options?
<ixxie>
Like a CLI or something?
<Lev50>
I'm on macOS so guessing I should use x86_64-darwin, but trying that
<Lev50>
Yeah, that worked. Thank you!
<infinisil>
Nice :)
<ixxie>
clever: is there a guide somewhere to crosscompilation to windows?
<clever>
ixxie: i dont think one exists yet
<johanot>
ixxie: nah.. kubernetes is a service just like any another service, or a collection of services rather. But, personally I think the split between "what-to-run-in-kubernetes" vs. "what-to-run-as-system-service" is unclear in kubernetes. It is apparent that many parts of kubernetes was build to solve a lot of the same problems as NixOS does. Many k8s deployment examples go so far as to say "You only need the kubelet running as a system serv
<johanot>
ice, all other cluster components can be managed by kubernetes itself." All I have to say to that is: The more components you choose to run inside k8s, the more you are gonna need a tool to declaratively manage your yaml-manifests :) heh.
<johanot>
to answer your question more clearly: we might want to build a nixos module dedicated to kubernetes manifest management.
alexteves_ has quit [Remote host closed the connection]
alexteves_ has joined #nixos
myshoe has joined #nixos
<ldlework>
Eh
<clever>
johanot: of note, yaml is a superset of json, so all yaml parsers can accept json
<tnks>
another niggling thing. I installed nixpkgs.rofi and the package itself has some man pages under share/man/man1, but these are not getting symlinked into my ~/.nix-profile.
<ldlework>
The whole point behind containerization and orchestrators is to unify the control surface
<clever>
johanot: any time i'm dealing with something that wants yaml, i just use builtins.toJSON in nix
<infinisil>
Hmm when I build rofi I don't see any manpages it its output
ixxie has quit [Ping timeout: 260 seconds]
<manveru>
i have `/nix/store/00qn86p84bdlc0crx3myihzc72jn6xw4-rofi-1.5.0/share/man`
<infinisil>
Hmm, it's not in master
<tnks>
infinisil: nix-env -iA nixpkgs.rofi
<infinisil>
17.09 has them
<d1rewolf_>
guys, a coworker found a thread talking about nixos's security patches, and how they tend to lag behind other distros and even require manual patching by hand. This discussion was from 2016. Are either of these points valid today (assuming they ever were)?
<infinisil>
18.03 has it too
<infinisil>
I'll bisect
<tnks>
infinisil: but this seems like two problems.
alexteves__ has joined #nixos
<tnks>
one is that the man pages aren't in the package, and the other is that they aren't being put into the symlink environment.
<tnks>
I don't have the first problem (I think), but I do have the second.
<infinisil>
tnks: cd $(dirname $(realpath $(which rofi)))
<infinisil>
Does that directory contain the manpages in share/man/man1?
alexteves_ has quit [Ping timeout: 240 seconds]
<tnks>
infinisil: well, one up... but yeah.
<infinisil>
You're on NixOS?
<tnks>
infinisil: yeah.
filwisher has joined #nixos
<infinisil>
Other programs installed via nix-env -i have their man pages? It's only rofi that doesn't?
<tnks>
infinisil: this exists: /nix/store/q4fsdj22yaiacadd4qfm5indkfkgw5gh-rofi-unwrapped-1.5.1/share/man/man1/rofi.1.gz
<tnks>
infinisil: yeah, that seems to be the case for me.
<clever>
tnks: did you apply any overrides with config.nix?
<tnks>
clever: not on that package.
<infinisil>
Huh that's weird
<tnks>
I know. Is this at all reproducible for anyone?
<clever>
tnks: if you run `nix-build '<nixpkgs>' -A rofi` and then `ls -l result/` does it contain a share/man dir?
<tilpner>
d1rewolf_ - AFAIK that's still true. Differences include oss-security/distros membership and maybe propagation-speed of security fixes to non-release branches. gchristensen can probably tell you more
<infinisil>
It might be the same issue after all then
<clever>
tnks: how did you find /nix/store/q4fsdj22yaiacadd4qfm5indkfkgw5gh-rofi-unwrapped-1.5.1/share/man/man1/rofi.1.gz ?
<gchristensen>
d1rewolf_: we're pretty good about patching
<tnks>
clever: I did a "which rofi" and then readlink -f'd it.
<gchristensen>
often rivaling other distros on how quickly they patch
<clever>
tnks: and what does just `which rofi` return?
<tilpner>
gchristensen - I was referring to how it could take a few days for a fix to arrive on nixos-unstable, because it might be blocked by other things
<tnks>
clever: just a moment. I'm oscillating between nixos.rofi and nixpkgs.rofi (two channels)
<gchristensen>
tilpner: yeah, even with that we're frequently on par with others
<tilpner>
gchristensen - Other projects manage that via donations. I didn't even know where to donate until a few minutes ago, it's not advertised very well and there's been the notion of "things are paid for, donations are not urgent" in the past (not sure where from)
<tnks>
clever: okay, I need to understand the motivation for wrapping rofi at all.
<infinisil>
tnks: clever: I overstepped that PR multiple times because I thought "That could never have caused that"
<clever>
tnks: read the bash script in the wrapped variant
<tnks>
clever: yeah, I'm about to right now.
dbmikus has joined #nixos
<infinisil>
I can make a PR to fix it
<tnks>
clever: okay, I don't think this has much to do with the concept of wrapping... just lazy wrappers not pulling the man pages through to the new package.
<tnks>
clever: thanks for chatting me through this.
<tnks>
it's not that rofi is the most important thing for me. I just like to understand the pieces.
<infinisil>
The wrapper only passes along $out/bin/rofi, that's the problem
<tnks>
infinisil: yeah.
<infinisil>
It should really pass along everything, then replace the binary
<MichaelRaskin>
Obviously the wrapper author is usually the person who has already read everything man page has to offer
<tnks>
infinisil: all for a theme I could care less about.
<clever>
infinisil: maybe a buildenv between the wrapper and original, with the wrapper as a higher prio
jD91mZM2 has quit [Quit: WeeChat 2.0]
<infinisil>
clever: Hmm.. that might be nicer yeah
<infinisil>
I'll just write this in bash though
harrymoreno is now known as morenoh149
alexteves__ has quit [Remote host closed the connection]
asuryawanshi has quit [Ping timeout: 276 seconds]
saep has joined #nixos
alexteves_ has joined #nixos
<{^_^}>
[nixpkgs] @bobvanderlinden opened pull request #41858 → Initial home contents → https://git.io/vhVp3
<infinisil>
clever: Writing a bash script that just symlinks the files that stay instead of using buildEnv saves 1 whole derivation!
<inquisitiv3>
What's the difference between all the Firefox derivations? Do I need to read the nix expressions to determine what's the difference between them?
<{^_^}>
[nixpkgs] @Infinisil opened pull request #41860 → fix rofi wrapper only passing along binary → https://git.io/vhVhe
<infinisil>
tnks: ^^
aborsu has joined #nixos
etu has joined #nixos
talyz has joined #nixos
Lev50 has quit [Quit: This computer has gone to sleep]
<tnks>
infinisil: thanks. turned out I only cared about rofi-unwrapped, but I'm sure someone will appreciate it.
<infinisil>
It shouldn't be that the packaged call "rofi" only contains a fraction of rofi
<tnks>
yeah.
<infinisil>
I'm honestly not fond of this wrapper at all
<infinisil>
Stuff like this doesn't belong in nixpkgs imo
<ldlework>
infinisil: it belongs in some high-level community driven options repo, right?
<illegalprime[m]>
Hi! I made a patch to konsole and I want to use my patched version, so I added an overrideDerivation in ~/.nixpkgs/config.nix where src was set to a local directory. How do I tell nix to update that package?
<infinisil>
Hmm..
<infinisil>
ldlework: Maybe
<infinisil>
ldlework: A repository where all the programs configuration can be made with nix, and there should be stuff like an option to apply a single color scheme to all applications
<{^_^}>
[nixpkgs] @7c6f434c merged pull request #41860 → fix rofi wrapper only passing along binary → https://git.io/vhVhe
<infinisil>
And the modules that do this should be linked to the packages themselves, so that different versions can have different options
<ldlework>
I still haven't decided if I want to make an enable option for every group of my own personal config.
d1rewolf__ has joined #nixos
<ldlework>
It is like the strongest form of writer's block I've ever encountered.
<infinisil>
illegalprime[m]: I recommend using `overrideAttrs` over `overrideDerivation`
<infinisil>
illegalprime[m]: Assuming you made the override correctly, it should work by installing it again, it will override the old version
<ldlework>
I was thinking about that nixlang enhancements sketch yesterday and the following question came to me; why wouldn't we want all attrsets to be "extensible"?
<ldlework>
What's the point in having non-extensible attrsets?
<ldlework>
Would it be backwards compatibility only?
<illegalprime[m]>
infinisil: thank you! I was following a nix pill I think. All I need to do is override `src`?
<infinisil>
ldlework: Probably nobody thought of that when Nix was implemented and it's more complicated to implement
rolf has joined #nixos
d1rewolf_ has quit [Ping timeout: 264 seconds]
<infinisil>
illegalprime[m]: Yeah
rolf is now known as Guest71696
<{^_^}>
[nixpkgs] @Ericson2314 pushed to ghc-gmp « ghc: Default integer-simple usage based one whether GNU MP is available »: https://git.io/vhVji
<ldlework>
infinisil: sure I was more thinking whether there are legitimate distinct use-cases for why we might want to keep them, other than backwards incompatibility, that the author just assumed the reader would know
<inquisitiv3>
The clipboard isn't shared between my host system (Fedora 27) and my VM (NixOS). I've added `spice-vdagent` to my package list in `/etc/nixos/configuration.nix`, ran `sudo nixos-rebuild --upgrade` and rebooted the machine.
<inquisitiv3>
But when I copy something in the VM it doesn't appear in my host system's clipboard.
<{^_^}>
[nixpkgs] @Ericson2314 pushed 0 commits to ghc-gmp: https://git.io/vhVj5
obadz has quit [Quit: WeeChat 2.1]
robstr has quit [Quit: WeeChat 1.9.1]
<Dezgeg>
I suppose you'd need to do services.spice-vdagentd.enable = true;
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #41861 → ghc: Default integer-simple usage based one whether GNU MP is available → https://git.io/vhweU
matthewbauer has quit [Ping timeout: 260 seconds]
knupfer has joined #nixos
<inquisitiv3>
Dezgeg: That did the trick! Why isn't it enabled automatically if you install the package?
reinzelmann has quit [Quit: Leaving]
<clever>
inquisitiv3: things added to systemPackages cant configure nixos level options
<clever>
inquisitiv3: setting that enable thing does 2 things, first it adds spice-vdagent to systemPackages for you (so you can remove your own line for that), and second, it runs it on bootup
<clever>
i'm guessing you just installed it, and never ran it
<inquisitiv3>
I installed it, but never started or enabled any services.
<inquisitiv3>
clever: So you mean that the line `services.spice-vdagentd.enable = true;` is the only thing one need to both install it and run it automatically at bootup?
<clever>
inquisitiv3: yes
mojjo has joined #nixos
<inquisitiv3>
clever: That feels weird. It would be more intuitive if it where the other way.
<mojjo>
hi! on nixos: `pulp init` -> `TypeError: asyncWrite is not a function` Any ideas?
matthewbauer has joined #nixos
Guest71696 has quit [Quit: WeeChat 2.1]
<inquisitiv3>
clever: Is there a reason why it works that way?
obadz has quit [Ping timeout: 260 seconds]
<clever>
inquisitiv3: some packages can be ran on bootup without installing them, and some need to install specialized versions
<clever>
and it also saves you from having to list everything twice, once in systemPackages and again in services
civodul has joined #nixos
mojjo has quit [Ping timeout: 265 seconds]
m0rphism has joined #nixos
<samueldr>
from a debian-like background, it may seem weird, but it's separation of concerrns
seanparsons has quit [Read error: Connection reset by peer]
obadz has joined #nixos
<samueldr>
installing something != enabling the service
MasseR has quit [Quit: WeeChat 2.0]
<samueldr>
(e.g. archlinux also has a similar separation of concerns where installing something doesn't touch the services)
<samueldr>
(and conversely, enabling a service doesn't necessarily means I want it in my PATH)
<inquisitiv3>
clever: I meant why the service isn't enabled by default when you install the package (that's what users expect to happen). You wrote that "things added to systemPackages cant [sic] configure nixos level options".
<infinisil>
ldlework: Oh and I take the 'wrappers should not belong in nixpkgs' statement back, but a single 'theme' option argument is a bit lame for such a wrapper, needs to be more like the vim one
<inquisitiv3>
samueldr: Thanks for an explanation!
<clever>
inquisitiv3: all nixos does with the systemPackages is put them in /run/current-system/sw/
<samueldr>
systemPackages (as would nix-env -iA) only makes the packages available under ^ where clever said
<clever>
inquisitiv3: its not capable of doing systemd like things and enabling services
<samueldr>
well, nix-env at another location
<clever>
yeah, nix-env puts it in ~/.nix-profile/
<clever>
same limits there
masse has joined #nixos
GiGa has joined #nixos
GiGa has quit [Changing host]
GiGa has joined #nixos
<GiGa>
Hello
<inquisitiv3>
Hmm. I think that information should be more clearer from a UX perspective.
<inquisitiv3>
clever, samueldr: But thanks for the explanation! That make the thought process more clear to me. :)
<GiGa>
Gnome3 tends to crash for me when pressing Meta (apps view). Nvidia card (currently with nouveau driver, but I have tried Nvidia). Any ideas?
<GiGa>
I'm not sure if it's Gnome Shell or GDM with the issue
roberth has joined #nixos
mizu_no_oto has joined #nixos
work_ has joined #nixos
mizu_no_oto has quit [Client Quit]
alexteves_ has quit [Remote host closed the connection]
alexteves has quit [Read error: Connection reset by peer]
<GiGa>
Looks like my card is the NVCF according to Gnome, which is supported by Nouveau
<catern>
eh
alexteves_ has joined #nixos
alexteves has joined #nixos
<catern>
why are info manuals installed through Nix not showing up in my Emacs despite ~/.nix-profile/share/info/ being in Info-directory-list?
seanparsons has joined #nixos
<matthewbauer>
you need to generate the dir file
<matthewbauer>
catern: look at install-info
<catern>
ah, thanks
<catern>
is there some way I can have that dir file generated automatically or something?
<GiGa>
Where's GDM / Gnome Shell keep its logfile on Nixos?
<clever>
imalison: the - in ~/.nix-defexpr/ is missing
<imalison>
yeah sorry i manually typed that out
<imalison>
its there
<clever>
imalison: does that nixpkgs dir its pointing to exist?
<imalison>
yep, and it has a nixos subdirectory
<imalison>
could it be because I am running this command: nix-env -p /nix/var/nix/profiles/system -f '<nixpkgs/nixos>' -I nixos-config=/etc/nixos/configuration.nix -iA system
<clever>
imalison: you need to use --set when trying to manage the system profile
<clever>
imalison: what exactly are you trying to do?
sigmundv has joined #nixos
<imalison>
I'm just following the installation instructions from the manual
<imalison>
I'm doing an in place installation
<clever>
ah
<clever>
imalison: what does this command print out? and try to just paste it, rather then re-type it: nix-instantiate --find-file nixpkgs
<imalison>
hmm seems like the issue had to do with using sudo
<imalison>
i changed ownership of /nix to my user
<imalison>
and ran it without sudo and things seemed to work
<clever>
imalison: sudo can sometimes be configured to sanitize the env, and that can unset $NIX_PATH
<clever>
imalison: it helps a lot to `sudo -i` and then do everything in that root shell
<imalison>
yeah but sudo echo $NIX_PATH pritns the right thing
<clever>
imalison: bash evals that before it runs sudo
mojjoo has joined #nixos
<clever>
imalison: so your not seeing roots version of the variable
<mojjoo>
hi! does anyone use purescript on nixos?
<imalison>
oh right id need to do like sh -c with single quotes
<imalison>
ahh i see, yeah its droping it
<clever>
imalison: also try just `sudo -i` then `echo $NIX_PATH`
<{^_^}>
[nixpkgs] @xeji pushed commit from @aborsu to master « nextcloud: 13.03 -> 13.04 (#41859) »: https://git.io/vhwkj
<bgamari>
if so it seems like nixpkgs updates would become quite painful
<clever>
bgamari: ive found that the datadog package from hackage needs tests disabled, and i never got around to filing a PR to fix it
knupfer has quit [Ping timeout: 265 seconds]
<bgamari>
for instance, I'm finding that haskellPackages.concurrent-output doesn't build due to bounds
<bgamari>
and various hasql packages fail to build due to interface changes
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #41861 → ghc: Default integer-simple usage based one whether GNU MP is available → https://git.io/vhweU
Lev50 has quit [Quit: This computer has gone to sleep]
hamishmack has joined #nixos
leothrix has joined #nixos
Ralith_ has quit [Ping timeout: 256 seconds]
sanscoeur has quit [Remote host closed the connection]
Ralith_ has joined #nixos
sanscoeur has joined #nixos
Lev50 has joined #nixos
morenoh149 has joined #nixos
slack1256 has joined #nixos
saep has quit [Remote host closed the connection]
lukec has joined #nixos
<vorot93[m]>
is it me or nixos-install just got broken?
<vorot93[m]>
error: while setting up the build environment: unable to bind mount '/mnt/nix/store/8k6ngyvcpg81kwha2ijnlpwy99nkl4f0-NetworkManager.conf.drv.chroot': Permission denied
filwisher has quit [Ping timeout: 268 seconds]
xy2_ has quit [Ping timeout: 240 seconds]
sbdchd has joined #nixos
baconicsynergy has quit [Quit: Leaving]
Ariakenom has quit [Quit: Leaving]
MP2E has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer pushed to master « openzwave: disable format hardening »: https://git.io/vhwnc
<{^_^}>
[nixpkgs] @bhipple opened pull request #41869 → pcsclite: use canonical src url → https://git.io/vhwcB
jperras has quit [Ping timeout: 268 seconds]
cinimod_ has quit [Quit: Connection closed for inactivity]
work_ has quit [Quit: Connection closed for inactivity]
palo has quit [Ping timeout: 256 seconds]
lassulus has quit [Ping timeout: 256 seconds]
Lev50 has quit [Quit: This computer has gone to sleep]
Lev50 has joined #nixos
<angerman>
bgamari: pong
tzemanovic has joined #nixos
<angerman>
bgamari: most notably you need the compact/driver from GitHub.com/angerman/haskell.nix
lassulus has joined #nixos
palo has joined #nixos
palo has quit [Changing host]
palo has joined #nixos
erasmas has quit [Quit: leaving]
<angerman>
bgamari: elvishjerricco has a new builder that can even build cabal components only.
dbmikus has quit [Ping timeout: 256 seconds]
<bgamari>
angerman, I was just wondering about your Cabal2nix implementation
<elvishjerricco>
angerman: bgamari: I've even got a Plan2Nix exe that I don't think I've pushed yet that converts cabal plans
<bgamari>
ahhh
<bgamari>
elvishjerricco, fantastic
<bgamari>
elvishjerricco, I was reflecting on the need for that earlier
<bgamari>
elvishjerricco, let me know when you push it
<bgamari>
I would love to give it a shot
<elvishjerricco>
The per component building is really nice though because you get to not build tests if you want, which cuts build times and dependency graph sizes down enormously
<elvishjerricco>
bgamari: I'll try to clean it up and put it somewhere this week
<angerman>
elvishjerricco: we should consolidate the stuff ;-)
<elvishjerricco>
Gotta get a PR merged in the hackage-db package first
<elvishjerricco>
If anyone wants to help there
<elvishjerricco>
It's already open but there are some trivial changes to make
<bgamari>
nix-expr-from-cabal would be a bit too wordy
<colemickens>
Any idea why Neovim is built from Pypi instead of GitHub?
thc202 has quit [Ping timeout: 240 seconds]
jperras has quit [Ping timeout: 260 seconds]
<angerman>
bgamari, elvishjerricco: alright, one more renaming coming up...
<elvishjerricco>
bgamari: angerman: cabal3nix :P
pie_ has quit [Quit: Leaving]
<bgamari>
hah
<angerman>
cabal4nix
<alp>
elvishjerricco, is the setup part a dedicated component too at the nix level? IIRC setup-depends vs build-depends technically allows Cabal to pick 2 different versions of something if it's in both dependency lists and the bounds require it. would that be possible with your infra?
ericsagn1 has quit [Ping timeout: 240 seconds]
<elvishjerricco>
alp: I haven't even begun to deal with setup-depends. That's a thorny topic. I suspect my stuff would require quite some adaptation to support multiple versions of the same package like that
<alp>
elvishjerricco, I thought about hacks to make that work back when we were discussing ths idea with bgamari mooonths ago. mostly hacky ones, really. like suffixing deps that can be instantiated with different versions at different points with "_<component name>" or something. and you instantiate the versions to whatever the cabal plan file tells you to
<elvishjerricco>
alp: Maybe from-cabal should export this information somehow, in order to reduce the hacks
<elvishjerricco>
Does plan.json encode setup dependencies at all? We could maybe get the info from there in from-plan
<angerman>
That would also be my approach. Enrich the generated expression.
<alp>
but it might not be worth worrying about this before someone actually needs it, really. however, the more the nix infra mirrors Cabal's behaviour & capabilities, the better I feel
kiloreux has joined #nixos
<elvishjerricco>
Yea I feel it's likely that only having one version of each package should satisfy setup-depends correctly in pretty much all real world cases
<alp>
elvishjerricco, I think so. I can see this in a plan.json file I have around: "setup":{"depends":["Cabal-2.2.0.1","base-4.11.1.0","cabal-doctest-1.0.6-a48eff49c1fa698c590e20781838379c5928e1130874d883e9eda0bffa84d9c8"],"exe-depends":[]}}}