gchristensen changed the topic of #nixos to: Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://botbot.me/freenode/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64
<fpletz> gchristensen: there were also lots of talks about open source community building, didn't manage to see those live though
<gchristensen> oh! I'll have to hunt through the archives. I'm assumingn they'll be published?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] markuskowa opened pull request #34601: mpich2: 3.2 -> 3.2.1, update meta data (master...mpich2-pr) https://git.io/vNpaf
NixOS_GitHub has left #nixos [#nixos]
detran has joined #nixos
xcmw has joined #nixos
<fpletz> gchristensen: yup :) I'm also eagerly waiting for some talks to be uploaded, will ping you when they're available
chisui has quit [Ping timeout: 260 seconds]
<gchristensen> thank you! if you have a personal favorites list, I'd enjoythat too
cnidario has quit [Remote host closed the connection]
szgyg_ has left #nixos [#nixos]
Rusty1_ is now known as Rusty1
detran has quit [Ping timeout: 268 seconds]
<ambro718> how to deal with build system that has shell scripts hardcoded to #!/bin/bash ?
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexteves has quit [Ping timeout: 256 seconds]
detran has joined #nixos
lesce has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BlessJah has quit [Ping timeout: 240 seconds]
lesce has joined #nixos
BlessJah has joined #nixos
lesce has quit [Client Quit]
<fpletz> ambro718: you could run "patchShebangs ." in pre/postPatch for example
<ambro718> thanks
detran has quit [Ping timeout: 260 seconds]
tnks has quit [Ping timeout: 240 seconds]
detran has joined #nixos
matthewbauer has quit [Remote host closed the connection]
matthewbauer has joined #nixos
fyuuri has quit [Ping timeout: 268 seconds]
<pie_> clever, re: mixed qt version breakage, im using stable everywhere in my nix script, but i have a really old package id like to update, rstudio = pkgs.rstudioWrapper.override { packages = rpackages; } , i have that added to buildInputs, is there any way i could get that from unstable while still getting its qt dependency from stable?
detran has quit [Ping timeout: 240 seconds]
<pie_> i tried rstudio = unstable.pkgs.rstudioWrapper.override { packages = rpackages; } but that gives: This application failed to start because it could not find or load the Qt platform plugin "xcb" ; when i try to run studio
<pie_> * This application failed to start because it could not find or load the Qt platform plugin "xcb"
<pie_> in "".
<pie_> Reinstalling the application may fix this problem.
<pie_> adding xorg.libxcb to buildinputs doesnt change anything
nuncanada has quit [Quit: Leaving]
<simpson> pie_: Hey, you've got what I've got.
<simpson> There's no cure, AFAIK. It affects my ability to use Lyx.
<clever> pie_: that would be a bit tricky, but when you do import <foo>, it loads the channel called foo
<clever> pie_: so you could do rstudio = pkgs.callPackage <nixpkgs-unstable/pkgs/foo/bar/rstudio> {};
<clever> pie_: which will always grab the rstudio/default.nix from unstable, but then eval it against the current nixpkgs
<pie_> simpson, shiiiit lol
Mateon3 has joined #nixos
<clever> pie_: then if you do nix-env -iA stable.rstudio (using the name of stable from nix-channel --list), it will use that channel for the qt libs
<pie_> simpson, what's it do with lyx, since im also using that
<clever> pie_: youll want to model it on how rstudio is loaded in all-packages.nix
<simpson> Oh, you're mixing and matching. Maybe there's hope; follow clever's directions. Modern Qt apps simply don't work anymore for me.
<clever> simpson: all QT apps you install must come from the same nixpkgs rev, then it will work
Mateon1 has quit [Ping timeout: 248 seconds]
Mateon3 is now known as Mateon1
detran has joined #nixos
<simpson> clever: Noted, I'll try that next time I can try it.
<pie_> is it failing on xcb due to some kind of binary incompatibility that nix couldnt know about or is this perhaps detectable?
fragamus has joined #nixos
<pie_> clever, ok that callpackage idea should work, its kind of what i was thinking about actually, but why is this different than doing it via unstable?
<pie_> are uhh...things closures so they carry their scope or something?
detran has quit [Ping timeout: 260 seconds]
<clever> pie_: if you do nix-env -iA unstable.rstudio, it will use unstable's version of QT
<clever> pie_: and if that doesnt match the QT of everything else, kaboom
<pie_> yeah
<pie_> that i get
<clever> so you have to nix-env -iA stable.rstudio
<clever> but i think you said you wanted the version of rstudio in unstable?
coot_ has quit [Quit: coot_]
<pie_> yeah
<clever> so you have to mix them together, with an override that always uses unstable for rstudio
<pie_> ok its defined by rstudio = libsForQt5.callPackage ../applications/editors/rstudio { };
<clever> then use stable as the root
<pie_> right that makes sense
<clever> change it into an override, rstudio = pkgs.libsForQt5.callPackage <unstable/pkgs/applications/editors/rstudio> {}
<pie_> so i just use the stable callpackage
<pie_> yeah
<clever> unstable being a placeholder for whatever you called the channel in nix-channel --list
coot has joined #nixos
<pie_> oh crap but i gotta deal with rstudiowrapper instead
<clever> you will need to override one, or maybe both of them
<clever> the override mutates whats in the pkgs set, which is fed to everything else
<clever> so you might get away with just one
<pie_> right
detran has joined #nixos
<pie_> rstudioWrapper = callPackage ../development/r-modules/wrapper-rstudio.nix {}
<pie_> just calling that shoooould be fine right?
<clever> that would look for a development directory, one up from where your config.nix is
<pie_> hm well it would still just be passing along the stable scope so it should be fine
<pie_> (with the appropriate path)
<clever> try experimenting with just rstudio, and see what happens
* pie_ needs to get a better understanding of nix one of these days
goibhniu has quit [Ping timeout: 248 seconds]
<pie_> can you explain why the documented way to install rstudio with packages involves an override?: pkgs.rstudioWrapper.override { packages = rpackages; };
<ambro718> what is the environment variable nix sets to build cores number?
matthewbauer has quit [Ping timeout: 248 seconds]
<pie_> ambro718, i originally ofund it by poking in the source but i think its in the man page
<ambro718> got it, NIX_BUILD_CORES
<pie_> \o/
detran has quit [Ping timeout: 265 seconds]
cogrendel has quit [Ping timeout: 240 seconds]
detran has joined #nixos
i-am-the-slime has joined #nixos
<pie_> ok i figured out why it needs an override
<samueldr> well, after making supper and playing around, even the freshest grub won't chainload properly to refind :(
nkpart has quit [Quit: Connection closed for inactivity]
<pie_> simpson, the reason for thhe mixnmatch is precisely to keep the one version of qt around so that it works :/
detran has quit [Ping timeout: 256 seconds]
<samueldr> hmm, the bug reports link on their homepage goes to a blank page
<pie_> ok i got the script to run but its still using the old version...
i-am-the-slime has quit [Ping timeout: 256 seconds]
<clever> pie_: what did you nix-env?
dan_b has quit [Ping timeout: 248 seconds]
<pie_> clever, just the shell.nix as usual
<pie_> does nix hash the file contents or something else?
<pie_> *the actual nix text
<clever> pie_: what are the contents of shell.nix?, and the exact nix-env command you ran?
<pie_> yeah one sec, pasting
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir opened pull request #34602: pythonPackages.github-cli: removed (master...remove-github-cli) https://git.io/vNpVF
NixOS_GitHub has left #nixos [#nixos]
<pie_> nix-shell-unstable -v shell.nix
<pie_> where thats just an alias for -I unstable=path/to/unstable
ottidmes has quit [Ping timeout: 256 seconds]
MP2E has quit [Remote host closed the connection]
<clever> you can also just fo unstable ? import /path/to/unstable {}
<clever> and skip the NIX_PATH entirely
orivej has quit [Ping timeout: 248 seconds]
<pie_> oh
detran has joined #nixos
<pie_> cool
<pie_> i night switch to that at some point
<clever> but then you also have to put the full path on the callPackage lines
<pie_> ah
<pie_> string variabe + concat? (well thats jst not as nice i guesS)
MP2E has joined #nixos
<clever> also, pkgs.path is the path the pkgs came from
<clever> so you could unstable.path + "/pkgs/development/r-modules/wrapper-rstudio.nix"
<clever> another thing that can cause problems, and you may want to try
<clever> import <unstable> { config = {}; }
<clever> by passing it a set with config, it will ignore your config.nix
<clever> which makes things more predictable
<clever> i think i see the issue
<pie_> cool
<clever> or not
<pie_> i dont have anything special in my config
<pie_> actually
<pie_> uhhhh
<clever> oh, maybe thats in
<clever> it*
<pie_> oh no nevermind that creates a new thing...i think
<pie_> (pasting)
detran has quit [Ping timeout: 248 seconds]
<pie_> https://pastebin.com/raw/puUEsEtb sorry for the fked indentation :P
<clever> yeah, i see the problem
<clever> 11778 rstudioWrapper = callPackage ../development/r-modules/wrapper-rstudio.nix {
<clever> 16935 rstudio = libsForQt5.callPackage ../applications/editors/rstudio { };
<clever> rstudioWrapper takes rstudio as an input
detran has joined #nixos
<clever> so you need to override the rstudio that is passed to rstudioWrapper
<clever> which is done by setting the config.packageOverrides of the nixpkgs rstudioWrapper comes from
<pie_> ok i was afraid of that
<clever> config = { packageOverrides = pkgs: { rstudio = pkgs.callPackage <unstable/pkgs/applications/editors/rstudio> {};
<pie_> thanks
<clever> then nixos ? import <nixos> { inherit config; }
<clever> this sets the package overrides for the stable nixos, to mutate the rstudio to be unstable
<clever> the stable wrapper, then uses the unstable studio
<clever> and you dont need the thing in the with the wrapper in the last pastebin
<pie_> yeah thats leftovers from before i was doing this
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir pushed 2 new commits to master: https://git.io/vNpwY
<NixOS_GitHub> nixpkgs/master b51454e Andreas Rammhold: pythonPackages.github-cli: removed since upstream declared project non-functional...
<NixOS_GitHub> nixpkgs/master 35d83de Andreas Rammhold: Merge pull request #34602 from andir/remove-github-cli...
NixOS_GitHub has left #nixos [#nixos]
<tobiasBora> Hello,
detran has quit [Ping timeout: 268 seconds]
<tobiasBora> I'm not sure to understand how to package python libraries. For example, what is the difference between buildPythonApplication and python.mkDerivation? I can't find any good documentation for that
<pie_> clever, awesome, looks like its building
<pie_> config = { packageOverrides = pkgs: { rstudio = pkgs.libsForQt5.callPackage <unstable/pkgs/applications/editors/rstudio> {};};};
<pie_> rstudio = ((import <nixos> { inherit config; }).callPackage <unstable/pkgs/development/r-modules/wrapper-rstudio.nix>)
<pie_> a bit heavy i think, but its whats necessary i guess. good stuff.
<clever> you can also do let foo = bar in { ... }: let more = stuff; in stufffff
<pie_> im not quite sure how to actually make nesting lets work
<clever> that defines an entirey pure config set, then defines a function, which can refer to config
<pie_> i tried before
asuryawanshi has joined #nixos
<clever> and the body of the function is another let block
<clever> can you gist your current config?
<pie_> yeah
<pie_> i feel pretty ambivalent about not being born earlier because nixos is just too fucking awesome
detran has joined #nixos
Ubercow has joined #nixos
<pie_> hmm weird complains about old boost version
<pie_> ah well of course, needs newer boost.
<clever> edited the gist again, though its a bit more twisty now
<clever> at the top leve, you have a let block
<pie_> hmm i guess i could do that
<clever> line 1-7 defines the let statements, and line 8 onwards is the "value" where they apply
asuryawanshi has quit [Ping timeout: 260 seconds]
<clever> line 2 defines a function, that accepts the unstable package set, and returns some overrides
<clever> line 8 calls that function on the unstable set, to create the config, then passes it to stable
<clever> and that is inside another function definition, whose body is on lines 9-50
<clever> which itself, contains a second let statement
<clever> lines 9-42 have the main body, and 43-50 is the "value" where they can apply
<pie_> i kind of dont like the nonlocality
<clever> so in the end, nix returns the function defined on line 8
<clever> and when you call the function on line 8, it returns the derivation on line 43
ndrei has quit [Quit: WeeChat 2.0]
<pie_> right
<pie_> makes sense
<clever> its complicated by the fact that shell.nix accepts 2 package sets
detran has quit [Ping timeout: 260 seconds]
<clever> if you remove that...
<pie_> looks like i might be cherry picking more things in config...
<clever> now its just a single let block, which returns a derivation, and accepts zero arguments
<pie_> i see
<clever> also, line 4 is passing boost directly to rstudio, rather then overriding boost
<pie_> doesnt nix-shell want a function though or something
<clever> because if i override boost on 4, and pass that config to nixos on 8, EVERYTHING that uses boost has to rebuild, with the unstable boost
<pie_> ah
<clever> nix-shell works with both
orivej has joined #nixos
<pie_> great
<clever> if its a function, it calls it with the args set via --arg
<clever> also, --arg does things you would never have expected
* clever finds the gist
<clever> line 5 defines a function that takes 1 arg, and returns a set
<clever> the only attribute inside there, takes 1 arg, and returns another set
<clever> the only attribute inside there, takes 1 arg, and returns a string, using all 3 args
<clever> look at what -A did
<elvishjerricco> Is there away to trigger a process every time hydra completes the builds for a certain jobset?
hellrazo1 has joined #nixos
<pie_> i can barely do normal nix things at the moment xD
detran has joined #nixos
hellrazor has quit [Ping timeout: 240 seconds]
<pie_> clever, any idea about that missing boost libs thing?
<iqubic> pie_: Haven't you been using nixos for a while now.
sigmundv__ has joined #nixos
<pie_> iqubic, i have, but i keep doing things other than learning the necessary intricacies of the language and the interfaces :P
<pie_> i did write my first proper nix expression the other day though \o/
i-am-the-slime has joined #nixos
detran has quit [Ping timeout: 256 seconds]
Arcaelyx has quit [Read error: Connection reset by peer]
ambro718 has quit [Quit: Konversation terminated!]
Arcaelyx has joined #nixos
detran has joined #nixos
pkill9 has quit [Ping timeout: 240 seconds]
<pie_> hm...there doesnt seem to be anything fancy going on with the boost dep so idk why it breaks yet
<clever> oh
<clever> we can also do the reverse
<pie_> using nixos.boost163 works
<pie_> weird
<pie_> boost on unstable broken?
<clever> let me edit the gist a bit more
<clever> pie_: see what i swapped in this latest diff?
i-am-the-slime has quit [Ping timeout: 256 seconds]
<clever> now, i'm putting the override into unstable, and i'm forcing it to use everything unstable, except the QT
<clever> instead of putting the override into stable, and its all stable, except boost&qt
<clever> so now the unstable.rsudio, is using stable QT
<pie_> hm yeha i think i see
detran has quit [Ping timeout: 248 seconds]
<pie_> though im not sure that might not break a bunch of things? :P
<pie_> well i suppose it is just a minor version
<clever> only rstudio will be using a different qt
<pie_> ah right
<pie_> well
orbekk has quit [Ping timeout: 256 seconds]
<pie_> hm.
<clever> you could also just give in and use nixos-unstable for everything :P
<clever> thats what i do
<pie_> yeah i guess
<nahamu> srhb is there a way without directly referencing a local nixpkgs tree to reference the nixos/release.nix stuff from a nix-build invocation similar to what you showed me before?
<nahamu> alternately, if I do what you showed me, can I get the invocation of nix-build to pick up the overlay when building a target from nixos/release.nix?
<clever> nahamu: the nixos instances in release.nix tell nixpkgs to not load overlays from the environment
<adisbladis[m]> Meh.. :/ Deeply disappointed with libinput
<pie_> clever, back in the previous versions, is there a way to move the let to the right side of the = in rstudio = ?
<nahamu> clever: hrm.
detran has joined #nixos
<clever> pie_: which part of it?, the nixpkgs on line 7-ish needs the config value
<pie_> oh yup that was easy ^_^ :
<pie_> clever,
randomstrangerb has quit [Ping timeout: 240 seconds]
<clever> pie_: it helps if you put a .nix extension on the file in gist, and it does allow renaming via the edit button
<clever> pie_: and the main downside with that method, is that your now importing nixpkgs 3 times, and that slows the eval down some more
randomstrangerb has joined #nixos
<pie_> yeah i figured, mainly just testing if it works
<pie_> gonna look at the stuff you posted for me some more in a bit
zearen has quit [Quit: WeeChat 1.9.1]
* clever heads off to bed
Drakonis has joined #nixos
<nahamu> clever: would it be possible to write code in an overlay that replicated the functionality of nixos/release.nix but did allow use of the overlay and of all the expressions under nixos/
<nahamu> oh, goodnight!
detran has quit [Ping timeout: 248 seconds]
<nahamu> I should probably look closer at not-os...
<clever> nahamu: you need to set the nixpkgs.overlays option in the nixos config
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 5 new commits to master: https://git.io/vNpoU
<NixOS_GitHub> nixpkgs/master 1472fa8 David McFarland: matrix-synapse: create and connect to local postgresql db
<NixOS_GitHub> nixpkgs/master a4b7de7 David McFarland: matrix-synapse: default to postgresql on 18.03
<NixOS_GitHub> nixpkgs/master fbba0d0 David McFarland: matrix-synapse: default server_name to hostname
NixOS_GitHub has left #nixos [#nixos]
<clever> nahamu: there should be nixos config fragments in the release.nix
<nahamu> clever: I'll look. Thanks for the pointer.
<pie_> g'night o/
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
detran has joined #nixos
Ubercow has quit [Quit: Ubercow]
detran has quit [Ping timeout: 240 seconds]
zearen has joined #nixos
stephenjudkins has joined #nixos
<kini> I'm booted into the nixos livecd and the backspace key seems to be working... oddly...
<samueldr> kini: known issue, give me a sec while I find the issue
<zearen> I just want to say, <3 Nixos
<kini> ah, thanks samueldr
Ubercow has joined #nixos
<kini> it's bizarre that this is even happening in an X interface
<samueldr> yeah
orivej has quit [Ping timeout: 240 seconds]
<zearen> Everything is easier than I expect it to be, even the manual hacky bits. The OS is a pleasure to use :)
i-am-the-slime has joined #nixos
<samueldr> kini: can you please also tell me which iso file you downloaded (the full filename) it is to verify if another image has been affected
coot has quit [Quit: coot]
<kini> samueldr: certainly, it's nixos-graphical-17.09.2905.c1d9aff56e0-x86_64-linux.iso
<kini> (the one linked from the nixos homepage)
<samueldr> thanks! at least it seems localized to that specific iso
<kini> well, and earlier ones I suppose.
MP2E has quit [Remote host closed the connection]
sigmundv__ has quit [Ping timeout: 256 seconds]
<samueldr> I haven't verified yet, maybe I should, but looking at the issue it seems to be a transient issue not affecting other isos (or if any other, random ones)
markus1189 has joined #nixos
<kini> the fix given in the comment you linked worked for me, by the way.
MP2E has joined #nixos
<samueldr> which one have you tried, I believe there are two in the thread
<kini> the one you linked, i.e. `nix-store --repair` ncurses and then `nixos-rebuild switch`
<samueldr> a user two days ago had issues when installing after doing `nix-store --repair-path `, if you, too, have issues, then reboot, and use `export TERM=vt100`
<kini> (which requires internet access, but luckily, although I haven't gotten wifi working yet, I did have a spare ethernet cable lying around)
<kini> should I just --repair-path everything in the store? hmm... :)
i-am-the-slime has quit [Ping timeout: 256 seconds]
<samueldr> shouldn't be needed
markus1199 has quit [Ping timeout: 256 seconds]
LnL has quit [Quit: exit 1]
vidbina_ has joined #nixos
mbrgm has quit [Ping timeout: 248 seconds]
LnL has joined #nixos
mbrgm has joined #nixos
vidbina has quit [Ping timeout: 256 seconds]
i-am-the-slime has joined #nixos
d4g_ has joined #nixos
d4g has quit [Ping timeout: 260 seconds]
i-am-the-slime has quit [Ping timeout: 256 seconds]
owickstrom has quit [Remote host closed the connection]
pkill9 has joined #nixos
owickstrom has joined #nixos
the has quit [Remote host closed the connection]
pkill9 has quit [Ping timeout: 256 seconds]
stephenjudkins has quit [Remote host closed the connection]
<ldlework> if I force deleted some stuff from the nix store how can I restore that package?
<ldlework> I did
<ldlework> sudo rm -fr /nix/store/xfcrrc5i2xab8w99gysdr831l8k4i5c0-emacs-25.3/share/emacs/25.3/lisp/org/
pkill9 has joined #nixos
<hyper_ch> still not merged :(
vidbina_ has quit [Ping timeout: 256 seconds]
Supersonic112 has quit [Disconnected by services]
<ldlework> can anyone help me?
<ldlework> my system is broken
Supersonic112_ has joined #nixos
<pie_> clever, i dont know if i messed up or what but somehow it managed to take an hour to build the same old r version...
<pie_> *rstudio
Supersonic112_ is now known as Supersonic112
<pie_> ldlework, nix-store seems to have some repair options?
<pie_> idk
<samueldr> \o/ I may have found the solution to my issues with chainloading
<samueldr> (I hope I'm not celebrating too soon)
b has quit [Quit: Lost terminal]
justan0theruser has joined #nixos
justanotheruser has quit [Ping timeout: 256 seconds]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/176d94fd8bd (from 80 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [Client Quit]
TheAppleMan has quit [Quit: No Ping reply in 120 seconds.]
asuryawanshi has joined #nixos
pkill9 has quit [Ping timeout: 240 seconds]
asuryawanshi has quit [Ping timeout: 256 seconds]
azertyieio has joined #nixos
hamishmack has quit [Quit: hamishmack]
<samueldr> the way grub failed in non-helpful ways made me think it was the same issue in qemu with OVMF, but rEFInd didn't work for another reason
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Moredread opened pull request #34604: grv: 0.1.0 -> 0.1.1 (master...bump/grv) https://git.io/vNp6S
NixOS_GitHub has left #nixos [#nixos]
<pie_> clever, i think collecting garbage while not active may have fixed it...this isnt the first time this has happened, if its really whats happening
i-am-the-slime has joined #nixos
<elvishjerricco> Does anyone know what the `binary_cache_dir` option does in Hydra? I'm just confused because I thought the nix store was all it needed for the cache
pkill9 has joined #nixos
badi has joined #nixos
mrkgnao has joined #nixos
Drakonis has quit [Read error: Connection reset by peer]
ivanivan has joined #nixos
sigmundv_ has quit [Ping timeout: 240 seconds]
<elvishjerricco> vaibhavsagar: In that case, what does the `store_uri` option do? :P
<vaibhavsagar> elvishjerricco: I think hydra has its own nix store that's separate from /nix/store
<dhess> elvishjerricco: vaibhavsagar: it's deprecated, yes. However, I could not get my Hydra to work as a binary cache until I provided that parameter in the URL anyway
<dhess> or provided that option in the Hydra config
<vaibhavsagar> dhess: I think it's properly deprecated now
<vaibhavsagar> I had the same issue
aarvar has joined #nixos
i-am-the-slime has quit [Ping timeout: 256 seconds]
<elvishjerricco> Oh why would it be preferable to have a separate store for hydra?
<vaibhavsagar> but I've changed it to 'store_uri' and it continues to work
<dhess> vaibhavsagar: I'm running a NixOS from maybe about a month ago, has that been updated since?
badi has left #nixos ["WeeChat 1.9.1"]
<dhess> vaibhavsagar: I think I have both configured in my Hydra config. Anyway I hope it doesn't break when I upgrade in a few days :\
<ivanivan> If I'm making changes to a custom kernel module, is there a way I can reload it in NixOS without having to reboot?
<dhess> vaibhavsagar: thanks, I will keep that around for reference
<dhess> vaibhavsagar: oh I was missing the binary_cache_secret_key_file option, maybe that is why it didn't work
<dhess> vaibhavsagar: elvishjerricco: is either of you pulling from a private GitHub (or just plain git) repo in any of your Hydra jobs?
<elvishjerricco> vaibhavsagar: dhess: Yea I see in an older hydra of mine that I only have the store_uri one set, not the binary_cache_dir
<dhess> elvishjerricco: try both, that's what it took for me
<dhess> despite the logs being full of "binary_cache_dir is deprecated, ignoring" or whatever.
<elvishjerricco> dhess: No my point was that only using store_uri on mine works
<dhess> oh
<elvishjerricco> And I also have the binary_cache_secret_key_file option set
<dhess> well anyway as far as I know, you need that so that Hydra will sign the packages
<elvishjerricco> dhess: Ahh ok. But why would you want stuff stored in a different nix store instead of just /nix/store?
<dhess> elvishjerricco: S3
<elvishjerricco> dhess: Hm. I'm fairly ignorant of AWS stuff. How does S3 come into the picture?
fragamus has joined #nixos
<dhess> you can stuff you binary cache into S3
<dhess> so it's replicated all over the world
<elvishjerricco> dhess: Would that matter if they have to go through your EC2's Hydra HTTP server for the cache anyway?
<dhess> you don't. You set up a DNS name that points to your S3 bucket
mrkgnao has quit [Ping timeout: 252 seconds]
<elvishjerricco> dhess: Ah. So you just wouldn't use Hydra's built in cache server. Got it
<dhess> so for example you set your binary cache name to cache.example.org, which points to the S3 bucket; and hydra.example.org, which is the actual hydra
<dhess> right
ivanivan has quit [Quit: WeeChat 1.9.1]
<vaibhavsagar> wow, I thought requests still had to go through hydra
<vaibhavsagar> I really want to set this up now
ivanivan has joined #nixos
<dhess> make sure your Nix stores don't have any secrets in them!!!
<dhess> I'm a bit paranoid about that, haven't set up the S3 binary cache yet because I need to scrub everything first.
<dhess> But I guess if your Hydra is already on a public URL you already have to contend with that. (Mine is behind a firewall)
<vaibhavsagar> dhess: that's a good point, I don't believe I have any secrets on my public hydra but the only way to know for sure is to get hacked :)
<dhess> The "oops I put a secret in the store" is NixOS's biggest flaw IMO. Everything else about it is so great.
<vaibhavsagar> you're right
<vaibhavsagar> I often wish we had per-user private stores or something like that
<dhess> for starters we need a "secret" type that never gets persisted
<dhess> and then some kind of pluggable secret back-end, so you can use NixOps, or Vault, or AWS KMS, etc.
<simpson> It sounds nice, doesn't it?
<simpson> But the devil's in the details.
<dhess> :D
<simpson> In particular, it's hard to figure out what the top-level secret should be, and where it should live, and which user should own it, etc.
<dhess> that's the pluggable part. That should be left up to the back-end.
<dhess> but for starters just making sure there was a type that can't get written to the store would be a big help.
<iqubic> How hard is it to switch to GuixSD?
<iqubic> And is it worth doing?
pkill9 has quit [Quit: WeeChat 2.0.1]
pkill9 has joined #nixos
<vaibhavsagar> dhess: re: hydra, I found dalaing's gist really helpful: https://gist.github.com/dalaing/4023355b488040ec2a740bc1171b7551
<dhess> vaibhavsagar: actually I've got everything working perfectly, except for that store_uri thing.
<elvishjerricco> vaibhavsagar: His gist is what I'm trying to package up into a simpler nixos module: https://github.com/ElvishJerricco/simple-hydra
<dhess> oh and private GitHub/git pulls, which I think I know how to do but haven't tried yet
<iqubic> Does guixsd have an irc channel?
i-am-the-slime has joined #nixos
<vaibhavsagar> elvishjerricco: he did mention this :), I hope you get it working because I would love to use it
<elvishjerricco> vaibhavsagar: It works right now I believe. I just need to add GitHub status stuff and maybe make this store_uri stuff more configurable
<vaibhavsagar> I don't know if anyone else has seen https://twitter.com/tpflug/status/959550389824737280 but it is very relatable
<dhess> elvishjerricco: I also wrote a "hydra-manual-setup" service. This one does not persist or hard-code the admin password and allows you to use a pre-existing binary cache key (also not persisted to the store): https://github.com/quixoftic/quixops-modules/blob/8f550b3125a5d2e092aed9ff6801dfba45cf7c51/modules/services/hydra-manual-setup/default.nix
ivanivan has quit [Quit: WeeChat 1.9.1]
<dhess> but otherwise very similar to yours :)
<elvishjerricco> dhess: Those sound like notable improvements. I wonder where a project like this really *ought* to go, for maximum visibility
<dhess> and it will wait for the password and binary cache key as NixOps keys, if you use NixOps
<dhess> elvishjerricco: eventually I will submit a PR I guess
mizu_no_oto has joined #nixos
<elvishjerricco> dhess: I wonder if we could consolidate our modules? Seems better to have one thing that does all these things than two things that each do half :P
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] markuskowa opened pull request #34607: nixos/rdma-core: add module for soft RoCE and test (master...rxe-module-pr) https://git.io/vNpPE
NixOS_GitHub has left #nixos [#nixos]
<dhess> elvishjerricco: Maybe. I think the "simple config" stuff should be separated from the manual setup service, though.
i-am-the-slime has quit [Ping timeout: 256 seconds]
<elvishjerricco> dhess: Why? A simple config will require the manual setup service, right?
<dhess> yes, but not the inverse
<dhess> converse
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<elvishjerricco> dhess: Good point. I suppose they could be separate options. But it'd still probably be good to have them in the same module, so that simple-hydra can depend on the manual setup
<dhess> elvishjerricco: you could yes, but then again with overlays all of this stuff is composable now!
<dhess> although these are NixOS module-related so not quite so much I suppose
<elvishjerricco> Just seems like these components are closely tied enough that you'd want them developed in tandem, even if not always used in tandem
<dhess> I think the manual setup service should just go into nixpkgs/nixos
<dhess> because it's the most closely tied to Hydra
<dhess> which is why I mentioned that at some point I will just do a PR
<elvishjerricco> That would be good, yea
zarkone has joined #nixos
<dhess> anyway in the meantime you should feel free to grab anything you want from my version of the service and stick it in your module
<freeman42x[NixOS> which is the correct file to add Haskell packages to?
<dhess> I am not planning on doing any more work to it because it works and doesn't need to change, unless Hydra does.
<dhess> there are also a few tests for it in that repo
pkill9 has quit [Ping timeout: 256 seconds]
<zarkone> hello! can't find how to get local iface IP in case of AWS deployment. Is it implemented somewhere? Want to configure NGINX certain locations to listen requests only from private network
<elvishjerricco> dhess: Thanks. I wonder if my adaptation of dalaing's stuff would have a better home than some random GitHub repo? Doesn't seem very discoverable
<dhess> elvishjerricco: Make a blog post about it, and/or make a page in the NixOS wiki
<dhess> that's about the best you can hope for, it's a fairly obscure topic :)
hamishmack has joined #nixos
<dhess> elvishjerricco: from my perspective as someone who might have used it had I known about it before I did my own, making it useable as an overlay would also be nice
swayf has quit [Remote host closed the connection]
<dhess> otherwise, what is the alternative? Copying the .nix file into your config?
<elvishjerricco> dhess: Why is `overlays` better than `imports` for NixOS modules?
<dhess> (strictly speaking it's not really useable as an overlay since it's NixOS config, but you can do something similar)
<dhess> elvishjerricco: I guess you could just import it, yes
swayf has joined #nixos
<elvishjerricco> Yea I think `imports` is the preferred way of doing this for NixOS modules
tunnels has joined #nixos
<elvishjerricco> dhess: I get a lot of mileage out of separating my nixos configs into components, then having master files for each machine that just has `{ ... }: { imports = [ ... ]; }`
<tunnels> how do i replace the emacs desktop file so that it uses emacsclient instead
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dhess> elvishjerricco: that entire quixops-modules repo is exactly for that.
<dhess> except that I use NixOps and I also use fetch* with revs/sha256's to pin versions.
<dhess> but it works just as well with plain NixOS and filesystem imports or git submodules.
<freeman42x[NixOS> @dhess, I don't understand how that overlay file relates to nixpkgs repository
<dhess> freeman42x[NixOS: are you trying to get a Haskell package into Nixpkgs?
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
<freeman42x[NixOS> yes
<dhess> is it on Hackage?
xcmw has joined #nixos
<freeman42x[NixOS> at least some of them are not
<iqubic> If it's on hackage, then porting it should be easy.
<dhess> then you will have to talk to peti, but I suspect he will tell you that if it's not on Hackage it won't be in Nixpkgs
<dhess> because as far as I know, everything in Nixpkgs haskellPackages is just auto-generated from Hackage.
<dhess> hackage/stackage
<elvishjerricco> If it's on hackage, submit a PR adding it to this file: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-modules/configuration-hackage2nix.yaml
<elvishjerricco> I think
<elvishjerricco> Then for things not on hackage, I think you just have to do like they did for HIE: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-modules/hie-packages.nix
<elvishjerricco> and hope that peti believes its worth the maintenance cost :P
<dhess> oh interesting. Why is HIE not on hackage?
<elvishjerricco> ghc-mod isn't released for 8.2.2 is the biggest reason, I think
<dhess> (I don't even know what HIE is)
<dhess> oh ghc-mod, bane of my existence
<elvishjerricco> heh
<elvishjerricco> I think there's some other dependencies it needs that aren't new enough on hackage yet too
<dhess> I use it, it breaks on GHC-next, I wait for it to be ported to GHC-next, and then pretty much a few weeks later GHC-next++ is released
<dhess> rinse and repeate
<dhess> repeat
<dhess> (I have finally given up on it :( )
<dhess> fool me once shame on you fool me twice won't get fooled again etc.
<freeman42x[NixOS> this is one of the packages that needs to be added to nixpkgs, but not sure how to check whether it is on hackage
swayf has quit [Ping timeout: 265 seconds]
<tunnels> how do i replace the emacs desktop file so that it uses emacsclient instead
<tunnels> i know i can make in .local/share/applications, but id like to know the nix way
asuryawanshi has joined #nixos
<dhess> elvishjerricco: oh of course I know what HIE is. Are you using it with emacs by any chance?
<dhess> (maybe I have already asked you this)
<elvishjerricco> dhess: Nope. I've yet to venture beyond the humble home of Dante :P
<dhess> high five brother
<elvishjerricco> hah
<elvishjerricco> yea I really want HIE to be good
<elvishjerricco> but the emacs support didn't seem quite there last I checked. I heard it's getting a lot better though
<dhess> I don't understand the bit about "this is not yet another ghc-mod project" yet it's dependent on ghc-mod
<dhess> elvishjerricco: same
<iqubic> Dante is excellent.
<elvishjerricco> dhess: I think that's exactly the point. It's not yet another duplicated effort just like ghc-mod. It just uses it instead of reimplementing it like intero does
<dhess> I don't like Dante as much as ghc-mod, but at least it works.
<dhess> elvishjerricco: oh I see... odd wording
<elvishjerricco> I like that Dante doesn't give a crap what your setup looks like. It's just like "c'mon man just give me a repl"
<dhess> I would have said, "This is not yet another replacement for ghc-mod"
<dhess> elvishjerricco: ugh I disagree. My directories are littered with .dir-local.el files just for Dante
<elvishjerricco> Good point.
asuryawanshi has quit [Ping timeout: 256 seconds]
<elvishjerricco> But the flexibility has come in handy for me
<dhess> and since you can't really check those in if you're a well-behaved maintainer... they're a PITA
<dhess> anyway once it works it is pretty nice.
<tunnels> anyone?
<dhess> elvishjerricco: how is the Haskell wasm stuff going?
<iqubic> Does Nix have access to the internet for the entire duration of the build?
<elvishjerricco> dhess: Slowly but surely... Been stuck on this one GHC bug for a while. Cmm has been very intimidating :P
fragamus has joined #nixos
<elvishjerricco> iqubic: Yes, unless you use the Nix sandbox option, in which case only fixed output derivations may use the network
tunnels has quit [Quit: Page closed]
<dhess> elvishjerricco: which ghc are you using for development?
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<elvishjerricco> dhess: This one https://github.com/WebGHC/ghc
<elvishjerricco> :P
<dhess> oh hehehehe
<dhess> what's the base ghc? is it 8.2 or 8.4?
<elvishjerricco> Some random commit from HEAD from the end of November I think...
<elvishjerricco> Which I guess sorta means 8.3?
azertyieio has quit [Ping timeout: 240 seconds]
<dhess> I can't get happy to build with 8.4.1-pre, which pretty much means I can't build anything useful
<elvishjerricco> Really? That's odd. I think 8.4.1-pre is in nixpkgs experimentally now
<elvishjerricco> I would have thought they'd fix stuff like that
<dhess> As far as I can tell it's an upstream Happy issue. There is an issue filed
<dhess> happy master works but there hasn't been a Hackage update in months
schoppenhauer has quit [Ping timeout: 256 seconds]
<elvishjerricco> dhess: And they haven't pulled that change into configuration-8.4.nix?
<dhess> elvishjerricco: not as of a day or so ago, no
<elvishjerricco> Darn
<freeman42x[NixOS> should running nix-env -f . -iA haskellPackages.haskell-ide-engine inside a clone of nixpkgs install HIE? or what am I doing wrong
<dhess> elvishjerricco: I will get around to making a PR eventually if someone else doesn't beat me to it, just haven't had time yet and I'm building against 8.4.1 more as an early warning system more than trying to do anything production-ish with it
<elvishjerricco> freeman42x[NixOS: haskell-ide-engine is only available on nixos-unstable I think
schoppenhauer has joined #nixos
<freeman42x[NixOS> elvishjerricco, master branch is unstable right?
<elvishjerricco> freeman42x[NixOS: master is more unstable than unstable :P
<elvishjerricco> unstable is https://github.com/NixOS/nixpkgs-channels
<elvishjerricco> Er: https://github.com/NixOS/nixpkgs-channels/tree/nixos-unstable. Same thing, but more clear :P
<dhess> or nixpkgs-unstable or nixos-unstable-small :)
<elvishjerricco> I never understood the distinction between these...
<dhess> it's just what builds successfully in Hydra.
<elvishjerricco> Ah
<dhess> nixos-unstable doesn't wait for other platforms (e.g., macOS). nixos-unstable-small is a smaller set of packages, mainly for "oh god there's some horrible new exploit must patch it now"
<freeman42x[NixOS> so why nix-env -f . -iA haskellPackages.haskell-ide-engine doesn't install it?
<elvishjerricco> freeman42x[NixOS: What error message do you get?
<dhess> nixpkgs-unstable is pretty random, actually. It gets stuck a lot so tends to update less frequently than any other unstable channels but is a better indication that a broader set of packages will build successfully than the other 2
<freeman42x[NixOS> elvishjerricco, no error message, appears to install but there is no HIE in the path like it should
<elvishjerricco> Oh. Do you see it listed if you run `nix-env -q`?
<freeman42x[NixOS> [neo@nixos:~/Forks/nixpkgs]$ nix-env -q haskellPackages.haskell-ide-engine
<freeman42x[NixOS> error: selector ‘haskellPackages.haskell-ide-engine’ matches no derivations
<elvishjerricco> freeman42x[NixOS:
<elvishjerricco> no just `-q`, nothing after it
<elvishjerricco> it won't have that same naming scheme I don't think
<freeman42x[NixOS> elvishjerricco, no, it is not in the list
<elvishjerricco> freeman42x[NixOS: Ok, then it is not installing... Odd... I'm a little out of my element here; I avoid nix-env like the plague :P
<freeman42x[NixOS> I am not sure that haskellPackages.haskell-ide-engine is the proper name either
<elvishjerricco> freeman42x[NixOS: I think that's the right name
<freeman42x[NixOS> I just seen haskell-ide-engine inside hie-package.nix
<dhess> freeman42x[NixOS: I think you need to specify a GHC with haskellPackages, like `ghcWithPackages`
<elvishjerricco> dhess: I don't think so
<dhess> elvishjerricco: I have never been able to install just a bare haskellPackage using nix-env
<elvishjerricco> Really? Hm lemme try something
<dhess> I just make little .nix files with my `ghcWithPackages` collections as buildEnvs
<elvishjerricco> dhess: I don't see how `ghcWithPackages` installs the packages though. It should just install a GHC with those libraries available in the package db
<elvishjerricco> i.e. it wouldn't put the executables of those packages on your path
<dhess> elvishjerricco: to get just the executables I'm pretty sure that there needs to be a top-level attribute in all-packages.nix
<dhess> that is always how I do it anwyay
<elvishjerricco> dhess: That's what freeman42x[NixOS is trying to get
<elvishjerricco> and there should be no difference between having it top-level and having it in haskellPackages
<freeman42x[NixOS> failed build https://paste2.org/cW0hjIHt
<dhess> what I'm saying is, if there's no "haskell-ide-engine = { ...}" in all-packages.nix, it won't work with nix-env... not as far as I know, anyway.
<dhess> I might be wrong but I have never gotten it to work any other way with nix-env
<elvishjerricco> dhess: I don't think so. I've definitely successfully done `nix-env -iA nixos.haskellPackages.cabal2nix`
<elvishjerricco> freeman42x[NixOS: Ah. It's marked broken.
<elvishjerricco> That's annoying. I wonder if it even builds
<dhess> but cabal2nix *is* one of those packages that is available on the top leve.
<dhess> l
<elvishjerricco> dhess: So?
<dhess> and it is not just an alias for haskellPackages.cabal2nix
<elvishjerricco> I don't understand. `nix-env` just looks through an attribute path. It's not doing crazy special stuff with `all-packages.nix`
swills has joined #nixos
<dhess> can you produce a working example?
<dhess> pick a random haskellPackages.x for example
<elvishjerricco> worked for mtl :P Bad example, since it doesn't have an executable
<elvishjerricco> and therefore does literally nothing to install
<dhess>  nix-env -i haskellPackages.mtl
<dhess> error: selector ‘haskellPackages.mtl’ matches no derivations
<dhess>
<elvishjerricco> dhess: nix-env -iA nixos.haskellPackages.mtl
<elvishjerricco> or nixpkgs, depending on your channel name
MP2E has quit [Remote host closed the connection]
<dhess> that evaluates, but it dies
<dhess> anyway I did not know about the channel prefix, thank you.
<elvishjerricco> Well I was just able to do `nix-env -iA nixos.haskellPackages.cabal2nix`
<elvishjerricco> I think the confusion comes from `-A`. By default, `-i` *does* do crazy magic with a special list of top level package names. But -A will make it look for a specific attribute path
<dhess> mtl died because it's in my env already
<elvishjerricco> I just forget about the default because I literally always use -A :P
<dhess> anyway that's good to know that if you prefix with the channel it will work. I don't understand why that's needed but it's good that it works
<elvishjerricco> Looks like peti killed hie 10 days ago
<elvishjerricco> You might be able to get it to work by setting allowUnfree = true
<elvishjerricco> allowBroken*
<dhess> yeah that should do it
<elvishjerricco> unless it actually doesn't build...
<elvishjerricco> in which case it ought to just be removed from nixpkgs altogether until they do a real release on hackage
<elvishjerricco> dhess: I think I'm gonna change simple-hydra to just import your manual setup module.
<elvishjerricco> I guess I can't use `imports = [(pkgs.fetchFromGitHub ...)];`, since the import could modify the behavior of `fetchFromGitHub`.
<dhess> elvishjerricco: you mean in an overlay or something?
<freeman42x[NixOS> I'll leave HIE for now until it is ready :)
<dhess> why would it change the behavior?
<elvishjerricco> Yea
<freeman42x[NixOS> how can I figure out if something is on Hackage or not? for example: https://github.com/lamdu/Algorithm-W-Step-By-Step
<dhess> as long as you don't do overlays = [ (import my.package) ] it won't
<dhess> and that particular module doesn't need any overlay I don't think
<elvishjerricco> I just mean that in general, NixOS modules will probably definitely get into a loop state by trying to do that
<dhess> elvishjerricco: I do it, it works
<elvishjerricco> Since it needs to know what overlays is to even evaluate the `fetchFromGitHub` thunk, and it needs to run that function to figure out the overlays
<dhess> oh
<elvishjerricco> So if that works, I have no idea how it's avoiding a loop :P
<dhess> what I do is create a fixedNixPkgs hack that is local
<dhess> load that
<dhess> use it for the import
<elvishjerricco> ah
<dhess> it's that thing that Gabriel and IOHK kind of jointly discovered/disclosed
<dhess> it's in that repo if you're interested, see default.nix and lib.nix
<dhess> err
<dhess> not default.nix, the jobset/release.nix
<elvishjerricco> This?
<dhess> oh actually I do use it in default.nix
<dhess> elvishjerricco: yeah exactly that
<elvishjerricco> cool. Yea I'll just use that
<dhess> I use it all over the place now, I pretty much never depend on <nixpkgs> unless I can't help it
<dhess> it's really really nice. the only downside is you have to define that same damn lib.nix code in every repo :)
<elvishjerricco> dhess: It's definitely not something I would want to ask users to depend on if I were writing something for beginners though :/
<dhess> but when nix 1.12 is released it will do everything for you
<dhess> elvishjerricco: no definitely not :)
<elvishjerricco> nix 1.12 has been relabeled to 2.0 btw
<dhess> oh ok
<elvishjerricco> and will be the default in nixos-18.03!
<elvishjerricco> super excited
<dhess> I would love to use it but it breaks cabal's Nix support
<elvishjerricco> Is there an issue open on Nix?
<samueldr> :( SSD on work machine decided to die at ~23:40, or right before going to sleep right before a work day (sorry for being off-topic)
<dhess> I don't know. I haven't filed one yet, haven't had time. I dunno if it's a Nix issue or a cabal issue really, depends on your perspective
<dhess> there is some functionality that cabal 2 is using that is no longer present in Nix 2.0
<dhess> so whose fault is it?
<samueldr> at least I know nixos will allow me to re-install everything like it was easily
<dhess> elvishjerricco: hey I have a question for you, maybe you'll know the answer. I was really intrigued by a recent /r/haskell discussion on recursion schemes. Maybe you saw it? (you might have even commented there)
<elvishjerricco> dhess: There have been a few of those lately :P
<elvishjerricco> I'm not super familiar with recursion schemes
<dhess> I would love to see how that works
<dhess> but unfortnately the OP did not reply about whether his/her compiler is public
Arcaelyx_ has joined #nixos
<dhess> I do have the Trees that Grow paper in my inbox now, will take a look at that
<dpc> Anyone using google authenaticator to authenticate to nixos box?
<dhess> but not sure it's quite the same thing
Arcaelyx has quit [Ping timeout: 248 seconds]
<elvishjerricco> dhess: I think generally the idea is to turn `data Exp = Add Exp Exp | Lit Int` into `data Exp a = Add a a | Lit Int` (as opposed to the `bound`-style `data Exp a = Add (Exp a) (Exp a) | Lit Int`)
<elvishjerricco> With `data Exp a = Add a a | Lit Int`, you can use `Fix Exp` for a simple AST
<elvishjerricco> and you can use `Fix (Compose Meta Exp)` for a metadata annotated one
<dhess> elvishjerricco: I'm intrigued by the bit about composing functors to express the AST
Ubercow has quit [Quit: Ubercow]
<elvishjerricco> Yea it sounds really powerful but I've not actually read much beyond the basic idea
<dhess> there was that post recently about functor-oriented programming as well, has had me thinking a bunch about it
<dhess> elvishjerricco: yeah same. Oh well, I will check out the Trees That Grow paper
<dhess> elvishjerricco: hmm interesting about the Fix stuff, I will have to think about that
<dhess> ohh right so `a` can be either and expression or metadata
<dhess> got it
<dhess> /and/an/
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
<elvishjerricco> dhess: Rather, each `Exp` is wrapped by `Meta`
<elvishjerricco> So each `Exp` node has a `Meta` node
<dhess> yeah
<dhess> if you need it
swayf has joined #nixos
<elvishjerricco> dhess: Looking at your hydra-manual-setup, what if they want a different key name but still want to be able to get it from nixops?
<elvishjerricco> Looks like it currently hard codes with `defaultPasswordKeyName = "hydra-admin-pw"`
Ubercow has joined #nixos
rauno has quit [Ping timeout: 264 seconds]
<fearlessKim[m]> is it possible to do in configuration.nix `imports = [ ./myAccountExtra.nix ]` and within myAccount.nix I have `users.extraUsers.myUser.packages = with pkgs; [ vim ]` . I get on nixos-rebuild` The option value `users.users.teto.packages.[definition 1-entry 1]' in `/home/teto/nixpkgs2/nixos/modules/config/users-groups.nix' is not of type `package'`
swayf has quit [Ping timeout: 265 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #34609: boehmgc: 7.6.2 -> 7.6.4 (staging...boehmgc) https://git.io/vNpM1
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm closed pull request #34609: boehmgc: 7.6.2 -> 7.6.4 (staging...boehmgc) https://git.io/vNpM1
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #34610: boehmgc: 7.6.2 -> 7.6.4 (master...boehmgc) https://git.io/vNpMy
NixOS_GitHub has left #nixos [#nixos]
<freeman42x[NixOS> any good example of what a nix overlay is and how it could help with adding some haskell packages to nixpkgs?
randomstrangerb has quit [Ping timeout: 256 seconds]
randomstrangerb has joined #nixos
<johnw> freeman42x[NixOS: sure
<johnw> that's my overlay
<johnw> an overlay is just a function that takes two package sets (self and super), and defines attributes to overlay packages
<johnw> in the case of haskell, I use multiple environments and override many packages, so there's a lot in there
<freeman42x[NixOS> johnw, any example of a preferably Haskell overlay inside nixpkgs?
<johnw> freeman42x[NixOS: but the whole point of an overlay is that it lives outside of nixpkgs
<johnw> otherwise, just define the package
<freeman42x[NixOS> johnw, that wasn't clear to me since I asked earlier about contributing to nixpkgs haskelpackages
<johnw> ah
<johnw> so let's start over then
<johnw> what exactly do you want to do?
<freeman42x[NixOS> I have a bunch of Haskell packages, libs mostly that are dependency for Lamdu IDE
<johnw> and they aren't in hackage-packages.nix yet?
<freeman42x[NixOS> the idea was to push the expressions for all of these to nixpkgs
adisbladis has joined #nixos
<freeman42x[NixOS> but I do not know where to
<freeman42x[NixOS> johnw, no, probably because they are forks or something like that
<johnw> why would you push them into nixpkgs then?
<freeman42x[NixOS> or they are just not in hackage
<freeman42x[NixOS> johnw, because they might be useful for building other packages
ryanartecona has joined #nixos
<freeman42x[NixOS> and because they allow building Lamdu for everyone
<johnw> hmmm... I see
<johnw> I don't where to add things like this, actually
<johnw> you can open an issues in nixpkgs and ping @peti
<freeman42x[NixOS> johnw, these are the packages: AlgoW, lamdu-calculus, nodejs-exec, OpenGL, imagemagick, graphics-drawingcombinators, freetype-gl, bindings-freetype-gl
<johnw> yeah, ordinarily I would just add those into an overlay; but if you want them to be available to others, then you'll need to find the right place to put them. @peti on GitHub will know that place.
<freeman42x[NixOS> johnw, ok, thank you, I will do that
<johnw> he's not on IRC right now
<fearlessKim[m]> it is possible, I just had some rotten code left in configuration.nix shame on me
i-am-the-slime has joined #nixos
<freeman42x[NixOS> johnw, I pushed the nix expressions for those packages in the main program's repository Lamdu https://github.com/lamdu/lamdu/pull/85/files
<freeman42x[NixOS> but that would not help for someone to install Lamdu via nixpkgs
<freeman42x[NixOS> it would require git cloning lamdu and installing from that
<johnw> right
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master f36b173 André-Patrick Bubel: grv: 0.1.0 -> 0.1.1
<NixOS_GitHub> nixpkgs/master c6c06b0 adisbladis: Merge pull request #34604 from Moredread/bump/grv...
<NixOS_GitHub> [nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vNpDQ
NixOS_GitHub has left #nixos [#nixos]
Rusty1 has quit [Quit: Konversation terminated!]
i-am-the-slime has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg opened pull request #34611: descent 1 & 2: use assets from gog.com with the dxx-rebirth project (master...p/descent) https://git.io/vNpyU
NixOS_GitHub has left #nixos [#nixos]
zarkone has quit [Ping timeout: 260 seconds]
liuz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master ca1a55c Markus Kowalewski: freeipmi: 1.5.7 -> 1.6.1
<NixOS_GitHub> [nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vNpyV
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 3adc989 adisbladis: Merge pull request #34598 from markuskowa/freeipmi-pr...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #34601: mpich2: 3.2 -> 3.2.1, update meta data (master...mpich2-pr) https://git.io/vNpaf
NixOS_GitHub has left #nixos [#nixos]
i-am-the-slime has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
liuz has joined #nixos
shanemikel_ has joined #nixos
shanemikel_ has left #nixos [#nixos]
i-am-the-slime has quit [Ping timeout: 256 seconds]
reinzelmann has joined #nixos
liuz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
exec_ has joined #nixos
swayf has joined #nixos
freeman42x[NixOS has quit [Ping timeout: 256 seconds]
asuryawanshi has joined #nixos
Ivanych has joined #nixos
rauno has joined #nixos
swayf has quit [Ping timeout: 265 seconds]
asuryawanshi has quit [Ping timeout: 264 seconds]
zearen has quit [Ping timeout: 240 seconds]
Arcaelyx_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MercurialAlchemi has joined #nixos
Izorkin_ has joined #nixos
reinzelmann has quit [Quit: Leaving]
Izorkin has quit [Ping timeout: 256 seconds]
<dhess> elvishjerricco: yes you're right, same problem for the defaultBinaryCacheKeyName
<dhess> I will fix that
i-am-the-slime has joined #nixos
elasticdog has joined #nixos
elasticdog has quit [Changing host]
elasticdog has joined #nixos
asuryawanshi has joined #nixos
i-am-the-slime has quit [Ping timeout: 256 seconds]
justan0theruser has quit [Ping timeout: 256 seconds]
griff_ has joined #nixos
leat has quit [Ping timeout: 240 seconds]
griff_ has quit [Ping timeout: 248 seconds]
justan0theruser has joined #nixos
MP2E has joined #nixos
Ubercow has quit [Quit: Ubercow]
Ubercow has joined #nixos
fragamus has joined #nixos
aloiscochard has joined #nixos
swayf has joined #nixos
<exec_> "nixos-unstable is often broken" thats cus it is UNSTABLE, as in there are bugs galor and other stuff that needs to be fixed before it goes into the stable brance/repo
<exec_> primarily meant for testing before it is evaluated as stable enough to get merged into nixos itself
<adisbladis> exec_: Well thats not really how stable/unstable works in nixos
swayf has quit [Ping timeout: 265 seconds]
i-am-the-slime has joined #nixos
Ubercow has quit [Quit: Ubercow]
i-am-the-slime has quit [Ping timeout: 256 seconds]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterromfeldhk closed pull request #34513: fastlane: -> 2.79.0 (master...fastlane) https://git.io/vNbPc
NixOS_GitHub has left #nixos [#nixos]
<exec_> o.o
<markus1189> Hi all, I am currently trying to build "Desktop Dungeons" from the Humble Bundle for nix. The game starts but I have 2 problems. 1) No sound is played, no errors on console 2) the game has the savegame path hardcoded relative to the install dir, which is not writable. Currently I am symlinking it, but what is the idiomatic way?
<markus1189> Side note: I had to use the 32bit nixpkgs because the binaries are all 32 bit executables
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterromfeldhk opened pull request #34612: fastlane: 2.75.1 -> 2.80.0 (master...fastlane) https://git.io/vNp5y
NixOS_GitHub has left #nixos [#nixos]
<fearlessKim[m]> how do you deal with /etc/nixos/hardware-configuration.nix in nixops ? seems like I just deplyed to a remote nixos with my local hardware-configuration.nix. Do I need to get the remote hardware-configuration.nix beforehand or is there some trick so that nixops can generate it automatically ?
MichaelRaskin has left #nixos [#nixos]
<fearlessKim[m]> markus1189: <3 desktop dungeons !! have you looked for verbose flags/syslog ?
kreetx has quit [Ping timeout: 256 seconds]
Ubercow has joined #nixos
fragamus has joined #nixos
i-am-the-slime has joined #nixos
<markus1189> fearlessKim[m]: I tried but there is no output for -verbose --verbose -help --helb -debug
yegortimoshenko has quit [Remote host closed the connection]
i-am-the-slime has quit [Ping timeout: 256 seconds]
leat has joined #nixos
yegortimoshenko has joined #nixos
<ij> Why doesn't the rebuild switch start the X?
jensens has joined #nixos
<adisbladis> That would not be very friendly to desktop sessions now would it ;)
<adisbladis> ij: Ohh sorry. I thought you meant why its _not_ restarting it.
<ij> Stopping it would, but not starting.
<ij> :P
<adisbladis> ij: How did you enable it?
<ij> The configuration should be fine, I just booted into a very basic one and rebuilt to the latest.
<ij> So not only does the switch never restart it, it also never checks whehter it's off and never starts manually?
<hyper_ch> hi adisbladis
<adisbladis> Hey
<adisbladis> ij: What config are you using?
ertes-w has joined #nixos
dramforever has joined #nixos
<ij> adisbladis: https://clbin.com/8Cz2b This one.
<ij> Why do you ask?
<adisbladis> ij: Ok imho that _should_ result in your displaymanager restarting (and similar config does for me)
<ij> I see.
<ij> Thanks for the heads up!
dramforever has quit [Client Quit]
<pmeunier> Hi! What's the status of wayland on NixOS? Can I drop X11 and start using it?
<adisbladis> pmeunier: There is an old tracking issue for that https://github.com/NixOS/nixpkgs/issues/5071
<adisbladis> I have successfully used plasma5 + wayland on nixos but switched back because of libinput
<adisbladis> Switch back to xorg that is
Tucky has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
pie_ has quit [Ping timeout: 240 seconds]
swayf has joined #nixos
<jluttine> how can i reduce the number of stored nixos configurations? boot time i can choose from 100 configurations. perhaps 10-20 would be enough.. they take a looot of disk space so would like to reduce that
<pmeunier> jluttine: nix-collect-garbage -d
<pmeunier> the "-d" deletes "generations, i.e. previous states of the system
<pmeunier> you might need to run that command as root.
<srhb> You probably want --delete-older-than 60d or something (to not lose the ability to rollback completely)
<adisbladis> pmeunier: That will delete ALL generations except the current one.
<srhb> There's no N generations yet, but there's a PR for it, I think.
hellrazo1 has quit [Ping timeout: 256 seconds]
hellrazo1 has joined #nixos
<adisbladis> srhb: Thats a bit funny
swayf has quit [Ping timeout: 265 seconds]
Itkovian has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] markus1189 opened pull request #34613: Add autoStart option for Kafka and Zookeeper services (master...kafka-zookeper-autostart) https://git.io/vNpAB
NixOS_GitHub has left #nixos [#nixos]
Ubercow has quit [Quit: Ubercow]
guillaum1 has quit [Quit: Lost terminal]
periklis has joined #nixos
fyuuri has joined #nixos
asuryawanshi has joined #nixos
periklis has quit [Ping timeout: 240 seconds]
thc202 has joined #nixos
vidbina has joined #nixos
goibhniu has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vNppB
<NixOS_GitHub> nixpkgs/master 50ad913 Manuel Bärenz: signal-desktop: 1.1.0 -> 1.3.0
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master cdb8deb Frederik Rietdijk: Merge pull request #34491 from turion/signal-1.3.0...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 58e467c Robert Schütz: python3Packages.aioimaplib: init at 0.7.13
<NixOS_GitHub> nixpkgs/master 988bec8 Robert Schütz: python3Packages.asynctest: init at 0.11.1
<NixOS_GitHub> nixpkgs/master 0cef410 Robert Schütz: pythonPackages.imaplib2: init at 2.45.0
<NixOS_GitHub> [nixpkgs] FRidh pushed 4 new commits to master: https://git.io/vNppE
NixOS_GitHub has left #nixos [#nixos]
mrkgnao has joined #nixos
stephenjudkins has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #33778: pythonPackages.pillow: 4.3.0 -> 5.0.0 (master...update-python-pillow) https://git.io/vNGZt
NixOS_GitHub has left #nixos [#nixos]
jensens has quit [Ping timeout: 248 seconds]
fyuuri has quit [Ping timeout: 248 seconds]
chrios has quit [Quit: Konversation terminated!]
chrios has joined #nixos
i-am-the-slime has joined #nixos
magnetophon has quit [Remote host closed the connection]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
swayf has joined #nixos
Itkovian has quit [Remote host closed the connection]
Itkovian has joined #nixos
jensens has joined #nixos
fyuuri has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] tristan0x opened pull request #34614: numpy: 1.13.3 -> 1.14.0 (staging...bump/numpy-1.14.0) https://git.io/vNpjD
NixOS_GitHub has left #nixos [#nixos]
swayf has quit [Ping timeout: 265 seconds]
<i-am-the-slime> Hello. I am trying to apply this fix: https://jira.atlassian.com/browse/HCPUB-3618
<srhb> adisbladis: Agreed! But if I remember correctly, the way it counts the generations is actually by the timestamp of the profile link.
ebzzry has joined #nixos
<srhb> as in, sorted by that.
<i-am-the-slime> But I don't know how because this file is read only here of course.
<adisbladis> Ahh that makes sense
<joko> Hey, is it possible to override linuxPackagesFor? I would like to add one more kernel module
<joko> linuxPackagesFor.overrideAttrs is not working obviously :S
<adisbladis> i-am-the-slime: It's usually done in patchPhase. Either by providing a list `patches` or by using something like sed or substituteInPlace
<i-am-the-slime> So I would have to find the original "default.nix" and modify it?
fragamus has joined #nixos
<i-am-the-slime> this I guess?
<adisbladis> i-am-the-slime: Yes but you can also locally override it without modifying that file.
Ubercow has joined #nixos
<srhb> joko: Can you use the fact that it's using makeExtensible?
Ubercow has quit [Client Quit]
<srhb> joko: eg. let yourModules = self: super: { yourModule = super.callPackage ... } in extends yourModules (linuxPackagesFor linux_4_14) or whatever version you care about :)
<adisbladis> i-am-the-slime: https://ptpb.pw/ixdJ should do the trick
magnetophon has joined #nixos
swayf has joined #nixos
<adisbladis> i-am-the-slime: I have not tested it though. It should at least be enough to get you started :)
<joko> srhb: So I override linuxPackagesFor with this one?
<i-am-the-slime> adisbladis: Where do I put that file though?
<srhb> joko: Yeah, something like that.
MP2E has quit [Remote host closed the connection]
<adisbladis> i-am-the-slime: Either you use nix-shell to test things out: https://ptpb.pw/6JhW put it into systemPackages https://ptpb.pw/iVYD
<joko> srhb: I feel incomfortable with the "extends" keyword, any documentation on that?
civodul has joined #nixos
<srhb> It's not a keyword.
MercurialAlchemi has quit [Remote host closed the connection]
dbe_ has joined #nixos
<srhb> joko: Let me give you an example
TonyTheLion has joined #nixos
<srhb> joko: It might not be totally ergonomic, but it's not too bad. :)
<TonyTheLion> so it seems that fetchfromGitHub expects to fetch a .tar.gz file, does that mean I have to commit a .tar.gz of my repo to my repo in order to use this?
ottidmes has joined #nixos
<srhb> TonyTheLion: No, github provides that.
<adisbladis> TonyTheLion: Github provides on the fly tarball for all revs in a repo :)
<srhb> TonyTheLion: You just specify the owner, repo and revision as well as the hash, and it's generated for you.
<srhb> ^
<TonyTheLion> hmmm
<TonyTheLion> my fetchfromGitHub seems to be fetching a .git
<magnetophon> TonyTheLion: you can fetch any tag or commit
<adisbladis> TonyTheLion: You might have specified that you want submodules?
fragamus has quit [Ping timeout: 252 seconds]
<adisbladis> TonyTheLion: fetchfromGitHub tries to be a bit smart like that. Depending on the parameters it will either use fetchurl or fetchgit
<TonyTheLion> I used fetch-from-git script to get the hash/rev and I just specified the repo
<TonyTheLion> I guess I should specifiy a specific commit?
MercurialAlchemi has joined #nixos
<srhb> Yes.
<srhb> TonyTheLion: owner, repo, rev and sha256
<TonyTheLion> I meant nix-prefetch-git
<TonyTheLion> should I specify a specific commit to that?
<srhb> If you want a specific revision, yeah.
<TonyTheLion> ideally I'd just want the last commit
<i-am-the-slime> adisbladis: how do I start the first one with a nix-shell?
<adisbladis> i-am-the-slime: Just put that in a file called default.nix or shell.nix, cd to that directory and invoke "nix-shell"
<srhb> TonyTheLion: You can't really do that consistently though, you need a stable hash in nixpkgs.
<srhb> TonyTheLion: What are you actually trying to do?
<adisbladis> TonyTheLion: Rev also works with tag. It's quite common to do "rev = version;"
<TonyTheLion> srhb: I'm trying to create a release.nix for my hydra server to build the repo
<srhb> TonyTheLion: Ah, so you want hydra to check it out for you?
<TonyTheLion> ideally yes
<TonyTheLion> and then build it
ssmike has joined #nixos
<srhb> In that case it should just be part of the spec inputs and it will simply be an attribute in your release.nix
<srhb> as in { pkgs, myCheckout }: ...
<srhb> Where myCheckout is hydra's responsibility to populate with the git type input.
<srhb> (And pkgs too, of course)
<TonyTheLion> so I don't need fetchfromGithub
<srhb> Indeed.
<TonyTheLion> and can I somehow specify in release.nix that it should use the default.nix in the repo to build the repo?
<TonyTheLion> import ./default.nix?
<srhb> Sure. Or callPackage or whatever you need to plumb it. :)
<srhb> release.nix has very few rules, it just has to be an attributeset of the jobs that hydra should build.
ssmike1 has joined #nixos
<i-am-the-slime> adisbladis: do I have to start the thing in the nix-shell then?
<i-am-the-slime> or should just "nix-shell" start it?
<srhb> As in jobs = { ... }
<srhb> i-am-the-slime: nix-shell will run shell.nix if it exists, otherwise default.nix if it exists, otherwise fail.
ssmike has quit [Ping timeout: 256 seconds]
ssmike1 is now known as ssmike
<etu> srhb: Is there any difference between shell.nix and default.nix except order it's read by nix-shell?
<TonyTheLion> srhb: so job = { callPackage foo {}; } should work?
<srhb> TonyTheLion: No, if foo is your git input, that corresponds to the source directory.
<srhb> Or rather the source file, whatever it is
<srhb> TonyTheLion: Here's a good guide to get started: https://github.com/peti/hydra-tutorial :)
<srhb> I think the nixops releases also work like this, let me chekc..
phdoerfler has joined #nixos
ssmike1 has joined #nixos
ssmike has quit [Ping timeout: 256 seconds]
ssmike1 is now known as ssmike
<TonyTheLion> srhb: but where should the release.nix live for a specific repo, inside the repo right?
<srhb> Yep, look at that nixops pjobset
<TonyTheLion> also thanks for the examples :)
<srhb> It says: Nix expression:release.nix in input nixopsSrc
<srhb> So it checks out nixopsSrc and then uses release.nix to figure out what to do next.
<TonyTheLion> I see
<TonyTheLion> makes sense
<srhb> It might be helpful to start out by making the jobset and specifying a more or less fake release.nix that just builds a tiny static artifact so you can work from there.
<srhb> Hydra is particularly unhelpful if you get something wrong in this phase. :-P
<joko> srhb: I am getting attribute ‘moduleBuildDependencies’ missing, any clue what's wrong? I have kernel in input arguments and use this attribute of his, just like in acpi-call
<srhb> joko: Need more context, I think. :)
ssmike has quit [Quit: ssmike]
<joko> TonyTheLion: I build my channel in Hydra like that: https://git.joko.gr/joko/etc-nixos/src/master/jobs.nix#L63
<srhb> joko: Oh, did you use the newscoped callPackage from linuxPackagesFor?
<srhb> Just guessing...
<joko> srhb: I used "drbd-module = lsuper.callPackage ./drbd-module.nix {};"
<joko> So I suppose it's ok
<srhb> Shouldn't it be lself? Though I suppose it doesn't matter...
<joko> srhb: right, even lself is not working
<srhb> Can you share the source? I have some time to give it a go. Not sure what I missed...
sigmundv_ has joined #nixos
sigmundv has quit [Disconnected by services]
sigmundv has joined #nixos
sigmundv has quit [Disconnected by services]
sigmundv_ is now known as sigmundv
<joko> srhb: sure thing, there you go: http://nixpaste.lbr.uno/Qr9XZQLe?nix
<joko> and thanks :D
asuryawanshi has quit [Remote host closed the connection]
i-am-the-slime has quit [Ping timeout: 264 seconds]
<joko> It's a copy-paste of the acpi_call kernel module mostly
sigmundv_ has joined #nixos
asuryawanshi has joined #nixos
<srhb> joko: Cannot reproduce.
<srhb> joko: What did you do exactly?
<TonyTheLion> > fastcgiSrc ? { outPath = ../fastcgi; revCount = 0; gitTag = "dirty"; }
<TonyTheLion> what is outPath here?
<TonyTheLion> and are you required to pass this?
<srhb> That's the attribute that hydra fills in for you. I think that default is just for building without hydra.
<srhb> You can leave out the default entirely (I *think* but we're straining my hydra knowledge now)
<TonyTheLion> oh right
ssmike has joined #nixos
<joko> srhb: I am using still packageOverrides :S , but something similar to that: http://nixpaste.lbr.uno/wqq0c3Lf?nix + the previous link as drbd-module.nix
<srhb> I think the devil might in in "something similar to"
<joko> :>
<joko> True dat
<srhb> I'm assuming the error I'm seeing is unrelated at least :)
lesce has joined #nixos
<joko> I must migrate to overlays asap
<srhb> Or you can share your packageOverrides, it should be similar indeed.
lesce has quit [Client Quit]
<srhb> I can sort of guess at what you might have, and I don't see an obvious reason that it shouldn't work...
<joko> srhb: They are a bit messy, sec to try with overlays and packageOverrides (this doesn't sound good, I admit it)
i-am-the-slime has joined #nixos
<srhb> I... Have no idea which order things might have when using both :-P
<adisbladis[m]> i-am-the-slime: nix-shell --run hipchat
<i-am-the-slime> Ah I will try that
<i-am-the-slime> still exploding
<i-am-the-slime> do I have to remove my own hipchat first?
<etu> nah
<etu> If you changed the expression, it will have a new hash and not conflict
<i-am-the-slime> yeah, unfortunately it doesn't work :(
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #34614: numpy: 1.13.3 -> 1.14.0 (staging...bump/numpy-1.14.0) https://git.io/vNpjD
NixOS_GitHub has left #nixos [#nixos]
lesce has joined #nixos
<adisbladis[m]> I tested it and it does apply the patch correctly so it seems like that is not the proper fix
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] calvertvl opened pull request #34617: fanficfare: 2.16.0 -> 2.22.0 (master...upd_fanficfare_2.22.0) https://git.io/vNhk5
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #33866: nixos: sg/newgrp should always be available, not chfn (master...fix_newgrp) https://git.io/vNcaO
NixOS_GitHub has left #nixos [#nixos]
<srhb> joko: Looks like it build with the addition of KDIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"; DESTDIR = "$out";
<srhb> joko: (When you get the rest working... :-))
<srhb> Oh, not quite, destdir doesn't work.
<joko> srhb: Had the same conclusion!
<joko> srhb: Just use export INSTALL_MOD_PATH="$out"
<joko> ;)
<srhb> Nice. :)
<srhb> Not too bad then.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vNhIr
<NixOS_GitHub> nixpkgs/master 8243d2b Frederik Rietdijk: python34: 3.4.7 -> 3.4.8
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 870e736 Frederik Rietdijk: python35: 3.5.4 -> 3.5.5
lonokhov has joined #nixos
<hyper_ch> Mic92: when will my zfs PR be merged?
freeman42x[NixOS has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/030badc427f (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [Client Quit]
dbe_ has quit [Ping timeout: 240 seconds]
chisui has joined #nixos
fuyuuri has joined #nixos
alex`` has joined #nixos
<clefru> hyper_ch: the encryption unstable PR?
<hyper_ch> clefru: yes... the patches are already merged to master and I added a third option in the configuration
<clefru> thanks saw it
<Mic92> hyper_ch: sorry, still have my deadline. Wednesday I am free.
<hyper_ch> Mic92: well, you had time to comment on it already :) did invert the unstable and new option to your suggestion
<Mic92> hyper_ch: I also test things manually.
<hyper_ch> Mic92: :)
knupfer has joined #nixos
<hyper_ch> btw, one more thing... maybe I should advance the old, unpatched zfs to the latest possible version as well?
Itkovian_ has joined #nixos
<Mic92> hyper_ch: makes sense.
<hyper_ch> ok will do that.... that also requires the spl update though but that will be then the same IIRC
ma27 has joined #nixos
<Mic92> we keep both in sync usually.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rvl opened pull request #34618: electron: 1.7.9 -> 1.7.11 (master...electron-update) https://git.io/vNhtH
NixOS_GitHub has left #nixos [#nixos]
<hyper_ch> so, need to figure out how I can flash the dell h200 perc to IT mode
i-am-the-slime has quit [Ping timeout: 240 seconds]
Itkovian has quit [Ping timeout: 240 seconds]
<infinisil> Goddamnit, everything breaks
<infinisil> well not everything, but I can't ever update anything without something breaking too
<infinisil> Now my $EDITOR env var gets overriden with nano for some reason
knupfer has quit [Ping timeout: 265 seconds]
simukis has joined #nixos
lesce has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
swayf has quit []
phs^ has joined #nixos
phs^ has quit [Max SendQ exceeded]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] domenkozar closed pull request #34618: electron: 1.7.9 -> 1.7.11 (master...electron-update) https://git.io/vNhtH
NixOS_GitHub has left #nixos [#nixos]
leat has quit [Quit: WeeChat 1.9.1]
fyuuri has quit [Ping timeout: 252 seconds]
phs^ has joined #nixos
phs^ has quit [Max SendQ exceeded]
phs^ has joined #nixos
phs^ has quit [Max SendQ exceeded]
phs^ has joined #nixos
phs^ has quit [Max SendQ exceeded]
leat has joined #nixos
phs^ has joined #nixos
phs^ has quit [Max SendQ exceeded]
phs^ has joined #nixos
phs^ has quit [Max SendQ exceeded]
lesce has joined #nixos
guillaum1 has joined #nixos
guillaum1 is now known as guibou
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rvl opened pull request #34619: electron: 1.7.5 -> 1.7.11 (release-17.09...electron-update-release) https://git.io/vNhmN
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vNhYn
<NixOS_GitHub> nixpkgs/master 3917279 Robin Gloster: linuxPackages.cpupower: clean up...
NixOS_GitHub has left #nixos [#nixos]
catch22 has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to release-17.09: https://git.io/vNhYc
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/release-17.09 5c09cdc Robin Gloster: linuxPackages.cpupower: clean up...
oida has joined #nixos
alex`` has quit [Quit: WeeChat 2.0.1]
<freeman42x[NixOS> petar, hi! https://github.com/NixOS/nixpkgs/issues/34620 (hope I pinged the right person)
i-am-the-slime has joined #nixos
<srhb> freeman42x[NixOS: I don't think you did. It's peti on irc too, but he's not in this channel :)
<freeman42x[NixOS> oops
<genesis> i've wrote a derivation for assaultcube, which branch should i try to PR ?
<freeman42x[NixOS> srhb, wait, why would he not be in this channel? just not in the channel now? or never?
<srhb> freeman42x[NixOS: I'd rather not guess at his motivations. :P I don't know if he's ever here anymore.
<srhb> genesis: If it's new, master :)
<genesis> oki thanks
<freeman42x[NixOS> srhb, he will reply on github though? right? Right?! :D
<srhb> freeman42x[NixOS: He's quite active with respect to the entire haskell infrastructure (as it's mostly his brainchild, I think) -- I'm not sure about single package stuff. Give it a few days and see. :)
<freeman42x[NixOS> srhb, that's fine, no hurry, as long as it doesn't get ignored :)
lesce has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] domenkozar closed pull request #34619: electron: 1.7.5 -> 1.7.11 (release-17.09...electron-update-release) https://git.io/vNhmN
NixOS_GitHub has left #nixos [#nixos]
raynold has quit [Quit: Connection closed for inactivity]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] zx2c4 opened pull request #34621: wireguard: 0.0.20180118 -> 0.0.20180202 (master...patch-1) https://git.io/vNhOd
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to gcc-7: https://git.io/vNh3v
<NixOS_GitHub> nixpkgs/gcc-7 c135ecd Franz Pletz: Merge remote-tracking branch 'origin/master' into gcc-7
NixOS_GitHub has left #nixos [#nixos]
ma27 has quit [Ping timeout: 256 seconds]
FRidh has joined #nixos
ma27 has joined #nixos
i-am-the-slime has quit [Ping timeout: 260 seconds]
iyzsong has joined #nixos
ssmike1 has joined #nixos
ssmike has quit [Ping timeout: 256 seconds]
ssmike1 is now known as ssmike
orivej has joined #nixos
xcmw has joined #nixos
{^_^} has quit [Remote host closed the connection]
FRidh has quit [Ping timeout: 240 seconds]
{^_^} has joined #nixos
<genesis> i should add myself to lib/maintainers.nix in my first PR ?
<etu> genesis: yes
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jokogr opened pull request #34622: jetbrains-editor: 2017.3.2 -> 2017.3.4 (master...u/jetbrains-2017.3.4) https://git.io/vNhsw
NixOS_GitHub has left #nixos [#nixos]
freeman42x[NixOS has quit [Read error: Connection reset by peer]
freeman42x[NixOS has joined #nixos
<hyper_ch> infinisil: why would you want an editor that is not nano
fendor has joined #nixos
ThatDocsLady has joined #nixos
Guest27207 has joined #nixos
rardiol1 has joined #nixos
FRidh has joined #nixos
<Rovanion> Hmm, why am I unable to install urxvt with `nix-env -i rxvt_unicode`, it seems like a package on https://nixos.org/nixos/packages.html#rxvt
<fendor> hello, is it possible to upgrade the kernel in nixos?
<srhb> fendor: We have several packages available. Which one do you want?
<Rovanion> Oh, using the first whole package name worked instead. But that's a mighty long package name...
<srhb> fendor: Generally you'll want to set boot.kernelPackages to whichever set you want.
<freeman42x[NixOS> contributing to Lamdu repository to have a default.nix that can build it, is it ok to have the dependencies in separate files like this: https://github.com/lamdu/lamdu/pull/85/files ?
<freeman42x[NixOS> or should they all be merged into default.nix
<freeman42x[NixOS> was thinking to leave default.nix in root and make a nix folder and put all the nix dependency expression files there
<srhb> freeman42x: I'd say either is fine.
<srhb> Rovanion: Which one of them? :-P
<freeman42x[NixOS> srhb, what would you say would be best? :) (I'd prefer not merging them into default.nix since I am not sure how)
<freeman42x[NixOS> does moving dependencies to a nix folder sound ok? I don't know what the convention is
<srhb> freeman42x: Well, then you probably shouldn't ask for my opinion. :-P
<Rovanion> srhb: rxvt-unicode-with-perl-with-unicode3-9.22
<srhb> (I like being able to search in that one buffer...)
<srhb> Rovanion: Nice. :P
<ArdaXi[m]> At the very least I'd suggest _not_ checking in the `result` symlink…
<srhb> Rovanion: Isn't that identical to urxvt_perl ?
<markus1189> Hi all, I am currently trying to build "Desktop Dungeons" from the Humble Bundle for nix. The game starts but I have 2 problems. 1) No sound is played, no errors on console 2) the game has the savegame path hardcoded relative to the install dir, which is not writable. Currently I am symlinking it, but what is the idiomatic way?
<srhb> Ah, no, it's not
<markus1189> Side note: I had to use the 32bit nixpkgs because the binaries are all 32 bit executables
<markus1189> Side note: I had to use the 32bit nixpkgs because the binaries are all 32 bit executables
<Rovanion> srhb: Well it could be that I'm not understanding how nix should be used but `nix-env -i urxvt_perl` doesn't work.
<srhb> Rovanion: Did you mean -p ?
<srhb> Rovanion: Er..
<srhb> nix-env?
<fendor> srhb, idk i mainly want to have the newest kernel so things like meltdown and co are patched
<srhb> fendor: Maybe you want linuxPackages_latest then
<srhb> Rovanion: nix-env -iA nixpkgs.urxvt_perl works for me. Note that that is not identical to the other one you listed, which has more plugins
<srhb> Rovanion: Note that the -A installs by attribute name rather than package name
<gchristensen> fendor: afaik, all our kernels are up to date with meltdown patches
<srhb> gchristensen: Yeah, they are.
<Rovanion> srhb: Thank you!
<joko> Anyone with nixops experience to share his thoughts on unattended system upgrades? https://github.com/NixOS/nixops/issues/842
mrkgnao has quit [Ping timeout: 276 seconds]
<aminechikhaoui> joko: I think you could setup something like a cron or systemd timer from the deploy machine and deploy with e.g -I nixpkgs=channel:nixos-17.09
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bignaux opened pull request #34623: assaultcube: init at official master branch , rev = "9f537b0876a39d7686e773040469fbb1417de18b" (master...master) https://git.io/vNhZt
NixOS_GitHub has left #nixos [#nixos]
<genesis> it's me _o/ bignaux!
<srhb> !m genesis
<[0__0]> You're doing good work, genesis!
Jackneill has quit [Read error: Connection reset by peer]
<srhb> genesis: What's up with the blank hash?
<rardiol1> markus1189: Just a random guess, but if the game uses dynamic loading, then maybe it's just not finding alsalib? Can you post the results of "ldd ./game" ?
<srhb> genesis: And you should probably use fetchFromGitHub rather than fetchgit
<joko> aminechikhaoui: So you recommend running nixops deploy for the actual host?
Jackneill has joined #nixos
<genesis> srhb : i donno how to get it well, since i'd not be able to get nix-prefetch-git
<markus1189> rardiol1: I already linked all the necessary libraries via patchelf
<TonyTheLion> has anyone seen this error output by hydra: [error] Caught exception in engine "Cannot determine local time zone" ?
<markus1189> but alsalib was never in there
<aminechikhaoui> joko: well yeah nixops should manage the configuration/state IMHO
<rardiol1> markus1189: Exactly, patchelf will fix dynamic linking, but dynamic loading is something else
<genesis> srhb : in fact i don't understand the interest of that on a git fetch.
<markus1189> rardiol1: this is the `ldd` output: https://pastebin.com/8mrU6Sa0
<genesis> and i like to propose switching between branch of AC since it's a bit the purpose of this nix derivation
<fendor> gchristensen, oh nice. where can i read that up?
ma27 has quit [Ping timeout: 276 seconds]
<markus1189> rardiol1: what would I have to fix to enable the dynamic loading?
<srhb> genesis: We need to know the hash of the output regardless.
<srhb> Er, the inputs rather.
<srhb> genesis: You can get nix-prefetch-git with nix-shell -p nix-prefetch-git
ma27 has joined #nixos
chisui has quit [Quit: Page closed]
<genesis> could be better if i could run it on my existing clone :D
<samueldr> otherwise, TOFU is fine enough
<samueldr> !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.
<genesis> oki great
<rardiol1> markus1189: I don't remember, particularly without knowing which library, if any, is dynamic loaded. In any case, it seems there is a case of dynamic loading, because ldd shows "libdl", which is the dynamic loader library
<markus1189> rardiol1: okay that at least helps me to diagnose that ;) Thanks for the pointers!
<rardiol1> markus1189: I have another idea, try running "strace -f ./game", maybe that will show something?
ma27 has quit [Remote host closed the connection]
ma27 has joined #nixos
<markus1189> rardiol1: Will try that later when I'm home, that would have been my next try
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir pushed 2 new commits to master: https://git.io/vNhn0
<NixOS_GitHub> nixpkgs/master ca78dc1 Jason A. Donenfeld: wireguard: 0.0.20180118 -> 0.0.20180202
<NixOS_GitHub> nixpkgs/master db99677 Andreas Rammhold: Merge pull request #34621 from zx2c4/patch-1...
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir pushed 1 new commit to release-17.09: https://git.io/vNhnE
<NixOS_GitHub> nixpkgs/release-17.09 4670974 Jason A. Donenfeld: wireguard: 0.0.20180118 -> 0.0.20180202...
NixOS_GitHub has left #nixos [#nixos]
<markus1189> Other question, how can I elegantly handle the problem that the game hardcodes the save path relative to the executable? Which of course is not writable. I am currently symlinking the save dir to /tmp, so I could also link to $HOME/saves but I find that suboptimal
<srhb> A better solution might be to make a wrapper that creates symlinks in the home directory for the game itself. Not pretty either, I suppose, but there's precedence.
coot_ has joined #nixos
FRidh has quit [Ping timeout: 252 seconds]
<markus1189> srhb: can't imagine what that does, you mean linking the whole game?
<srhb> markus1189: Yeah. To something user writable in the homedir.
FRidh has joined #nixos
<srhb> I doubt it'd be pretty.
<srhb> I recently had to intercept syscalls to get around silly hardcoded paths, and it's always ugh.
<markus1189> srhb: Ahh in that case I think I prefer symlinking the save dir only
<srhb> Maybe a chrootenv is also doable.
<srhb> There's something icky about each method :P
sigmundv has quit [Ping timeout: 264 seconds]
FRidh has quit [Remote host closed the connection]
FRidh has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 3 new commits to master: https://git.io/vNhnh
<NixOS_GitHub> nixpkgs/master 14da2e2 Maximilian Bosch: pythonPackages.pybase64: init at 0.2.1...
<NixOS_GitHub> nixpkgs/master 9d188f9 Maximilian Bosch: pythonPackages.nose-parameterized: create `parameterized` alias...
<NixOS_GitHub> nixpkgs/master 422f99b Frederik Rietdijk: Merge pull request #34589 from Ma27/package-pybase64...
NixOS_GitHub has left #nixos [#nixos]
<rardiol1> markus1189: if you're feeling lazy, did you try running the game with "steam-run"? It might work, considering the game is on steam too
<markus1189> srhb: do you know of any examples I could have a look at with cheating via syscalls :) That sounds interesting
<markus1189> rardiol1: Didn't try. Does it work with non-steam games?
randomstrangerb has quit [Ping timeout: 264 seconds]
arjen-jonathan has joined #nixos
<gchristensen> markus1189: it frequently does :)
<fendor> gchristensen, thanks!
randomstrangerb has joined #nixos
<gchristensen> markus1189: steam-run isn't so much "run a steam game" and more "pretend we're on a normal linux distro and run this"
<markus1189> gchristensen: good to know :)
lesce has joined #nixos
<srhb> markus1189: The one I have hasn't been open sourced, but I based it on something in nixpkgs. let me have a look...
ma27 has quit [Ping timeout: 256 seconds]
<srhb> markus1189: Here's one: pkgs/build-support/libredirect/default.nix
<srhb> markus1189: Then you just wrap up the final application with an LD_PRELOAD for that.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir pushed 6 new commits to master: https://git.io/vNhcX
<NixOS_GitHub> nixpkgs/master f79fe0c Ioannis Koutras: idea-community: 2017.3.3 -> 2017.3.4
<NixOS_GitHub> nixpkgs/master 3fc60ef Ioannis Koutras: idea-ultimate: 2017.3.3 -> 2017.3.4
<NixOS_GitHub> nixpkgs/master 44cd5c5 Ioannis Koutras: phpstorm: 2017.3.3 -> 2017.3.4
NixOS_GitHub has left #nixos [#nixos]
<srhb> And suppress the urge to scream.
alexteves has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #34610: boehmgc: 7.6.2 -> 7.6.4 (master...boehmgc) https://git.io/vNpMy
NixOS_GitHub has left #nixos [#nixos]
m0rphism has quit [Ping timeout: 256 seconds]
mrkgnao has joined #nixos
<the_real_plumps_> Does anybody know when the nixos-channel for 17.09 gets synced with the hydra jobset nixos:release-17.09?
m0rphism has joined #nixos
<the_real_plumps_> I am curious why it still points to a 4 day old one
<etu> the_real_plumps_: you mean nixos-unstable?
<gchristensen> the_real_plumps_: every time the tests pass: http://howoldis.herokuapp.com/ expand the three sections at the top
<samueldr> ninja.d
<the_real_plumps_> nope, I mean the release-17.09
<etu> gchristensen: What about this then: https://hydra.nixos.org/job/nixos/trunk-combined/tested#tabs-constituents , If I read that right, all the tests pass for nixos-unstable?
coot_ has quit [Ping timeout: 240 seconds]
<the_real_plumps_> @gchristensen ah, I will have a look into it
sigmundv has joined #nixos
<gchristensen> etu: ah ha! you caught my lie!
<gchristensen> etu: the evaluation must also be completely finished, ie: 0 queued jobs, 0 running jobs: https://hydra.nixos.org/eval/1431208
<srhb> You could actually read this from the output too (notice the colors)
Neo-- has joined #nixos
<srhb> (Well, you couldn't know that precondition...)
<srhb> Urgh, I should finish up that keymap workaround soon...
Ubercow has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir closed pull request #34599: edid-decode: init at git-2017-09-18 (master...master) https://git.io/vNpuu
NixOS_GitHub has left #nixos [#nixos]
<srhb> If only I could remember what branch I put it in. #thebranchfungusisreal
<magnetophon> What could be a reason for patchShebangs to malfunction? It claims to patch, but when I cat the file right after, it's unchanged. The shebang is "#!/usr/bin/env python"
<gchristensen> magnetophon: is python in the build inputs?
<srhb> Also, now I accidentally took a look at pijul and I _want it_ q_q
<magnetophon> gchristensen: ah, no. thanks
<etu> magnetophon: That shebang is also fine :)
<magnetophon> etu: ok, I'll leave it then. thanks
<etu> magnetophon: just that it needs to have python :p
<gchristensen> it would be my preference to run patchShebangs on it, personally
<gchristensen> and not leave it up to chance
<srhb> I think that's "fine" in a very narrow definition where it means "not fine" :P
chreekat has quit [Ping timeout: 265 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 1030042 Andreas Rammhold: edid-decode: fixed missing version in name attribute
<NixOS_GitHub> [nixpkgs] andir pushed 1 new commit to master: https://git.io/vNhWU
NixOS_GitHub has left #nixos [#nixos]
<srhb> _Technically_ fine.
<etu> srhb: fine isn't "good" :p
<srhb> :D
<magnetophon> etu, gchristensen: turns out it won't run without patchShebangs
<gchristensen> srhb: <3
fendor has quit [Remote host closed the connection]
lord| has quit [Ping timeout: 260 seconds]
<etu> magnetophon: Well then, patchShebangs is better. But /usr/bin/env is one of few paths that exists :p
<etu> (that others expect)
dan_b has joined #nixos
<magnetophon> etu: so what would cause: "/usr/bin/env: bad interpreter: No such file or directory" ?
<srhb> magnetophon: Oh, you're not on NixOS?
<magnetophon> srhb: yes I am
<srhb> Er... That's weird then. Either way, it's not the correct approach. It should point to the right python by patching it :)
<srhb> That error implies that /usr/bin/env _itself_ does not exist.
<srhb> Unless you're doing something chrooty I don't know how that would happen.
<srhb> Unless you're running that in the build itself.
<srhb> In which case, that's the reason.
<genesis> how can i get fetchFromGitHub options ?
<srhb> genesis: By reading the source definition, mostly.
<genesis> i don't find them
<magnetophon> srhb: yes, in the build. sorry for the confusion.
<srhb> genesis: pkgs/top-level/all-packages.nix
<genesis> greping since minutes, so i ast
ma27 has joined #nixos
<srhb> genesis: Search for " fetchFromGitHub =" in that file
<genesis> thanks
<srhb> genesis: (You want owner, repo, rev and sha256)
<srhb> magnetophon: I imagine it's the sandbox then. And good on it for catching it. :-)
Ubercow has quit [Quit: Ubercow]
<magnetophon> srhb: yup, I have the sandbox on.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #34612: fastlane: 2.75.1 -> 2.80.0 (master...fastlane) https://git.io/vNp5y
NixOS_GitHub has left #nixos [#nixos]
<genesis> srhb : the pb is that i would like to keep switching between branch :/
<genesis> and it seems to be not possible with fetchFromGitHub
<srhb> genesis: It doesn't matter, the commit rev is sufficient to uniquely identify the source state.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] clefru closed pull request #34385: Upgrade kernel compiler to GCC 7. (master...gcc7-kernel) https://git.io/vNyNr
NixOS_GitHub has left #nixos [#nixos]
<genesis> oki i doubt something like that
<genesis> thanks.
<srhb> genesis: As long as you're not using anything in .git or the likes :)
<srhb> (Which would probably be bad anyway)
<genesis> oki let's have a try.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] magnetophon opened pull request #34625: htop: 2.02 -> 2.1.0 (master...htop) https://git.io/vNhlC
NixOS_GitHub has left #nixos [#nixos]
asuryawanshi has quit [Ping timeout: 256 seconds]
<genesis> fetchFromGitHub is better using archive yeap
<Baughn> genesis: "Branches" are merely porcelain. A branch is a reference to a particular commit, and that's it. If you know the commit hash, then you have all you need.
<genesis> i get the point, thanks.
ma27 has quit [Ping timeout: 248 seconds]
<Baughn> Here's something that properly explains it: http://eagain.net/articles/git-for-computer-scientists/
fyuuri has joined #nixos
<srhb> genesis: Great! :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #34617: fanficfare: 2.16.0 -> 2.22.0 (master...upd_fanficfare_2.22.0) https://git.io/vNhk5
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir closed pull request #34593: gnuradio: fix wrapper (master...taktoa/gnuradio-wrapper-fix) https://git.io/vNpqq
NixOS_GitHub has left #nixos [#nixos]
<markus1189> srhb: thanks, will have a look!
<srhb> genesis: Is it normal that it starts up with a tiiiiny resolution in the middle of the screen?
<genesis> old stuff, that the initial config ...
<srhb> Ah. :)
<genesis> i used to play with notexture and some stuff
<genesis> look more warsaw without needed a decent gfx card.
<srhb> :P
<srhb> genesis: I think it would be nice to add meta.supportedSystems so that it shows that it doesn't work on darwin
<srhb> genesis: Other than that it looks good :)
<genesis> i've to fix the name and my launcher
<genesis> did you use the desktop launcher ?
<genesis> (that things i can't test)
iyzsong has quit [Ping timeout: 240 seconds]
<srhb> I didn't, no, I don't have a desktop environment that knows how to do that..
jethro` has joined #nixos
<srhb> By the way, if you don't intend for it to be merged just yet, it's a good idea to prefix the PR title with WIP:
<jethro`> anyone here has a derivation for a later version of emacs for nixos I can peek at (emacs 26/master)?
<genesis> srhb : i don't understand maintener of package tree, a bad package is better than no package, i spend 3 days on this
<srhb> genesis: I didn't say it wasn't in a mergeable state, I just thought you wanted to fix those first.
<genesis> on gentoo we can add with a masked on unstable variable, to show that it's not functional or perfect, i think the high quality required is often a stop for people
ma27 has joined #nixos
<genesis> oki but it's a general reflexion :)
<srhb> Does gentoo also build all their packages upstream?
<srhb> That might add to the consideration.
<srhb> We also have a broken tag, though. :)
<genesis> oki
rauno has quit [Ping timeout: 248 seconds]
<srhb> I think it's always a balance between allowing people in (making it fun to contribute) and not cluttering the rather big repo with things that have very subjective value, especially if they're not too good.
<srhb> especially now that it's easy to distribute packages "out-of-tree" (ie. overlays)
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/fc2f32394cf (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [Client Quit]
<srhb> I don't disagree though. It's just a balancing act, and I'm not sure there are any good, objective guidelines. :)
pkill9 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] timokau opened pull request #34626: sage: fix non-deterministic build failures (master...sage-deterministic-master) https://git.io/vNh4C
NixOS_GitHub has left #nixos [#nixos]
knupfer has joined #nixos
knupfer has quit [Read error: Connection reset by peer]
lesce has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knupfer has joined #nixos
Rusty1_ has joined #nixos
Ivanych has quit [Ping timeout: 264 seconds]
<genesis> srhb : people seems to use "platforms = platforms.linux " and noone supportedSystems, perharps that's new ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/vNhB0
<NixOS_GitHub> nixpkgs/master 0ccb965 Michael Raskin: Merge pull request #34626 from timokau/sage-deterministic-master...
<NixOS_GitHub> nixpkgs/master 272e930 Timo Kaufmann: sage: fix non-deterministic build failures...
NixOS_GitHub has left #nixos [#nixos]
alex`` has joined #nixos
jethro` has quit [Remote host closed the connection]
nix-gsc-io`bot has joined #nixos
alex`` is now known as alexherbo2
<nix-gsc-io`bot> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/467097464c7 (from 70 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
nix-gsc-io`bot has quit [Client Quit]
alexherbo2 is now known as alex``
rogue_koder has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vNhBP
<NixOS_GitHub> nixpkgs/master 8a72d2a Bart Brouns: htop: 2.02 -> 2.1.0
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master a16ccac adisbladis: Merge pull request #34625 from magnetophon/htop...
clefru has quit [Quit: Leaving]
azertyieio has joined #nixos
lesce has joined #nixos
ertes-w is now known as supercynic
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus closed pull request #34594: amdgpu-pro: 17.10 -> 17.50 (master...amdgpu_pro_17_50) https://git.io/vNpCv
NixOS_GitHub has left #nixos [#nixos]
<dywedir[m]> Could someone please take a look at https://github.com/NixOS/nixpkgs/pull/32972 ?
detran has joined #nixos
<srhb> genesis: Sorry, no, that's exactly what I meant
<genesis> oki anyway , there are mac packages of the game, so i let darwin have a try with the bundle enet in source
<genesis> if borg try again :)
<infinisil> srhb: Why have nixos and nixpkgs been merged anyways?
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/467097464c7 (from 85 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [Client Quit]
<infinisil> I don't see the advantage of that
<srhb> infinisil: Huh?
<infinisil> nixos was a separate repo before
<srhb> Oh.
<srhb> I don't know why. Probably because it's practical.
freeman42x[NixOS has quit [Quit: Leaving]
<infinisil> It's just a big clutter now
Ivanych has joined #nixos
<LnL> coordinating changes across multiple repositories is hard
<infinisil> LnL: Hmm, that's an argument
<detran> I've got ~/.nix-defexpr/channels and ~/.nix-defexpr/channels_root
<detran> they are the same and I'm wondering which one to delete
<infinisil> LnL: But how about git submodules
<detran> what creates channels_root?
<srhb> infinisil: That's like the worst of all worlds. :P
<LnL> have you ever used that in practice?
<LnL> it's a pain to manage
coot_ has joined #nixos
* srhb just murdered some submodules today and replaced them with fetchFrom...
<infinisil> I am using multiple submodules for my hosts config
<infinisil> hmm they are a bit annoying to manage I agree, but I think that can be solved by some scripts
<srhb> I just don't see what we'd gain.
<infinisil> PR's being more manageable
<srhb> Because they're spread on more repos?
szicari has joined #nixos
<infinisil> yeah
<pbogdan> infinisil: for some context https://github.com/NixOS/nixpkgs/issues/1041 (in case you haven't seen it)
<LnL> how would you pr a package that needs a module change?
lesce has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srhb> I don't buy that :)
<infinisil> LnL: hmm... damnit
orivej has quit [Ping timeout: 256 seconds]
<gchristensen> multiple repos is a huuuge pain
<LnL> like I said before, it's possible but it requires changes to happen in the correct order
<gchristensen> see also the AOSP project and the `repo` tool
<LnL> if you're the only person working on a project that's pretty easy, but something like nixpkgs is a lot harder
<srhb> I think the only time multiple repos are better is when politics prevents a distinct set of people from advancing anything because of one or more other distinct sets of people. Which does tend to happen in big projects, but the overhead of transitioning is not trivial.
<srhb> (Still, if you get stuck, it's preferable!)
<infinisil> Hmm..
<Dezgeg> also you're going to have fun when you need to atomically commit something to two different repositories
<gchristensen> and the bug reports when things are out of sync
<srhb> This is where I want to be able to rely on patches.
<srhb> "Depends on package A with at least these patches..."
<gchristensen> (and they _will_ get out of sync)
<infinisil> Okay you convinced me, damnit
<gchristensen> infinisil: <3 :D
<infinisil> but isn't there something we can do to get nixpkgs to a more manageable state?
<srhb> Make NixOS more like nixpkgs
<srhb> Less module magic more functions
<srhb> :-P
<infinisil> ++++++1 to that
<gchristensen> srhb: you and shlevy should team up
<LnL> I would still like to hear more about his ideas there, sounds like a fun project to work on :)
<infinisil> putting packages services to the packages, not in nixos. The same with packages configurations. Things like that srhb ?
<srhb> LnL: Yes!
<srhb> infinisil: Something like that possibly. Eelcos slides from friday actually had a great point (I want to be able to created two postgresses just because it's just a function that creates some services)
<srhb> infinisil: But I have to jump through hoops now (containers...? renaming things by hand...?) because they're not.
<infinisil> srhb: Agreed
<srhb> Don't get me wrong, NixOS is incredibly awesome, but this sort of thought is possibly exactly because of nixpkgs.
<shlevy> Did Eelco give a talk Friday?
<srhb> Apparently!
<infinisil> I think a first step to this is to make the module system available outside of nixos, so it's usable for ordinary functions
nikivi has quit [Quit: ZNC 1.6.5 - http://znc.in]
<shlevy> infinisil: It is available as lib/modules.nix
xcmw has joined #nixos
<infinisil> shlevy: yeah, but isn't there some considerable boilerplate to actually using it?
<shlevy> lib.evalModules
<srhb> The last slide is such a tease... :-)
<alexteves> anyone got 'virtualboxGuestAdditions' to build? looks like it's broken since at least 4.15
<niksnut> shlevy: yeah I mentioned giving that talk last week
<niksnut> the last slide is just a random braindump of roadmap ideas
<srhb> Aw.. Well, that's good to know :PO
<alexteves> it's failing for me in all channels
<shlevy> :o niksnut agrees with me on the module system!
<Aleksejs> Hello, is there a way to run nix-shell without some package that I already have installed?
nikivi has joined #nixos
<symphorien> --pure if I understand correctly what you mean
<hyper_ch> I have an issue: I did upgrade the firmware on my main board... I did re-enable VT-d there... but when I boot up server, virsh list shows nothing.... virtmanager still has the vms listed but when I try to start them, I get an error
<joko> hyper_ch: try to start them via virsh start
<Aleksejs> symphorien: well, it's one way to do it... I will try, thanks
<joko> hyper_ch: they must be stopped, virsh list -a would list them
<hyper_ch> joko: error: unsupported configuration: Domain requires KVM, but it is not available. Check that virtualization is enabled in the host BIOS, and host configuration is setup to load the kvm modules.
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
lesce has joined #nixos
<joko> hyper_ch: what "grep -E --color=auto 'vmx|svm|0xc0f' /proc/cpuinfo" reports?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill closed pull request #34214: rhash: cleanup, 1.3.3 -> 1.3.5 (staging...update/rhash-1.3.5) https://git.io/vNoCb
NixOS_GitHub has left #nixos [#nixos]
<joko> hyper_ch: if nothing, then it's not enabled
<Unode> srhb: thanks for the osprober tip yesterday. That did the job.
<srhb> Unode: Great! :)
<joko> hyper_ch: then it's enabled... Try "lsmod | grep kvm" then
<joko> ah
<Unode> srhb: a bit surprisingly though since the generated grub.conf was almost identical and Windows didn't show up on the list. Everything else did :)
<joko> hyper_ch: sudo modprobe kvm_intel
<joko> (or kvm_amd)
<srhb> Unode: I guess the mechanics specifically disable it to start with. Very political. ;-)
<fearlessKim[m]> do we have a rough idea of the nixos userbase ?
<fearlessKim[m]> as in the number of nixos users
<hyper_ch> joko: modprobe: ERROR: could not insert 'kvm_intel': Operation not supported
<joko> hyper_ch: with sudo?
<hyper_ch> joko: as root
<joko> hyper_ch: "dmesg | grep kvm" reports anything strange?
<hyper_ch> which is strange because VT-d is enabled
<joko> hyper_ch: vt-d is for io
<hyper_ch> so what else do I need to enable?
<joko> What's your mobo?
<hyper_ch> an asus one
<joko> Something about VT-x? Look for other virtualization settings
aloiscochard has quit [Quit: Connection closed for inactivity]
<hyper_ch> oh... I see
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #34627: rhash: 1.3.3 -> 2018-02-05 (master...update/rhash-git) https://git.io/vNhge
NixOS_GitHub has left #nixos [#nixos]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Unode> fearlessKim[m]: hard to say. One person can have 1 or 100 installations of NixOS. Do you count those as users?
<hyper_ch> joko: you're a genious
<gchristensen> Unode: or 100,000! as is nearly the case with (at least) one of our users
<gchristensen> fearlessKim[m]: we know it is used in at least two of the biggest supercomputers in the world
<Unode> gchristensen: outch and impressive
<gchristensen> Unode: ouch?
<fearlessKim[m]> Unode: I am more thinking individuals, even just nixos. Like what's the ISO download rate ? I guess we don't see those who upgrade but with a retention rate we might have a guess
<hyper_ch> joko: working again...
<joko> hyper_ch: :D
xcmw has joined #nixos
<fearlessKim[m]> I was wondering because sometimes I make a PR and I am like "I must be the only one using this" XD
coot_ has quit [Ping timeout: 260 seconds]
xcmw has quit [Client Quit]
Drakonis has joined #nixos
coot_ has joined #nixos
badi has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] srhb closed pull request #34623: assaultcube: init at official master branch , rev = "9f537b0876a39d7686e773040469fbb1417de18b" (master...master) https://git.io/vNhZt
NixOS_GitHub has left #nixos [#nixos]
<Unode> gchristensen: ouch in the sense that the number is quite large and managing all that is quite the skill
<gchristensen> my understanding is almost all of those nodes are ephemeral and immutable, so managing it is mostly shutting them all down and then starting them all back up with a new disk image
coot has joined #nixos
civodul has joined #nixos
<Unode> fearlessKim[m]: no worries there. I feel the same. Though once it's there, it's good for anyone lazy. As for numbers, hydra might have some (per-package). Users, I'd say count the github contributors and then some more.
<infinisil> there should be some opt-in anonymous usage report thing
<Unode> nix/nixos isn't your regular linux distro, so it's quite likely that a user will at any point also be a contributor, even if just giving feedback on an issue.
<gchristensen> the binary cache collects some data by necessity, and sometimes Eelco posts a summary
MercurialAlchemi has quit [Ping timeout: 256 seconds]
coot_ has quit [Ping timeout: 264 seconds]
erasmas has joined #nixos
coot has quit [Ping timeout: 264 seconds]
<fearlessKim[m]> more specifically I was thinking of my l2tp VPN PR. Since this kind of VPN is related to work, the lack of it is not something you can ignore. Typically I didn't want to do it but had to. Thus I think I am the only l2tp user on nixos (or maybe there exists other solutions than networkmanager I didn't know of)
cement has joined #nixos
magnetophon has quit [Ping timeout: 240 seconds]
chreekat has joined #nixos
<shlevy> Noooooo yet another instance of ghc non-determinism screwing up nix builds :(
<shlevy> Appear to be getting different symbol names in static profiling libs built on different boxes, in some instances
fyuuri has quit [Quit: WeeChat 2.0.1]
fyuuri has joined #nixos
fyuuri has left #nixos [#nixos]
chreekat has quit [Client Quit]
coot has joined #nixos
pie_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #34628: nix busybox shell: fix config and enable expected features (staging...fix/nix-busybox-shell-features) https://git.io/vNhVa
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] edolstra closed pull request #34628: nix busybox shell: fix config and enable expected features (staging...fix/nix-busybox-shell-features) https://git.io/vNhVa
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill closed pull request #34597: nix: fix config for echo/test on newer busybox (master...fix/nix-busybox-config) https://git.io/vNpRd
NixOS_GitHub has left #nixos [#nixos]
<dtz> oh yay \o/
<dtz> ty ^_^
Drakonis has quit [Read error: Connection reset by peer]
fyuuri has joined #nixos
fyuuri has quit [Client Quit]
fyuuri has joined #nixos
fyuuri has quit [Client Quit]
coot has quit [Ping timeout: 240 seconds]
fyuuri has joined #nixos
swills has quit [Remote host closed the connection]
Sonarpulse has joined #nixos
fyuuri_ has joined #nixos
ryanartecona has joined #nixos
leat has quit [Ping timeout: 264 seconds]
fendor has joined #nixos
Arcaelyx has joined #nixos
endformationage has joined #nixos
lesce has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<TonyTheLion> anyone here have any idea why hydra may not actually build anything after you've configured jobsets?
Ivanych has quit [Ping timeout: 255 seconds]
<TonyTheLion> its not even evaluating the jobset
<TonyTheLion> :(
<LnL> are the builds queued?
<TonyTheLion> nope
Arcaelyx_ has joined #nixos
<LnL> is the jobset enabled
<TonyTheLion> yes it is
Arcaelyx has quit [Ping timeout: 276 seconds]
<LnL> can you link the expression / inputs
<srhb> TonyTheLion: You can also follow the journald logs to see what's going on.
<LnL> yeah, journalctl -u hydra-evaluator
<TonyTheLion> ohhhh
<TonyTheLion> thats interesting
fyuuri_ has quit [Quit: WeeChat 2.0.1]
<TonyTheLion> hahah it says it has no entires
<TonyTheLion> entries
nico202 has joined #nixos
<TonyTheLion> I don't think the hydra-evaluator is running, I'm only running hydra-server
<TonyTheLion> should I run that explicitly?
lesce has joined #nixos
<LnL> are you using the nixos module? that should be started for you
lesce has quit [Client Quit]
<srhb> hydra-evaluator, hydra-queue-runner, hydra-server... I don't recall if there are more components.
<srhb> But yeah, the module deals with it all.
<TonyTheLion> hmm I installed hydra using 'nix-env -i hydra' and then configured it using the manual
<srhb> You probably don't want to do that.
<srhb> At least if you have NixOS.
<LnL> oh, yeah that's going to be a lot more work
<TonyTheLion> yep my server is running nixos
<TonyTheLion> so how would I enable the hydra module?
<TonyTheLion> is that documented anywhere?
<srhb> In the NixOS options.
<LnL> that's an example, including setup for a local binary cache
<TonyTheLion> LnL: can I just put that into the /etc/nixos/configuration.nix?
<gchristensen> is cloud.hetzner.com down for anyone else?
<LnL> you'll probably want to customize that a bit
<srhb> gchristensen: Times out.
<gchristensen> ruh roh
<srhb> gchristensen: In fact, all of hetzner, it seems.
<TonyTheLion> LnL: yes, but my question is where I should put that on my system?
<gchristensen> double ruh roh
<LnL> TonyTheLion: but if you create /var/lib/nix-cache and generate a signing keypair it should mostly work
<srhb> gchristensen: "Hetzner Online Gmbh? Morelike Hetzner Offline Gmbh amirite"
supercynic is now known as ertes-w
<LnL> ah yes, that's a configuration.nix
detran has quit [Ping timeout: 240 seconds]
<gchristensen> lmao srhb
<TonyTheLion> LnL: cool thanks
* srhb snickers
<srhb> It's back up :)
Ivanych has joined #nixos
asuryawanshi has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] phdoerfler opened pull request #34629: Wrapped ${mailbox.name} in "s to allow for space in mailbox names. (master...patch-2) https://git.io/vNhi5
NixOS_GitHub has left #nixos [#nixos]
swills has joined #nixos
swills has joined #nixos
dan_b has quit [Ping timeout: 240 seconds]
swills_ has joined #nixos
swills_ has quit [Client Quit]
asuryawanshi has quit [Remote host closed the connection]
Arcaelyx_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
griff_ has joined #nixos
asuryawanshi has joined #nixos
magnetophon has joined #nixos
<TonyTheLion> LnL: warning: unable to download 'http://cache.example.org/nix-cache-info': Couldn't resolve host name (6); retrying in 274 ms
<TonyTheLion> why is it trying to download from a garbage URL?
<clever> TonyTheLion: what is in your /etc/nix/nix.conf?
<LnL> because that example adds cache.example.org as a cache
<pierron> Is there any python expert arround, I have a python program which give me the following error: urllib2.URLError: <urlopen error unknown url type: ssh>
<pierron> Which dependency am I missing?
endformationage has quit [Ping timeout: 260 seconds]
<LnL> I don't think urllib/requests can do ssh
<simpson> pierron: Does this work on a different installation of Python?
<pierron> simpson: I tried PythonFull, does not work either
<hyper_ch> huhu
<pierron> LnL: I am trying to package git cinnabar, and this is part of the use case which is documented, with multiple users using it with success on other distro
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] dtzWill opened pull request #1842: busybox shell: enable various useful/expected features (master...fix/sandbox-shell-features) https://git.io/vNhXp
NixOS_GitHub has left #nixos [#nixos]
ThatDocsLady has quit [Ping timeout: 268 seconds]
hakujin1 has joined #nixos
Ivanych has quit [Ping timeout: 256 seconds]
randomstrangerb has quit [Ping timeout: 248 seconds]
randomstrangerb has joined #nixos
<simpson> pierron: This repo? https://github.com/glandium/git-cinnabar The build instructions are quite disappointing.
liuz has joined #nixos
<simpson> I can't find a list of Python dependencies anywhere in this repository. I might not have looked hard enough.
<LnL> pierron: are you using python2? might only work with 3.x
<TonyTheLion> clever: here's my nix.conf https://www.paste.org/90575
<srid> > error: The option `services.gitit' defined in `/home/srid/mynixos/nix/dev.nix' does not exist.
<srid> But `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixpkgs/nixos/modules/services/misc/gitit.nix` exists
<TonyTheLion> basically, it still tries to download from that garbage cache.example.org even though I deleted all traces of it :(
<pierron> LnL: python2.7
<pierron> simpson: yes.
dan_b has joined #nixos
<pierron> simpson: if you want I can share my nix expressions
<simpson> pierron: No, I normally want this sort of software to die in a fire.
<clever> TonyTheLion: that paste is configuration.nix, not nix.conf
<pierron> simpson: sadly I have to either use this or mercurial
<clever> TonyTheLion: and what is with line 5??
<pierron> simpson: and I already have plenty of commit history in git :/
<simpson> pierron: Mercurial isn't the end of the world~ Anyway, if it's a Python package that's missing, you could find it in the $(pip freeze) list; just run $(pip freeze) where your working cinnabar installation is.
srid`` has quit [Quit: The Lounge - https://thelounge.github.io]
srid_ii has quit [Remote host closed the connection]
endformationage has joined #nixos
<simpson> It could be that maybe there's some Paramiko-like extension module, or something like that. Or it could be that this package is just not Python 2-compatible.
Eisfreak7 has joined #nixos
<TonyTheLion> clever: should be 'imports = [ <nixpkgs/nixos/modules/virtualisation/amazon-image.nix> ];'
<clever> not sure where the example.com came from then
srdqty has joined #nixos
<TonyTheLion> clever: apparently its in nix.conf
leat has joined #nixos
<TonyTheLion> had no idea this file existed :P
<clever> TonyTheLion: i gave the exact path to it
<TonyTheLion> ye I misread it
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] varunpatro opened pull request #34630: lsusb for OSX (master...lsusb) https://git.io/vNhMR
NixOS_GitHub has left #nixos [#nixos]
<pierron> simpson: I will try with python 3.
woffs has quit [Quit: Gateway shutdown]
woffs has joined #nixos
<simpson> pierron: Go figure.
srdqty has quit [Quit: WeeChat 1.9.1]
<infinisil> Oh my god, I fail to set up a vpn connection to my university, which i need to download the study material
hakujin1 is now known as hakujin
<infinisil> networkmanager has failed me yet again
<pierron> LnL: simpson: Do you know if there is a command line argument which can be added to python to make it trace its execution?
dan_b has quit [Ping timeout: 260 seconds]
alexteves_ has joined #nixos
alexteves has quit [Remote host closed the connection]
periklis has joined #nixos
<simpson> Yeah, give `-v` and CPython will vomit aggressively as it searches for and imports modules.
detran has joined #nixos
<pierron> simpson: is CPython the default python that we have, it only vomit the import statements?
rogue_koder has quit [Remote host closed the connection]
Tucky has quit [Quit: WeeChat 2.0.1]
rogue_koder has joined #nixos
coot has joined #nixos
mkoenig has quit [Ping timeout: 240 seconds]
<TonyTheLion> hmmm does hydra-server have a log anywhere?
mkoenig has joined #nixos
<TonyTheLion> except for 'journalctl -u hydra-server'
coot has quit [Client Quit]
<pierron> LnL: simpson: Thanks, apparently I had a wrong login and after failing to connect with ssh, it fell back on urllib2.
<pierron> git lg
stephenjudkins has quit [Ping timeout: 240 seconds]
<makefu> is anybody successfully using network-manager + modemmanager? it seems like my umts card does not get listed at all even though it is working via wvdial. i tried to finally let go of my pinned wvdial from 15.09 ...
hellrazo1 has quit [Ping timeout: 240 seconds]
<hyper_ch> don't have a modem to manager :)
<makefu> sorry you ;)
<pierron> LnL: simpson: It works now :) I will move the nix expression to nixpkgs-mozilla (as it seems really hackish at the moment)
<simpson> Good luck.
detran has quit [Ping timeout: 248 seconds]
<Unode> hi all. I'm trying to package a python module but I'm getting failures on tests. Tests run using pytest but when I run the tests manually a lot more tests fail to simply find the module. Does anyone know the exact invocation that nix does to py.test or if there's anything special about the environment where tests are executed?
<symphorien> you can probably add preCheck = " set -x ";
liuz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<makefu> okay i've found out that ModemManager needs to be running and everything then works out of the box
<magnetophon> I'm working on a pkg what fails a test. When I try in nix-shell, the test passes. Any ideas? https://github.com/djcb/mu/issues/1187
liuz has joined #nixos
<Unode> symphorien: thanks I'll give that a try
coot has joined #nixos
ebzzry has quit [Ping timeout: 256 seconds]
hotfuzz has joined #nixos
goibhniu has quit [Ping timeout: 256 seconds]
<srhb> TonyTheLion: No. Why do you think you want one?
orivej has joined #nixos
<srhb> TonyTheLion: (At least, none that I know of. But all the individual components log by themselves.)
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
aanderse_ has quit [Read error: Connection reset by peer]
aanderse_ has joined #nixos
<markus1189> rardiol1: Thanks for the hint, via strace I found out that it needs the pulse audio library. Sound works now
sigmundv has quit [Ping timeout: 268 seconds]
stepcut_ has joined #nixos
stepcut has quit [Read error: Connection reset by peer]
rogue_koder has quit [Remote host closed the connection]
oida has quit [Quit: WeeChat 1.6]
<gchristensen> hmm so my hacky mixing of terraform and nixops is working...
hellrazo1 has joined #nixos
rogue_koder has joined #nixos
jensens has quit [Ping timeout: 252 seconds]
jtojnar has quit [Ping timeout: 248 seconds]
digitus has joined #nixos
<samueldr> make it not-hacky now :D
<exec_> theoritically for an application to be compiled every file would need to be linked as an object file in ld, im not sure how -lc works in ld yet as libc does not have any object files as far as i can tell
<TonyTheLion> shrb: I want a log file to see why the hydra-server.service doesn't seem to start
<exec_> nor can i find any related to libc in /lib
<exec_> but it does accept .so aswell but including libc.so.6 directly doesnt work
lonokhov has quit [Quit: Lost terminal]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 3 new commits to master: https://git.io/vNhQd
<NixOS_GitHub> nix/master 55012ec Eelco Dolstra: Tweak progress bar message...
<NixOS_GitHub> nix/master 2175eee Eelco Dolstra: Fix segfault using non-binary cache stores as substituters
<NixOS_GitHub> nix/master bb1d046 Eelco Dolstra: Allow substituters to be marked as trusted...
NixOS_GitHub has left #nixos [#nixos]
ryanartecona has quit [Quit: ryanartecona]
arjen-jonathan has quit [Ping timeout: 248 seconds]
lesce has joined #nixos
xcmw has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] dtzWill opened pull request #1843: release-common: use shell from nixpkgs, provide fallback for compat (master...fix/busybox-sandbox-shell-attribute) https://git.io/vNh7S
NixOS_GitHub has left #nixos [#nixos]
nico202 has quit [Ping timeout: 256 seconds]
randomstrangerb has quit [Ping timeout: 256 seconds]
xcmw has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] symphorien opened pull request #34631: vimPlugins.targets-vim: init at 2017-12-03 (master...targets-vim) https://git.io/vNh5T
NixOS_GitHub has left #nixos [#nixos]
randomstrangerb has joined #nixos
<srhb> Hm, remind me, is there something similar to nix-build -E in nix 2.0? 'with import <nixpkgs> {}; hello' does not appear to be interpreted as an installable
Synthetica has joined #nixos
<srhb> I suppose the nix-build interface is still there.
<symphorien> nixos-rebuild build-vm has a read-only store; is there a simple way to get a nixos-vm with a fully functionnal store ?
<srhb> symphorien: Isn't that the host system store? So my guess is "no"
<srhb> That sounds dangerous at least.
<symphorien> I mean with an overlayfs or whatever
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] periklis opened pull request #34632: nodejs-9_x: update version to 9.5.0 (master...update-nodejs-9_x) https://git.io/vNh5N
NixOS_GitHub has left #nixos [#nixos]
<srhb> I think you'll have to roll your own vm for that, but I think the qemu things can do it.
qewzee has quit [Quit: ZNC 1.6.5 - http://znc.in]
<srhb> Of course you'd have to cannibalize most of the existing machinery from build-vm, sadly.
yn^ has joined #nixos
yn^ has quit [Max SendQ exceeded]
<symphorien> mmmmh ok
lesce has quit [Quit: Textual IRC Client: www.textualapp.com]
yn^ has joined #nixos
yn^ has quit [Max SendQ exceeded]
yn^ has joined #nixos
yn^ has quit [Max SendQ exceeded]
yn^ has joined #nixos
yn^ has quit [Max SendQ exceeded]
yn^ has joined #nixos
yn^ has quit [Max SendQ exceeded]
yn^ has joined #nixos
yn^ has quit [Max SendQ exceeded]
liuz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
michaelpj_ has joined #nixos
tmaekawa has joined #nixos
<gchristensen> symphorien: that requires a bit more budget :P
erictapen has quit [Remote host closed the connection]
kreetx has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vNhF3
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 39f62c7 Shea Levy: haxl: Disable non-deterministic tests
ryanartecona has joined #nixos
stephenjudkins has joined #nixos
ambro718 has joined #nixos
fuyuuri has left #nixos ["WeeChat 2.0.1"]
arjen-jonathan has joined #nixos
chisui has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] periklis closed pull request #34632: nodejs-9_x: update version to 9.5.0 (master...update-nodejs-9_x) https://git.io/vNh5N
NixOS_GitHub has left #nixos [#nixos]
raynold has joined #nixos
liuz has joined #nixos
\\\\\\\\\\\ has joined #nixos
randomstrangerb has quit [Ping timeout: 256 seconds]
randomstrangerb has joined #nixos
<raynold> Ahh it's a wonderful day
<TonyTheLion> it is :)
coot has quit [Quit: coot]
<genesis> and now u can play assaultcube :D
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] magnetophon opened pull request #34633: mu: 0.9.18 -> 1.0 (master...mu) https://git.io/vNhN5
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #34634: grv: pass in version, fix "grv -version" to at least include that (master...fix/grv-version) https://git.io/vNhAe
yann-kaelig has joined #nixos
periklis has quit [Remote host closed the connection]
jensens has joined #nixos
arjen-jonathan has quit [Ping timeout: 260 seconds]
periklis has joined #nixos
jtojnar has joined #nixos
hellrazo1 has quit [Ping timeout: 248 seconds]
Ivanych has joined #nixos
liuz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] zauberpony opened pull request #34635: hcloud: init at 1.3.0 (master...hcloud-init-v1.3.0) https://git.io/vNhx4
NixOS_GitHub has left #nixos [#nixos]
<ambro718> How to use stdenv.lib.cleanSourceFilter to ignore specific top-level directories in the source?
<ambro718> I see that the path passed to the filter is absolute, that is a problem
<ambro718> I don't want to ignore all folders with those names, only top-level folders in the source
periklis has quit [Ping timeout: 240 seconds]
magnetophon has quit [Remote host closed the connection]
xcmw has joined #nixos
xcmw has quit [Client Quit]
xcmw has joined #nixos
<TonyTheLion> > hydra-server[1448]: mkdir /var/lib/hydra/www: Permission denied
<TonyTheLion> anyone know how I get the service to have permission to mkdir?
<TonyTheLion> or do I make those dirs myself?
<clever> TonyTheLion: what user owns /var/lib/hydra/ ?
<TonyTheLion> the hydra user
<clever> and what user is hydra-server running as?
<TonyTheLion> hmmm I am unsure
<TonyTheLion> I suspect root, but I'm unsure how to determine this
<clever> how did you configure hydra?
jensens has quit [Ping timeout: 240 seconds]
<TonyTheLion> there's no specific option that status what user it should run as
<clever> how did you configure hydra?
<TonyTheLion> I have 'nix.trustedUsers = [ "hydra" ]'
<ambro718> how to check if a list contains some value?
<clever> TonyTheLion: that option has no effect on the current problem
coot has joined #nixos
<TonyTheLion> clever: I don't know what you mean then
<clever> TonyTheLion: what did you do to enable hydra and install it?
GiGa has joined #nixos
GiGa has quit [Changing host]
GiGa has joined #nixos
<TonyTheLion> I put a load of options (most of them copied from here: https://gist.github.com/LnL7/fcd5c0bf772f2165a1ac40be6617d2f4#file-hydra-configuration-nix) in my /etc/nixos/configuration.nix
<TonyTheLion> then I did 'nixos-rebuild switch' to activate
<TonyTheLion> the bits I didn't configure is the binary cache stuff
<GiGa> Is anyone else on unstable finding spellcheck doesn't work with libreoffice?
<GiGa> I thought I saw an issue about it
Guanin has joined #nixos
freeman42x[NixOS has joined #nixos
<clever> TonyTheLion: can you pastebin your current configuration.nix file?
<TonyTheLion> sure
tmaekawa has quit [Quit: tmaekawa]
fragamus has joined #nixos
<TonyTheLion> clever: https://www.paste.org/90579
<clever> TonyTheLion: nothing looks wrong, but why is the hydra user in the wheel group?
<TonyTheLion> honestly, cause I was hoping that would fix the permission issues
<TonyTheLion> sorry I'm a hydra noob
<clever> hydra doesnt use sudo, so the wheel group makes no difference
swills has quit [Read error: No route to host]
Guest27207 has quit [Ping timeout: 268 seconds]
<TonyTheLion> clever: ah good to know
<TonyTheLion> I'll remove it right now
<clever> id just manually make the directory and give hydra ownership of it
<TonyTheLion> ok thanks
<TonyTheLion> :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 pushed 4 new commits to release-17.09: https://git.io/vNhhj
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/release-17.09 bbeec79 Dmitry Bushev: Make haskell-modules backward compatible
<NixOS_GitHub> nixpkgs/release-17.09 df8e9d0 Dmitry Bushev: Replace ellipsis with null argument
<NixOS_GitHub> nixpkgs/release-17.09 817a2dd Dmitry Bushev: Add comments
stephenjudkins has quit [Remote host closed the connection]
<dhess> clever: have you done Hydra pulls from private git/GitHub repos?
<clever> dhess: yep
<dhess> clever: which user does the pull?
stephenjudkins has joined #nixos
<clever> dhess: just `hydra`
<clever> [root@nas:~]# sudo -u hydra -i
<dhess> ok so just put the ssh key in ~hydra/.ssh then?
<clever> dhess: change to this user, then ssh-keygen, no passphrase, and give it access on github
<dhess> right
<dhess> cool thank you!
<clever> then use ssh based URL's in the hydra inputs
<dhess> eyah
<dhess> yeah
<dhess> awesome
<clever> but that only works for the eval inputs
<clever> the stuff nix downloads isnt covered
<dhess> yeah no problem
<LnL> I thought it was hydra-queueu-runner that pulls the inputs
<clever> that process only gets involved after the eval is finished
<LnL> pretty sure I configured my ssh-key there
<kini> clever: re: your advice about $NIX_REMOTE on friday, it seems I do have it set, but `nix-shell --pure` resets it!
<clever> and there is no nix left by then
<kini> is that intended behavior?
detran has joined #nixos
<clever> kini: yeah, --pure wipes all env vars
<hyper_ch> clever: will you be online next weekend?
<clever> hyper_ch: maybe
<hyper_ch> clever: good, I'll migrate another server then to nixos and zfs and I need you to hold my hand :)
<kini> this seems odd... if $NIX_REMOTE is required to be set to "daemon" in order to perform store operations but `nix-shell --pure` wipes all env vars, then what is `nix-shell --pure` useful for?
<kini> well, I suppose "anything as long as it doesn't perform store operations"
<clever> kini: when things like your original $PATH leak things that cause breakage
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/nix-2.0 294a4e6 Eelco Dolstra: Use nixUnstable as the default temporarily
<NixOS_GitHub> [nixpkgs] edolstra created nix-2.0 (+3 new commits): https://git.io/vNhjy
<NixOS_GitHub> nixpkgs/nix-2.0 60cb230 Eelco Dolstra: Add a "nixos-enter" command...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/nix-2.0 e88f289 Eelco Dolstra: nixos-install: Make compatible with Nix 2.0...
<dhess> hyper_ch: now that that ZFS crypto patch is merged, is it expected that the on-disk encryption format is now baked and won't change?
<kini> clever: sure, but I assumed that certain nix configuration variables would be preserved
<Guanin> Hi, I know that I asked it a while ago already: Is it possible to use pam_unix.so (or ANY other PAM module) to authenticate as a different user? I want to unify user management, but struggle setting up ldap (as I've never worked with it) and consider it a bit too much for my use case
<LnL> dhess: clever: n/m I was thinking of the builder keys
<dhess> LnL: ok thanks for clarifying
<hyper_ch> dhess: it won't change until next format change :)
<dhess> hyper_ch: but that will be handled gracefully I assume
michaelpj_ has quit [Read error: Connection reset by peer]
<hyper_ch> dhess: no idea... I'm a zfs novice
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<LnL> was a little confused why the queue-runner would pull the inputs myself :)
<dhess> ok. In the past format changes have been done on the fly or at least backward-compatible, as far as I know
xcmw has joined #nixos
<hyper_ch> but here a completely new feature set was introduced and it had some issues that needed addressing
<dhess> yes of course, that's understandable
<hyper_ch> you can still access old format datasets
<dhess> which is why I haven't touched it yet :)
<hyper_ch> you can even zfs send old@now | zfs receive new
<kini> guess I can work around it by setting $NIX_REMOTE again in ~/.bashrc ...
<hyper_ch> or mount as ro
<clever> kini: nix-shell might block .bashrc, because its not pure
<kini> it doesn't seem to
FRidh2 has joined #nixos
<clever> kini: also, why are you using nix inside the nix shell?, the nix-shell should just do everything you need in one step
<hyper_ch> and when that is merged there's a third option for zfs - legacy
<kini> debugging, of course :)
TheAppleMan has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<exec_> how do i obtain my own github norice bot
<exec_> notice*
<exec_> like "‎[04:59] ‎[Notice]‎ -NixOS_GitHub to #nixos- nixpkgs/nix-2.0 e88f289 Eelco Dolstra: nixos-install: Make compatible with Nix 2.0..."
michaelpj_ has joined #nixos
<hyper_ch> (exec: usually advanced automagic helps)
mrkgnao has quit [Ping timeout: 268 seconds]
<gchristensen> exec_: it is in the webhook configs I think
<gchristensen> on your github repo
<exec_> how would i set it up
<gchristensen> I dunno, you'll have to go poke around / search the internet
<hyper_ch> ah, you can send it to some url
swills has joined #nixos
<gchristensen> like its a built-in integration GitHub does for you
<hyper_ch> and I guess supybot does already listen to according post messages
<gchristensen> you don't even need to setup your own irc thing
<hyper_ch> gchristensen: I just checked.. it only makes a post send to a URL... either in http form or json
detran has quit [Ping timeout: 240 seconds]
<gchristensen> you're really forcing my hand here
<hyper_ch> so something needs to listen
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] edolstra opened pull request #34636: [WIP] Switch to Nix 2.0 (master...nix-2.0) https://git.io/vNjvJ
NixOS_GitHub has left #nixos [#nixos]
<gchristensen> you're not paying attention to what I'm saying
<hyper_ch> ah, it's not webhooks but Integration & services
<gchristensen> ah
<hyper_ch> there's irc in the dropdown and directly a freenode example
jensens has joined #nixos
<hyper_ch> exec_: repo -> settings -> integration & services -> irc dropdown
<dtz> :D
<markus1189> What is the best way to have multiple service instances? For example if I want to have two different apache-kafka services running. Using containers from nixos? Imperative? Declarative
<dtz> ~~~it's happening~~~
<gchristensen> markus1189: I use declarative nixos containers
<markus1189> gchristensen: okay sounds good, how do you handle their stateful data?
<gchristensen> I don't have a good answer there
alexteves_ has quit [Ping timeout: 240 seconds]
<markus1189> gchristensen: Okay, so I guess to nuke it I would just use 'nixos-container destroy foo' as per manual
ixxie has joined #nixos
<chisui> How do I tell cabal2nix what ghc version the resulting package depends on? I'm pretty new to nix, so please be gentle :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #34629: Wrapped ${mailbox.name} in "s to allow for space in mailbox names. (master...patch-2) https://git.io/vNhi5
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to release-17.09: https://git.io/vNjvu
<NixOS_GitHub> nixpkgs/release-17.09 5e35f55 Philipp Dörfler: Wrapped ${mailbox.name} in "s to allow for space in mailbox names....
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lo1tuma opened pull request #34637: jenkins: 2.103 -> 2.105 (master...jenkins-2.105) https://git.io/vNjva
NixOS_GitHub has left #nixos [#nixos]
fendor has quit [Ping timeout: 264 seconds]
jensens has quit [Ping timeout: 256 seconds]
kitemikaze has joined #nixos
hakujin has quit [Ping timeout: 248 seconds]
<clever> chisui: cabal2nix doesnt care, and cant control that
<clever> chisui: it depends on which haskellPackages set you use to load the resulting expression
chaker has joined #nixos
<clever> nix-repl> haskell.packages.ghc822.callPackage
<clever> chisui: this would use 8.2.2
<chisui> ahh, ok I begin to understand. Thanks
GiGa has quit [Quit: Leaving]
griff_ has quit [Quit: griff_]
<ixxie> how do I search for packages in a memory constrained environment again?
<clever> ixxie: i prefer tab-completion inside nix-repl
<clever> ixxie: just run nix-repl '<nixpkgs>' then type in pkgs.<tab><tab>
<clever> and it helps if you know what the package name starts with
xcmw has quit [Ping timeout: 276 seconds]
<ixxie> taktoa: that is not so quickly updated
<ixxie> thanks clever
* exec_ attempts to finally gitcommit my repo
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] copumpkin pushed 1 new commit to release-17.09: https://git.io/vNjfj
<NixOS_GitHub> nixpkgs/release-17.09 7661489 jammerful: audiofile: Update Patch File Location...
NixOS_GitHub has left #nixos [#nixos]
<dhess> chisui: you can do cabal2nix --compiler=ghc-8.0.2 or whatever so that, if the cabal file has version-dependent dependencies, they will be captured in the resulting derivation
<clever> ah, didnt know about that part
<dhess> I only found out about that myself a few days ago when I was getting bitten by version-dependent stuff (in my own package!)
<dhess> but of course as clever says, you then have to make sure you build it with the correct version of GHC, and that is outside the scope of cabal2nix
<dhess> speaking of cabal
<dhess> from a Nix perspective is it a bad idea to do Hackage "revisions" of a package to bump PVPs, versus releasing a new version with just the PVP bumps?
<dhess> seems like it could bite you because Nix won't catch the override from Hackage
<chisui> dhess: I tried --compiler ghc-8.2.2 but my base 4.10 dependency wasn't picked up
<clever> chisui: and cabal2nix cant change what versions you actually get
<clever> chisui: all the versions are set in nixpkgs, and dont change
<chaker> Hey, I am using VirtualBox to test some deployment locally. And found that the latest VB image is using 16.09. I checked the list by running this command "aws s3 ls s3://nix-releases/nixos/virtualbox-nixops-images/". Is that on purpose? Also who can update to later version?
<chaker> s/update to later version/upload latests versions/
<ambro718> how to allow network access during build?
rogue_koder has quit [Remote host closed the connection]
<clever> chisui: hydra should still be building them
<clever> ambro718: why do you want network access?
Intensity has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
alex`` has quit [Ping timeout: 276 seconds]
<ambro718> clever: some software I'm trying to run/build has scala code and used sbt
<ambro718> uses
<dhess> chisui: all that does is add (version-independent) dependencies that are tied to the compiler version in the Cabal file. For example, in my hpio package, when I build with ghc < 8, I need to include fail and semigroups. See https://github.com/quixoftic/hpio/blob/d814b14528ba2be4b24aaeea249909db529d4892/nix/pkgs/hpio.nix (GHC > 8) vs. https://github.com/quixoftic/hpio/blob/d814b14528ba2be4b24aaeea249909db529d4892/nix/pkgs/hpio-ghc784.nix
<dhess> (ghc 7.8.4) for example
<ambro718> I don't care about it being wrong, just need it to run ASAP
<dhess> there are no versions in there, just slightly different dependencies passed to the derivation
<clever> ambro718: and you cant pre-download the files using fetchurl, then point sbt at that?
<ambro718> clever: I have no idea if it's possible or how to do it, first time I heard of sbt
alexteves has joined #nixos
<clever> ambro718: ive done a little bit with sbt, but ive found it to be a bit broken in nix right now, under darwin, sbt doesnt even include java, so it fails, with exit code 0, lol
klntsky has joined #nixos
rogue_koder has joined #nixos
<ambro718> this thing I'm trying to build comes with a sbt jar which starts running but fails due to no network access
<ambro718> can't just I build it with network access?
<clever> ambro718: if you turn nix sandboxing off globally, then the network will be enabled
<dhess> chisui: if you need a particular package version passed to another Haskell package that isn't captured by Nixpkgs's haskellPackages, you will need to override it in an overlay or similar.
fragamus has joined #nixos
<chisui> dhess: maybe I don't quite get Nix yet but ghc822, which provides the base package I need, is in nixpgks. Why can't I express that dependency in the nix file?
<dhess> chisui: you mean as in base-4.10 ?
<chisui> dhess: in any way. It would be enough to say that this package has to be built using the provided ghc or the base has to be version 4.10 or higher
<dhess> chisui: Nix can't do the >= 4.10 part.
<chisui> I currently have the nix file created by cabal2nix and build it using nix-build -E 'haskell.packages.ghc822.callPackage ./default.nix {}'
<chisui> I ment nix-build -E '(import <nixpkgs> {}).haskell.packages.ghc822.callPackage ./default.nix {}'
<dhess> it will however obey the package's Cabal file, so if the Cabal file says base >= 4.10 and the Nixpkgs you're using to build it doesn't have that version, it will fail to build, as you would expect
<dhess> (unless you 'doJailbreak' on it)
<chisui> ok
<chisui> Thanks
<dhess> chisui: Think of it like this -- Nix doesn't do the job that Cabal is supposed to do, i.e., to specify exactly which packages versions are needed to satisfy the build requirements. What it does is to tell Cabal, these are the packages I know about
<dhess> basically it is a replacement for the package set generated by "cabal update"
<dhess> chisui: if the Haskell package called "base" in Nixpkgs is not the right version for your package, you can either a) re-define "base" in an overlay to be the version you want, or b) create a new Nix package named "base_4_10" that points to the version you want, and then when you call 'callPackage' from Nix on your package, you can do something like 'callPackage { base = base_4_10 }'
chaker has quit [Ping timeout: 260 seconds]
<dhess> chisui: you have used Stack?
<clever> dhess: base cant be changed with overlays, due to how its built
<dhess> clever: yeah I was afraid of that but I didn't want to complicate things ;)
<clever> there are a few core packages like that, that are locked in
<dhess> clever: I had to fork nixpkgs when I was trying to get GHC working on ARM because of that
simendsjo has joined #nixos
philipwhite has joined #nixos
<clever> dhess: i was just thinking, how could i apply an override to every haskell packages at once
<dhess> I do believe though that, in an overlay, with some work, you can create a new GHC version that has the core packages you want
<clever> dhess: then i realized, if i make an override to the package "overrides", it might work, lol
<dhess> it's not easy but it's do-able
<phdoerfler> FRidh: Thanks for merging my PR so quickly! How long does it take until a `nixos-rebuild switch --upgrade` will pick up these changes in stable?
<dhess> clever: hehehe
<clever> dhess: if i use an override to create pkgs.overrides, then the callPackage that loads every haskell packages would pass it in
<clever> dhess: which will impact the upper layers, that are used to build ghc
<dhess> well that would be a nice trick
<clever> which will control base, in every package set
<clever> but youll need to rebuild ghc 2 or 3 times
<dhess> yeah that is unavoidable
<clever> it is avoidable :P
<dhess> same with creating your own ghc attribute
<clever> i have gotten it down to 1 ghc rebuild
<clever> but then you need 2 nixpkgs branches
rogue_koder has quit [Remote host closed the connection]
ixxie has quit [Quit: Lost terminal]
Myrl-saki has quit [Ping timeout: 256 seconds]
mojjo has joined #nixos
<clever> dhess: this uses the un-modified ghc in one nixpkgs (where you may override base, i think), to create a 2nd ghc, and then builds a haskellPackages around it
<clever> my original use for that was to edit generic-builder.nix
<dhess> that is crazy
rogue_koder has joined #nixos
liuz has joined #nixos
<mojjo> is there a nixos option that links a nix-path to an aribtrary directory, in the way 'environment.etc..' does for the /etc directory. Particularily I'd like to include an autorandr configuration to a nixos config, the tool expects it to be at ~/.config/autorandr.. and does not seem to be configured to look for it elsewhere..
<chisui> dhess: yeah I have stack, but the docu said it only uses nix for non haskell dependencies when using the --nix flag, so I thought I might want to use Nix all the way
\\\\\\\\\\\ has left #nixos ["WeeChat 2.0.1"]
xcmw has joined #nixos
<clever> chisui: there is also stack2nix, which will scan a stack file, and generate a nix expression that returns a custom haskellPackages
<bsima> NixOS comes with V4L2 by default, yes?
<chisui> clever: that ... seems a bit overkill for someone who essentially creates his first real nix project :D
<clever> chisui: where every library is built to match the version your stack and cabal files listed
<chisui> clever: my response was to the whole override story. I will try stack2nix next.
<dhess> chisui: right, and I encourage you to stick with it. Anyway the reason I mentioned Stack is that Nix is similar re: the Haskell packages, so it helps to think of it this way. Stack gives you a package set to work with, says "these are the versions I provide," and gives you a way to say, "for this particular package, I want you to use this version." Nix is similar in that way
aborsu has joined #nixos
pie__ has joined #nixos
<dhess> there is also stackage2nix FYI
<dhess> I have not used either one directly.
<dhess> I am using the nixpkgs-stackage overlay that is produced by stackage2nix, though. It works pretty well, with a few issues.
<phdoerfler> mojjo: As far as I know there is not, but I am no expert. There is a related discussion "user nix" which you can search for on the web that will give you some insight into this, though
pie_ has quit [Ping timeout: 240 seconds]
<gchristensen> ikwildrpepper: are you still MIA?
<pie__> clever, any idea why sometimes i have to run nix-collect-garbage after changing a nix script to get it to rebuild witht the right version of things?
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/5e35f55571f (from 57 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [Client Quit]
<pie__> not not 100% sure thats whats happening but it feels like it rebuilds with the wrong version if i dont
<pie__> i had some issues with the rstudio stuff yesterday with regards to this
<clever> pie__: sounds like you have sandboxing turned off, and an impurity is doing nasty things
<clever> pie__: if you keep sandboxing on, such things just break, and then you cant do things wrong
<pie__> how do i check? i never turned it off
<clever> its off by default
<gchristensen> nix-shell -p nix-info --run nix-info
<clever> pie__: set nix.useSandbox = true; in configiration.nix
<pie__> oh
<LnL> u
<pie__> clever, why is it off by default :|
<clever> pie__: its also a small performance hit
<LnL> it slows down builds
aborsu has quit [Remote host closed the connection]
<pie__> ah.
<pie__> well its definitely not slower than waiting an hour for a build to fail :P
aborsu has joined #nixos
<clever> or wasting hours rebuilding things that had impurities in them
<gchristensen> domenkozar: based on your recent activity, can you take a gander at something for me? :)
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pie__> clever, but i dont see how impurities could have been an issue...
<pie__> theres nothing it would have been getting from outside the store...
<clever> pie__: if you try to access a file like /home/foo/bar inside a build script, it will just work
<clever> but the file wont be hashed
<clever> so nix wont rebuild things when the file changes
<pie__> so....im guessing when we did the <unstable/stuff> paths that was it?
<clever> hard to say without reproducing the problem first
FRidh2 has quit [Quit: Konversation terminated!]
<pie__> hm.
<pie__> well hopefuly this fixes it down the line
<pie__> nix needs a "figure out why my world is broken" mode :P
jtojnar has quit [Ping timeout: 240 seconds]
ryanartecona has joined #nixos
<pie__> anyone use alacritty?
aborsu has quit [Quit: aborsu]
<dhess> pie__: are you doing an "import ./." or "src = ./." type thing in this derivation?
<dhess> actually never mind the import bit, but are you doing the "src = ./." bit?
<clever> that would intern and hash the source in the store and still be safe
Drakonis has joined #nixos
dbe_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bendlas closed pull request #34118: pixie: 1356 -> 1367 (master...update-pixie) https://git.io/vN20e
NixOS_GitHub has left #nixos [#nixos]
<pie__> for the record i am totally uncertain what the issue was, or if there even was an issue, or i dont know https://pastebin.com/raw/dkFBhhxk
<pie__> the issue was with rstudio
<gchristensen> btw clever some extra magic for your kexec: ssh -o ServerAliveInterval=1 "root@$1" /bin/sh -c '"cd /; ./kexec_nixos"'
rardiol1 has left #nixos [#nixos]
<clever> gchristensen: ah, and then ssh fails faster?
<gchristensen> yeah
<clever> nice
<clever> ive just been doing <enter>~.
<clever> thats explained in the ssh man page
<gchristensen> yeah, same, but that is hard to automate :P
<clever> yeah
jtojnar has joined #nixos
aborsu has joined #nixos
<Baughn> Is there an expression anywhere that'll give me a VM with the installer image?
* Baughn is trying to write a test for bcache/bcachefs.
<clever> Baughn: one min
aborsu has quit [Client Quit]
<clever> Baughn: if you build the qemu_test attribute, and then run qemu_test1, it will boot the installer from a ramdisk
aborsu has joined #nixos
<Baughn> Lovely. :)
<clever> configuration.nix in that directory defines what is in the ramdisk
<clever> and it includes the justdoit script that installs nixos
jtojnar has quit [Ping timeout: 256 seconds]
<clever> tweak that to use bcache, and your basically done
<sphalerite> gchristensen: clever : I think you could also do something like `ssh "root@$1" /bin/sh -c "'cd /; ( ./kexec_nixos & ) &'"` to make it exit normally (although it's a tiny bit race-condition-y)
<gchristensen> ah, nice!
<clever> Baughn: also, qemu_test2 will then boot the machine with the same hdd, but without the install media
<clever> Baughn: so you can verify the install works
MP2E has joined #nixos
<clever> sphalerite: nohup or screen can be used to disconnect things
<gchristensen> seanparsons: may I PM?
rauno has joined #nixos
<sphalerite> gchristensen: on the other hand, it won't catch any errors if kexec_nixos fails
<sphalerite> clever: yeah but why do that when you can double-fork in the shell too :p
<clever> sphalerite: :D
<clever> sphalerite: gchristensen: the kexec_nixos script will also modify the initrd, to embed your ssh key into things, have you been using that?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] aborsu opened pull request #34639: nextcloud: 12.0.4 -> 12.0.5 (master...nextcloud) https://git.io/vNjqX
NixOS_GitHub has left #nixos [#nixos]
<clever> you can use /ssh_pubkey to maintain access, without re-generating a new initrd for each user
knupfer has quit [Remote host closed the connection]
<sphalerite> I haven't been using kexec_nixos at all recently, mostly just netbooting
knupfer has joined #nixos
<gchristensen> clever: I haven't, I forgot about that. thanks!
vaninwagen has joined #nixos
Neo-- has quit [Ping timeout: 276 seconds]
freeman42x[NixOS has quit [Quit: Leaving]
<gchristensen> right, thanks!
<Baughn> Works. I may need to rip out a lot of this, but it works.
tgunb has joined #nixos
<tgunb> does someone here use cmus? i don't get any gui/the cli doesn't print anything
liuz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
coot has quit [Quit: coot]
fragamus has joined #nixos
catch22 has joined #nixos
liuz has joined #nixos
Ivanych has quit [Ping timeout: 256 seconds]
asuryawanshi has quit [Ping timeout: 268 seconds]
Ubercow has joined #nixos
liuz has quit [Ping timeout: 248 seconds]
aborsu has quit [Quit: aborsu]
michaelpj_ has quit [Ping timeout: 240 seconds]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] knedlsepp opened pull request #34640: graphviz: Explicitly specify libltdl directories (master...reduce-graphviz-impurity) https://git.io/vNjYX
NixOS_GitHub has left #nixos [#nixos]
hotfuzz_ has joined #nixos
oida has joined #nixos
hotfuzz has quit [Ping timeout: 240 seconds]
niklob has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/staging c08e4b9 Eelco Dolstra: boost: Don't store absolute path in #line...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] edolstra pushed 1 new commit to staging: https://git.io/vNjOz
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 pushed 3 new commits to master: https://git.io/vNjO2
<NixOS_GitHub> nixpkgs/master d5ccec3 Daiderd Jordan: libgcrypt: fix darwin build
<NixOS_GitHub> nixpkgs/master d3b3827 Daiderd Jordan: libksba: fix darwin build
<NixOS_GitHub> nixpkgs/master 6f86808 Daiderd Jordan: libassuan: fix darwin build
NixOS_GitHub has left #nixos [#nixos]
niklob has quit [Remote host closed the connection]
niklob has joined #nixos
<pie__> ok i have a weird problem
<pie__> nix-env -viA unstabl.alacritty gives me nix-env -q | grep alacritty: alacritty-unstable-2017-12-29
<pie__> nevermind user error
griff_ has joined #nixos
niklob has quit [Remote host closed the connection]
xcmw has joined #nixos
niklob has joined #nixos
<phdoerfler> FRidh: nvm, I discovered there is a bot for that :)
niklob has quit [Remote host closed the connection]
niklob has joined #nixos
niklob has quit [Remote host closed the connection]
hakujin has joined #nixos
niklob has joined #nixos
simendsjo has quit [Ping timeout: 260 seconds]
jtojnar has joined #nixos
niklob has quit [Remote host closed the connection]
niklob has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
niklob has quit [Remote host closed the connection]
jtojnar has quit [Read error: Connection reset by peer]
hakujin has quit [Ping timeout: 240 seconds]
hakujin has joined #nixos
vidbina has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] edolstra pushed 3 new commits to nix-2.0: https://git.io/vNj3h
<NixOS_GitHub> nixpkgs/nix-2.0 1346923 Eelco Dolstra: modprobe activation: Order after specialfs...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/nix-2.0 f9e64db Eelco Dolstra: nixos-enter: Don't mount special filesystems...
<NixOS_GitHub> nixpkgs/nix-2.0 cc0caac Eelco Dolstra: Move creation of /root to the activation script...
stepcut_ has quit [Remote host closed the connection]
jtojnar has joined #nixos
rogue_koder has quit [Remote host closed the connection]
<seanparsons> gchristensen: Sure.
vaninwagen has quit [Ping timeout: 256 seconds]
ma27 has quit [Ping timeout: 256 seconds]
arianvp has joined #nixos
<arianvp> yo gchristensen that terraform stuff looks cool :)
<gchristensen> :)
<arianvp> though dont nixops and terraform serve the same purpose?
<arianvp> :P
<srhb> Ideally I feel like terraform could take over a lot of the "provision infrastructure" that nixops ad-hocs a lot of.
<gchristensen> nope!
<arianvp> Also, Hetzner uploaded NixOS images for us :)
<arianvp> I asked nicely
<srhb> ooo.
<gchristensen> arianvp: "Configuration management tools install and manage software on a machine that already exists. Terraform is not a configuration management tool, and it allows existing tooling to focus on their strengths: bootstrapping and initializing resources."
<arianvp> Yeh but I mean nixops also seems to be handling cloud resources like firewalls etc
<arianvp> though I'd favorable see that being moved out of nixops :P
<gchristensen> yeah but not very well
<genesis> i wonder if i could write an ebuild to nix using nix derivation :o)
<arianvp> genesis: that sounds do-able
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rnhmjoj opened pull request #34641: Add monero service (master...monero) https://git.io/vNjZZ
NixOS_GitHub has left #nixos [#nixos]
<pie__> im trying to build a newer version of alacritty due to some fixes, unstable is too old,
<pie__> i added this to my config.nix: https://pastebin.com/88tcf9sd
<pie__> but im getting some rust build failure stuff:
<pie__> error: failed to load source for a dependency on `serde_json`
<pie__> the message changes sometimes so im guessing theres a race on which specific package it fails on
<pie__> for example cgmath
Drakonis has quit [Read error: Connection reset by peer]
kreetx has quit [Ping timeout: 265 seconds]
<Unode> hi all, how can I run an interactive nix-build in a stepwise fashion? I need to debug something I'm having a hard time reproducing outside the build environment/sandbox.
rogue_koder has joined #nixos
stepcut has joined #nixos
kle_ has joined #nixos
<srhb> Unode: replace nix-build with nix-shell in your command
<srhb> Unode: Then you can step through each of the phases.
<srhb> Unode: You don't get the sandbox though.
chisui has quit [Ping timeout: 260 seconds]
<pie__> i usually do it with nix-shell -E
fiatjaf has joined #nixos
<srhb> pie__: Oh? How so?
<Unode> srhb: ok lets see if that's enough even without the sandbox
<pie__> srhb, alternatively, im remembering wronf
<pie__> srhb, i was having trouble remembering how ot do this earlier actually xD so how does one do this again?
<pie__> with nix-shell
<srhb> If you were using nix-build path/to/my/nixpkgs -A myPackage
<srhb> You just replace nix-build with nix-shell
<srhb> The rest is the same
* pie__ tries to find it in his history
kle_ has quit [Client Quit]
<srhb> Maybe you're using -E 'with import ... callPackage mything.nix {}'
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] y0no opened pull request #34642: patator: init at 0.7 (master...add_patator) https://git.io/vNjcL
NixOS_GitHub has left #nixos [#nixos]
<srhb> But in that case you were probably doing the same thing with nix-build too :)
<srhb> And so the answer is still s/build/shell
<srhb> (But I'm just guessing)
astrofog has joined #nixos
<pie__> ok I cant find it. im 90% sure i was doing it with one of the nix-shell flags :P
<fiatjaf> am I able to run install haskell stuff without using stack, just nix?
<fiatjaf> is it easier?
<srhb> fiatjaf: Yes, and that's a matter of taste (but the yes)
<srhb> Er, but yes*
<srhb> fiatjaf: You get to do cool stuff like nix-shell -p 'haskellPackages.ghcWithPackages (ps: with ps; [ lens aeson ])' --run ghci :-)
<srhb> fiatjaf: Instant ghci with lens and aeson, no compiling necessary!
<pie__> dont you need to pass ghci to packages as well?
* pie__ scratches head
hiratara has quit [Ping timeout: 276 seconds]
<srhb> pie: Yes! Thanks.
<pie__> couldve sworn i needed to do that
<pie__> ah ok
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/fc2f32394cf (from 10 hours ago, history: https://channels.nix.gsc.io/nixos-17.09)
nix-gsc-io`bot has quit [Client Quit]
<srhb> Wait, no, isn't that in ghcWithPackages (of course)
<srhb> It belongs to ghc after all
<srhb> And it needs to care about the package conf
<srhb> You're probably thinking of cabal-install?
<srhb> Or maybe ghcid or something :)
<pie__> nah maybe i just mixed stuff up when i was doing it
* srhb nods
<pie__> i expected ghci to be part of ghc but something didnt work so i added it to the package list
hiratara has joined #nixos
<srhb> Quirky. The whole with-packages thing means that ghci will be wrapped with the relevant package config
<srhb> export NIX_GHCPKG='/nix/store/ggk75sabc3m0k39iw1dvvqj9ixcgwykw-ghc-8.2.2-with-packages/bin/ghc-pkg' -- for instance
<pie__> well, im a very empirical person because i dont know better and theres usually a lot of bad trial and error involved :P
<srhb> :P
taktoa has quit [Remote host closed the connection]
<pie__> mostly error
<srhb> Well, it would be insane to keep going after you succeed, right? ... right?
<srhb> >_>
<pie__> xD
<pie__> so uhh, you know anything about this rust stuff?
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/76614894f34 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
nix-gsc-io`bot has quit [Client Quit]
<srhb> pie__: Not very much I'm afraid. But it sounded like missing deps mostly?
yann-kaelig has quit []
oida has quit [Ping timeout: 256 seconds]
chisui has joined #nixos
aarvar has quit [Ping timeout: 260 seconds]
<pie__> srhb, there is nothing here anywhere about any kind of deps ;_; https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/alacritty/default.nix
ertes-w has quit [Read error: Connection reset by peer]
<pie__> that is the reason its ~strange~
<pie__> all i did was change the revision xD
<pie__> (with an overridE)
jmiven_ has joined #nixos
ertes-w has joined #nixos
<fiatjaf> I've tried to read a little about using nix with haskell, but it was a little frightening, I guess I'm not sufficiently familiar with haskell stuff yet.
<fiatjaf> :P
<fiatjaf> thank you.
<pie__> fiatjaf, that makes two of us
<srhb> fiatjaf: It is quite different from everything else, but there's lots of people here that can help :)
<srhb> And the docs aren't actually bad for getting started.
<pie__> fiatjaf, i dont know what im talking about but nix is totally the best thing ever
<pie__> if it ever gets refined a bit it will be the betterest best thing ever
* pie__ fanboys all over the channel
<srhb> pie__: Note that comment about git dependencies
<pie__> srhb, hmmmm
<srhb> pie__: That's a custom repo that transparently provides the deps as submodules, as far as I can see
jmiven has quit [Ping timeout: 256 seconds]
<srhb> pie__: So try forking that and rebasing it on the upstream
<pie__> paging Mic92? ;P
<srhb> Hm, that's only one submodule tough..
<fiatjaf> hahaha
fragamus has joined #nixos
pkill9 has quit [Read error: Connection reset by peer]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] MP2E pushed 1 new commit to master: https://git.io/vNjWr
<NixOS_GitHub> nixpkgs/master b9f3d49 Cray Elliott: obs-studio: 20.1.3 -> 21.0.2
<fiatjaf> I'll get there. I really want to, but I guess I'll first try to build my third haskell app using stack and ghcjs. let's not try to learn all the things at once.
<srhb> fiatjaf: Does stack has a good ghcjs story now? I wasn't aware :)
<srhb> That helps a bit..
<fiatjaf> srhb: no, not good at all, but I somehow managed to get it working some days ago.
<fiatjaf> is it better with nix?
<srhb> Pretty awesome, yeah.
<fiatjaf> hmm
<fiatjaf> that would have been a good thing to know about some days ago :P
<srhb> fiatjaf: Notice the (probably incomprehensible) string I pasted you earlier. We can do...
dpetran has joined #nixos
<srhb> nix-shell -p 'haskell.packages.ghcjs.ghcWithPackages (ps: with ps; [ ] )'
<srhb> notice, instead of haskellPackages I'm using haskell.packages.ghcjs
MP2E has quit [Remote host closed the connection]
oida has joined #nixos
MP2E has joined #nixos
<srhb> Anyway, lots of fun stuff like that.
hamishmack has quit [Read error: Connection reset by peer]
<fiatjaf> nix and all these incomprehensible things seem like things I would enjoy
<fiatjaf> but it is still too frightening.
hamishmack has joined #nixos
<srhb> Okay :)
<fiatjaf> I'll come back here in some days, probably, and start asking stupid beginner questions
<fiatjaf> and pasting multiline error messages (hopefully not)
<srhb> I'm sure we can dig up a pastebin if need be :P
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<genesis> squashfuse quite packaged :o)
afics has quit [Quit: afics]
afics has joined #nixos
szicari has quit [Quit: szicari]
stepcut has quit [Remote host closed the connection]
<Unode> Any clue about what "DistutilsFileError: could not create '/homeless-shelter': Permission denied" might be?
<Unode> I already tried setting a HOME using the workaround in the nixpkgs manual
<Unode> but it still failed
<pie__> is it trying to create that in your root directory?
<pie__> 0o
<Unode> I'm kinda wondering where this path comes from. I can't find it in the source of the package either
<Unode> ok, it is coming from nixpkgs
<Mic92> pie__: I forked it, when we did not support cargo's git feature
simukis has quit [Ping timeout: 240 seconds]
nico202 has joined #nixos
<pie__> do you have any pointers on how to get a newer version working?
<pie__> besides abandon all hope ye who enter :P
ryanartecona has quit [Quit: ryanartecona]
Mateon3 has joined #nixos
hiratara has quit [Quit: ZNC - http://znc.in]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/76614894f34 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [Client Quit]
Mateon1 has quit [Ping timeout: 248 seconds]
Mateon3 is now known as Mateon1
rodgort has quit [Quit: Leaving]
hiratara has joined #nixos
<srhb> Hmm, is nixos-unstable stuck?
ssmike has quit [Ping timeout: 240 seconds]
dpetran has quit [Ping timeout: 264 seconds]
<ottidmes> I noticed that too, my stable is now further along that unstable (well, in terms of most recent commit date)
mojjo has quit [Ping timeout: 260 seconds]
rodgort has joined #nixos
<srhb> That's normal.
<srhb> But in this case, it looks like trunk-combined has been done for hours (nothing queued) yet no update.
<srhb> Mystery for another day. G'night o/
<ottidmes> Goodnight
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
lord| has joined #nixos
fragamus has joined #nixos
<ottidmes> If I just want to create a symlink in a package, I should use pkgs.runCommand right? I supply it with a name and a mkdir/ln script, but when building it I get: variable $src or $srcs should point to the source
nixo202 has joined #nixos
randomstrangerb has quit [Ping timeout: 268 seconds]
nico202 has quit [Ping timeout: 276 seconds]
<ottidmes> Nevermind, I should have given it an environment as well, I should go to sleep as well...
randomstrangerb has joined #nixos
nixo202 has quit [Client Quit]
johnw_ has joined #nixos
erictapen has joined #nixos
cement has quit [Ping timeout: 256 seconds]
alexteves has quit [Remote host closed the connection]
alexteves has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Neo-- has joined #nixos
tgunb has quit [Ping timeout: 240 seconds]
alexteves has quit [Ping timeout: 248 seconds]
spear2 has quit [Quit: Leaving]
griff_ has quit [Quit: griff_]
knupfer has quit [Ping timeout: 265 seconds]
Izorkin_ has quit [Ping timeout: 268 seconds]
Drakonis has joined #nixos
griff_ has joined #nixos
dan_b has joined #nixos
<genesis> error: opening file ‘/nix/store/7bz64fmpig9kiq12gj8qsyc72v9z7ark-appimagekit-05012017.drv’: No such file or directory
<genesis> i'm stuck with , i try to gc but no way
catch22 has quit [Ping timeout: 248 seconds]
<clever> genesis: what does nix-store -qR say when ran on that path?
the_real_plumps_ has quit [Remote host closed the connection]
<genesis> a lot of drv
<clever> genesis: have you had an improper shutdown recently?
<genesis> no but i did some mistake and try to remove manually things in the store i should confess
<clever> ah
pkill9 has joined #nixos
<genesis> cause it doesn't want to fetchgit again ...
<clever> nix thinks the file still exists, so it tries to just access it
<clever> always use "nix-store --delete" to delete things
<clever> that tells nix that it has been removed
<clever> also, try using that on the above path, so nix knows its gone
<genesis> yeap was trying :D
<clever> and dont use the --force flag, that can break the entire system
<genesis> i don't know that stuff , thanks
the_real_plumps has joined #nixos
<genesis> now i've to delete all stuff i've manualy removed :)
<clever> genesis: also, there is no point in trying to delete stuff like that in the first place
<genesis> sure sure ...
<clever> if its not re-running fetchgit, then nix believes the output would have been identical
<clever> so your not changing the right inputs for fetchgit
Myrl-saki has joined #nixos
colescott has quit [Ping timeout: 256 seconds]
<genesis> in fact, i let a sha256 than my previous derivation to get the right sha ..
<genesis> but of course, it believed it was the same file and download from cache.nixos :P
mkoenig has quit [Ping timeout: 240 seconds]
<genesis> !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.
<genesis> your exemple should be a valid sha256 ...
<samueldr> isn't it?
<genesis> not the good size.
<samueldr> hmmm let me verify, but note that nix also uses a non-hex encoded sha256 by default
<genesis> it even not accepted.
<clever> genesis: i just increment one of the digits in the hash when i know it should be invalid
<samueldr> then this bot will need a small PR
<clever> there is a very very low chance of it being invalid
<clever> of it colliding*
<samueldr> I generally overwrite a bunch because I'm paranoid :D
<samueldr> (though it technically has no fewer chances to collide!)
Neo-- has quit [Ping timeout: 276 seconds]
<samueldr> the amount of zeroes is right
<johnw_> clever: hah, I do that too :)
<dhess> I always just flip the bit at the beginning of the hash.
<genesis> i was sure it was not accepted in fetchgithub earlier this day.
<samueldr> output path ‘/nix/store/dzwkri6vcph269mch17axmsdfn9gc0mq-grub-2.02.tar.xz’ has sha256 hash ‘03vvdfhdmf16121v7xs8is2krwnv15wpkhkf16a4yf8nsfc3f2w1’ when ‘0000000000000000000000000000000000000000000000000000’ was expected
rogue_koder has quit [Quit: Konversation terminated!]
<dhess> johnw_: speaking of which, that nix-update.el is nice! Except that it doesn't work in .json files, which is where all of my revs/sha's are specified in my projects now :)
<genesis> my bad ...
<johnw_> dhess: it was a first approximation, and so needs work. I'd be happy to generalize it further to work in your situation also
<johnw_> I found two more shortcomings last night, in fact
<samueldr> don't worry, it's best to verify the hints given are good!
mkoenig has joined #nixos
<dhess> johnw_: it wasn't a complaint! It's very handy as-is.
chisui has quit [Ping timeout: 260 seconds]
<samueldr> I'm at a point with my PR where I'll need eyes on it. https://github.com/NixOS/nixpkgs/pull/33686
coot has joined #nixos
<samueldr> (I'll eat supper first, but) I'll be looking into making the changes a bit cleaner, ideally I'd like to use functions to generate the menu entries, using the same options set in both ISOLINUX and grub to build the menu
rogue_koder has joined #nixos
oida has quit [Quit: WeeChat 1.6]
<Baughn> The installer tests (from nixos/tests) take approximately an eternity to run, most of it in nixos-installer...
<Baughn> Are there any tips to making it faster? I guess probably not, but I also feel I have to ask.
MP2E has quit [Remote host closed the connection]
<clever> Baughn: is kvm enabled?
MP2E has joined #nixos
<Baughn> Uhm...
<clever> Baughn: ls -l /dev/kvm
<Baughn> Yep.
<clever> cant think of anything else then
<Baughn> Let's see if I can give it more CPU.
<samueldr> Baughn: have the virtualbox modules loaded?
mkoenig has quit [Read error: Connection reset by peer]
<Baughn> The nixos tests use qemu.
<clever> samueldr: if qemu can find /dev/kvm, it will force kvm usage, and then hard-fail if vbox has claimed the mutex
<samueldr> sure, but AFAIK virtualbox locks the virutalization software
<samueldr> ah good
Myrl-saki has quit [Ping timeout: 260 seconds]
<samueldr> that bit I wasn't sure if the tests would hard fail
<Baughn> Ah. I don't have vbox installed.
stephenjudkins has quit []
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dhess> Does qemu+kvm work on, say, an EC2 instance? i.e., is the kvm stuff virtualized ?
<MP2E> hmmm did download-via-ssh in nix break somehow in the newest nixpkgs master? I have a setup that was working for a few months but fails mysteriously now
<clever> dhess: EC2 is virtualized, so kvm fails
<clever> dhess: but aws is coming out with baremetal instances soon
<dhess> clever: too bad, I was hoping it had some kind of vt-d type thing
<MP2E> "error: executing ssh: No such file or directory" doesn't really make sense. SSH is available on both machines
ryanartecona has joined #nixos
<MP2E> i also have no idea if it's talking about the host or local machine..
stephenjudkins has joined #nixos
<dhess> hmm this means my plan to move all of my Hydra x86_64-linux remote builders to hydra-provisioner instances will run nixos tests much more slowly
mkoenig has joined #nixos
<clever> dhess: i had issues with timing sensitive protocol tests failing because the machines clocks got out of sync
<dhess> clever: yeah I just had to disable some timing-sensitive tests by default on one of my Haskell projects , because they were failing on CI servers
<dhess> although in my case I think it was just load
<genesis> http://pasteall.org/804790 i get the right archive, but it still unpack another source, even when i just delete ... very weird.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #34643: pythonPackages.dateparser: switch to parameterized and thereby fix Hydra builds (master...dateparser) https://git.io/vNj2h
NixOS_GitHub has left #nixos [#nixos]
<infinisil> nixpkgs/pkgs/top-level/all-packages.nix has exactly 1000 contributors heh
colescott has joined #nixos