zimbatm changed the topic of #nixos to: NixCon 2018 - 25-27 Oct in London https://nixcon2018.org/ || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon
goibhniu has quit [Ping timeout: 252 seconds]
<manveru> good enough :)
<gchristensen> a proper solution is to use `jq -r '.[0].Layers | .[]' image/manifest.json` as the list of parents, and fall back to the parent ID key if that isn't available
thc202 has quit [Ping timeout: 260 seconds]
<boomshroom> I'm a native English speaker and I have a very hard time with double letters. The fact that the root word only has 1 p, along with the suffix sometimes being "er" and sometimes being "or" doesn't help
<boomshroom> English often doubles the last letter when adding suffixes. There's really no rhyme or reason for most of what happens in English.
<boomshroom> Still doesn't solve my problem though. ;)
grumble has quit [Read error: Connection reset by peer]
gurmble has joined #nixos
gurmble is now known as grumble
<manveru> boomshroom: i'd ask on the forum
<DigitalKiwi> wow am I the only one that didn't find rawtaz rude I thought they were nice about it
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fAh0s
<boomshroom> I'll take a look at that, clever.
<boomshroom> We have a forum?
<boomshroom> I knew about this and the subreddit, but not a forum.
<gchristensen> we have a subreddit?
andreabedini has joined #nixos
<elvishjerricco> /r/NixOS, but it's fairly dead over there
grumble has quit [Quit: Freenode looks forward to seeing you at the freenode #live conference, in Bristol on November 3rd and 4th. Check it out at https://freenode.live or join #live or read the /motd for more info!]
slack1256 has joined #nixos
grumble has joined #nixos
<DigitalKiwi> next you'll say there's a gitter
<manveru> no, but matrix
<manveru> at https://riot.im/app/#/room/#nix:matrix.org
<DigitalKiwi> what about slack is nixos hip enough for slack
<gchristensen> I'm in a half dozen nix/nixos channels on Slack but they're all for different businesses
<{^_^}> [nixpkgs] @thoughtpolice pushed to master « libiio: install python bindings »: https://git.io/fAh0M
<manveru> yeah... i'd never use slack for open source
<{^_^}> [nixpkgs] @thoughtpolice pushed to release-18.09 « libiio: install python bindings »: https://git.io/fAh0N
<boomshroom> That was an amazing video, clever!
<DigitalKiwi> what are you like made of ram
<gchristensen> the RAM was bought and paid for by consulting so I think it works out
Rusty1 has quit [Quit: Konversation terminated!]
doyougnu has quit [Ping timeout: 272 seconds]
carlosdagos has joined #nixos
utdemir has joined #nixos
hamishmack has joined #nixos
sigmundv has quit [Ping timeout: 240 seconds]
sigmundv has joined #nixos
Rusty1 has joined #nixos
utdemir has quit [Remote host closed the connection]
utdemir has joined #nixos
sigmundv__ has joined #nixos
sigmundv has quit [Ping timeout: 240 seconds]
utdemir has quit [Quit: leaving]
jperras has joined #nixos
srk has quit [Ping timeout: 252 seconds]
utdemir has joined #nixos
Adluc has quit [Ping timeout: 252 seconds]
octovarnikd is now known as hexo
utdemir has quit [Client Quit]
snajpa has quit [Ping timeout: 252 seconds]
aither has quit [Quit: ZNC 1.7.1 - https://znc.in]
doyougnu has joined #nixos
sigmundv__ has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 252 seconds]
srk has joined #nixos
snajpa has joined #nixos
jperras_ has joined #nixos
jperras has quit [Ping timeout: 240 seconds]
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 252 seconds]
lassulus_ is now known as lassulus
jperras has joined #nixos
silver has quit [Read error: Connection reset by peer]
jperras_ has quit [Ping timeout: 244 seconds]
utdemir has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
slack1256 has quit [Ping timeout: 246 seconds]
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/3c85e586b39 (from 80 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
doyougnu has quit [Read error: Connection reset by peer]
ericsagnes has quit [Ping timeout: 252 seconds]
slack1256 has joined #nixos
asymmetric has quit [Ping timeout: 245 seconds]
ericsagnes has joined #nixos
<{^_^}> [nixpkgs] @aszlig pushed 2 commits to master: https://git.io/fAh2k
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adisbladis> gchristensen: I've wanted that capability in dockerTools for a long time <3
<adisbladis> Though this seems much more magical than I have envisioned
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<gchristensen> adisbladis: once you get to layer-per-path you need magic to prioritize the most likely to cache, I think
elevator_1 has quit [Quit: Lost terminal]
DigitalKiwi has quit [Read error: Connection reset by peer]
Ridout has quit [Quit: Lost terminal]
jasongrossman has quit [Ping timeout: 245 seconds]
jperras has quit [Read error: Connection reset by peer]
jperras has joined #nixos
jperras has quit [Read error: Connection reset by peer]
jperras has joined #nixos
mayhewluke has quit [Ping timeout: 245 seconds]
mayhewluke has joined #nixos
astronavt has quit [Ping timeout: 260 seconds]
jperras has quit [Ping timeout: 272 seconds]
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/3c85e586b39 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
andreabedini has quit [Quit: Textual IRC Client: www.textualapp.com]
doyougnu has joined #nixos
sb0 has quit [Quit: Leaving]
<adisbladis> gchristensen: store-path-to-layer.sh ends up in the store without executable permission
<adisbladis> I don't understand why though :S
<aminb> Mic92: thanks :)
<adisbladis> gchristensen: It seems fetchpatch strips away file permissions
<clever> adisbladis: fetchpatch forwards all args it doesnt support to fetchurl...
<clever> fetchpatch uses postFetch to normalize the patch
<clever> fetchurl has an executable flag
slack1256 has quit [Remote host closed the connection]
<clever> and fetchurl obeys executable just before it runs postfetch
<clever> adisbladis: it may or may not work, but try setting executable = true; as an arg to fetchpatch
slack1256 has joined #nixos
<adisbladis> clever: It's that normalisation process that removes executable bits for new files from the patch
<adisbladis> Which I think is very counter-intuitive
<clever> adisbladis: why does a patch need to be executable?
<adisbladis> clever: Not the patch itself, files created by the patch
<clever> ah
slack1256 has quit [Remote host closed the connection]
doyougnu has quit [Ping timeout: 252 seconds]
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<adisbladis> As I suspected: That algorithm doesn't work very well for my images, even with 128 layers :/
<adisbladis> I have ~800 packages in some of my builds
jackdk has joined #nixos
<adisbladis> gchristensen: Great work! Works wonders builds with smaller amounts of packages
<jackdk> is anyone free to have a look at pr #47313 ? It's small.
<{^_^}> https://github.com/NixOS/nixpkgs/pull/47313 (by endgame, 1 day ago, open): ultimate-oldschool-pc-font-pack: simplify using fetchzip
<adisbladis> I guess in these more pathological cases you just have to create layers by hand
grenade has quit [Ping timeout: 264 seconds]
slack1256 has joined #nixos
<{^_^}> [nixpkgs] @ento opened pull request #47414 → aws-env: init at 0.4 → https://git.io/fAhwz
<kandinski> currently upgrading to 18.09, binary caches working, all good!
<kandinski> (I thought only speaking up when something doesn't work and I require help was churlish, so here's to everything working perfectly :champagne_glass:)
Anton-Latukha has joined #nixos
grenade has joined #nixos
doyougnu has joined #nixos
doyougnu has quit [Ping timeout: 245 seconds]
Rusty1 has quit [Quit: Konversation terminated!]
sb0 has joined #nixos
sb0 has quit [Remote host closed the connection]
wpcarro has joined #nixos
phreedom_ has joined #nixos
phreedom has quit [Ping timeout: 256 seconds]
endformationage has quit [Quit: WeeChat 1.9.1]
andreabedini has joined #nixos
klntsky has quit [Remote host closed the connection]
klntsky has joined #nixos
<sphalerite> kandinski: \o/
utdemir has quit [Remote host closed the connection]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/a70d3bab72d (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
slack1256 has quit [Remote host closed the connection]
<Myrl-saki> This is not NixOS specific, but I don't think there's a NixOS option for this.
<Myrl-saki> How do I configure dhcpcd to use static IP if dhcpd has a certain MAC address, otherwise accept the reply.
<sphalerite> Myrl-saki: have you looked at man dhcpcd.conf yet?
<Myrl-saki> Nope.
<sphalerite> Myrl-saki: I think the arping option is what you want, but I've never done that sort of advanced dhcpcd configuration
<Myrl-saki> Thanks. Will give it a try.
<Myrl-saki> sphalerite: Oh yeah, that does seem to be it.
<sphalerite> s/that sort of advanced dhcpcd configuration/any dhcpcd configuration at all/
<Myrl-saki> sphalerite: I wonder if arping _default will work.
<sphalerite> :')
<Myrl-saki> [myrl@myrl-lappy:~/Development/skynet]$ sudo arping -I wlp2s0 _default
<Myrl-saki> arping: _default: Name or service not known
<Myrl-saki> sad lol
<Myrl-saki> Oh whoops, it's _gateway, not _default.
<sphalerite> How is that supposed to work when the DHCP client has yet to acquire an address and gateway?
<Myrl-saki> sphalerite: Oh, right, um.
<Myrl-saki> ' ^ '
<Myrl-saki> SAD
mkoenig has quit [Remote host closed the connection]
<sphalerite> fe80::1 might work except I'm not sure if ARP is still a thing for IPv6? Nor if your router supports IPv6
aither has joined #nixos
hyper_ch2 has joined #nixos
<sphalerite> yeah so apparently ARP is replaced by NDP for IPv6
mkoenig has joined #nixos
mkoenig has quit [Remote host closed the connection]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/4ad424fbd63 (from 33 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
georges-duperon has joined #nixos
reinzelmann has joined #nixos
rauno has joined #nixos
<rauno> Hey all
<rauno> when creating a go package, is there a way to get the go deps automatically or all of them must be defined ?
<rauno> Currently using some random go package as base and there they have separately godeps.nix ..
ThatDocsLady has joined #nixos
<adisbladis> rauno: There are a few ways to do this automatically: https://github.com/kamilchm/go2nix (traditional go) https://github.com/nixcloud/dep2nix (dep) https://github.com/adisbladis/vgo2nix (new go modules)
<adisbladis> You probably want go2nix
hamishmack has joined #nixos
mayhewluke has quit [Ping timeout: 260 seconds]
sb0 has joined #nixos
<rauno> so i'll just generate manually this dependencies.nix with go2nix and add it to nix package definition, right :)?
vilhalmer has quit [Ping timeout: 244 seconds]
mayhewluke has joined #nixos
<adisbladis> Yes. go2nix can also generate a default.nix.
vilhalmer has joined #nixos
Thra11 has joined #nixos
<rauno> great (Y)
georges-duperon has quit [Ping timeout: 250 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
alex`` has joined #nixos
brejoc has joined #nixos
andreabedini has quit [Read error: Connection reset by peer]
rauno has quit [Ping timeout: 245 seconds]
Ariakenom_ has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
HalfWord has joined #nixos
<Myrl-saki> sphalerite: You there?
<Xiro`> ,locate conkeror
<{^_^}> Found in packages: conkeror-unwrapped
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
thc202 has joined #nixos
civodul has joined #nixos
<sphalerite> Myrl-saki: sort of
goibhniu has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/a0248a0b681 (from 28 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
jackdk has quit [Ping timeout: 245 seconds]
<sphalerite> Myrl-saki: if you'd asked a question you hoped I'd answer I'd have answered it by now ;)
<{^_^}> [nixpkgs] @srhb merged pull request #47409 → golden-cheetah: add desktop item and icon → https://git.io/fAhqA
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fAhMk
<{^_^}> [nixpkgs] @srhb pushed commit from @flokli to release-18.09 « golden-cheetah: add desktop item and icon »: https://git.io/fAhMq
johanot has joined #nixos
georges-duperon has joined #nixos
<Myrl-saki> sphalerite: Not asking a question. This is the solution I went with. https://gist.github.com/adrianparvino/35e13bd2c05c959ed91b76b04d9c1610
<Myrl-saki> It has a lot of problems, but EH
<Myrl-saki> CLOSE ENOUGH
<Myrl-saki> :c
patrl has joined #nixos
<sphalerite> Myrl-saki: lol neat
<sphalerite> sort of
<Myrl-saki> I wonder if I can get this part of nixpkgs.
<Myrl-saki> wpaHook, I mean.
<sphalerite> Myrl-saki: why do you run it in an infinite loop?
<Myrl-saki> sphalerite: wpa_cli seems to die once it accepts an event.
<Myrl-saki> Okay, I'm talking BS.
<sphalerite> ah, it dies when wpa_supplicant dies though
<sphalerite> but I think it would make more sense to handle that with systemd?
<Myrl-saki> Yeah, it's a very rough draft.
Jackneill has joined #nixos
Jetien has joined #nixos
<Myrl-saki> sphalerite: Another problem I have is that wpa_supplicant is too fast lol
<Myrl-saki> sphalerite: If I sleep, then wpa_cli is too late because wpa_supplicant has already connected.
<Myrl-saki> Without the sleep, starts before wpa_passphrase is alvie.
<Myrl-saki> Err
<Myrl-saki> wpa_cli starts before wpa_supplicant is alive
<Myrl-saki> God, my laptop's keyboard is killing me.
<sphalerite> Myrl-saki: you need to put after = [ "wpa_supplicant.service" ]; in wpaHook
<sphalerite> Myrl-saki: because requires doesn't actually create an ordering relationship, only that if wpaHook runs wpa_supplicant must also run
<Purple-mx> iv been using iwd, its so fast. and reliable so far
Thra11 has quit [Ping timeout: 252 seconds]
<Purple-mx> I think connman can use it as backend, but iwctl works for me
<sphalerite> ugh connman
<Purple-mx> like, instant connect. very fast
<sphalerite> hm I didn't know about iwd, looks interesting
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/d26e830997d (from 11 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
<Myrl-saki> sphalerite: Still runs too fast, apparently.
<Myrl-saki> Sep 27 16:18:40 myrl-lappy bnsg7dxghggm81nvk9xinmdy0yygran9-unit-script-wpaHook-start[9588]: Failed to connect to non-global ctrl_ifname: (nil) error: No such file or directory
proksi[m] has left #nixos ["User left"]
<{^_^}> [nixpkgs] @srhb merged pull request #47369 → erlangR20: 20.3.8 -> 20.3.8.9 → https://git.io/fAxZx
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fAhyW
<sphalerite> Myrl-saki: you can also add a path unit that makes sure that the control socket exists before starting wpaHook
<Myrl-saki> sphalerite: path unit?
<Myrl-saki> Oh, found it.
fendor has joined #nixos
sigmundv has joined #nixos
fendor has quit [Remote host closed the connection]
dycan has joined #nixos
boomshroom has quit [Quit: WeeChat 2.1]
fendor has joined #nixos
sigmundv has quit [Remote host closed the connection]
<johanot> where to find the signature pubkeys for cache.nixos.org?
sigmundv has joined #nixos
<Purple-mx> it in the man page
<srhb> johanot: fwiw I believe it's actually baked into Nix.
<{^_^}> [nixpkgs] @srhb merged pull request #47367 → erlangR19: 19.3.6.6 -> 19.3.6.11 → https://git.io/fAx3Z
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fAh9C
Sigyn has quit [Quit: People always have such a hard time believing that robots could do bad things.]
<Purple-mx> that wouldnt make sense, but its in the nix repo
<srhb> Purple-mx: Hmm? That wouldn't make sense how?
<johanot> srhb: So.. I beleive my real question is: If I set a single custom key in "nix.binarycachepublickeys", will the key of cache.nixos.org still be trusted? (by some magic) :)
<srhb> johanot: Yes, I believe so.
<Purple-mx> then all nix binaries could become unsafe with a lost key
<johanot> srhb: So.. It can never be revoked? :D
<srhb> Sure, we just have to release a new Nix!
<srhb> But feel free to test whether I'm wrong :-P
adamt has joined #nixos
<Purple-mx> I took the key out of nix.conf several times and the nixos.org cache didnt check out
<srhb> Then I'm clearly wrong. :)
<andi-> it is a `listOf` attribute so it should append any other keys to the list.
<{^_^}> [nixpkgs] @xeji merged pull request #47410 → openmolcas: 20180529 -> 18.09 → https://git.io/fAhsv
<{^_^}> [nixpkgs] @xeji pushed commit from @markuskowa to master « openmolcas: 20180529 -> 18.09 (#47410) »: https://git.io/fAh96
<srhb> andi-: Depends on the priority of the default option.
<andi-> unless you do mkForce, mkDefault, ..
<Purple-mx> not really something youde wanna builtin
<johanot> srhb: Back to my orignal question.. Where's the key? :P
<Myrl-saki> sphalerite: Thanks.
<andi-> johanot: modules/services/misc/nix-daemon.nix:376
<Myrl-saki> sphalerite: I have something embarrassing in the source code I made profesionally..
<Purple-mx> nix.binaryCachePublicKeys in the man page
<Purple-mx> but again, thats not very secure
<adisbladis> On NixOS it's in `nixos/modules/services/misc/nix-daemon.nix`
<Purple-mx> dont know if they publish it somewhere
<Myrl-saki> sphalerite: TL;DR, I have inotifywait in my systemd script.
<Purple-mx> PKI is still in the dark ages
Sigyn has joined #nixos
Sigyn has quit [Excess Flood]
sigmundv has quit [Ping timeout: 252 seconds]
sigmundv__ has joined #nixos
<Purple-mx> well thats the hydra key, so no
<Purple-mx> if they arent the same
<adamt> Yes, there's this "example" key mentioned several places, but why-oh-why isn't it just printed directly on cache.nixos.org?
sigmundv__ is now known as sigmundv
<{^_^}> [nixpkgs] @xeji merged pull request #46977 → psmisc: 23.1 -> 23.2 → https://git.io/fAQla
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/fAh9y
<srhb> adamt: It probably should be, yeah.
<adamt> Also johanot would like to point out that was his idea, not mine. :P
<srhb> Suuure
<johanot> adamt: oh just.. stop :P
<tobiasBora> Hello,
<srhb> adamt: johanot: Maybe raise an issue on the nixos homepage repo?
<srhb> I can't find the sources for the cache front page directly, but that would be a place to start.
<Purple-mx> good question thou
<Purple-mx> we could also setup something for different people to compare their builds
<tobiasBora> I'd like to know, when I install a new app, and reboot, KDE system does not take into account the new .desktop file that appears in /run/current-system/sw/share/applications, *even if I reboot*. However, once I run "kbuildsyscoca5", the menu is updated. Shouldn't "kbuildsyscaco5" be run automatically?
<srhb> Purple-mx: Hmm? What do you mean? Bitwise?
<Purple-mx> yea since they should be identical
<srhb> They're not.
<srhb> It would be interesting to know how much they're not, though.
<Purple-mx> well, not all packages
<srhb> We can take bets. I'd say 80% of all packages are bitwise non-deterministic :P
<Purple-mx> certainly, the statically compiled simple things are
<symphorien> Purple-mx: there is nix-build --check for this (if I understand what you mean correctly)
<srhb> Debian probably knows better.
<Purple-mx> 80% of packages I have no interest in :)
georges-duperon has quit [Ping timeout: 252 seconds]
<Purple-mx> most of nixpkgs is just bload
<srhb> Opinions, opinions... ;)
<Purple-mx> but my gf likes vscode, so I cant complain
<Purple-mx> at least shes not using msft office
<{^_^}> [nixpkgs] @srhb pushed 2 commits to release-18.09: https://git.io/fAhH3
georges-duperon has joined #nixos
<Purple-mx> I still plan to build a minimal fully static base sys
<Purple-mx> like oasis
<srhb> Why static?
rauno has joined #nixos
<Purple-mx> or stali
<Purple-mx> its faster, and why not
Sigyn has joined #nixos
* srhb shrugs
<srhb> I guess, if you have the disk space :)
<Purple-mx> someone here is doing it, I remember him/her reporting some amazing benchmarks
<Purple-mx> well, oasis builds the entire OS in under 10mins
<Purple-mx> its pretty small
<srhb> I live in the dark ages with tiny harddrives, so statically linking my system would be a largeish problem.
<Purple-mx> there aint no electron/chrome in it!
jperras has joined #nixos
<Purple-mx> how small is tiny
<Purple-mx> my workstation has 200gb ssd
<srhb> Yeah, same here.
<Purple-mx> thats big I find
<Purple-mx> I used to live in 16gb for a while
<Purple-mx> not with nixos thou
<srhb> Indeed. Right now my store is 100GiB. Can't really imagine what would happen if most things were statically linked. But maybe it's okay for the base system, though I'd be surprised if it were that much faster. I've never investigated the impact though.
<Purple-mx> less context switching
<srhb> How so?
<Purple-mx> load only one binary
<srhb> I mean, aren't all the context switching shimmed in via the magical kernel loader anyway?
jperras has quit [Ping timeout: 246 seconds]
<Purple-mx> nothing is free
<adisbladis> tobiasBora: That would require some dark magic. Maybe we should have a systemd unit that is injected for every user logging in with KDE that does that?
<Purple-mx> cheap, certainly
<srhb> Hmm. I don't know enough about this to say one way or the other, but I'm surprised and don't really understand where any extra context switches would be coming from.
<srhb> Anymoo, this is probably a topic for #nixos-chat
<{^_^}> [nixpkgs] @xeji merged pull request #47359 → newsboat: 2.12 -> 2.13 → https://git.io/fAxUl
<{^_^}> [nixpkgs] @xeji pushed commit from @dywedir to master « newsboat: 2.12 -> 2.13 (#47359) »: https://git.io/fAhHh
<tobiasBora> adisbladis: kbuildcoca can't be run "systemwide" as root?
<Purple-mx> srhb I enjoyed reading this recently, still have to try it thou - https://jamesmunns.com/blog/tinyrocket/
dycan has quit [Ping timeout: 246 seconds]
<srhb> Purple-mx: Thanks
<Purple-mx> 87% binary size reduction
<Purple-mx> np
<adisbladis> tobiasBora: Iirc it is being run on system activation
<adisbladis> tobiasBora: But that does not affect the current desktop session
<tobiasBora> adisbladis: well on my case even after reboot I still didn't have any update
<adisbladis> tobiasBora: Does your user has isNormalUser set?
<rauno> adisbladis, before u suggested to use go2nix for package generation, not sure but somewhy it doesnt add any dependencies to deps.nix :)
sigmundv has quit [Remote host closed the connection]
<adisbladis> rauno: Follow the readme in the repo. It's not entirely intuitive imho
sigmundv has joined #nixos
<Phlogistique> Is there a pre-canned way to produce a tar.gz of (a closure + a set of symbolic links to the interesting paths, stored in, say, /usr/local/...)
tg has quit [Excess Flood]
<Phlogistique> something like 'find result -type f | while read f; do mkdir -p fhs/usr/local/$(dirname $f); ln -s $(realpath $f) fhs/usr/local/$f; done; tar caf portable-install.tar.gz -C fhs . $(nix-store -qR result)'
philippD has joined #nixos
<srhb> Phlogistique: Hmm. I think the easiest way would be to buildEnv first and then tar that up.
<Phlogistique> srhb: I'll look into what buildEnv does, thanks
<srhb> Then you'd just have to traverse the dependencies in Nix itself.
DigitalKiwi has joined #nixos
<srhb> Speaking of buildEnv, does anyone know which side wins if you have a conflict and ignoreCollisions?
<teto> srhb: the dark side ? dunno sry :/
<Phlogistique> unrelated question: is there a way to check the version of Nixpkgs from my Nix code?
<srhb> Time to read some perl I guess
<srhb> Phlogistique: lib.version I think
tg has joined #nixos
tg has quit [Excess Flood]
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/a70d3bab72d (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
tg has joined #nixos
carlosdagos has quit [Quit: Connection closed for inactivity]
Twey has joined #nixos
orivej has joined #nixos
asymmetric has joined #nixos
__monty__ has joined #nixos
bennofs has joined #nixos
Dedalo has joined #nixos
mayhewluke has quit [Ping timeout: 252 seconds]
mayhewluke has joined #nixos
<{^_^}> [nixpkgs] @volth opened pull request #47416 → remove Perl 5.22 and 5.24 (end-of-life upstream few months ago) → https://git.io/fAhNq
asymmetric has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @Synthetica9 opened pull request #47417 → atom, atom-beta: 1.30.0 -> 1.31.0, 1.31.0-beta0 -> 1.32.0-beta0 → https://git.io/fAhN6
Mateon2 has joined #nixos
Mateon1 has quit [Ping timeout: 252 seconds]
Mateon2 is now known as Mateon1
<{^_^}> [nixpkgs] @timokau merged pull request #47043 → jmol: 14.29.19 -> 14.29.22 → https://git.io/fA7Im
<{^_^}> [nixpkgs] @timokau pushed 2 commits to master: https://git.io/fAhAU
Twey has quit [Ping timeout: 245 seconds]
<tobiasBora> adisbladis: yes
Twey has joined #nixos
<tobiasBora> Hum... Also I've a question, why does "nix-shell -p python2
<tobiasBora> " works, but not "nix-shell -p python2 -p bash --run "bash""?
<infinisil> ,dnw
<{^_^}> "Does not work" isn't very helpful: What doesn't work? What's the error?
<infinisil> (unless I'm missing context here)
<tobiasBora> (in the second I have a bash with strange start/end, the python executable is not found, and all usefull tab completion sutff are disabled anyway)
<tobiasBora> infinisil: yes, I was writting it ;)
<srhb> tobiasBora: You're probably 1) losing the path that you'd get from not using --run bash and 2) getting fun nesting of PS1
<tobiasBora> srhb: I don't understand why I lose the path. If I use "python" instead of "bash" it founds the exec, so what's wrong with bash?
<srhb> Actually I'm not quite sure how you're losing path. Probably some bash init scripts
<srhb> tobiasBora: wfm :) Except the fun PS1 mangling. Don't nest it like that. :)
<srhb> What you're doing doesn't really make sense to me anyway. What are you actually trying to achieve?
rauno has quit [Ping timeout: 245 seconds]
<srhb> nix-shell already gives you a bash(Interactive)
<tobiasBora> srhb: Well I guess I'm trying to understand what nix-shell does. For me, nix-shell setups a given set of paths/closures/libraries provided the -p options, an then run the program given in "--run"
<srhb> (Which, if you used that, would probably fix PS1 anyway, but I don't see why you'd want to specify that manually)
<srhb> tobiasBora: Yep, that's the case.
<tobiasBora> srhb: well I'll for sure use the "nix-shell -p python" method, but I'd like to understand also why the other method fails
<tobiasBora> srhb: so what's the fundamental difference between --run bash, and nothing?
<srhb> tobiasBora: Again I'm not sure why your PATH is wrong, that must be some local bash setup on your side
<srhb> tobiasBora: Nothing really, but you're getting a different bash than you expect.
<tobiasBora> srhb: my bashrc is empty ^^
<srhb> I do guess you may be skipping some shellHooks
asymmetric has joined #nixos
<tobiasBora> hum...
<tobiasBora> and also why is there this PS1 nest problem?
<srhb> because you're using bash instead of bashInteractive
<tobiasBora> srhb: what? bash and bashInteractive are not the same?
<tobiasBora> Then why don't I have this problem when I type directly "bash" on my console?
<srhb> tobiasBora: the executable is named bash in both packages
<srhb> tobiasBora: try exchanging -p bash with -p bashInteractive
<{^_^}> [nixpkgs] @domenkozar pushed commit from @dezgeg to nixos-tests-debug « Add ssh backdoor to VM tests infrastructure. »: https://git.io/fAhxg
Synthetica has joined #nixos
sb0 has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @domenkozar opened pull request #47418 → Add ssh backdoor to VM tests infrastructure. → https://git.io/fAhxX
<etu> Hmm, nixos-unstable moved forward recently. Which is nice. But I'm a but confused about it actually doing it: https://hydra.nixos.org/job/nixos/trunk-combined/tested#tabs-constituents
<srhb> tobiasBora: I don't know about your PATH issue though. That's a bit surprising to me. But I don't know exactly what you're disabling when you use --run like that. It might work with --command instead
<etu> It says green at the top but there's a big bunch of timeouts
oida has quit [Remote host closed the connection]
<srhb> etu: Um, yes...
oida has joined #nixos
<srhb> And if we look closer, there's a bunch of timeouts
<srhb> This does appear to be a bug.
simukis has joined #nixos
<etu> And possibly a dangerous one I'd say
<srhb> etu: Yep, thanks for the heads-up.
<srhb> I'll write up an issue.
<srhb> Best case it's due to restarts
<etu> srhb: Thanks :)
<srhb> And tested really was okay at some point. But then I believe latest-finished should jump back in time.
Wharncliffe has joined #nixos
<azazel> srhb: restarts? care to explain it better?
<adamt> the colouring of the job id's on hydra is awful. The good one is just this silly red/green colour :P
<srhb> azazel: Not really, I'm a bit fuzzy on Hydra's interpretation of "latest-finished" when restarts are involved, and I'd rather not misinform you :)
<etu> srhb: Link the issue here when you've written it so I can subscribe to it:)
<azazel> srhb: ok, nevermind
<etu> adamt: There's also the blue one which seems to be "haven't failed yet"
<{^_^}> [nixpkgs] @xeji merged pull request #47416 → remove Perl 5.22 and 5.24 (end-of-life upstream few months ago) → https://git.io/fAhNq
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/fAhp8
<tobiasBora> srhb: ohh I understand, now it works great
<tobiasBora> srhb: and I don't know why I can't reproduce the PATH issue
<tobiasBora> I guess I just though there were an issue because I couldn't tab complete
georges-duperon has quit [Ping timeout: 252 seconds]
<srhb> Ah, that makes more sense.
<{^_^}> [nixpkgs] @domenkozar pushed commit from @dezgeg to nixos-tests-debug « Add ssh backdoor to VM tests infrastructure. »: https://git.io/fAhp1
<tobiasBora> srhb: thank you very much for your help!
<srhb> tobiasBora: Welcome
<srhb> etu: You're etu on github as well, right?
<tobiasBora> I'm also thinking, why doesn't nix provide a way to run "/bin/env python"? Because it means that when I download a python script, I need to modify the shebang everywhere in the source, and it looks really dirty, especially when you want to distribute a code to other people/distros
<etu> srhb: yea:)
<adamt> tobiasBora: e.g. #!/usr/bin/env python
<etu> tobiasBora: nix has a /usr/bin/env, so you can write your own scripts like that. And for packages we patch the shebangs with a command called patchShebangs, you can find use of it in many places in nixpkgs :)
<wirew0rm> one thing that tends to confuse me is finding derrivations. https://nixos.org/nixos/packages.html#, nix search and command-not-found all seem to use different data sources/semantics.
<srhb> wirew0rm: iirc nix search searches whatever nixpkgs is on your NIX_PATH, command-not-found uses some specific database generated (maybe on hydra?) by necessity, and packages.html uses the latest release as a source.
<srhb> When in doubt, I'd prefer nix search.
<wirew0rm> ah and i forgot locate in this channel ^^
iyzsong has joined #nixos
<vdemeester> gchristensen: on `buildLayeredImage` (and `buildImage`) are only generating a docker image tarball (that can be loaded in a docker daemon), right
<vdemeester> ?
<srhb> wirew0rm: You can get that feature locally (mostly) using the nix-index package
kiloreux has quit [Ping timeout: 245 seconds]
<Jetien> Are there some helper functions that allow you to use callPackage on IFDs?
<Myrl-saki> Jetien: What do you mean by that?
<Jetien> Myrl-saki: I want to refactor (callPackage ./foo/default.nix {}) to (f <expr> {}) where <expr> = import "${someDerivation}"/default.nix ... Come to think of it... wouldn't a solution be to drop the "import" and then f=callPackage ?
<Myrl-saki> Jetien: I don't think you can callPackage a URL.
<Jetien> More simply is (callPackage ./foo/default.nix {}) equivalent to (callPackage "${someDerivation}/default.nix" {}) ?
<srhb> Jetien: assuming that ./foo is relative to the store path of someDerivation, yes
<Myrl-saki> A URL is equivalent to a string, FWIW.
<Myrl-saki> Rather, a URL *is* a string.
<Myrl-saki> Er, wait, I got side-tracked there.
<Jetien> hehe :)
<Myrl-saki> Jetien: And yeah, that's correct.
<Myrl-saki> Wait, is it?
<Myrl-saki> Let me check.
<srhb> Jetien: I'm not sure what you're asking. I think it's "can I callPackage a nix file I fetched with some fether" -- and the answer is yes.
<srhb> s/fether/fetcher
<Myrl-saki> callPackage "${toString ./default.nix}" {}
<srhb> (Assuming you allow IFD in general)
jperras has joined #nixos
<Myrl-saki> Seems like you can callPackage with a string. TIL.
<Jetien> srhb: yes, that's what i should have asked
kiloreux has joined #nixos
<Twey> Myrl-saki: You can generally convert strings to paths, so long as they're absolute
<Myrl-saki> Twey: toString *will* convert the path to a string that's absolute.
jperras has quit [Ping timeout: 246 seconds]
<Twey> Myrl-saki: I mean, you can generally do the conversion in the other direction
<Myrl-saki> Oh whoops.
<Myrl-saki> Hm
<Twey> I think all functions that take paths will also take absolute strings
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/cdb33d1ddcf (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<azazel> often people use paths like "${foo}/bin/bar", but it can be also done like foo + /bin/bar
<Myrl-saki> Twey: Good point.
<Myrl-saki> azazel: Yeah, it's a matter of opinion I guess.
<Myrl-saki> azazel: Though, ${foo} != ${toString foo} luckily didn't have to learn that the hard way. :P
<Myrl-saki> nix-repl> let str = "${toString /tmp/default.nix}"; in "${builtins.toPath str}"
<Myrl-saki> "/tmp/default.nix"
<Myrl-saki> Though..
<Myrl-saki> nix-repl> /tmp/default.nix
<Myrl-saki> /tmp/default.nix
<Myrl-saki> Seems like toPath has a problem with me.
<Myrl-saki> Ah, `builtins.toPath` seems to be better called "to absolute string path"
<Myrl-saki> nix-repl> builtins.toPath ./default.nix
<Myrl-saki> "/tmp/default.nix"
georges-duperon has joined #nixos
silver has joined #nixos
<{^_^}> [nixpkgs] @roberth pushed to roberth-patch-1 « rabbitmq module: Update documentation »: https://git.io/fAje1
patrl has quit [Ping timeout: 250 seconds]
kiloreux has quit [Ping timeout: 272 seconds]
kiloreux has joined #nixos
<Twey> Myrl-saki: Ah, I forgot
<Twey> Myrl-saki: Path literals are actually copied/expanded to strings in the parse phase, I think
<Twey> So paths don't exist in the language at run time
<Twey> They're just absolute strings
<Twey> I remember reading that somewhere
<Myrl-saki> Twey: I don't think so.
<Myrl-saki> Oh wait, you might be right.
<Myrl-saki> Twey: Though, to make one thing clear, I believe that there are path types.
<{^_^}> [nixpkgs] @domenkozar pushed commit from @dezgeg to nixos-tests-debug « Add ssh backdoor to VM tests infrastructure. »: https://git.io/fAjv8
<Myrl-saki> But I think they only differ in the result of "${x}"
<Twey> Myrl-saki: No, I misremembered, it's just the relative path to absolute path translation that happens at parse time
<Twey> But it remains a path value
<Myrl-saki> Right.
<Twey> « If the file name is relative, i.e., if it does not begin with a slash, it is made absolute at parse time relative to the directory of the Nix expression that contained it. »
<Myrl-saki> Ah.
<Myrl-saki> I wonder how that relates with things like nix repl.
<Twey> §15.1
<Twey> Yeah
<Myrl-saki> Twey: Also, I love how clean that statement is, actually. By having that statement, `--arg x ./.` theoretically doesn't require special parsing.
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
vandenoever has quit [Ping timeout: 252 seconds]
<Twey> Myrl-saki: It feels like a weird thing to do at parse time, to me
<Twey> Rather than an AST pass
<Twey> But it works fine and the result is good :)
<{^_^}> [nixpkgs] @va1entin opened pull request #47420 → pythonPackages.pynacl: 1.2.1 -> 1.3.0 → https://git.io/fAjfu
<flokli> somebody at all systems go in berlin this weekend?
<flokli> I'll be there starting with the preregistration event this evening
xok has joined #nixos
<xok> hello all..
<Myrl-saki> [myrl@myrl:/tmp]$ nix run nixpkgs.nix-repl -c nix-repl
<Myrl-saki> error: nix-repl has been removed because it's not maintained anymore, use `nix repl` instead. Also see https://github.com/NixOS/nixpkgs/pull/44903
<Myrl-saki> :c
<xok> I want to install a perl module on nixos...
<xok> something like this in a normal system: cpan App::cpanminus
<xok> how do I achieve the same result in nixos declaratively?...
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/3c85e586b39 (from 11 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/a70d3bab72d (from 9 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<Myrl-saki> HAH!
<Myrl-saki> nix-repl> ./default.nix
<Myrl-saki> /tmp/default.nix
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ThatDocsLady has quit [Remote host closed the connection]
ThatDocsLady has joined #nixos
<infinisil> Myrl-saki: I had to fight to get that nix-repl error message instead of it just being removed without explanation :/
<{^_^}> [nixpkgs] @domenkozar pushed commit from @dezgeg to nixos-tests-debug « Add ssh backdoor to VM tests infrastructure. »: https://git.io/fAjTJ
<Myrl-saki> infinisil: Why were people against it?
<infinisil> I guess not many were against the warning, more people were against the readding
<infinisil> And the PR in the error message was my attempt to readd it
<{^_^}> [nixpkgs] @domenkozar pushed commit from @dezgeg to nixos-tests-debug « Add ssh backdoor to VM tests infrastructure. »: https://git.io/fAjTt
<Myrl-saki> infinisil: Yeah, seems fair.
<Myrl-saki> infinisil: Thanks for the discussion link.
<Myrl-saki> Also, drop Nix 1 support in what sense?
<srhb> nix-repl is Nix 1.x only.
<Myrl-saki> srhb:They were talking about Nix 1 deprecation.
<srhb> Yes. Hence.
<infinisil> > builtins.readFile <nixpkgs/lib/minver.nix>
<{^_^}> "# Expose the minimum required version for evaluating Nixpkgs\n\"2.0\"\n"
<infinisil> Oh that's a bit of an older nixpkgs version
<Myrl-saki> Are they talking about nix-*?
<infinisil> It's not 2.0 in master
<srhb> infinisil: Yes it is.
johanot has quit [Remote host closed the connection]
<etu> 2.1 is in master
<infinisil> Huh
<{^_^}> #46401 (by matthewbauer, 2 weeks ago, merged): [18.09] set min version back to 1.11
<srhb> That's 18.09
<infinisil> Was this rereverted?
<infinisil> Ohh right
<srhb> The bump was pushed to 19.03
<infinisil> Yeah got it now
<Myrl-saki> Oh, Nix the langauge, not Nix the command line tools?
<srhb> Yes.
<srhb> Well, "both"
<srhb> Nix the protocol and evaluator...
<srhb> God we have many things named Nix.
<Myrl-saki> lol
<infinisil> But now the nix-repl removal is kinda bad, because people in 18.09 might have neither nix-repl nor nix repl :/
<Myrl-saki> Wait.
<srhb> Yes, I'm sad the bump didn't happen.
<Myrl-saki> nix-* was traditionally in Perl, right?
<Myrl-saki> build and shell?
<srhb> Yes.
<infinisil> (I was one of the initiators of above PR heh)
<Myrl-saki> But nix-{build,shell} is now implemented in C++.
<Myrl-saki> Is the current nix-{build,shell} implementation considered as Nix 2 or no?
<srhb> Yes, it's Nix 2.
<Myrl-saki> So they won't be deleted on 19.03?
<srhb> No.
<Myrl-saki> Okay, good. :P
<infinisil> The new nix command is just an unfinished, incomplete, yet not well documented addition to 2.0
* Myrl-saki is personally not a fan of hydra functions.
<infinisil> And the old commands won't go away in the next 10 years or so, if ever
<srhb> ... hydra functions?
<srhb> Oh, "command-style" ?
<Myrl-saki> We have too many unnamed styles. :P I'll just call them git style interface.
<srhb> Yeah, I know them as command-style.
<srhb> `executable command arguments`
<srhb> I have zero opinion on that, I think. I like clean namespaces though, so leaning towards them.
<Myrl-saki> Ah, makes sense.
<srhb> Better tab completion.
<srhb> And yeah, there's plenty of reasons to be a bit confused about Nix 2. Partially because of all the components :D
<srhb> But the short story is that there's no nix 1 remnants in the commands except for nix-repl, which has been removed.
Dedalo has joined #nixos
<Myrl-saki> Hm.
<xok> srhb: Did you give up completely on zabbix or do you still plan to update the package?...
<srhb> xok: I gave up completely. I should close that PR.
<{^_^}> [nixpkgs] @srhb closed pull request #31123 → NixOS/zabbix-{server,agent}: 1.8 -> 3.4 wip → https://git.io/vFsi2
<srhb> Ooooh that felt good.
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/cdb33d1ddcf (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<azazel> noo, really 18.09 will come out wit nix 1.x?
<infinisil> No
<infinisil> It's just the minimum required Nix version for evaluating nixpkgs
<azazel> ah
<azazel> sorry for the noise
<srhb> It'll come with Nix 1 in the sense that you can choose to use nix1 :P
Wharncliffe has quit [Ping timeout: 260 seconds]
<cyris212> Is there a simple way to get pip working on nixos?
<cyris212> I always get "Can't connect to HTTPS URL because the SSL module is not available."
<azazel> cyris212: read the python section in the nixpkgs manual
<cyris212> azazel: thx
<azazel> cyris212: there is a nix-shell nix to run in an "hybrid" setup like yours
<azazel> srhb: I've jumped the 2.x bandwagon and I stopped caring about "nix --help" last line :-P
<srhb> azazel: I use the nix command-style for some things and not others
<tobiasBora> adamt: Ok i got it, I needed to explicitely install python2/3. Any idea if it's possible to change the default interpreter for the command "python"?
<tobiasBora> etu: ok thank you!
<srhb> tobiasBora: If you install python3, python --version is python3
<srhb> tobiasBora: If you install python2 and 3, python is python2, because it has a higher priority.
<srhb> If you wish the have both installed and have python be python3, alter the priority of python3 to be higher than that of python2 (or alter python2 to be lower than python3)
johanot has joined #nixos
<tobiasBora> srhb: oh you have package priority?? Interesting. I found "nix-env --set-flag priority" for nix-env, but I'm using nixos-rebuild switch and I can't find how to change priority
<tobiasBora> or maybe it depends on the order of the expressions?
<srhb> tobiasBora: foo.overrideAttrs (oa: { meta.priority = ... ; } )
<srhb> It's really just "who wins when we merge paths together"
<Myrl-saki> TIL priority.
<srhb> And very different from eg. option priority
sb0 has joined #nixos
<srhb> In which case we only merge the highest priority options..
<Myrl-saki> Oh, but there's also order, I believe?
reinzelmann has quit [Quit: Leaving]
<xok> I am trying to install a perl module which is been built on the fly...
<tobiasBora> srhb: the default priority isn't 0? I tried to setup priority to 2 for python3, and I still have python2 by default
<xok> and the build process requires "pwd" which seems to be missing...
<xok> can anyone help me include it during the process?...
<xok> this is what I get...
<srhb> tobiasBora: python2 has -100
<gchristensen> tobiasBora: if you have python2 and python3 installed at the same time, according to Python's rules, `python` _must_ be `python2`
<tobiasBora> srhb: And python3 is 0? then why is python2 selected by default?
<gchristensen> because of the rule ^
<tobiasBora> gchristensen: ok good to know. I'm doing that more to learn how to do that in nix ;)
<srhb> gchristensen: I don't think so? Where is that rule?
<gchristensen> tobiasBora++
<{^_^}> tobiasBora's karma got increased to 1
<tobiasBora> gchristensen: thanks ;)
<tobiasBora> gchristensen++
<{^_^}> gchristensen's karma got increased to 29
<tobiasBora> srhb++
<{^_^}> srhb's karma got increased to 20
<tobiasBora> clever++
<{^_^}> clever's karma got increased to 27
<tobiasBora> I like that ^^'
<tobiasBora> sphalerite++
<{^_^}> sphalerite's karma got increased to 26
<tobiasBora> sorry for spam
<gchristensen> "for the time being, all distributions should ensure that python, if installed, refers to the same target as python2, unless the user deliberately overrides this or a virtual environment is active."
<srhb> gchristensen: I mean, where do you think we implement this aside from meta.priority?
<tobiasBora> gchristensen: and if I want to "deliberately overrides", how should I do that in nix?
<gchristensen> nowhere
<gchristensen> don't install python2 :)
<srhb> Indeed
<srhb> So the answer is "because python2 is -100, so python3 with 0 has lower priority"
<tobiasBora> and if I want python2 ?^^
<srhb> tobiasBora: If you set python3 to eg. -200, it'll win
<tobiasBora> srhb: ohhh
<tobiasBora> you mean that higher priority is lower priority
<infinisil> > lib.highPrio
<{^_^}> attribute 'highPrio' missing, at (string):195:1
<srhb> Higher number = lower priority
<gchristensen> kind of unintuitive :)
<infinisil> > lib.hiPrio
<{^_^}> <LAMBDA>
* tobiasBora hit the face on the screen
<tobiasBora> hits*
patrl has joined #nixos
<infinisil> > deepEval (lib.hiPrio {})
<{^_^}> { meta = { priority = -10; }; }
<infinisil> python2 should really be -5 or so, such that this function can override it
<infinisil> Or hiPrio should be -1000
<srhb> But then we'd be making it easy to break the rule!
<srhb> :P
<infinisil> That's a point
<srhb> Yes, and I agree. :P
sir_guy_carleton has joined #nixos
<tobiasBora> ok, so -300 works great. thank you!
<tobiasBora> now let's remove the rule gchristensen :P
jkarni has joined #nixos
<gchristensen> :D
<srhb> tobiasBora: Expect the things you download to break on version compatibility instead now, though :P
<tobiasBora> srhb: yes, that's why I removed this rule, I finished my exercice, don't need it anymore!
<srhb> Hehe
<Twey> I think the manual isn't correct re builtins.toPath
<jkarni> are there examples of using (haskell's) stack inside nixos? I've come across stack2nix, stackage2nix and other examples, but every solution I've tried fails in some way
<Twey> « Convert the string value s into a path value. The string s must represent an absolute path (i.e., must start with /). The path need not exist. The resulting path is canonicalised, e.g., builtins.toPath "//foo/xyzzy/../bar/" returns /foo/bar. »
<Twey> nix-repl> builtins.toPath "//foo/xyzzy/../bar/" ⇒ "/foo/bar"
<Twey> nix-repl> /foo/bar == "/foo/bar" ⇒ false
<tobiasBora> Also, what's wrong in "nix eval nixpkgs.python3.meta.priority"
<tobiasBora> oh ok
<tobiasBora> python3 just don't have this, so it defaults to 0 I guess
<gchristensen> Twey: "/foo/bar" isn't the same as /foo/bar
<gchristensen> oh, "into a path value" being the part in question?
<Twey> gchristensen: Exactly
<Twey> gchristensen: Yes
<Twey> gchristensen: It actually seems to return a string
<gchristensen> toPath is so confusing
johanot has quit [Quit: leaving]
<infinisil> > builtins.toPath //var/lib/nixbot
<{^_^}> value is a built-in function while a set was expected
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil> > builtins.toPath "//var/lib/nixbot/.."
<{^_^}> "/var/lib"
<infinisil> > thepath = builtins.toPath "//var/lib/nixbot/.."
<{^_^}> thepath defined
patrl has quit [Ping timeout: 252 seconds]
<infinisil> > builtins.typeOf thepath
<{^_^}> "string"
<infinisil> > builtins.typeOf "/var/lib"
<{^_^}> "string"
<infinisil> > thepath == "/var/lib"
<{^_^}> error: syntax error, unexpected '=', at (string):162:12
<infinisil> > (thepath == "/var/lib")
<{^_^}> true
<infinisil> Works for me!
<infinisil> Oh, you meant /var/lib without quotes
<infinisil> Yeah, string vs path difference
<infinisil> and toPath apparently returns a string
bennofs has quit [Quit: WeeChat 1.3]
jperras has joined #nixos
Adluc has joined #nixos
jperras has quit [Ping timeout: 252 seconds]
Twey has quit [Ping timeout: 272 seconds]
georges-duperon has quit [Ping timeout: 240 seconds]
Twey has joined #nixos
<Twey> infinisil: toPath should return a path, surely
<Twey> That's what the manual says, at least
iyzsong-x has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #35690 → nixos/rspamd: Preserve runtime directory when using socket activation → https://git.io/vAKxA
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAjOq
<Twey> If it just makes a string absolute it should probably be renamed
<{^_^}> [nixpkgs] @Mic92 pushed commit from @griff to release-18.09 « nixos/rspamd: Preserve runtime directory when using socket activation »: https://git.io/fAjOC
iyzsong has quit [Ping timeout: 272 seconds]
Dedalo has joined #nixos
jasongrossman has joined #nixos
<{^_^}> [nixpkgs] @peti pushed 5 commits to haskell-updates: https://git.io/fAjOM
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « all-cabal-hashes: update to Hackage at 2018-09-27T00:15:48Z »: https://git.io/fAjOx
<{^_^}> [nixpkgs] @peti pushed 6 commits to master: https://git.io/fAjOp
iyzsong has joined #nixos
iyzsong-x has quit [Ping timeout: 245 seconds]
<hyper_ch2> sphalerite: online?
<Taneb> I think the version of haskellPackages.generic-lens in nixpkgs 18.09 is broken... let me double-check
<srhb> Taneb: confirmed.
aminechikhaoui has quit [Ping timeout: 240 seconds]
mayhewluke has quit [Ping timeout: 260 seconds]
lebel has joined #nixos
mayhewluke has joined #nixos
<Taneb> Seems to be a problem with the version on Hackage
<{^_^}> kcsongor/generic-lens#60 (by kquick, 6 weeks ago, merged): Fix examples-doctest to find generic-lens modules.
<Myrl-saki> How to know somethings is broken.
<Myrl-saki> ... building generic-lens-1.0.0.2 (compileBuildDriverPhase):
<Taneb> For now I've overridden it with "dontChek"
<Taneb> *dontCheck
<srhb> Taneb: :)
<Myrl-saki> Hm. Did nix build always print error logs?
<{^_^}> [nixpkgs] @dtzWill opened pull request #47422 → udisks: 2.8.0 -> 2.8.1 → https://git.io/fAjsH
jperras has joined #nixos
asymmetric has quit [Ping timeout: 252 seconds]
<adamt> I'm testing nix-serve now. It seems to work, until I enable nix.requireSignedBinaryCaches, which causes errors like "warning: substituter 'https://nix-cache.dbc.dk' does not have a valid signature for path '/nix/store/lyvgswd1nplqix8izq2mdylcplb1i6p0-ceph-13.2.1'". nix-serve doesn't say anything in the logs, and the generated narinfo seems to be signed by us
<adamt> I even generated a new set of keys, with the same result
<gchristensen> is the signature trusted by Nix on that computer?
alex`` has quit [Quit: WeeChat 2.2]
<adamt> I added it to binaryCachePublicKeys in the form "nix-cache.dbc.dk-1:4npBH1Tha35M3v2Ajy7x5GkjClSG97cfqfBHqCtoiW8=" -- should the name of the key be stripped away?
<adamt> *nix.binaryCachePublicKeys
<srhb> adamt: does nix show-config show that key?
Rusty1 has joined #nixos
alex`` has joined #nixos
<srhb> I like the -1 convention. Is that meant to be an "oops"-counter? :P
<adamt> srhb: Yes, but it's a bit weird: trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-cache.dbc.dk-1:4npBH1Tha35M3v2Ajy7x5GkjClSG97cfqfBHqCtoiW8= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
<adamt> that cache.nixos.org-1 shows up first and last
<adamt> srhb: Yes, it's an officially recommended oops-counter
<srhb> adamt: Probably added it to the default list.
<srhb> Looks right to me
<adamt> Ah yeah, we hardcoded the pubkey from cache.nixos.org in our own configs as well earlier, should be save to stop doing that.
<srhb> Well, at this point it does sound like the signature is not valid, because your settings look correct.
alex`` has quit [Client Quit]
<adamt> I wonder whether nix-serve caches the generated sigs for the NAR's
kiloreux has quit [Ping timeout: 252 seconds]
<adamt> I'll just be quiet now. I got a .cache/nix in both ~ and /root. WIping both works.
<srhb> Assuming there's no magic in fingerprintPath
<srhb> adamt: kek
<srhb> adamt: :)
<adamt> That cache is going to be nominated as most annoying feature of the week here at work.
<srhb> adamt: Just throw that negative-ttl option at everything while you're working on this
jD91mZM2 has joined #nixos
<srhb> It is a source of great confusion, but it's quite handy.
<srhb> By the way, are you going to be garbage collecting your cache or do you intend for it to be indefinitely growing?
<srhb> Oh, nevermind, that bug was fixed in 2.1. Forget it :)
<adamt> I'm planning on wasting this 1.9TB of disk place on something
* hodapp sends adamt a copy of the bootleg "Team Negative One" remaster of Star Wars
<adamt> More seriously, we really don't want nix-serve, and the future plan is to nix copy it to S3, and just let it grow
<hodapp> oh that beautiful 35mm film grain in 1080p!
<srhb> adamt: Gotcha.
<{^_^}> [nixpkgs] @peti pushed to master « multi-ghc-travis: update to latest git version »: https://git.io/fAjnJ
kiloreux has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #47270 → roundcube: init at 1.3.7 → https://git.io/fAb4y
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fAjn6
<Taneb> haskellPackages.hindent also seems broken :(
<srhb> Taneb: This situation is not uncommon. Our haskellPackages are automatically updated from the hackage package set.
<srhb> Taneb: Needs manual intervention. :)
vaibhavsagar has joined #nixos
jperras has quit [Ping timeout: 250 seconds]
Butterfly^ is now known as Guest62351
Guest62351 has quit [Killed (adams.freenode.net (Nickname regained by services))]
Butterfly^ has joined #nixos
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/0f4e1170540 (from 61 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<Taneb> I know, I'm just annoyed that I'm hitting the problems
<srhb> Taneb: Trailblazing! Think of all the cheap internet points from easy dontCheck PRs! :-)
<Taneb> :P
<Taneb> hindent is more than a dontCheck, I'm afraid
<srhb> Aww
<Taneb> I think it needs a newer version?
<srhb> Ah well, that should be fairly simple too :)
astronavt has joined #nixos
astronavt_ has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.0]
astronavt has quit [Ping timeout: 252 seconds]
iyzsong has quit [Read error: Connection reset by peer]
sir_guy_carleton has joined #nixos
<Taneb> hindent is a false alarm, I forgot I was overriding it
<srhb> Taneb: Here's a suggestion from my overrides: When I do an override, I gate it on the version as it was _when I made the override_ and throw if that's no longer the case
<srhb> That way my overrides report when they're probably out of date
<Taneb> srhb: how would I do that?
kiloreux has quit [Ping timeout: 250 seconds]
<srhb> if super.package.version != ... then throw ... else normal override
<Taneb> Ah, neat :)
<Taneb> Thanks for the the suggestion!
kiloreux has joined #nixos
<srhb> Welcome
aminechikhaoui has joined #nixos
sir_guy_carleton has quit [Ping timeout: 272 seconds]
erasmas has joined #nixos
sir_guy_carleton has joined #nixos
pi3r has joined #nixos
<pi3r> The following derivation will built a docker of about 470Mg ... http://nixpaste.lbr.uno/LY9U5X36?nix
<pi3r> How can I reduce the size ?
aminechikhaoui has quit [Quit: leaving]
<pi3r> If I use `goStatic` I will get a size of about 35Mg which is still pretty big given that the docker container from dockerhub is about 6Mg.
<pi3r> For go, I understand it is how you build the exec and the buildFlags used that will make such a difference.
jperras has joined #nixos
<tilpner> pi3r - What is ./build?
jperras has quit [Read error: Connection reset by peer]
<tilpner> Building without site results in a 29M image
<tilpner> That suggests site (and thus ./build) is very large
<pi3r> but I haven't managed to pass `-ldflags "-linkmode external -extldflags -static -w` with buildGoPackages
<gchristensen> maybe a ./result is in there somewhere?
<pi3r> no build only has the static files which is not a lot of space
<pi3r> I will check
asymmetric has joined #nixos
jperras has joined #nixos
<pi3r> ./build is 1 Meg of size
<gchristensen> ah well miniHttpd's closure is 360mb
sir_guy_carleton has quit [Disconnected by services]
<tilpner> It's not
<tilpner> ~ > du -csh $(nix-store -qR $(nip miniHttpd))
<tilpner> 80M total
<gchristensen> `nix path-info -rS /nix/store/yf5yj35v9p81g90yjl2qg2wkkn8j2bih-mini-httpd-1.7` says it is?
<pi3r> nginx is also huge. Should I use gostatic ? Even so I don't know how to go from 30 Meg to 6 Meg
<pi3r> Or something in rust would be less big ?
<tilpner> Make sure to keep glibc out
<pi3r> Caddy was around 40Meg
wpcarro has quit [Remote host closed the connection]
<gchristensen> tilpner: me?
sir_guy_carleton has joined #nixos
<tilpner> gchristensen - No, the glibc thing was addressed at pi3r. But I'm curious why our closure sizes differ
<pi3r> This is my comment about gostatic https://github.com/NixOS/nixpkgs/issues/15399
<{^_^}> #15399 (by colemickens, 2 years ago, open): Go static compilation is broken
wpcarro has joined #nixos
<pi3r> ideally I would love to build a docker container of about 10 Meg. Otherwise I will probably stick with caddy or gostatic
<pi3r> I am not so sure how I am telling the build to keep glibc out ?
<tilpner> You're not, and it seems miniHttpd doesn't like being built with musl
<{^_^}> [nixpkgs] @Profpatsch merged pull request #47403 → include-what-you-use: 0.8 -> 0.10 → https://git.io/fApji
<{^_^}> [nixpkgs] @Profpatsch pushed to master « include-what-you-use: 0.8 -> 0.10 »: https://git.io/fAj4Y
jperras has quit [Ping timeout: 260 seconds]
jperras has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
<pi3r> I actually don't mind what application I use. I was just trying some. My need is just to encapsulate documentation is a mini docker
<pi3r> I first starts with nginx which was also around 450Meg
<tilpner> Do you need to build it with Nix?
<pi3r> No there is some advantage to have the build in Nix but the size cost seems too big
__monty__ has quit [Ping timeout: 252 seconds]
<pi3r> So I will probably end up using a Dockerfile
jperras has quit [Read error: Connection reset by peer]
<pi3r> So it is really more about curiosity then need ;-)
__monty__ has joined #nixos
<gchristensen> pi3r: you could use a publically available nginx container as the `fromImage` and then add your docs on top
jperras has joined #nixos
<symphorien> is it possible to run nix log on a .drv file ?
<tilpner> gchristensen - I think you calculated the closure size wrong. AFAICT, each displayed size in path-info already includes the closure
<tilpner> So there's no need to add things together
aanderse has quit [Quit: aanderse]
<gchristensen> tilpner: oh :)
<pi3r> gchristensen: thanks for the tip. I will do that.
endformationage has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/0af54ac6704 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
civodul has quit [Read error: Connection reset by peer]
hyper_ch2 has quit [Quit: Page closed]
civodul has joined #nixos
HalfWord has quit [Ping timeout: 260 seconds]
jperras has quit [Ping timeout: 252 seconds]
Twey has quit [Ping timeout: 240 seconds]
aminechikhaoui has joined #nixos
jperras has joined #nixos
kiloreux has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @peti pushed 5 commits to haskell-updates: https://git.io/fAjRk
jperras_ has joined #nixos
<{^_^}> [nixpkgs] @Taneb opened pull request #47424 → haskellPackages.generic-lens: dontCheck → https://git.io/fAjRC
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/87ca34b895c (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
jperras has quit [Ping timeout: 245 seconds]
adamt has quit [Ping timeout: 246 seconds]
jperras_ has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fAjRD
Twey has joined #nixos
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/0f4e1170540 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<maurer> I saw we landed a commit adding alternate kernel support to the jupyter service, but don't see docs on how to configure it
<maurer> anyone have an example config? (ideally which turns on either the haskell or ocaml kernels?)
jperras_ has joined #nixos
<hodapp> ooh, alternate kernels for Jupyter?
nyanloutre[m] has joined #nixos
<nyanloutre[m]> Hello disasm I have a pull request that you reviewed and is now fixed : https://github.com/NixOS/nixpkgs/pull/40816
<{^_^}> #40816 (by nyanloutre, 18 weeks ago, open): electrum and electron-cash: add support for btchip library
kiloreux has joined #nixos
Twey has quit [Ping timeout: 260 seconds]
<maurer> hodapp: Jupyter has had OCaml, Haskell, and JS support at minimum (there may be others) for a while. I saw a PR landed which seemed to add configurability to services.jupyter, but it hasn't made it to the manual yet
jperras_ has quit [Read error: Connection reset by peer]
<maurer> so I was seeing if someone had a concrete config before I went and tried to read the module itself to figure out how to configure it
<hodapp> maurer: it's the configurability I was interested in
Twey has joined #nixos
<nyanloutre[m]> Or if anyone is willing to review a new Python module it should be fine too
<lewo``> vdemeester: umoci seems promising, but there is not a lot of activity on it... this is why I would prefer to try with buildah
<vdemeester> lewo``: well umoci is mostly one guy (alex) where buildah is several RedHat engineers 👼
<lewo``> vdemeester: do you know if umoci is used somewhere? becuase it looks like more a poc
<vdemeester> I think it's used in some opensuse project (should ping alex to be sure of what I'm saying :D)
orivej has joined #nixos
<vdemeester> I know there is also people looking into it as it's rootless (so it's a pretty good candidate to use in some envs where you can't require root privileges)
<lewo``> yes, I agree it's a better candidate than buildah
obfusk has joined #nixos
waleee has joined #nixos
averell has quit [Quit: .]
<maurer> hodapp: It looks like the configurability is there, but you'd have to write the definitions for anything ohter than the ipython kernel at the moment
vandenoever has joined #nixos
<gchristensen> "nix-shell now uses bashInteractive from Nixpkgs, rather than the bash command that happens to be in the caller’s PATH. This is especially important on macOS where the bash provided by the system is seriously outdated and cannot execute stdenv’s setup script." should nix put bashInteractive ahead of the other bash in the PATH?
jperras has joined #nixos
graphene has quit [Remote host closed the connection]
<maurer> Well, it appears to be a moot point (how to configure kernels properly) since ihaskell doesn't build at the moment since zeromq is erroring out
averell has joined #nixos
graphene has joined #nixos
vaibhavsagar__ has joined #nixos
<{^_^}> [nixpkgs] @alyssais opened pull request #47425 → buildGoPackage: add overrideGoAttrs → https://git.io/fAjuD
vaibhavsagar has quit [Ping timeout: 252 seconds]
Ariakenom_ has quit [Ping timeout: 260 seconds]
jperras has quit [Ping timeout: 244 seconds]
astronavt_ is now known as astronavt
<teto> maurer: There is some doc for the jupyter module. If you look into issues, you can find how I configured the haskell kernel. I have written some to improve both the module and haskell kernel but still WIP
jperras has joined #nixos
jperras has quit [Read error: Connection reset by peer]
asymmetric has quit [Ping timeout: 252 seconds]
<maurer> teto: I saw that, but ihaskell itself does not build at the moment because zeromq is test-failing on some setopts calls
jperras_ has joined #nixos
<maurer> I've left off for now
fendor has quit [Quit: Leaving]
fendor has joined #nixos
<{^_^}> [patchelf] @reidpr opened pull request #159 → Overwrite soname in place if there is room → https://git.io/fAj2Y
graphene has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @veprbl opened pull request #47426 → texlive: generate MkIV caches → https://git.io/fAj2G
graphene has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed 2 commits to master: https://git.io/fAj20
<{^_^}> [nixpkgs] @dywedir opened pull request #47427 → arc-theme: fix `config.allowAliases = false` evaluation → https://git.io/fAj2E
asymmetric has joined #nixos
<{^_^}> [nixpkgs] @etu opened pull request #47428 → stupidterm: 2018-03-10 -> 2018-09-25 → https://git.io/fAj2D
orivej has quit [Ping timeout: 245 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<gchristensen> whoa, NIX_BUILD_SHELL
<hodapp> whaa?
xok has quit [Read error: Connection reset by peer]
xok has joined #nixos
Ariakenom has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #47427 → arc-theme: fix `config.allowAliases = false` evaluation → https://git.io/fAj2E
<{^_^}> [nixpkgs] @xeji pushed commit from @dywedir to master « arc-theme: fix `config.allowAliases = false` evaluation (#47427) »: https://git.io/fAjVQ
jperras_ has quit [Quit: WeeChat 2.2]
pi3r has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @roberth opened pull request #47430 → Add Nixpkgs functions for adding overlays ad-hoc → https://git.io/fAjwi
<judson> Hm. I'm trying to set up a Rails app (which feels only slightly quixotic) on a test server. I'd like at some point to integrate the work with NixOS modules...
<judson> Rails needs a Javascript executor at runtime though (right?). For building the app, I've used `buildInputs = [ nodejs ]`, but Node should also be on the path for running the server.
<judson> Should I a) have the module add nodejs to systemPackages? b) add node to the systemd PATH argument? c) do something with the Rails app package to put node always in its env?
<manveru> judson: usually you'd add nodejs to the gem that needs it
<judson> Oh, as a defaultconfig thing?
sigmundv has quit [Ping timeout: 240 seconds]
<manveru> i think most use libv8, so should work already :)
<judson> Hm. That's definitely the right tack to take.
<judson> Meaning, most folks use the libv8 gem for JS stuff?
<manveru> yeah
<judson> The error I'm too is "There was an error while trying to load the gem 'uglifier'. Gem Load Error is: Could not find a JavaScript runtime."
lebel has quit [Ping timeout: 252 seconds]
<manveru> i guess they don't then... i thought uglifier was a node package
kiloreux_ has joined #nixos
<judson> Simplest thing for me might be to add libv8 to the Rails app. Which works for me, but not for Nix-agnostic projects.
<judson> I think it is also a Ruby gem.
<judson> Why we can't have nice things.
<manveru> yeah, so just add nodejs to the PATH of that gem, there's plenty of examples in the linnk
lebel has joined #nixos
<manveru> something like `gemConfig = defaultGemConfig // { uglifier = attrs: { buildInputs = [ nodejs ]; }; };` in your bundlerEnv should work
<judson> Yeah. For purposes of experiement I'll need to merge something into the gem-config, but that should be easy.
<judson> Yep yep/
<manveru> and i'd appreciate a PR so nobody else hits this :)
<judson> There are going to be several :)
<manveru> cool
<judson> Deploying Rails was one of the use cases that brought me to Nix in the first place. Then I stopped using Rails :D
<{^_^}> [nix] @grahamc opened pull request #2455 → nix-shell: add bashInteractive to the start of the PATH, set SHELL → https://git.io/fAjrP
<manveru> yeah... haven't had to deal with much rails for almost a year now :D
wpcarro has quit [Ping timeout: 240 seconds]
<judson> The related thing I've been thinking about: the nginx module has builtins for proxypass stuff. Setting up similar for Apache isn't difficult. But it'd be nice to have proxied webapps add to a "rendevous" module, and let the operator decide if proxying happens on apache on nginx or what.
<judson> Make sense?
<judson> Alternatively, I've also got a little "staticWeb" module that could get blended together into a "websites" thing with e.g. proxy = true;
<manveru> like a list of all apps running HTTP on non-port-80?
<{^_^}> [nix] @grahamc closed pull request #1483 → WIP nix-shell: Use bashInteractive from <nixpkgs> → https://git.io/v7IHU
<judson> That you want your web server to front for.
<judson> Serve files, terminate SSL, proxy HTTP for...
<{^_^}> [nixpkgs] @vdemeester opened pull request #47431 → traefik: 1.6.5 -> 1.7.0 → https://git.io/fAjos
<manveru> bbl, food
<judson> Those things.
jperras has joined #nixos
vaibhavsagar__ has quit [Ping timeout: 252 seconds]
pi3r has joined #nixos
wpcarro has joined #nixos
ThatDocsLady has quit [Remote host closed the connection]
<kiloreux_> I am trying to download an old nixpkgs package and getting "curl: (1) Protocol https not supported or disabled in libcurl" not sure why it happens on old packages only ? Happens on http://nixos.org/tarballs/stdenv-linux/x86_64/r16022/bootstrap-tools.cpio.bz2
mayhewluke has quit [Ping timeout: 272 seconds]
mayhewluke has joined #nixos
aminechikhaoui has quit [Quit: Lost terminal]
<kiloreux_> It's probably because it uses a very old curl that doesn't support https. I wander if there's a way to override nixpkgs default curl.
asymmetric has quit [Ping timeout: 240 seconds]
doyougnu has joined #nixos
asymmetric has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
Izorkin has joined #nixos
reinzelmann has joined #nixos
<exarkun1> Do overlays work with nixops? If so, how?
<{^_^}> [nixpkgs] @xeji pushed commit from @etu to master « stupidterm: 2018-03-10 -> 2018-09-25 (#47428) »: https://git.io/fAj6q
<{^_^}> [nixpkgs] @xeji merged pull request #47428 → stupidterm: 2018-03-10 -> 2018-09-25 → https://git.io/fAj2D
Henson has quit [Read error: Connection reset by peer]
<exarkun1> if I set `nixpkgs.overlays` to include an overlay then I get infinite recursion in part of the overlay definition. maybe my overlay is busted? this is my first one.
asymmetric_ has joined #nixos
asymmetric has quit [Ping timeout: 250 seconds]
nDuff has joined #nixos
<nDuff> schmittlauch[m]: package_for() { type -P "$@" | while IFS= read -r cmd; do cmd_src=$(readlink -f "$cmd"); [[ $cmd_src = /nix/store/* ]] && { result=${cmd_src#/nix/store/}; result=${result%%/*}; echo "$result"; }; done; }
<nDuff> ...so, "package_for ls" yields (for me) "wm8va53fh5158ipi0ic9gir64hrvqv1z-coreutils-8.29" -- is that what you were looking for?
Twey has quit [Ping timeout: 272 seconds]
<nDuff> (oh, that discussion where the question came up about an equery equivalent was yesterday... ergh)
<{^_^}> [nixpkgs] @alyssais opened pull request #47432 → ranger: syntax highlight previews by default → https://git.io/fAj6F
<{^_^}> [nixpkgs] @xeji merged pull request #47431 → traefik: 1.6.5 -> 1.7.0 → https://git.io/fAjos
<{^_^}> [nixpkgs] @xeji pushed commit from @vdemeester to master « traefik: 1.6.5 -> 1.7.0 (#47431) »: https://git.io/fAj6A
doyougnu has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #47397 → vscode: 1.26.1 -> 1.27.2 → https://git.io/fAp7i
<{^_^}> [nixpkgs] @xeji pushed commit from @bkchr to master « vscode: 1.26.1 -> 1.27.2 (#47397) »: https://git.io/fAjiE
<buckley310> is there anyone else testing nixos 18.09 with gdm and nvidia graphics? seem to be encountering a bug of some sort
<buckley310> wondering if its just me (:
pi3r has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @xeji pushed commit from @Synthetica9 to master « atom, atom-beta: 1.30.0 -> 1.31.0, 1.31.0-beta0 -> 1.32.0-beta0 (#47417) »: https://git.io/fAjiH
<{^_^}> [nixpkgs] @xeji merged pull request #47417 → atom, atom-beta: 1.30.0 -> 1.31.0, 1.31.0-beta0 -> 1.32.0-beta0 → https://git.io/fAhN6
Thra11 has joined #nixos
grp has joined #nixos
asymmetric has joined #nixos
<{^_^}> [nixpkgs] @disassembler merged pull request #47422 → udisks: 2.8.0 -> 2.8.1 → https://git.io/fAjsH
<{^_^}> [nixpkgs] @disassembler pushed 2 commits to master: https://git.io/fAjP1
<{^_^}> [nixpkgs] @disassembler pushed to revert-47422-update/udisks-2.8.1 « Revert "udisks: 2.8.0 -> 2.8.1" »: https://git.io/fAjPD
<{^_^}> [nixpkgs] @disassembler opened pull request #47433 → Revert "udisks: 2.8.0 -> 2.8.1" → https://git.io/fAjPy
asymmetric_ has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @disassembler closed pull request #47433 → Revert "udisks: 2.8.0 -> 2.8.1" → https://git.io/fAjPy
<{^_^}> [nixpkgs] @vbgl merged pull request #46934 → ocamlPackages.elpi: init at 1.0.5 → https://git.io/fAH9l
<{^_^}> [nixpkgs] @vbgl pushed to master « ocamlPackages.elpi: init at 1.0.5 »: https://git.io/fAjPb
<{^_^}> [nixos-homepage] @jameysharp opened pull request #242 → RSS fixes → https://git.io/fAjPx
<{^_^}> [nixpkgs] @disassembler merged pull request #47420 → pythonPackages.pynacl: 1.2.1 -> 1.3.0 → https://git.io/fAjfu
<{^_^}> [nixpkgs] @disassembler pushed 2 commits to master: https://git.io/fAjPj
<{^_^}> [nixpkgs] @rycee opened pull request #47434 → eclipse-platform, eclipse-sdk: 4.8 -> 4.9 → https://git.io/fAjXv
asymmetric_ has joined #nixos
Twey has joined #nixos
<infinisil> ,dnw buckley310
<{^_^}> buckley310: "Does not work" isn't very helpful: What doesn't work? What's the error?
asymmetric has quit [Ping timeout: 240 seconds]
<buckley310> havenm't finished debugging yet, but it seems like when i boot up, gdm crashes between 3 and 15 times before finally starting up
<{^_^}> [nixpkgs] @disassembler merged pull request #47412 → vivaldi: 1.15.1147.64-1 -> 2.0.1309.29-2 → https://git.io/fAhlu
<{^_^}> [nixpkgs] @disassembler pushed 2 commits to master: https://git.io/fAjX1
<buckley310> kernel: .gnome-shell-wr[3759]: segfault at 20 ip 00007f526ff047bd sp 00007fffe39b0190 error 4 in libmutter-2.so.0.0.0[7f526fdf0000+18f000]
DigitalKiwi has quit [Ping timeout: 250 seconds]
lostman has joined #nixos
<lostman> hi all. I'm having issues with nixops+libvirtd. It's copying the closure from my host laptop with my user's UID (ubuntu+nix, not nixos) and VM is broken due to wrong permissions of /nix/store. Any ways to fix this? I needed to ssh, remount /nix/store, fix permissions, restart, but that's not a good way
thibm has joined #nixos
<Myrl-saki> Is there a way to "defer ./."?
<infinisil> Myrl-saki: Not sure what you mean
<Myrl-saki> I'm thinking of doing something like `f (trace ./.)` to found out where f is declared.
<Myrl-saki> On second thought, that might not actually make much sense.
asymmetric_ has quit [Remote host closed the connection]
<infinisil> You can get definition lines of attributes via builtins.unsafeGetAttrPos
<infinisil> Or trace stuff with builtins.trace
<azazel> unsafeGetAttrPos ?
<Myrl-saki> Same question.
Jetien has quit [Ping timeout: 246 seconds]
<infinisil> > builtins.unsafeGetAttrPos "haskellPackages" pkgs
<{^_^}> null
<infinisil> Um
<Myrl-saki> nix-repl> builtins.unsafeGetAttrPos "a" {a=1;}
<Myrl-saki> { column = 32; file = "(string)"; line = 1; }
<Myrl-saki> infinisil: Pretty close to what I want.
<infinisil> > builtins.unsafeGetAttrPos "a" { a = 1; }
<{^_^}> { column = 33; file = "(string)"; line = 196; }
<infinisil> pkgs normally works too
lebel has quit [Remote host closed the connection]
<Myrl-saki> Welps, I asked the wrong question.
<azazel> infinisil: nice, thanks
<Myrl-saki> infinisil: That was interesting to know though.
<Myrl-saki> Okay, actual problem I'm solving. How do I find out where `config.foo.bar` is used?
<Myrl-saki> An actual example of why one needs to know this.
georges-duperon has joined #nixos
<Myrl-saki> Enabling X11 enables X11 manual, which depends on librsvg, which depends on Rust.
<kiloreux_> How can I change the default version for nixpkgs curl (that it uses to download files)?
<Myrl-saki> The only way this was found out was with nix-store -q --tree on the drv of the system.
<Myrl-saki> (And even then, it was still a bit complicated.)
<infinisil> Where it is *used* is more difficult
Dedalo has quit [Quit: Textual IRC Client: www.textualapp.com]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/ec3a7660119 (from 52 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<infinisil> But I see what you mean by defer ./. now
<infinisil> There is no reliable and easy way I'm afraid
<azazel> i don't... what "where is used" means? accessed? modified?
<Myrl-saki> azazel: accessed.
<infinisil> Nix is immutable, there's no modifying
<infinisil> Simplest way is to just grep
sigmundv has joined #nixos
<infinisil> But that's not what you're looking for I guess
<infinisil> A bit more complicated is putting traces all over the place and to put a `throw "..."` in config.foo.bar
<infinisil> Then when execution stops, you'll have somewhat of an idea
Dedalo has joined #nixos
<infinisil> There's a way to add a trace when any package from pkgs is evaluated
<infinisil> I just played around with this idea a bit some days ago. It should be possible to generate a ranking of attributes using that, which would be very useful for a number of purposes
sigmundv has quit [Ping timeout: 240 seconds]
<Myrl-saki> infinisil: How'd you do it?
catid has joined #nixos
<infinisil> Haven't really done it yet, hold on, doing it now though
<{^_^}> [nixpkgs] @xeji merged pull request #47426 → texlive: generate MkIV caches → https://git.io/fAj2G
<{^_^}> [nixpkgs] @xeji pushed 2 commits to staging: https://git.io/fAjDU
<catid> Hello! Doing some C++ development, and CMake is saying "cannot find -lx264" though the package is installed system-wide. I must be missing something basic - How do I make installed libraries available to CMake?
<{^_^}> [nixpkgs] @xeji closed pull request #47370 → Added TEXMF variable to environment for tex wrappers, fixes #19279 → https://git.io/fAxCD
<symphorien> ,library catid
<{^_^}> catid: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<catid> +1
<symphorien> try to build inside nix-shell -p libx264 cmake, catid
<symphorien> cmake must be specified with the libs and not installed globally because it enables some magic so that cmake sees the deps. Same for pkgconfig by the way.
<catid> I can put those parameters into default.nix in the project folder to avoid having to type them out right?
<symphorien> yes: libs in buildInputs and cmake/pkgconfig in nativeBuildInputs
Twey has quit [Ping timeout: 252 seconds]
<symphorien> (nativeBuildInputs is for things executed when building, buildInputs if for things executed when running the result)
<Myrl-saki> Ah, modifying nixpkgs itself. :P
<infinisil> Works surprisingly well
<catid> Great off and running thanks!
<infinisil> I'll experiment some more with it to generate an attribute importance mapping
georges-duperon has quit [Ping timeout: 252 seconds]
<drewr> I'm running nix-shell and getting an outdated version of gcc; how can I pin or otherwise get the latest?
Dedalo has quit [Ping timeout: 252 seconds]
<nek0> hi folks
fresheyeball has joined #nixos
graphene has quit [Remote host closed the connection]
<samrose__> weird that when logged in as uid 1000, nixos tries to run nix-shell commands as user 1001 I traced this to a file /nix/store/3ch9lc8by88b2xx16cnyx5lrdl9lfxc2-stdenv/setup when this line gets called https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L771 the env var is not set by default for $NIX_BUILD_TOP and so it seems to try and default to uid 1001
<fresheyeball> anyone out there gotten liquid haskell to run with nix?
graphene has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<nek0> anyone willing to walk me through a problem I have? I want to create a derivation for the krita gmic plugin, gmic-qt. I have a basic derivation, but it fails at the unpackPhase, because the downloaded sources are in folders with the same name.
catid has quit [Quit: WeeChat 2.1]
<nek0> Is there a way to circumvent this?
<fresheyeball> nek0: can you paste some code?
<buckley310> so I'm running 18.09/gdm/nvidia. looking at the 18.09 repo, "services.xserver.displayManager.gdm.wayland=true" is the default, but if I manually set it to false in my config, the rebuild dies saying nvidia does not support wayland... is it supposed to work like that? it even works fine if i manually set it to true...
<{^_^}> [nixpkgs] @jpotier opened pull request #47435 → renoise: add mpg123 to runtime deps → https://git.io/fAjSV
fenedor has joined #nixos
<buckley310> im debugging a gdm crash issue and thought statically disabling wayland would be a good first step...
<hodapp> oh, is wayland support newly available in 18.09?
<buckley310> i guess, actually let me check on my non-nvidia machine...
Thra11 has quit [Ping timeout: 240 seconds]
fendor has quit [Ping timeout: 240 seconds]
<buckley310> it looks like on my intel graphics machine that the login screen is wayland but the user session is xorg
<schmittlauch[m]> nDuff: thanks, I'll take a look at it later.
<buckley310> even if you do not select the "on xorg" session
<buckley310> so yeah it looks like the nvidia driver asserts that wayland is ENABLED... not sure if correct O_o https://github.com/NixOS/nixpkgs/blob/release-18.03/nixos/modules/hardware/video/nvidia.nix#L43
Thra11 has joined #nixos
thibm has quit [Quit: WeeChat 2.0]
<{^_^}> [nixpkgs] @rycee pushed 2 commits to master: https://git.io/fAj9p
<{^_^}> [nixpkgs] @vbgl opened pull request #47436 → dune: 1.2.1 -> 1.3.0 → https://git.io/fAjHq
Synthetica has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @rycee merged pull request #47434 → eclipse-platform, eclipse-sdk: 4.8 -> 4.9 → https://git.io/fAjXv
doyougnu has joined #nixos
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « gnustep.system_preferences: 1.1.0 -> 1.2.0 (#45832) »: https://git.io/fAjHd
<{^_^}> [nixpkgs] @xeji merged pull request #45832 → gnustep.system_preferences: 1.1.0 -> 1.2.0 → https://git.io/fAcxR
<{^_^}> [nixpkgs] @xeji merged pull request #46220 → p11-kit: 0.23.13 -> 0.23.14 → https://git.io/fAzke
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to staging « p11-kit: 0.23.13 -> 0.23.14 (#46220) »: https://git.io/fAjQt
<{^_^}> [nix] @edolstra pushed to master « Don't talk about a "current folder build output" »: https://git.io/fAjQs
<{^_^}> [nixpkgs] @xeji merged pull request #45843 → bison: 3.0.5 -> 3.1 → https://git.io/fACUO
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to staging « bison: 3.0.5 -> 3.1 (#45843) »: https://git.io/fAjQz
graphene has quit [Remote host closed the connection]
<kiloreux_> I have a set of different packages declared (pkgs, new...). How can I inherit from specific package ?
<judson> Setting node as a buildInput for execjs isn't enough. It has to be in the path at runtime...
<kiloreux_> say, new.stdenv ?
graphene has joined #nixos
sigmundv has joined #nixos
jit10 has joined #nixos
<jit10> hello, how do i install zfs modules on livecd?
<jit10> i did a nix-env -iA nixos.linuxPackages.zfs but the modules are not symlinked in the right place
<clever> jit10: same as anywhere else, edit /etc/nixos/configuration.nix and nixos-rebuild switch
<clever> boot.supportedFilesystems = [ "zfs" ];
<jit10> okay so why doesn't nix-env install doesn't work?
xeji has joined #nixos
<fresheyeball> nek0: back
<kiloreux_> jit10, could you please be more specific ? What errors are you seeing ? What do you mean by right place ?
<jit10> kiloreux_: i modprobe zfs and it looks for modules in /run/current-system/kernel-modules/..
<jit10> but the zfs modules directory isn't symlinked there
reinzelmann has quit [Quit: Leaving]
<fresheyeball> anyone here gotten doom to run via steam play haha
<fresheyeball> ?
<{^_^}> [nix] @edolstra merged pull request #2455 → nix-shell: add bashInteractive to the start of the PATH, set SHELL → https://git.io/fAjrP
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/fAj7Z
doyougnu has quit [Ping timeout: 245 seconds]
_deepfire has joined #nixos
goibhniu has quit [Ping timeout: 245 seconds]
<symphorien> jit10: nix-env is user-wide package management, it cannot have effect on the whole system.
<clever> jit10: nix-env acts on ~/.nix-profile/, nixos-rebuild acts on /run/current-system
fresheyeball has quit [Quit: WeeChat 2.0]
booglewoogle has joined #nixos
xok has quit [Quit: Leaving.]
roconnor has joined #nixos
roconnor has quit [Client Quit]
roconnor has joined #nixos
<roconnor> How do I do the equivalent of 'kstart plasmashell' to restart plasmashell?
<booglewoogle> hey, could it be that the wine package wasn't updated in a while? nixpkgs.wineStaging is still version 3.3, current one seems to be 3.16. I am unable to figure out how to override it to get 3.16 installed as there seems to be no version argument, can someone help me out here? (nix expr: https://github.com/NixOS/nixpkgs/blob/d16a7abceb72aac85e0deb8c45fbcb7127baf628/pkgs/misc/emulators/wine/base.nix#L115)
jD91mZM2 has quit [Quit: WeeChat 2.0]
<{^_^}> [nix] @edolstra pushed to master « S3BinaryCacheStore: Don't create buckets »: https://git.io/fAj5P
<tilpner> > wineStaging.name
<{^_^}> "wine-3.14-staging"
<booglewoogle> :o
<tilpner> Not quite .16, but newer than .3
<booglewoogle> wine --version gives me 3.3
<booglewoogle> i'm confuse
<booglewoogle> d
<tilpner> ,unstable
alex`` has joined #nixos
<booglewoogle> oh
waleee has quit [Quit: WeeChat 2.2]
doyougnu has joined #nixos
<booglewoogle> tilpner: this did in fact help a lot. I feel i should've thought of this. oh well, still learning.. thank you so much.
<tilpner> :)
Notkea has joined #nixos
<kiloreux_> I am looking to override a very old package. But it seems things were done differently here https://github.com/NixOS/nixpkgs/blob/99cd5a1679c369f23527d5a02f23a3ed1014b7c9/pkgs/top-level/all-packages.nix#L6667-L6671
<kiloreux_> How can I override ImageMagick attributes in this situation?
amine has joined #nixos
<colemickens> jtojnar: thank you very much for the work on Meson! I need it for the upcoming Sway 1.0.
<colemickens> I think I actually pulled it and used it to build just Sway for myself. Worked well :)
norfumpit has quit [Quit: norfumpit]
amine has quit [Client Quit]
<cransom> kiloreux_: that is indeed super old. if you are using that specifically, it you'd need overrideDerivation i think.
amine has joined #nixos
asymmetric has joined #nixos
amine is now known as aminechikhaoui
aminechikhaoui has quit [Client Quit]
amine has joined #nixos
amine has quit [Client Quit]
<kiloreux_> cransom, I checked the docs for it but it's still not clear how I could override something like fetchurl in this specific example ?
amine has joined #nixos
amine is now known as aminechikhaoui
Ericson2314-work has quit [Read error: Connection reset by peer]
doyougnu has quit [Quit: WeeChat 2.1]
aminechikhaoui has quit [Client Quit]
amine has joined #nixos
amine has quit [Client Quit]
amine has joined #nixos
amine has quit [Client Quit]
<symphorien> kiloreux_: myImagemagick = import <oldnixpkgs/pkgs/applications/graphics/ImageMagick> { fetchurl = whatever; inherit (oldnixpkgs) a b c d; } I imaging
amine has joined #nixos
<symphorien> where oldnixpkgs = import <oldnixpkgs> {};
amine has quit [Client Quit]
aminechikhaoui has joined #nixos
aminechikhaoui has quit [Client Quit]
mayhewluke has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
<kiloreux_> I am getting this "file 'old/pkgs/applications/graphics/ImageMagick' was not found in the Nix search path"
<kiloreux_> Even though I have "old" declared.
mayhewluke has joined #nixos
<Ralith> what does it mean when `nix copy --from s3://blahblahblah /nix/store/blah` gives "path is not valid"?
<cransom> kiloreux_: i'm super curious why you are trying to resurrect this particular imagemagick
<symphorien> you can use nix-instantite to print the path <old> evaluates to
jasongrossman has quit [Ping timeout: 245 seconds]
<symphorien> and then use find to find the folder
<clever> symphorien: you probably just want oldnixpkgs.imagemagick
<Ralith> it's really annoying how nix S3 support implicitly creates buckets by default
<symphorien> clever: kiloreux_ wants to override fetchurl
<Ralith> very difficult to tell when you've mistyped a name
<kiloreux_> cransom, haha sure. I am moving all of our packages to use nix. And some of them are really old (this version). But so many customers depend on them. So I can't use a new version and as you know you can't specify versions in nix dependencies.
<cransom> kiloreux_: why not take the current imagemagick package and make a new attribute with the version you need?
<kiloreux_> And how can I be able to change dependencies versions ? (libjpeg for example, libpng .....) ?
<clever> symphorien: oldnixpkgs.imagemagick.override { fetchurl = foo; }
<symphorien> kiloreux_: ^
<symphorien> clever: did you see it was a nixpkgs from 2009 ?
<kiloreux_> clever, oldnixpkgs doesn't have override attribute. I tried it first.
<clever> oh god, thats ancient times! :D
<cransom> the old imagemagick doesn't use callPackage
<clever> yeah, this is before the days of callPackage!
<symphorien> kiloreux_: maybe try adding old nixpkgs as a real channel and not IFD
<cransom> it is nearly a 10 year old nix derivation.
<clever> what about overrideDerivation?
<symphorien> kiloreux_: or even unpack the tarball/checkout the revision and use paths
<kiloreux_> I used this
<kiloreux_> imagemagick = import old.imagemagick {
<kiloreux_> fetchurl = pkgs.fetchurl;
<kiloreux_> inherit (old) stdenv bzip2 freetype graphviz ghostscript libjpeg libpng libtiff libxml2 zlib libtool;
<kiloreux_> };
<kiloreux_> But now I am getting somthing about "curl: (1) Protocol https not supported or disabled in libcurl"
<kiloreux_> when downloading bootstrap tools
<clever> kiloreux_: the old curl lacks https support
Ericson2314-work has joined #nixos
<clever> and the new nixos.org forces redirects to https
<kiloreux_> Wasn't fetchurl overriding sufficient to use new one ?
<clever> thats a fetchurl to a diff package
<symphorien> kiloreux_: try a recent stdenv
<clever> kiloreux_: use nix-prefetch-url
<kiloreux_> > try a recent stdenv just did. same issue.
<{^_^}> error: syntax error, unexpected ')', expecting ID or OR_KW or DOLLAR_CURLY or '"', at (string):197:1
<kiloreux_> stdenv = beta.stdenv;
<clever> kiloreux_: nix-prefetch-url should solve your issues
<kiloreux_> beta is 23 days ago.
<kiloreux_> How to use it clever ?
<Ralith> it's really dumb that `nix ping-store --store s3://invalid-bucket-name` succeeds unconditionally if you have permission to create S3 buckets
<Ralith> `nix copy --from`, too
<kiloreux_> clever, And how can I put that inside my derivation ?
<clever> kiloreux_: run it manually, outside the derivation
<clever> to use a modern nix to download the file
<kiloreux_> I am confused. Sorry.
<clever> the problem is with downloading a fixed-output derivation
<clever> you can just run nix-prefetch-url to download it
<kiloreux_> I understand that. So when I will try to run nix-env -f stupid.nix -iA old_imgick. It will use this old tarball ?
jonreeve has joined #nixos
<clever> yeah, because its acting on the hash of the tarball, and doesnt care how it was downloaded
<colemickens> Does each versioned release get an animal?
<kiloreux_> clever, Thank you.
<kiloreux_> Too bad I got other dependencies that just went down now :/
<jonreeve> Does anyone know how to make a nix expression that contains both pre-built Nixpkgs packages and custom expressions from pypi? I'm having a hell of a time getting a Python dev environment set up.
<kiloreux_> So this path isn't a choice.
<infinisil> colemickens: Yup, chosen by the release managers :)
<colemickens> Jellyfish, for 18.09, it seems. Cute, I like it. :)
<symphorien> kiloreux_: a hackish alternative may be to modify the old nixpkgs to have fetchurl= (import <new> {}).fetchurl in all-packages.nix
<colemickens> Is there a logo for nixos-unstable? Or maybe it's the unadorned logo...
<symphorien> this way all packages in the old nixpkgs will have the new fetchurl
<symphorien> modify as in "clone and edit the file".
<emily> if I wanted to expose some of a PAM module's optinos in security.pam.* but right now it's just an enableFoo option, should I change this into foo.enable, foo.option etc., or is it OK to just make fooOption, fooOtherOption if there's only a couple?
<emily> (and if I should move it to a new option, how do I perform the aliasing/rename/deprecation/whatever that needs to be done there?)
<kiloreux_> Well I think that one won't work now. this dependency (trying http://distfiles.gentoo.org/distfiles/attr_2.4.43-1.tar.gz) is gone.
<kiloreux_> And it's used by the old expressions. It just give 404 now
<Butterfly^> https://www.bbc.com/news/technology-45664640 Linus Torvalds: 'I'll never be cuddly but I can be more polite'
<Butterfly^> 27 September 2018
<symphorien> this looks like a rabbit hole
<kiloreux_> I agree.
<symphorien> maybe hydra still has this file
jperras has quit [Ping timeout: 252 seconds]
<kiloreux_> Can't think of an alternative way to get that version. I tried writing expressions for all the dependencies for the derivation but it won't work due to imagemagick not detecting libraries.
<{^_^}> [nix] @grahamc opened pull request #2456 → Update docs to describe how s3:// URLS does in fact support endpoint, region, and profile for upload → https://git.io/fAjpV
YaZko has joined #nixos
georges-duperon has joined #nixos
<YaZko> Hi everyone. A naive question: I just updated my OS X to Mojave, and the nix commands seems to no longer be in my path, my beloved nix-shell in particular. Is it expected and is there a script I should re-run, or did something go south? My /nix seems to be intact
shabius has quit [Read error: Connection reset by peer]
aminechikhaoui has joined #nixos
shabius has joined #nixos
<gchristensen> YaZko: do you have a /etc/bashrc~previous?
aminechikhaoui has quit [Client Quit]
Thra11 has quit [Ping timeout: 246 seconds]
aminechikhaoui has joined #nixos
<YaZko> gchristensen: I do yes!
aminechikhaoui has quit [Client Quit]
<YaZko> And indeed, it contained what I needed. Thanks a lot!
<gchristensen> :)
aminechikhaoui has joined #nixos
asymmetric has quit [Ping timeout: 252 seconds]
<YaZko> Ouh, running nix-shell returns an error though: dyld: Library not loaded: /usr/lib/system/libsystem_network.dylib
<YaZko> Referenced from: /nix/store/mzn9nskhyf6nn5nacwp851418x3b1z57-Libsystem-osx-10.11.6/lib/libSystem.B.dylib
<YaZko> Reason: image not found
<YaZko> Abort trap: 6
<jit10> clever: thanks
drewr has quit [Remote host closed the connection]
<emily> ok, I found mkRenamedOptionModule on my own, but not sure how to apply it to the PAM configuration since there's the whole thing where the options are set up per PAM service
<YaZko> symphorien: Thanks, I should have thought of “make sure to update Nix before upgrading” sooner ^^’ Well, reinstall it is
emacsomancer has quit [Ping timeout: 244 seconds]
drewr has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/2255fce7807 (from 7 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
asymmetric has joined #nixos
wpcarro has quit [Remote host closed the connection]
YaZko has quit [Quit: YaZko]
asymmetric has quit [Ping timeout: 240 seconds]
wpcarro has joined #nixos
kyren has quit [Remote host closed the connection]
kyren has joined #nixos
grp has quit [Quit: box shutting down...]
wpcarro has quit [Ping timeout: 252 seconds]
silver_ has joined #nixos
simukis has quit [Ping timeout: 240 seconds]
silver has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @offlinehacker opened pull request #47441 → ansible: add dopy dependency for digitalocean integration → https://git.io/fxevs
georges-duperon has quit [Ping timeout: 252 seconds]
jperras has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
asymmetric has joined #nixos
stanibanani has joined #nixos
stanibanani has left #nixos [#nixos]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f5f9625bffa (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<lostman> Just repeating my question from earlier... still looking for answers! I'm having issues with nixops+libvirtd. nixops is copying the closure from my host machine with my user's UID (ubuntu+nix, not nixos) and the VM ends up broken due to wrong permissions in /nix/store (e.g. sudo owned by my host's user, which doesn't exist, rather than root). Is there any way to fix this? I needed to ssh, remount /nix/store, fix permissions, and
<lostman> restart, but that's not a good way.
YaZko has joined #nixos
booglewoogle has quit [Quit: Leaving]
<clever> lostman: how is nixops doing the copy? nix-copy-closure doesnt support uid's
<lostman> clever: not sure. looks like it copies path over ssh `copying path '/nix/store/dm6y6npbpcca3y40jkin8cackiks49dk-system-path' to 'ssh://root@192.168.122.25'...`
<clever> thats either nix-copy-closure or `nix copy`, neither one supports uid's
<lostman> clever: somehow it ends up as UID 1000 which the UID on my host
<azazel> with the new ssh:// uri it should be nix copy
<YaZko> Mmmh, on my journey to reinstall nix with Mojave, I have an issue when running the installation script:
<YaZko> error: cannot connect to daemon at '/nix/var/nix/daemon-socket/socket': No such file or directory
<YaZko> Would anyone know what’s the issue here?
<YaZko> I also get right after “/var/folders/(..)/nix-2.1.2-x86_64-darwin/install: unable to register valid paths”
<clever> YaZko: you may need to reboot after removing nix
<azazel> wasn't it advised to upgrade nix before upgrading to mojave?
<YaZko> clever: Oh, ok thanks
<azazel> anyway I'm not a MacOS expert
<YaZko> azazel: Apparently, it was. But I did not think beforehand :(
YaZko has quit [Quit: YaZko]
graphene has quit [Remote host closed the connection]
<lostman> clever: should I file a bug report for this?
<clever> lostman: if we can get more details on what is happening, yeah
graphene has joined #nixos
<lostman> clever: sure. what kind of details? what can I do to investigate?
<clever> lostman: is nix-daemon running in the vm?
<lostman> clever: yeah, it does. it doesn't seem to be a new issue though: https://github.com/NixOS/nixops/issues/931
<{^_^}> nixops#931 (by teto, 22 weeks ago, open): permissions problems
jasongrossman has joined #nixos
__monty__ has quit [Quit: leaving]
erasmas has quit [Quit: leaving]
brejoc has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @nek0 opened pull request #47442 → gmic_krita_qt: Init at 2.3.6 → https://git.io/fxeTR
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #47443 → ghcjs-{7.10, 8.0}: Improve overriding situation → https://git.io/fxeTM
<{^_^}> [nixpkgs] @dtzWill opened pull request #47444 → google-chrome, virtualbox: fix patchelf usages to not crash constantly; tree: patchelf as native → https://git.io/fxeTD
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #47445 → ghcjs-{7.10, 8.0}: Improve overriding situation for 18.09 → https://git.io/fxeTH
jasongrossman has quit [Ping timeout: 252 seconds]
jperras has quit [Ping timeout: 240 seconds]
jperras has joined #nixos
jackdk has joined #nixos
xeji has quit [Quit: WeeChat 2.1]
patrl has joined #nixos
patrl has quit [Ping timeout: 240 seconds]
Wharncliffe has joined #nixos
camsbury_ has joined #nixos
baum__ has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #47443 → ghcjs-{7.10, 8.0}: Improve overriding situation → https://git.io/fxeTM
<{^_^}> [nixpkgs] @Ericson2314 pushed 3 commits to master: https://git.io/fxeky
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #47445 → ghcjs-{7.10, 8.0}: Improve overriding situation for 18.09 → https://git.io/fxeTH
<{^_^}> [nixpkgs] @Ericson2314 pushed 3 commits to release-18.09: https://git.io/fxek9
<{^_^}> [nixpkgs] @dtzWill opened pull request #47446 → patch-shebangs: use isScript to safely check for shebang start → https://git.io/fxekH
<camsbury_> hi guys - using callCabal2nix on my package to automatically build a derivation, but looking to add a non-haskell dependency after the fact... I know that callPackage is run inside of callCabal2nix, so it seems a bit tricky
<camsbury_> I just want to put a standard nix packages in the runtime & build deps
Anton-Latukha has quit [Remote host closed the connection]
<baum__> newbie question: how could i get this package with the optional dependency? https://github.com/NixOS/nixpkgs/blob/33716c1d4b2f9fe82744408890479a383f1361d1/pkgs/tools/admin/ansible/default.nix#L34
<{^_^}> [nixpkgs] @nyanloutre opened pull request #47447 → steamPackages.steam-udev: init at 1.0.0.56 → https://git.io/fxekA
<clever> > pkgs.ansible.override { windowsSupport = true; }
fenedor has quit [Read error: Connection reset by peer]
<{^_^}> "<derivation /nix/store/82cdzkzyl20mgs7w5g4djazb070w5pn1-python2.7-ansible-2.6.2.drv>"
<clever> baum__: like so
jasongrossman has joined #nixos
wpcarro has joined #nixos
sigmundv has quit [Ping timeout: 252 seconds]
wpcarro has quit [Ping timeout: 272 seconds]
<baum__> clever: cool! thanks!
<camsbury_> so I'm trying to do overlays to add a nixpkgs level package to a haskell package created with callCabal2nix
<camsbury_> and currently attempting to add pkgs.pcre to the buildInputs for haskell
<camsbury_> if anyone knows the quick way to do that off the top of their head, that would be great, for now just doing it in an override of haskellPackages in my overlay.nix
<clever> camsbury_: non-haskell packages go into librarySystemDepends
<camsbury_> nice
<camsbury_> thank you
goibhniu has joined #nixos
wpcarro has joined #nixos
jonreeve has quit [Quit: WeeChat 2.2]
goibhniu has quit [Ping timeout: 245 seconds]
wpcarro has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @kalbasit closed pull request #46509 → bazel-watcher: init at 4d5928e → https://git.io/fAwEm
wpcarro has joined #nixos
asymmetric has quit [Ping timeout: 245 seconds]
sigmundv has joined #nixos
fyber has left #nixos ["The Lounge - https://thelounge.chat"]
<{^_^}> [nixpkgs] @kalbasit opened pull request #47448 → bazel-watcher: init at 4d5928e → https://git.io/fxetO
<camsbury_> clever: still having trouble figuring out how to overring that attribute on the derivation returned by callCabal2nix...