<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>
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?
<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
<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
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>
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?
<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
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 :\
<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.
<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
<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.
<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>
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
<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"
<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>
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
<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>
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
<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>
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
<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'`
<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
<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…]
<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
<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?
<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
<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 :)
<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.
<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>
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>
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…]
<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
<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
<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.
<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...
<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. :-)
<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.
<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)
<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
<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?
<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
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?
<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…]
<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]
<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_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
<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
<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.
<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]
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
<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....
<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>
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]
<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?
<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?
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__>
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
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
<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?
<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.
<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