ilja_kuklic has quit [(Ping timeout: 256 seconds)]
<ndowens08>
hmm possibly
mortum5 has quit [(Read error: Connection reset by peer)]
anelson has joined #nixos
takle_ has quit [(Remote host closed the connection)]
markus1209 has joined #nixos
markus1219 has joined #nixos
JagaJaga has quit [(Ping timeout: 240 seconds)]
<anelson>
hey guys, is there good documentation on how to define new rust packages with nix and/or get a working rust dev environment on nixos?
markus1189 has quit [(Ping timeout: 256 seconds)]
markus1199 has quit [(Ping timeout: 240 seconds)]
<anelson>
like I'm not quite sure how buildRustPackage is meant to be used, it takes a depsSha256 argument but I'm not sure how that's meant to be generated
<anelson>
also more broadly, if I'm just interested in e.g. entering a nix shell with a few rust packages in scope, as one might in python, I'm not sure how to accomplish this
roconnor has joined #nixos
deepfire has quit [(Ping timeout: 258 seconds)]
<gchristensen>
fpletz: ping
fresheyeball has quit [(Quit: Konversation terminated!)]
pepa has joined #nixos
pepa has quit [(Ping timeout: 264 seconds)]
deepfire has joined #nixos
anp has joined #nixos
kampfschlaefer has quit [(Ping timeout: 240 seconds)]
takle_ has joined #nixos
jsgrant- has quit [(Ping timeout: 258 seconds)]
marusich has joined #nixos
deepfire has quit [(Ping timeout: 240 seconds)]
takle_ has quit [(Ping timeout: 260 seconds)]
<anp>
Hi everyone! I was thinking to add a package corresponding to kinect-audio-setup (from debian) that let's you use the kinect camera as a webcam (this is different than freenect); I am not sure what category should this go under any pointers would be greatly appreciated.
nekroze has quit [(Quit: leaving)]
mudri has quit [(Quit: WeeChat 1.7)]
takle has joined #nixos
jcbrand has joined #nixos
fre2 has quit [(Quit: WeeChat 1.4)]
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 2 new commits to master: https://git.io/vy8fm
<NixOS_GitHub>
nixpkgs/master c9b4317 Peter Hoeg: docker-machine-kvm: 0.7.0 -> 0.8.2
<NixOS_GitHub>
nixpkgs/master 35dbe4d Peter Hoeg: minikube: 0.16.0 -> 0.17.1
roconnor has quit [(Ping timeout: 268 seconds)]
<Ralith>
anelson: I use nix to provide development tools (via https://github.com/solson/rust-nightly-nix ) and foreign deps, and let cargo deal with actual rust libs; I don't know if the current rust infrastructure has good support for using rust libs from the nix store for interactive development
<Ralith>
IIRC depsSha256 is to ensure reproducible dependency selection; not totally sure why Cargo.lock isn't relied upon for that
<Ralith>
as with most nix hashes, I just replace it with whatever the failed build tells me to
<gchristensen>
Ralith: because depSha256 is used to unlock network access
<gchristensen>
and a Cargo.lock doesn't suffice for that
<Ralith>
why's that?
<Ralith>
and why does it need network access, anyway, if the local store is being used?
<gchristensen>
(1) network access is only granted if you can tell nix what the output hash will be ahead of time
<gchristensen>
(2) the local store isn't being used, I think, because we let cargo do all the dependency fetching as needed
<Ralith>
fairly sure the last time I was building rust packages, deps were pulled in from the nix store, not the network
<Ralith>
maybe that changed recently?
<gchristensen>
not sure :?
<Ralith>
there was an in-store copy of the crates.io index and everything
<Ralith>
cargo always spewed out messages about "using a local index is deprecated" or something like that which worried me a bit
Fare has quit [(Ping timeout: 268 seconds)]
<gchristensen>
maybe it does both? I'm not sure :?
<Ralith>
going over the network would be nice, then we could drop the in-store copy of crates.io that you have to update all the time
filterfish has quit [(Ping timeout: 240 seconds)]
Fare has joined #nixos
marusich has quit [(Quit: Leaving)]
deepfire has joined #nixos
filterfish has joined #nixos
RchrdB has quit [(Ping timeout: 240 seconds)]
Jackneill_ has quit [(Remote host closed the connection)]
deepfire has quit [(Ping timeout: 260 seconds)]
Rizy has joined #nixos
moet has joined #nixos
<moet>
there's no /mnt by default in nixos.. where is it recommended to mount a shared partition? just create /mnt?
<gchristensen>
suure
<clever>
or /media
<clever>
whichever you prefer
<gchristensen>
(sorry, the double-u is a problem with my keyboard, not an intentional thing.)
<moet>
hrm
<moet>
thanks
proteusguy has quit [(Ping timeout: 246 seconds)]
fresheyeball has joined #nixos
* gchristensen
writes bad perl
<johnw>
bad perl is like poetry: there's always someone who thinks it's art
<gchristensen>
well hopefully niksnut finds it to be art :P
jsgrant- has joined #nixos
<ndowens08>
When is the "nix" program gonna be ready, from the new NIX UI?
takle has quit [(Remote host closed the connection)]
ndowens08 has quit [(Ping timeout: 260 seconds)]
roconnor has joined #nixos
jcbrand has quit [(Ping timeout: 240 seconds)]
mkoenig_ has joined #nixos
takle has joined #nixos
Rizy has quit [(Quit: Rizy)]
mkoenig has quit [(Ping timeout: 240 seconds)]
takle has quit [(Ping timeout: 268 seconds)]
derjohn_mob has quit [(Ping timeout: 256 seconds)]
mbrgm has quit [(Ping timeout: 260 seconds)]
zraexy has joined #nixos
mbrgm has joined #nixos
systemfault has joined #nixos
anp has quit [(Remote host closed the connection)]
takle has joined #nixos
derjohn_mob has joined #nixos
takle has quit [(Ping timeout: 258 seconds)]
takle has joined #nixos
roconnor has quit [(Ping timeout: 240 seconds)]
takle has quit [(Ping timeout: 240 seconds)]
RchrdB has joined #nixos
takle has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
RchrdB has quit [(Ping timeout: 240 seconds)]
takle_ has joined #nixos
takle has quit [(Ping timeout: 258 seconds)]
takle_ has quit [(Ping timeout: 264 seconds)]
roconnor has joined #nixos
<NixOS_GitHub>
[nixpkgs] 0BobTheJanitor opened pull request #23547: libqmlbind: init at 0.2.0 (master...master) https://git.io/vy8I5
takle has joined #nixos
<yurrriq>
I've gotta quick question re inter-package dependencies and sudo. Anyone around?
<yurrriq>
Basically I need to symlink some files from the package I'm writing into a subdirectory of an existing one, but the target directory is owned by root and has 555 permissions (if that makes sense)
<Ralith>
you can't modify data in the nix store
<yurrriq>
aha
<yurrriq>
wow. that makes all the sense. I need to derive again. haha cheers
<puffnfresh>
you might need to do an lndir to create a new directory tree
takle has quit [(Ping timeout: 240 seconds)]
<yurrriq>
The directory exists, but the problem is I'm trying to modify the nix store, oops
roconnor has quit [(Ping timeout: 268 seconds)]
mizu_no_oto has joined #nixos
<puffnfresh>
yurrriq: yeah, lndir can make a tree of symlinks of two paths in your store
<puffnfresh>
e.g. if you're trying to add a "plugin" to an app or something, sometimes just doing something like:
<yurrriq>
oh cool!
<puffnfresh>
lndir $myApp $myPlugin $out
<yurrriq>
yes that sounds like precisely what I want
takle has joined #nixos
<yurrriq>
so I want to symlink files into ${otherPackage}/path/to/fonts
<puffnfresh>
lndir might work, I'd give it a go!
alx741 has quit [(Quit: alx741)]
<yurrriq>
unfortunately the subdirs of fonts/ already exist and I need to symlink other files within them. can lndir do that?
takle has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
alx741 has joined #nixos
<puffnfresh>
yurrriq: yeah, pretty sure
<yurrriq>
puffnfresh: after a quick test, it's looking promising..
takle has quit [(Ping timeout: 240 seconds)]
Piece_Maker has joined #nixos
Acou_Bass has quit [(Ping timeout: 264 seconds)]
Piece_Maker is now known as Acou_Bass
<yurrriq>
looks like I'm having a weirder permissions issue..
<yurrriq>
^ fixed that
Acou_Bass has quit [(Client Quit)]
Acou_Bass has joined #nixos
hexagoxel has quit [(Ping timeout: 260 seconds)]
mguentner2 has quit [(Quit: WeeChat 1.7)]
mguentner has joined #nixos
hyper_ch has left #nixos ["Konversation terminated!"]
hexagoxel has joined #nixos
hyper_ch has joined #nixos
hyper_ch has left #nixos []
moet has quit [(Quit: testing)]
hyper_ch has joined #nixos
mguentner2 has joined #nixos
mguentner has quit [(Ping timeout: 258 seconds)]
RchrdB has joined #nixos
redmq has joined #nixos
slack1256 has quit [(Read error: Connection reset by peer)]
<redmq>
is it safe to do nixos-install when the previous invocation failed halfway through?
<redmq>
or should i delete everything under /mnt first (excepting /etc/nixos/*)
<puffnfresh>
redmq: I think it's safe
takle_ has joined #nixos
phreedom has quit [(Ping timeout: 240 seconds)]
takle_ has quit [(Ping timeout: 240 seconds)]
<redmq>
thanks!
jsgrant- has quit [(Ping timeout: 260 seconds)]
redmq has quit [(Quit: leaving)]
takle has joined #nixos
<mightybyte>
Is ~/.nixpkgs/config.nix the default config file for nix-env?
takle has quit [(Ping timeout: 240 seconds)]
roconnor has joined #nixos
takle has joined #nixos
Wizek has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
jsgrant- has joined #nixos
mizu_no_oto has quit [(Quit: ["Textual IRC Client: www.textualapp.com"])]
alx741 has quit [(Ping timeout: 268 seconds)]
roconnor has quit [(Quit: Konversation terminated!)]
<Havvy>
mightybyte: That sounds right.
endformationage has quit [(Quit: WeeChat 1.6)]
takle has joined #nixos
saintromuald has joined #nixos
takle has quit [(Ping timeout: 246 seconds)]
proteusguy has joined #nixos
takle has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
<Havvy>
Which package is Firefox Developer Edition?
<mightybyte>
Havvy: It doesn't seem to be working for me.
jsgrant-_ has joined #nixos
jsgrant- has quit [(Ping timeout: 240 seconds)]
jsgrant-_ has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[at]sgrant.io & I'll try to get back to you within 24 hours.)]
jsgrant-_ has joined #nixos
sibi has joined #nixos
takle has joined #nixos
shanemikel has joined #nixos
<shanemikel>
Is there an easy way to build a standalone disk image (qcow2 or raw, don't care) from my nixos config? I found nixpkgs/nixos/lib/make-disk-image.nix looks promising, but maybe I'm missing a cli command?
takle has quit [(Ping timeout: 258 seconds)]
DutchWolfie has joined #nixos
DutchWolfie has quit [(Changing host)]
DutchWolfie has joined #nixos
shanemikel has quit [(Quit: My MacBook Air has gone to sleep. ZZZzzz…)]
Dezgeg has joined #nixos
proteusguy has quit [(Remote host closed the connection)]
Mercuria1Alchemi has joined #nixos
zraexy has quit [(Ping timeout: 260 seconds)]
thc202 has joined #nixos
shanemikel has joined #nixos
xeviox has joined #nixos
takle has joined #nixos
katyucha is now known as Guest12335
Guest12335 has quit [(Killed (verne.freenode.net (Nickname regained by services)))]
katyucha has joined #nixos
katyucha_ has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
griff_ has joined #nixos
shanemikel has quit [(Read error: Connection reset by peer)]
shanemikel has joined #nixos
freusque has joined #nixos
reinzelmann has joined #nixos
griff_ has quit [(Quit: griff_)]
systemfault has quit [(Quit: Bye!)]
jcbrand has joined #nixos
takle has joined #nixos
<dmj`>
mightybyte: ~/.config/nixpkgs/config.nix was recently added iirc, but ~/.nixpkgs/config.nix is used if already defined
takle has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vy8cv
<NixOS_GitHub>
nixpkgs/master 99e74e9 Jörg Thalheim: alliance: mark as broken...
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to release-17.03: https://git.io/vy8cU
<NixOS_GitHub>
nixpkgs/release-17.03 e5a4ad8 Jörg Thalheim: alliance: mark as broken...
<yurrriq>
Thanks, Ralith and puffnfresh. I've got a PR almost ready for lilypond-with-fonts. I'd love your feedback on the lndir usage and such once I submit it. It's working locally, but I feel like it might be - bit sloppy.
<ronny>
manveru: ah, i see, so you run it under your own user instead as a system service
<manveru>
well, yeah
<manveru>
how else would you do it?
<manveru>
syncthing stores stuff as the user it runs as, it doesn't sync permissions
<ronny>
im running it as a service because i want to use it for 2 users on the system that share data/sync
<ronny>
hmm, then the way the syncthing modules for nixos work are an utter pain
<manveru>
you'd have to run two syncthing daemons
<manveru>
which is also possible, just need different ports
<ronny>
then he way thw syncthing service is packaged doesnt make any sense
<manveru>
agreed
pepa has joined #nixos
<manveru>
i've actually tried using it as a way to sync image assets between some web servers... not recommended :P
<ronny>
hmm
<manveru>
Mic92: i think the issue is that deoplete doesn't use the g:python3_host_prog
<manveru>
in nvim, :!which python gives me /run/current-system/sw/bin/python
<ronny>
i reaced the conclusion that by the time you think about syncing assets, you may usually just want a cdn or something like s3 depending on needs
<manveru>
hehe
<manveru>
it seemed like a good idea at the time
<manveru>
me and my coworker could just put images into a folder and they'd show up on the page
<manveru>
maybe it's better now, it's been a year since i used it seriously
<ronny>
humans are unfathomly devious at self-perception,
<manveru>
he was using windows, and the synctrayzor thing upgrades everytime it has a chance
<manveru>
and syncthing was incompatible even between minor versions
derjohn_mob has joined #nixos
<manveru>
which is why i wrote my own service file
<manveru>
should've automated the upgrades too, but i didn't have a lot of experience with nix back then
ThatDocsLady has joined #nixos
<Mic92>
manveru: I don't think which would tell you something different if the internal python interpreter is changed
<manveru>
true that, but for some reason it uses python2 for deoplete... so it's leaking somwhere
<manveru>
oh
<manveru>
the issue is with this little bugger: /nix/store/4kxk3jcgpwxfsw5rrfczg913c2s9rj4n-python2.7-enum34-1.0.4/lib/python2.7/site-packages/enum/__init__.py
FRidh has joined #nixos
<ronny>
hmm
<ronny>
damn
<ronny>
i get a null in my syystem configuration now, i just did a git pull and rebuild on my other box
Fare has quit [(Ping timeout: 268 seconds)]
xeviox has quit [(Quit: Leaving)]
hexagoxel has quit [(Ping timeout: 258 seconds)]
seppellll has joined #nixos
hexagoxel has joined #nixos
<chris|>
when installing binutils, I get an error: collision between ‘/nix/store/8d35vjh9dwb08ia3ln8p6z9dbmzan4ym-binutils-2.27-dev/bin/addr2line’ and ‘/nix/store/2mvblw8kq86ncaidjrp3x4rssy1lhlhi-binutils-2.27/bin/addr2line’; use ‘nix-env --set-flag priority NUMBER PKGNAME’ to change the priority of one of the conflicting packages
<chris|>
this sound like a bug to me, right?
chakerbenhamed has joined #nixos
<manveru>
you're trying to install two different versions of binutils?
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vy8Eb
<bennofs1>
musicmatze: if you trust nixpkgs, then you should be fine, since all those functions take hashes of their output
<gchristensen>
those hashes are "TOFU" Trust On First Use, so as long as they're not compromised on first fetch they'll be fine
<bennofs1>
gchristensen: yeah, perhaps we should a gpg signing check option to nix-prefetch?
<bennofs1>
gchristensen: so that maintainers have a way to verify the first use
<musicmatze>
Jup. But I also have to trust the upstream repository. If that is compromised, and we didn't notice during packaging (or updating a package), ... a GPG signature would help here... (I'm just thinking out loud here)
<gchristensen>
"nobody" uses nix-prefetch, "most" people instead put in a bogus hash an copy-paste the failure message
<bennofs1>
gchristensen: really? i almost always use prefetch...
* musicmatze
too
<gchristensen>
I stand by what I said
* goibhniu
too :D
ilyaigpetrov has joined #nixos
<gchristensen>
and we need to build tooling around how many drive-by patches we get, ie: build the tooling in to nixpkgs directly
<gchristensen>
ideally we'd have a "keyring" per package of valid signing keys for that package, validated at fetch time
<gchristensen>
musicmatze: I think it is "really hard" to do this, and I'd really like it to be done
filterfish has joined #nixos
mudri has joined #nixos
<musicmatze>
gchristensen: why do you think this is hard? I mean... build something into fetchurl which runs gpg --verify against the tarball and exit(1)s if the verifying fails...
<musicmatze>
would cause a mass-rebuild, I guess ... :-)
iyzsong has joined #nixos
<gchristensen>
maintaining the keys is tricky, fetching the signaturres
<gchristensen>
also another stumbling block is the naive implementation can't be used for things in stdenv, which are critical to our chain of trust: things like curl
<musicmatze>
couldn't you build a derivation for each key?
<gchristensen>
you can, but then you neeed sha256's per key, and keyfiles change fairly regularly making it quite an annoying maintenance burden
<musicmatze>
Ah, you mean the sha changes because of new signatures... and therefor the key on the keyserver changes ... and so on ...
<musicmatze>
okay
<gchristensen>
well and the keyfile itself changes as its features get updated
<gchristensen>
a typical distro's chain-of-trust goes like this: a distro trusts a maintainer's key, the maintainer has a long-time relationship with the key the upstream packager uses, upstream releases something, signs it. the maintainer trusts the key so they re-sign it and send it to the distro
<gchristensen>
lots of "state" in that trust chain, which is much harder for us to implement
freusque has quit [(Quit: WeeChat 1.7)]
<gchristensen>
I've thought about this a good deal, and I've tried several implementations
<gchristensen>
I'm not sure what is the best method, or if there are methods I haven't tried, but I would really like it to be solved as well
freusque has joined #nixos
<gchristensen>
what is most hard and most important, is the stdenv chain & verifying gpg itself.
cfricke has joined #nixos
dramforever has joined #nixos
mudri has joined #nixos
<NixOS_GitHub>
[nixpkgs] bennofs pushed 1 new commit to master: https://git.io/vy8Hv
<chattered>
What's the way to collect garbage so to reclaim space on my boot partition? nix-collect-garbage -d isn't working for me.
griff_ has joined #nixos
<makefu>
^ had the same issue last time. what i did was to do a full cleanup ( nix-collect-garbage -d ), remove everything in boot, nixos-rebuild switch..
<chattered>
Cool.
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vy8bf
<MoreTea>
OK. What about both a warnings.json and warnings.txt file in $pathToConfig? That would help with automated tooling as well (e.g. fetch all warnings from all machines in your nixops cluster)
iyzsong has quit [(Quit: ZNC 1.6.4 - http://znc.in)]
<NixOS_GitHub>
[nixpkgs] grahamc pushed 2 new commits to master: https://git.io/vy8NH
<NixOS_GitHub>
nixpkgs/master d8ee4ea Graham Christensen: Merge pull request #23493 from LnL7/khd...
<LnL>
what was the issue with the warnings module for this again?
<MoreTea>
it doesn't print out the warnings at the end of building stuff.
<gchristensen>
MoreTea: would it be wrong to prefer a warnings.nix?
<MoreTea>
So if you'd do a nix-build & drink coffee, you'd miss this
<LnL>
the warnings happen during activation no?
<MoreTea>
not that I am aware? As far as I can see, they're printed during the generation of the derivation that will build the system.
<bennofs1>
I think adding them to the system derivation $out (i.e. what you find in /run/{current,booted}-system/) would be nice
<MoreTea>
<repo>/nixos/modules/system/activation/top-level.nix, see baseSystem attribute.
<MoreTea>
@gchristensen, unfortunately there is no `builtins.toNix` function, only `builtins.to{JSON,XML}`
<LnL>
right, in that case I think it belongs in the activation scripts
<LnL>
not nixos-rebuild
<MoreTea>
LnL, then we agree :) Cool. I'll start hacking.
<MoreTea>
then how would you know if something fails if you do nixos-rebuild boot ?
<gchristensen>
LnL, MoreTea: the problem with that is you don't see activation scripts if you rebuild boot.
<MoreTea>
*fails => generates a warning
<LnL>
MoreTea: you can configure ordering so you can make sure the warnings happen last so it's more visible
<gchristensen>
MoreTea: I mean, the file in the repo would be a .nix file, instead of a .json / .txt... or am I missing the point?
<MoreTea>
gchristensen, hmm? I'm going to use the existing warning system in nixpkgs, just dumping the output in a file, instead of `builtins.trace`-ing it during nix evaluation time.
<gchristensen>
aaah ok!
<gchristensen>
perfect
<MoreTea>
so you'd have a /run/current-system/warnings.json file, that would be like `["warning1", "warning2", ...]`
<gchristensen>
super cool
<NixOS_GitHub>
[nixpkgs] rbvermaa pushed 1 new commit to release-17.03: https://git.io/vy8AP
<gchristensen>
I love thath
<NixOS_GitHub>
nixpkgs/release-17.03 fce036d Rob Vermaas: Update nixUnstable
<NixOS_GitHub>
[nixpkgs] rbvermaa pushed 1 new commit to release-16.09: https://git.io/vy8xv
<NixOS_GitHub>
nixpkgs/release-16.09 b37173b Rob Vermaas: Update nixUnstable...
<NixOS_GitHub>
[nixpkgs] grahamc pushed 1 new commit to master: https://git.io/vy8xU
<NixOS_GitHub>
nixpkgs/master 133245f Vi Po: epson-escpr: 1.6.8 -> 1.6.12...
<NixOS_GitHub>
[nixpkgs] grahamc closed pull request #23122: go: Adding a derivation for the 1.8 Go compiler (master...parnell/add-go1.8) https://git.io/vyv7S
<avn>
clever: any ideas? ;)
<LnL>
have you tried with --show-trace
<LnL>
I expect you might have a cycle in your options
<MoreTea>
LnL, yes, I'll update the wording in the PR as well.
<avn>
LnL: I added trace to gist
jensens has quit [(Ping timeout: 268 seconds)]
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 3 new commits to master: https://git.io/vy8hE
<NixOS_GitHub>
nixpkgs/master ae38cda Niklas Thörne: clog-cli: init at 0.9.2
<NixOS_GitHub>
nixpkgs/master 8d87f8a Niklas Thörne: clog-cli: init at 0.9.2...
<dash>
hi. trying to package some unpleasant stuff that wants to update a file in one of its dependencies. my understanding of the nix model is that I need to create a new version of that dependency with the updated file, but I've forgotten what tools are handy for doing that. do I need overrideDerivation?
<MoreTea>
I could make it a bit more general by reading the message (deprecated, unsupported) from that file
<tilpner>
sphalerite - Have you tried out firejail master with "follow-symlink-as-user no" yet?
peterhoeg has quit [(Read error: Connection reset by peer)]
<tilpner>
sphalerite - I can't seem to get any change from firejail no matter what valid or invalid options I put into /etc/firejail/firejail.config or ~/.config/firejail/firejail.config
ertes has quit [(Ping timeout: 264 seconds)]
peterhoeg has joined #nixos
<clever>
avn: cant see any obvious cause of recursion
<clever>
avn: but i do have a nix expression to get a vnc server with full de/dm support
<Profpatsch>
I anyone running wayland already?
<Profpatsch>
With the i3 clone?
<Profpatsch>
Any feedback about multi-desktop support under wayland?
brodul has quit [(Quit: My hovercraft is full of eels!!)]
<copumpkin>
niksnut: any idea how I'm getting 404s on a binary cache lookup?
<copumpkin>
:D
<gchristensen>
copumpkin: it isn't there! ;)
<copumpkin>
I'm guessing CloudFront is being weird
<copumpkin>
but we run a HEAD first, to check that it's there, then try to download it
<copumpkin>
so it should almost never happen
jensens has joined #nixos
<clever>
copumpkin: 404 on what?, 404's are normal for some things
<copumpkin>
404 on the actual nar download
<joneshf-laptop>
I'm having a heck of a time setting up nix. I'm trying to set up a development environment that has postgres running. I've got a `shell.nix` file: https://gist.github.com/joneshf/7634512dcc40f5b126a3774b55a383e6. When i run `nix-shell`, I get this error: `error: cannot auto-call a function that has an argument without a default value (ghc)`. What am I doing wrong?
<copumpkin>
niksnut: did digging in the cloudfront logs show anything? it does seem super weird to get a 404 from this process
<clever>
bennofs1: raw hydra serves the nars at exactly their storepath, nix-serve i believe serves them at the hash from the storepath, and nix-push serves the nars at the hash of the nar contents
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vy4Yz
<NixOS_GitHub>
nixpkgs/master 064a1e0 Tuomas Tynkkynen: sbagen: Fix build
<copumpkin>
niksnut: is the connection pinned somehow? could it be that one CloudFront node we hit ends up having something and somehow the next node we hit doesn't?
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to release-17.03: https://git.io/vy4YV
<NixOS_GitHub>
nixpkgs/release-17.03 befc166 Tuomas Tynkkynen: sbagen: Fix build...
<fpletz>
gchristensen: pong, what's up? :)
<shlevy>
niksnut: otool shows aws-cpp-sdk linked in
<copumpkin>
niksnut: e.g., if the connection were kept alive, we might get a more consistent view of the world
<gchristensen>
fpletz: what do you think about the modularized Xen patches?
rmeis has joined #nixos
<niksnut>
I didn't look at the logs yet
<fpletz>
gchristensen: modularized xen patches? do you have link? :)
<fpletz>
I didn't follow nixpkgs the last few days
<copumpkin>
too busy playing HZD
<copumpkin>
(that's my problem)
eacameron has joined #nixos
<fpletz>
copumpkin: I want to have you problems %)
<niksnut>
shlevy: there is an "#if __linux__" in s3-binary-cache-store.cc
<sphalerite>
tilpner: I haven't actually tried it, no
<Profpatsch>
fpletz: ping @#augsburg
<shlevy>
:o
<joneshf-laptop>
Okay, so there's `shellHook` where I can run a string of commands in `shell.nix`. Is there a way to use a separate `.sh` file with commands instead of a string in `shell.nix`?
<joneshf-laptop>
Alternatively, is there another way to run a bunch of environment setup commands when starting up `nix-shell`?
<copumpkin>
at some point the S3 support was linux-only
<niksnut>
because istringstream_nocopy doesn't work on darwin
<niksnut>
see e6a61b8da788efbbbb0eb690c49434b6b5fc9741
<shlevy>
Aaah right
<MoreTea>
I'm going home, will be offline for 20 min.
<shlevy>
niksnut: So there's no way to have a darwin builder on a hydra that uses a private s3 store? :(
MoreTea has quit [(Quit: Leaving)]
* gchristensen
was just about to press enter on a message to moretea
<tilpner>
sphalerite - Aww. Do you know how to set it? If you don't have any idea, I'll comment on the issue that the fix has not been tested or is broken
<mightybyte>
dmj`: Thanks! That's exactly what I was looking for.
<mightybyte>
Problem is...that still doesn't work!
ludat has quit [(Ping timeout: 260 seconds)]
<copumpkin>
niksnut: I got bitten by another misspelled option btw yesterday :P any plans to merge that PR of mine? :) :) :)
civodul has joined #nixos
dannyg has joined #nixos
<shlevy>
niksnut: Can't we just add 'seek' to the standards-compliant istringstream_nocopy?
phant0mas has quit [(Remote host closed the connection)]
jmeredith has joined #nixos
<clever>
server# [ 22.025044] systemd[1134]: mongodb.service: Failed at step EXEC spawning /nix/store/6akfivwijc51a6c767kmaq6l1dm9cy7i-mongodb-3.2.9/bin/mongod: No such file or directory
<clever>
Dezgeg: these zfs + 9p bugs are getting pretty anoying
<clever>
Dezgeg: applied to the host or guest kernel, looks like guest at a glance
<Dezgeg>
will poke lkml about that this week
<Dezgeg>
yes, guest
bennofs1 has quit [(Ping timeout: 260 seconds)]
<johnw>
I have a friend on macOS who's nix-env is simply ignoring config.nix, even when we explicitly set NIXPKGS_CONFIG, and fill the file with incorrect syntax
<johnw>
what could be causing that?
<gchristensen>
johnw: I suspect there is a tryEval around it
<copumpkin>
could be related to sonarpulse's changes to the impure wrapper around nixpkgs
<gchristensen>
johnw: it should be pathExists and that's it
<johnw>
I don't see a try around the "import"
<johnw>
just a pathExists check
<gchristensen>
hrm there is no try
<gchristensen>
interesting
<johnw>
dtruss shows us that it's never even attempting to check that the file exists
dramforever has quit [(Quit: Leaving)]
<johnw>
n/m, we found the problem
<gchristensen>
what was it?
cfricke has quit [(Quit: WeeChat 1.7)]
<johnw>
not exporting the config var properly
<gchristensen>
ack :)
<clever>
Dezgeg: hmmm, the above expression works when put into nix-repl, but not in a configuration.nix
<Dezgeg>
what's the error?
<clever>
error: value is a function while a set was expected, at /home/clever/nixpkgs/nixos/modules/tasks/cpu-freq.nix:6:14
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to release-17.03: https://git.io/vy4Zn
<NixOS_GitHub>
nixpkgs/release-17.03 678f5dd Thomas Tuegel: fricas: 1.2.2 -> 1.3.1...
ixxie has quit [(Ping timeout: 260 seconds)]
<Dezgeg>
that does sound quite odd... IIRC there's lots of weird funkiness around the kernel packages
<clever>
Dezgeg: i think i see the problem
<clever>
11329 linuxPackagesFor = kernel: self: let callPackage = newScope self; in rec {
<fpletz>
gchristensen: TBH I don't have a real opinion on that, I've never really used xen… but I agree that the added complexity is probably not worth the hassle. does oxij maybe want to maintain xen? then it would be his choice
<gchristensen>
they did add themselves as maintainer
<clever>
11290 linuxPackagesFor = kernel: lib.makeExtensible (self: with self; {
<clever>
Dezgeg: the api for this function differs between unstable and 16.09
<gchristensen>
but then later said they wouldn't be able to help unless I literally couldn't solve my own problem, which is not real encouraging
<clever>
Dezgeg: the repl did unstable, but the configuration.nix was 16.09
<Dezgeg>
ah indeed, there it takes an extra argument I think
<clever>
yeah
<clever>
i'll fix the expression and test again
<gchristensen>
Dezgeg: could we come up with a date & time to work through bootstrapping?
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vy4nv
<copumpkin>
niksnut: asking you mostly because of that thread we had a while ago about nix shell vs. nix use or whatever you're calling them in the new UI
<copumpkin>
since it's the same distinction in another context
<gchristensen>
Dezgeg: I can be available from 12:00 CET to 15:00CET, and from 23:00CET to 3:00CET the next day, tomorrow.
<Dezgeg>
okay, 13:00 CET sounds like a good time
ryanartecona has joined #nixos
<gchristensen>
that works well for me, I don't have to wake up earlier / will already have a pot of coffee :)
<Dezgeg>
hehe
athan has joined #nixos
estewei has joined #nixos
glines has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vy4Cl
<NixOS_GitHub>
nixpkgs/master 518a9e3 Jan Malakhovski: timidity: add ALSA sequencer support
<gchristensen>
see you tomorrow, then! :) thank you!
rmeis_ has joined #nixos
<joneshf-laptop>
Hmm, I'm doing something wrong here. This is what my `shell.nix` looks like currently: https://gist.github.com/joneshf/7634512dcc40f5b126a3774b55a383e6. I can type `nix-shell` and it executes `postgres.sh`. But then each time I type `stack build` within the nix shell, it reexecutes `postgres.sh`. I only want `postgres.sh` to be executed initially when `nix-shell` is run. Is there a way to do that?
<clever>
shlevy: oh, do you know how to make the new nix write to a store store at /mnt/nix/store/ ?
freusque has quit [(Client Quit)]
<shlevy>
clever: Not sure off the top of my head, sorry
<clever>
ive seen evidence in the code that it can do that, but not how to trigger it
<shlevy>
niksnut: It worries me that SetBody takes an iostream and not an istream... Are we sure aws is never going to write to the stream?
freusque has joined #nixos
brodul has quit [(Quit: My hovercraft is full of eels!!)]
<Mateon1>
I'm trying to make a Python project to work on NixOS, after a confusing time on the wiki on how to make nix-shell do what I want, I have all Python packages mostly working. Mostly, because python wx is dependent on libxcb.so.1. After installing xorg.libxcb, nothing changes
brodul has joined #nixos
<Mateon1>
As in, it can't find the lib file
<dash>
Mateon1: in general, with nix you only install stuff you will directly use, not dependencies
<dash>
Mateon1: how are you running nix-shell?
<Mateon1>
dash, `nix-shell .` with a default.nix file in the project's working directory
<dash>
Mateon1: ok. what errors do you get?
<Mateon1>
It has a single derivation with name=... and buildInputs=[python27 python27Packages.... xorg.libxcb]
<NixOS_GitHub>
[nix] shlevy opened pull request #1263: istringstream_nocopy: Implement in a standards-compliant way. (master...darwin-s3-binary-cache-store) https://git.io/vy4yf
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to release-17.03: https://git.io/vy4yc
<NixOS_GitHub>
[nixpkgs] mogria opened pull request #23561: sublime3: fix hardcoded /bin/bash when executing commands for build systems (master...sublime3-fix-hardcoded-bash) https://git.io/vy4SM
MP2E has joined #nixos
ertes has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vy49v
<c0bw3b>
I've been meaning to ask : is there a guideline regarding the representation of hashes in Nix pkg definitions ?
ertes has quit [(Ping timeout: 240 seconds)]
<c0bw3b>
Obviously both hex/base16 and base32 are accepted but it is really unusual to represent a SHA hash in base32
<c0bw3b>
so it's fine that Nix-hash will compare base32 hashes but I feel we should stick to hex in definitions as this is what you will find everywhere else (upstream repos and so on)
reinzelmann has quit [(Ping timeout: 260 seconds)]
Guest64317 has quit [(Read error: Connection reset by peer)]
<Mateon1>
sphalerite: No, I gave up for now
<sphalerite>
Mateon1: aw, that's a shame. What's the problem now?
<shlevy>
copumpkin: Looks like aws-sdk-cpp is checking for /etc/ssl/certs/ca-certificates.crt on darwin no matter what I set CURL_CA_BUNDLE to, any idea why that might be?
<Mateon1>
On another note, I don't seem to be achieving 1Gbps networking, but that's another headache...
<Mateon1>
sphalerite: Right now, I'm experiencing some weirdness with nix-shell...
<Mateon1>
The config is the same as the config that fixed wx + libxcb, but it doesn't work in another shell now
RchrdB has quit [(Quit: Leaving)]
<sphalerite>
I might be able to help if you could paste your default.nix and be more specific about the problem that you're having
<LnL>
shlevy: isn't it SSL_CERT_FILE
<Mateon1>
In the original shell, I get: ImportError: libsqlite3.so.0: cannot open shared object file: No such file or directory
<Mateon1>
I get the same with `nix-shell --run "python -c 'import sqlite3'"`
<shlevy>
LnL: Also doesn't work :(
<Mateon1>
Also, --pure doesn't change anything
fuzzy_id has quit [(Ping timeout: 258 seconds)]
<sphalerite>
Try adding sqlite3 to the list of python packages. If that doesn't work, does the following command fail too? nix-shell -p 'python27.withPackages (ps: with ps; [sqlite3])' --run 'python -c "import sqlite3"'
<Mateon1>
I get "undefined variable sqlite3"
<Mateon1>
It is not a recognized python package
<Mateon1>
For me, sqlite3 comes from File "/nix/store/nhczbp1ks7j7jqiddvg836fk81cf0hdi-python-2.7.13-env/lib/python2.7/sqlite3/__init__.py"
<sphalerite>
That's strange, it works for me. Which OS and nixpkgs version are you on?
<exarkun>
Shouldn't it be `python27.withPackages (ps: with ps; [ps.sqlite3])`?
<exarkun>
oh sorry I missed the `with ps`
<Mateon1>
I'm on NixOS, using channel 17.03
<sphalerite>
I'm still on 16.09, I'll give 17.03 a try
<sphalerite>
Mateon1: nix-shell -p 'python27' --run 'python -c "import sqlite3"' <<< this works for me. Does this complain about the so file on yours too?
pepa has joined #nixos
<sphalerite>
(on 17.03)
<Mateon1>
Complains for me
<Mateon1>
For now, I need to reboot
fre2 has joined #nixos
Mateon1 has quit [(Remote host closed the connection)]
mg has quit [(Ping timeout: 260 seconds)]
Mateon1 has joined #nixos
<Mateon1>
That's weird
<Mateon1>
All my channels disappeared
zml has joined #nixos
<sphalerite>
Mateon1: What does nix-instantiate -E '(import <nixpkgs> {}; python27)' say?
ilja_kuklic has quit [(Ping timeout: 240 seconds)]
<Mateon1>
Syntax error
<Mateon1>
Unexpected ;, expecting )
<sphalerite>
whoops
<sphalerite>
(import nixpkgs {}).python27
<niksnut>
shlevy: sure, just update aws-sdk-cpp in 16.09
<sphalerite>
Mateon1: that is strange... For me it loads /nix/store/l4v7h3zaiffrnqfqzy60f14h0s1mcp7a-python-2.7.13/lib/python2.7/lib-dynload/_sqlite3.so which in turn loads /nix/store/qy3hpm7dfz4grh68cpxp3d6l9iqrzyzf-sqlite-3.16.2/lib/libsqlite3.so.0
<sphalerite>
Mateon1: and for you it never actually searches in the dynload directory for _sqlite3.so
<sphalerite>
Oh wait
<sphalerite>
There seems to be a _sqlite3.so in your working directory?
<Mateon1>
sphalerite: Yes, there is one
<sphalerite>
Mateon1: go to a different working directory, or remove it, and it should work
<Mateon1>
Okay, I guess I should have just cloned from master, instead of getting the semi-binary semi-source release
<sphalerite>
Cloned what from master..?
<Mateon1>
The Python app I want to get working right now
deepfire has joined #nixos
jensens has quit [(Ping timeout: 240 seconds)]
athan has quit [(Read error: Connection reset by peer)]
mudri has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub>
[nix] shlevy opened pull request #1264: Properly set the caFile for aws-sdk-cpp s3 (master...s3-ca-file) https://git.io/vy4hc
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
armin has quit [(Quit: relate to the matter as i drop the bomb)]
griff_ has joined #nixos
armin has joined #nixos
deepfire has quit [(Ping timeout: 260 seconds)]
Somelauw has joined #nixos
ryanartecona has joined #nixos
[0x4A6F] has joined #nixos
<Somelauw>
Hi, the website shows https://nixos.org/nixos/packages.html I get qutebrowser 0.8.2, whereas I got qutebrowser 0.9.0 and the newest release is qutebrowser 0.10.0
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vyBeW
<c0bw3b>
if you are on NixOS 17.03 then you already get to user 0.9.x
lorilan has joined #nixos
Somelauw has quit [(Ping timeout: 240 seconds)]
<lorilan>
hello. Are there other namespaces than haskellPackages in the "official channel" and how is it possible to list them ? I looked into insync. I found it on the nixpkgs github repository but don't know how to find it with nix-env ...
dustmote_ has joined #nixos
<srhb>
lorilan: Yes, there's one for each compiler version.
deepfire has quit [(Ping timeout: 256 seconds)]
<srhb>
Well, each included compiler version
<lorilan>
srhb: each compiler ?
<srhb>
lorilan: They're in nixpkgs.haskell.packages.ghcXXX
<srhb>
lorilan: For instance, nixpkgs.haskell.packages.ghc784
<srhb>
lorilan: Or am I misunderstanding?
<lorilan>
srhb: ha ok but I mean other namespaces than haskell ?
<srhb>
Oh!
<srhb>
lorilan: Well, pythonPackages?
<srhb>
lorilan: That said, insync is in top level packages. You probably just have a version that doesn't have it.
<c0bw3b>
does patchShebangs correct #!/usr/bin/perl ?
<fpletz>
gchristensen: now I have more time to think :) after reading all the comments on the xen PR, I think it would be best if we let oxij maintain xen. he's an active user and on the points you both disagree I tend to side with him. IMHO removing the vanilla version seems fair. most xen vulnerabilities are in fact vulnerabilities in the bundled qemu which we would patch in our qemu expression
fhoffmeyer has joined #nixos
<gchristensen>
sounds excellent
<gchristensen>
can you make that comment?
<fpletz>
so the change itself makes a lot of sense IMHO
takle has quit [(Remote host closed the connection)]
<fpletz>
yup :)
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vyBUL
<qknight>
vde_switch: Could not remove ctl dir '/tmp/nix-build-vm-test-run-leaps.drv-1/vde1.ctl': Directory not empty
<qknight>
is that critical?
<Somelauw>
srhb: The website here https://nixos.org/nixos/packages.html shows that if I install qutebrowser, I would get qutebrowser 0.8.2. But I got qutebrowser 0.9.0 instead and the newest release is qutebrowser 0.10.0 Is there a way to get qutebrowser 0.10.0?
filterfish has quit [(Read error: Connection reset by peer)]
layus has quit [(Client Quit)]
xadi has quit [(Quit: Leaving.)]
filterfish has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 opened pull request #23567: pdnsd: fix darwin build (master...darwin-pdnsd) https://git.io/vyBtB
<eacameron>
So I'm installing `sendmail` with a mail service. How do I refer to `sendmail` itself so I can add it to the path?
takle has joined #nixos
MP2E has quit [(Quit: reboot)]
MP2E has joined #nixos
stites has quit [(Quit: Leaving)]
dcz__ has joined #nixos
stites has joined #nixos
<dcz__>
hello guys, is there any library or a way you know to Haskell to Nix expressions ?
bennofs has joined #nixos
<qknight>
eacameron: like having a binary on the shell which can be used to send mails?
<eacameron>
qknight: Yah
<eacameron>
dcz__: You mean compile Haskell to Nix?
<qknight>
services.postfix = {
<qknight>
enable = true;
<qknight>
setSendmail = true;
<dcz__>
eacameron, yeah i will read yml file by haskell and transform it to Nix
<eacameron>
qknight: Ah right. That's what I'm doing. But I don't know how to refer to "sendmail" itself as a program in order to add it to a systemd PATH env.
<qknight>
eacameron: then i use sendmail -t to send emails
<srhb>
eacameron: ${pkgs.postfix}/bin/sendmail should do the trick
<eacameron>
srhb: Perfect! That's what I need.
markus1219 has quit [(Ping timeout: 240 seconds)]
<srhb>
eacameron: :)
<eacameron>
srhb: So I could do `systemd.services.myservice.path = [ postfix ];` to add its sendmail to the path
<dcz__>
eacameron: thank you i will look at it.
<makro`>
hi, I have short question. I am running nixos unstable but since a couple of weeks I get 'error: The option `services.xserver.displayManager.kdm' defined in `/etc/nixos/configuration.nix' does not exist.' when I run 'nixos-rebuild boot --upgrade'.
<srhb>
eacameron: s:postfix:${pkgs.postfix}/bin: if I'm not mistaken
<srhb>
eacameron: Assuming you want the bin dir of the postfix package
<makro`>
Has anyone else encountered this issue?
MP2E has quit [(Quit: reboot again)]
<srhb>
Oh
<srhb>
Wait, that's an attribute
<eacameron>
srhb: for some reason systemd.services.<name>.path takes a list of *packages*
civodul has quit [(Ping timeout: 240 seconds)]
k2s has joined #nixos
<srhb>
eacameron: Then yes, I guess that should work :)
<srhb>
eacameron: postfix is not your only choice, by the way.
<srhb>
(Just in case you didn't know, but perhaps you have no opinion)
markus1189 has joined #nixos
<eacameron>
srhb: (Yes I realize that but I have not tried any others... ;) )
<srhb>
eacameron: I don't have an opinion either, just making a note. :-P
MP2E has joined #nixos
<eacameron>
srhb: Gotcha.
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vyBOi
simendsjo has quit [(Remote host closed the connection)]
lucasOfBesaid has quit [(Quit: Page closed)]
<gchristensen>
domenkozar: if you'd like to review the xen changes, can you do so today?
Somelauw has left #nixos ["WeeChat 1.6"]
sigmundv has quit [(Ping timeout: 264 seconds)]
mkoenig has quit [(Remote host closed the connection)]
<srk>
nixops feels like magic
<srk>
so epic
<NixOS_GitHub>
[nixpkgs] LnL7 opened pull request #23569: idutils: disable tests on darwin (master...darwin-idutils) https://git.io/vyBZb
<domenkozar>
gchristensen: I'm low on energy right now, hopefully tomorrow :)
jophish_ has joined #nixos
<gchristensen>
domenkozar: if you don't check it out by, say, 2017-03-08 00:00 CET can I merge it?
<domenkozar>
sure
<gchristensen>
cool :)
freusque has quit [(Ping timeout: 260 seconds)]
freusque has joined #nixos
reinzelmann has quit [(Quit: Leaving)]
ertes has joined #nixos
Ivanych has quit [(Ping timeout: 240 seconds)]
monsieurp has joined #nixos
griff_ has quit [(Quit: griff_)]
<gchristensen>
domenkozar: CET is so inconvenient relative to EST :P
ludat has quit [(Ping timeout: 264 seconds)]
ambro718 has joined #nixos
<c0bw3b>
meta.homepage is actually a string but is often declared in pkg as homepage = http://example.org
<c0bw3b>
with no " or '' around the URL
<gchristensen>
it is treated as a path there
<c0bw3b>
does it change anything for the evaluation of the nix definition ?
kampfschlaefer has quit [(Ping timeout: 256 seconds)]
<gchristensen>
no
<domenkozar>
gchristensen: at least it's not PST
suvash_away has joined #nixos
ilja_kuklic has quit [(Ping timeout: 240 seconds)]
<c0bw3b>
gchristensen ok then I stick to the usual practice then, thanks
<gchristensen>
domenkozar: true enough, that would be very difficult
anelson_ has joined #nixos
<MichaelRaskin>
If you need PST for a deadline, just switch to AoE
<anelson_>
hey guys, I've noticed that when I kill a running nix build (e.g. with Ctrl-C), the underlying processes seem to be terminated immediately, perhaps with a -9 signal? I have some jobs that allocate resources that I want to make sure they release when their processes terminate. Is there any way to change the kill signal nix sends to a SIGTERM or SIGINT, something that allows processes to run cleanup?
<gchristensen>
MichaelRaskin: why? not sure I follow
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vyBW7
<NixOS_GitHub>
nixpkgs/master 3fa2a5d Franz Pletz: youtubeDL: 2017.02.27 -> 2017.03.07
<gchristensen>
anelson_: what would they clean up, which aren't in the store?
<spinus>
anelson_: I assume you can add patch to nix (using overideDerivation or something like that)
<clever>
anelson_: what kind of resources is it allocating, that you want to clean up?
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to release-17.03: https://git.io/vyBWA
<NixOS_GitHub>
nixpkgs/release-17.03 fbab9a9 Franz Pletz: youtubeDL: 2017.02.27 -> 2017.03.07...
<anelson_>
for example I have a nix derivation which builds an AMI. It provisions an EC2 instance, and if the derivation is canceled, I want the instance to be terminated
<gchristensen>
oh wow
<MichaelRaskin>
Well, just to reduce the number of deadline offsets you need to remember
k2s has quit [(Ping timeout: 260 seconds)]
<anelson_>
I have other derivations which start up postgres services for testing purposes, and I want those to be terminated if the process dies
<clever>
anelson_: only thing i can think of, is to either route it thru a daemon that will cleanup automaticaly, or to configure the machines to shutdown after 1 hour
<clever>
anelson_: in the daemon case, you could connect to the daemon over localhost + tcp, and if the tcp link is lost at any point, kill all vm's!
<MichaelRaskin>
With the postgres services, if they start these as the builder user, postgres will also be killed by kill -9
<anelson_>
yeah, there are other ways around, but I already have traps and exit hooks etc set up to accomplish this, as long as the termination signal isn't so strict
<gchristensen>
ah I see, MichaelRaskin
<gchristensen>
MichaelRaskin: I mostly convert between EST and CST (1hr) and EST and CET (I have CET in the bottom of my screen, next to my local time)
<anelson_>
MichaelRaskin: yes, but postgres acquires system resources (specifically linux semaphores) which it doesn't release if it's killed in such a manner
<clever>
anelson_: most of nix expects the builds to be contained and not have network access, so an rm -rf $NIX_BUILD_TOP would be enough to clean it up
<anelson_>
my nix builds have network access though :) I don't run it in a sandbox
hiratara has quit [(Ping timeout: 246 seconds)]
<anelson_>
this is quite useful for certain things like having my AMIs built as a nix derivation for example...
<clever>
i would have just built them as an img file localy, along with a bash script that initiates the upload
<clever>
but i can see the use in having it auto-upload
<anelson_>
I'm using packer
<anelson_>
well actually I'm working on a packer-esque tool written in python, but the concept is the same
<clever>
anelson_: for it to impact nix-daemon, it will have to be an override within configuration.nix
<anelson_>
I already have a derivation for nix with a few patches :)
ajp has joined #nixos
DutchWolfie has quit [(Quit: Konversation terminated!)]
<clever>
nice
<clever>
anelson_: part of it, is that one of these killUser passes, is meant to sterilize the nixbld1 user, before a build starts, so you can prevent impurities from the last build under that user
<clever>
anelson_: and the rest is just to keep any naughty programs from ignoring sigterm, and sticking around eating resources
<clever>
it would need to term, sleep 30, then kill
<clever>
and nix normaly keeps things in a sandbox, so the rm -rf will clean it up anyways
<anelson_>
yeah, I can definitely see the second one. I suppose I could patch stuff to put in timeouts but that would be a lot more work hah
<gchristensen>
there are tools that can examine chat logs and see when people are typically active, right? :)
<anelson_>
well, it keeps stuff in a sandbox on nixos... but not if it's installed on another OS
<anelson_>
by default anyway
<clever>
gchristensen: yeah
<anelson_>
my company is on centos so outside of my own workstation which is nixos I've never used a sandbox, and even on my workstation it's not enabled by default
<fpletz>
cstrahan: thanks for assiging yourself and taking a look at the gcc hardening flags issue. you can contact me anytime if you need help or someone to bounce ideas off
romildo has joined #nixos
<cstrahan>
fpletz: hey, sure thing. I don't know when I'll get around to it (wish there was a "This is on my TODO, but I'm not actively working on it (yet)" indicator in GitHub)
<gchristensen>
ndowens08: I spent an hour this morning merging almost exclusively your PRs >.> :D
romildo has left #nixos []
<makro`>
Oh, I just found out that kdm support will be dropped in 17.03. After having found issue #12516 I will go with sddm in combination with KDE5.
<ndowens08>
gchristensen: :) lol kinda funny
<ndowens08>
gchristensen: there is more if ya like :p
<gchristensen>
I mean
<MichaelRaskin>
gchristensen: ndowens08: I have an opinion what implication this has, and gchristensen probably knows it
<gchristensen>
I meane does
<gchristensen>
...
* gchristensen
does
<gchristensen>
I'm going to spend more time tonight grinding through PRs...
<ndowens08>
MichaelRaskin: what is that?
<MichaelRaskin>
I didn't mean this, though
<ndowens08>
trying to remember which pkg gchristensen mentioned to update as soon as i can, i think it might be in my email
<gchristensen>
ocproxy
<ndowens08>
yup just seen, about to work on that one
dcz__ has quit [(Quit: WeeChat 1.7)]
griff_ has joined #nixos
<MichaelRaskin>
ndowens08: My opinion is that if merging updates submitted by you becomes a significant part of the workload, maybe it is time to ask ikwildrpepper give you commit rights so that you can merge the simpler updates/additions yourself
<ndowens08>
MichaelRaskin: :) yea mostly been trying to update current packages instead of introducing new ones
<ndowens08>
MichaelRaskin: though I dunno if I could as I am new and stuff like that
<ndowens08>
i mean like would give me rights
<MichaelRaskin>
Well, it looks like the policy is still not too strict
<MichaelRaskin>
It is enough that you understand which updates are likely safe to just push (probably most of them, actually)
<ndowens08>
MichaelRaskin: yea i tend to avoid the ones I dont understand greatly
fhoffmeyer has quit [(Ping timeout: 240 seconds)]
ali1234 has joined #nixos
<ali1234>
can i cross-build a nixos image for ARM on ubuntu?
<MichaelRaskin>
Well, if you enable all the sandboxing, the difference between Ubuntu and NixOS for builds becomes quite small
suvash_away has quit [(Ping timeout: 240 seconds)]
Tsutsukakushi has quit [(Ping timeout: 240 seconds)]
suvash_away has joined #nixos
suvash_away has quit [(Changing host)]
suvash_away has joined #nixos
<MichaelRaskin>
For some ARM targets cross building seems to work quite fine
<ndowens08>
MichaelRaskin: would I need to ask for access or one of you guys recommend to that person?
thc202 has quit [(Ping timeout: 240 seconds)]
<ali1234>
what exactly do you mean by "enable all the sandboxing"?
Tsutsukakushi has joined #nixos
<MichaelRaskin>
In my experience of recommending people to ask for access, you should ask for access
<MichaelRaskin>
Feel free to mention our discussion of your track record with gchristensen
xadi has quit [(Ping timeout: 258 seconds)]
[0x4A6F] has quit [(Quit: Quit)]
<MichaelRaskin>
ali1234: I am not sure if Nix enables chroot etc. by default
k2s has joined #nixos
<ali1234>
i am having difficulty understanding exactly what Nix is
<ali1234>
is it a command that i can install?
<anelson_>
clever: I patched to use SIGTERM instead of SIGKILL and the processes are still dying before any cleanup code is executed, if there's a user interrupt at least :( I think it's due to how the interrupt is handled (i.e. it becomes a thrown exception in C++...)
<anelson_>
I'll keep looking at it, but my C++ knowledge is limited... no idea how it handles process cleanup
<MichaelRaskin>
Nix is a package manager, with most of the typical work done by commands nix-build/nix-env shipped (along with other commands) in the single Nix package
<ali1234>
for example, i can install packages like debootstrap or buildroot on any distribution
<MichaelRaskin>
The packages themselves are all installed inside /nix/store, but there are some symlinks outside
<ali1234>
can i install nix-build on ubuntu?
<ndowens08>
We need something that lets us search what package provides what. LIke something like nix provides Library.so etc
<MichaelRaskin>
Yes you can and no you won't be the first one to do that
phreedom has joined #nixos
Kendos-Kenlen has joined #nixos
JagaJaga has quit [(Ping timeout: 264 seconds)]
ajp has quit [(Remote host closed the connection)]
<ndowens08>
gchristensen: I was gonna open a PR for that update, but it says cant automaticly merge
<NixOS_GitHub>
[nixpkgs] grahamc pushed 1 new commit to master: https://git.io/vyBE4
<gchristensen>
ndowens08: have you pushed the commit to github somewhere?
<c0bw3b>
phreedom : hello. you are listed as the maintainer of 'fprot' package. Is that thing still alive ?
<ndowens08>
gchristensen: just the last one ya merged, 1.60
<dtzWill>
if your host OS supports the kernel bits needed for enabling the sandbox (user namespace stuff, standard but can't have ancient centos 5 kernel :P) nix (nix-build, etc) work wonderfully
<ndowens08>
this one is 1.70
<c0bw3b>
phreedom : by the look of the website and the date of the last available binary it seems not
* dtzWill
looks forward to sandbox being enabled by default forever and always
<phreedom>
c0bw3b: i haven't touched it for a long time :(
<phreedom>
c0bw3b: if you meant fprot itself, and not its nixpkgs package, I think it's alive. you look look for virus signature update timestamps
<NixOS_GitHub>
[nixpkgs] grahamc pushed 1 new commit to master: https://git.io/vyBEK
<dtzWill>
clever: haha I have some derivations that spin up/down databases instances too haha it's kinda hacky but is awfully useful for nix-ification of data analytics and such :D
<anelson_>
clever: oh ya know what, it looks like the cleanup maybe is being executed, but the stdout isn't getting put through to screen. Well, it's an improvement anyway
<dtzWill>
anelson_: flush?
ajp has joined #nixos
<ndowens08>
gchristensen: I think i see why, might have to give it some time, the diff shows at 1.50, when previous merge was 1.60
<clever>
dtzWill: its happening after nix-build has been ctrl+c'd
<clever>
dtzWill: the code expects the builder to be -9'd and not have any more output
<ndowens08>
or do the PR anyway?
<NixOS_GitHub>
[nixpkgs] grahamc pushed 2 new commits to master: https://git.io/vyBEQ
<NixOS_GitHub>
nixpkgs/master a3e6b41 Robert Helgesson: javasvn: remove...
<NixOS_GitHub>
nixpkgs/master 5054035 Graham Christensen: Merge pull request #23571 from rycee/remove/javasvn...
<gchristensen>
ndowens08: click the button to open the PR screen, but don't submit it - send me a link to it
hiratara has quit [(Remote host closed the connection)]
Wizek has joined #nixos
<gchristensen>
ndowens08: why did you move libinput out of nativeBuildInputs? (I ask because I don't really understand the difference.)
<c0bw3b>
phreedom : :) but i can't find the dates of latest AV signatures on their website actually
Wizek_ has joined #nixos
<c0bw3b>
phreedom : the 'fprot' package could not be installed because the archive does not match the hash anymore
<phreedom>
c0bw3b: so it's been updated :)
romildo has joined #nixos
<dtzWill>
clever: oh, yeah, think I lost some of the context there.. and as mentioned re:servers I actually /rely/ on the builder being good about nuking things hehe O:)
<Kendos-Kenlen>
Is discover supported on NixOS ? I saw there is a packagekit backend for Nix, so I'm surprised discover isn't available :O
<MichaelRaskin>
gchristensen: I would expect libinput to be more useful in the ARM variety when cross-building that in x86
hiratara has joined #nixos
<dtzWill>
ndowens08: there's definitely something that suggests packages if you try to run a command that isn't installed
<gchristensen>
MichaelRaskin: native being the builder's arch, and buildInputs being the target envs arch?
<dtzWill>
don't know if it can handle queries like libraries, but sure seems related :)
<gchristensen>
MichaelRaskin: why has it taken me over a year to learn this?
<ndowens08>
gchristensen: didnt think i did; unless I did it when I had this one ready before the previous was merged. Ah i think I understand why. Well I thought we put things in nativebuildinputs for build only and deps needed in buildinputs; didnt think libevent is for build only
<phreedom>
c0bw3b: I think this is normal for av engines to be stable
<dtzWill>
also idk what I did but somehow I now have tab-completion of nix expressions in my shell... and it's the most amazing thing. ty everyone involved.
<ali1234>
MichaelRaskin: i think this gets to the heart of my question: can i install nix-build on ubuntu x86 and have it build an arm image using fakeroot, fakechroot, qemu, and a cross compiler, without needing root access? and if so, how easy is it?
<phreedom>
c0bw3b: you have to understand that they aren't doing anything fancy. just matching some signatures
<MichaelRaskin>
gchristensen: because you have tried to do cross-building a huge total of zero times?
<gchristensen>
I reckon so
<NixOS_GitHub>
[nixpkgs] rycee opened pull request #23572: gpsbabel: fix darwin build (master...fix/gpsbabel-darwin) https://git.io/vyBuK
<MichaelRaskin>
ali1234: why qemu?
<phreedom>
c0bw3b: especially when we are talking about cli scanners and such
k2s has quit [(Remote host closed the connection)]
<ali1234>
MichaelRaskin: because some things just can't be cross compiled. like vala source code
<dtzWill>
scratchbox2! hehehe jk
<NixOS_GitHub>
[nixpkgs] grahamc closed pull request #23512: doc: Remove indention from program listings (master...doc-fix-xfce) https://git.io/vyl48
<ali1234>
but if nix has a better solution then so much the better
<MichaelRaskin>
We don't have a really good solution
<clever>
ali1234: with how nix works, it doesnt need fakeroot or fakechroot
<MichaelRaskin>
What agrees to cross-compile gets cross-compiled
<clever>
ali1234: and if root configures qemu-user-arm ahead of time, it can just run the arm compiler in nix builds
<ndowens08>
gchristensen: that is why. I tend to seperate the buildinputs and nativebuild if it isnt a true dep and only for build; Seen that done in other nix pkgs so I started following it
<romildo>
The latest versions of albert (a fast and flexible keyboard launcher https://albertlauncher.github.io) is not working on my unstable NixOS system. It opens the input box where I can type the command the application I want to run, but it does not find any one to launch. Can anybody confirm this behaviour?
<MichaelRaskin>
Well, the good mode of using Nix does require root access
<ali1234>
how does it create the device nodes in the image without fakeroot?
<c0bw3b>
phreedom : yes of course the date of the binary does not bother me but I wondered if it was still receiving new signatures
<dtzWill>
probably better off functionality-wise, if not performancce-wise, cross-compiling the bootstrap tools and using some sort of qemu binfmd_misc goodness and shipping it
<clever>
ali1234: nix builds always lack root, but it can fire up a qemu vm for cases when it does need to edit a filesystem image
<phreedom>
c0bw3b: the only way to see is to run their updater script. afaik it does
<dtzWill>
too many software packages have terrible build systems that always do the wrong thing
<dtzWill>
:P
<c0bw3b>
phreedom: yep indeed! I intend to try that :p
<ndowens08>
gchristensen: ok to create PR?
<ali1234>
i mean, i'm not looking for a distribution, i'm looking for a distribution build system... one that isnt completely awful
<ali1234>
i'm not even looking for a package manager
<NixOS_GitHub>
[nixpkgs] rycee pushed 1 new commit to release-17.03: https://git.io/vyBzO
<NixOS_GitHub>
nixpkgs/release-17.03 7618a9f Robert Helgesson: javasvn: remove...
<ali1234>
something that automates LFS would suit me, more or less
<dtzWill>
and in particular the cross-compiling support in Nix is a bit of a WIP last time I checked--I found things were much better if I just 'native' built from an appropriate stdenv
<ali1234>
or CLFS
<MichaelRaskin>
ali1234: you do know about ALFS, right?
<ali1234>
no, never heard of that one
* dtzWill
hopes it stands for automated-linux-from-scratch?
<ali1234>
it does apparently
<MichaelRaskin>
Yep
<ali1234>
but i need cross-LFS (and they dont even have instructions for ARM)
<MichaelRaskin>
Back in the days I have used it
<gchristensen>
ndowens08: I'm not sure 1.70 has been released
<ndowens08>
gchristensen: it hasn't really, it is almost; It seems to be tagged in the repo but not listed in releases just yet
<ndowens08>
if you look at, i think configure.ac it has 1.70
<ndowens08>
something like that anyway
<gchristensen>
I think we should wait
<ndowens08>
k will wiat then :) got another package to do anyway lol
<phreedom>
c0bw3b: virustotal still uses f-prot and lists it as updated
<gchristensen>
it is common to bump the version while it is in development still
<ali1234>
i have looked at OE/yocto/bitbake, buildroot, gentoo-cross with portage overlay... found them all lacking
<NixOS_GitHub>
[nixpkgs] LnL7 opened pull request #23573: gss: don't build with shishi on darwin (master...darwin-gss) https://git.io/vyBgI
mg_ has quit [(Ping timeout: 240 seconds)]
<ndowens08>
LnL: hey did you ever figure out that issue for that pkg, i forget the name, that failed to build on darwin, and you thought it might have been the ${cross}
<LnL>
have not looked at it yet
<ndowens08>
LnL: ah ok, no hurry, just was curious while i thought about it
<NixOS_GitHub>
[nixpkgs] grahamc pushed 1 new commit to master: https://git.io/vyBg1
<NixOS_GitHub>
nixpkgs/master 747b62f Robert Helgesson: photivo: fix build with lensfun >= 0.3
<ndowens08>
LnL: your comment on highlight package, it looks like it already has platforms.unix
<NixOS_GitHub>
[nixpkgs] grahamc pushed 1 new commit to release-17.03: https://git.io/vyBg9
<NixOS_GitHub>
nixpkgs/release-17.03 9279742 Robert Helgesson: photivo: fix build with lensfun >= 0.3...