gchristensen changed the topic of #nixos to: NixOS 18.09 released https://discourse.nixos.org/t/1076 || 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 ... nixcon videos: https://tinyurl.com/nixcon2018
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
troydm has joined #nixos
<{^_^}> [nixpkgs] @furrycatherder opened pull request #54906 → epson-escpr2: init at 1.0.29 → https://git.io/fh1u7
<aleph-> Anybody succesfully gotten fancontrol working?
<aleph-> Every time I gen a config with pwmconfig
<aleph-> And write it to /etc/fancontrol via etc.fancontrol.texxt = '' '';
<aleph-> It get's overwritten or needs changing.
<{^_^}> [nixpkgs] @dtzWill opened pull request #54907 → python3Packages.just-start: init at 2018-10-25 → https://git.io/fh1zU
sinner has joined #nixos
sinner is now known as Guest65032
Guest43794 has quit [Ping timeout: 244 seconds]
cantstanya has quit [Remote host closed the connection]
__monty__ has quit [Quit: leaving]
Guest65032 has quit [Ping timeout: 245 seconds]
halfbit has quit [Ping timeout: 268 seconds]
cantstanya has joined #nixos
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #nixos
alex`` has quit [Read error: Connection reset by peer]
sinner has joined #nixos
sinner is now known as Guest35407
eadwu has joined #nixos
orivej has quit [Ping timeout: 245 seconds]
chessai has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @Infinisil merged pull request #54896 → tt-rss: 2018-04-05 -> 2019-01-29 → https://git.io/fh1LX
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fh1z9
alex`` has joined #nixos
<{^_^}> [nixpkgs] @tollb opened pull request #54909 → wrap-gapps-hook.sh: only wrap links when required → https://git.io/fh1zA
Sexylady88 has joined #nixos
<praetorg> nice
<{^_^}> [nixpkgs] @andir opened pull request #54910 → [18.09] prometheus-node-exporter: remove go 1.9 pinning → https://git.io/fh1gZ
Sexylady88 has quit [Client Quit]
sigmundv_ has quit [Ping timeout: 268 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @worldofpeace pushed 8 commits to staging: https://git.io/fh1gM
jluttine has quit [Ping timeout: 268 seconds]
thc202 has quit [Ping timeout: 244 seconds]
ng0 has quit [Ping timeout: 256 seconds]
hellrazor has joined #nixos
<noonien> however, `nix-env -qa wpgtk` doesn't find any derivations
<noonien> am i doing something wrong?
abathur has joined #nixos
<ottidmes> noonien: its probably only in nixos-unstable
<ottidmes> ,unstable noonien
hamishmack has joined #nixos
musicmatze[m] has joined #nixos
<noonien> hmm, how can i tell if a package is in unstable?
<noonien> i mean, where are the stable and unstable repos?
<clever> noonien: the nixpkgs-channels repo on github
<{^_^}> [nixpkgs] @aanderse opened pull request #54911 → nixos/httpd: check config syntax validity with `httpd -t` in preStart → https://git.io/fh12r
<noonien> oh, awesome, thank you!
musicmatze[m] is now known as musicmatue
<noonien> ottidmes: that's exactly what i wanted, thanks!
musicmatue is now known as musicmatze
<{^_^}> [nixpkgs] @flokli merged pull request #54504 → firefox 65 → https://git.io/fhVgO
<{^_^}> [nixpkgs] @flokli pushed 6 commits to master: https://git.io/fh129
doyougnu has quit [Quit: WeeChat 2.0]
hakujin1 has joined #nixos
maximili_ has joined #nixos
hakujin has quit [Ping timeout: 272 seconds]
<noonien> hmm
maximiliantagher has quit [Ping timeout: 268 seconds]
<noonien> i've split my configuration.nix into multiple files
<noonien> is there an easier way of passing `unstable` to the other files?
abathur has quit [Quit: abathur]
<clever> noonien: one option is to just make a package override, to create pkgs.unstable
<clever> noonien: another is to look at why you have pkgs on line 1 to begin with, https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/misc/nixpkgs.nix#L222-L224
<clever> _module.args.unstable = ...; allows you to { pkgs, unstable, ... }:
<noonien> so, just add `pkgs.unstable = import <nixos-unstable> { config = { allowUnfree = true; }; }`?
<noonien> ah, niuce
<noonien> that seems like a less hacky option
<noonien> will i then have to define unstable as parameters to all .nix files?
<{^_^}> [nixpkgs] @worldofpeace pushed 3 commits to staging: https://git.io/fh1aY
Rusty1 has quit [Quit: Konversation terminated!]
<noonien> or are they "matched" by name?
<clever> the ... lets it ignore args it doesnt want
<noonien> ah, NICE
<clever> you can also remove the ... to discover what other things are being given to you
jluttine has joined #nixos
ottidmes has quit [Quit: WeeChat 2.2]
fusion809 has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @andir opened pull request #54912 → [18.09] nss 3.41 -> 3.42, firefox 64 -> 65 → https://git.io/fh1al
jluttine has quit [Ping timeout: 250 seconds]
<CMCDragonkai> Hey if a Python package uses `pkg_resources` to refer to the `package_data` files, does that mean the Nix expression needs to state that `setuptools` is in the `propagatedBuildInputs`?
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fh1ai
<CMCDragonkai> Because I tried it without specifying `setuptools` in `propagatedBuildInputs`, and it still worked.
<CMCDragonkai> Could be that one of the dependencies also propagated it already.
hakujin1 is now known as hakujin
<noonien> is there a way of listing all installed packages, and the feeds they're from?
maximili_ has quit [Remote host closed the connection]
jluttine has joined #nixos
nDuff has joined #nixos
<nDuff> I recall there existing an option to control how long Nix's various impure fetchers cache content (ie. fetchGit without an explicit rev), but am having trouble finding docs for it. Where should I be looking?
<clever> nDuff: nix show-config | grep ttl
<nDuff> ahh!
<clever> that command will parse nix.conf, and show the result of merging defaults with config
<clever> and optionally, follow up by searching for those keys on the docs
<nDuff> *nod*. What I was looking for is tarball-ttl; despite the name, works for fetchGit.
<nDuff> thank you!
kvda has joined #nixos
<clever> nDuff: behind the scenes, it uses ~/.cache/nix/tarballs/ for the cache
<noonien> http://vpaste.net/gcEpB, is there any reason nixpkgs is not defined there?
<clever> noonien: you want config.nixpkgs.config
vk3wtf has quit [Ping timeout: 246 seconds]
<noonien> hmm
<noonien> can i omit nixpkgs from `nixpkgs.config = ` as well, then?
<clever> nope
<noonien> hmm, ok
silver has quit [Read error: Connection reset by peer]
<noonien> i've added the nixos-unstable channel, and my nixos-rebuild seems to have pulled more packages than i was expecting
<noonien> i've also updated the stable channel, so that might be it, but
<noonien> how can i tell which feeds derivations come from?
<clever> noonien: no real way to directly tell which nix files it came from, just guess, nix-instantiate, and compare
<{^_^}> [nixpkgs] @steve-chavez opened pull request #54913 → nixos/modules: add greenclip user service → https://git.io/fh1V1
<noonien> hmm, can i list all derivations from a feed?
<noonien> oh, s/feed/channel
q6AA4FD has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #54914 → compton-git: 2 -> 5 → https://git.io/fh1w3
<clever> noonien: nix repl `<nixpkgs>` and tab-completion
<noonien> hmm, can i iterate over a set?
<clever> noonien: manually, or from nix?
<noonien> as a nix expression
<noonien> something like the `map` functions, but over sets
<noonien> or, a way to transform a set into a list
<clever> lib.mapAttrs and friends
<clever> tab-complete in nix repl to find them, and experiment with them
<noonien> ok, thank you!
aleph- has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @andir pushed 5 commits to staging-18.09: https://git.io/fh1wg
<{^_^}> [nixpkgs] @andir merged pull request #54912 → [18.09] nss 3.41 -> 3.42, firefox 64 -> 65 → https://git.io/fh1al
<{^_^}> [nixpkgs] @matthewbauer opened pull request #54915 → androidenv: move licenseAccepted condition to androidsdk → https://git.io/fh1wa
n0qqe has joined #nixos
noqqe has quit [Ping timeout: 250 seconds]
n0qqe is now known as noqqe
hakujin has quit [Ping timeout: 244 seconds]
Guest35407 has quit [Ping timeout: 240 seconds]
revtintin has joined #nixos
Supersonic has quit [Ping timeout: 240 seconds]
vk3wtf has joined #nixos
Supersonic has joined #nixos
revtintin has quit [Quit: WeeChat 2.3]
bbigras has joined #nixos
dgarzon has joined #nixos
revtintin has joined #nixos
<dgarzon> Hi, I am currently setting up a NixOS machine with Jenkins as a systemd unit. Is there a way to create a directory before the unit is ran? I am setting it up in my configuration.nix following: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/continuous-integration/jenkins/default.nix
<dgarzon> Ideally, I would like to create the directory before the `preStart` hook is ran. Any suggestions?
o1lo01ol1o has quit [Remote host closed the connection]
true_bunta has quit [Quit: Leaving.]
hakujin has joined #nixos
nimblepoultry has quit [Ping timeout: 240 seconds]
<judson> Did the avr-gcc-libc package get removed?
<Lisanna> What's the best way to fetch nixpkgs without nixpkgs? with restricted eval enabled
<dmj`> Lisanna: builtins.fetchTarball
<Lisanna> dmj`: hat does not work in restricted eval
<dmj`> oh
hedning has quit [Quit: hedning]
alex`` has quit [Ping timeout: 245 seconds]
eadwu has quit [Quit: WeeChat 2.3]
ottidmes has joined #nixos
<ottidmes> Lisanna: is restricted eval the same as pure eval?
<ottidmes> nope its not, otherwise it would have been explained here: https://github.com/NixOS/nix/commit/d4dcffd64349bb52ad5f1b184bee5cc7c2be73b4 but it seems restricted eval is way more restrictive than pure eval
<gchristensen> pure is even more restricted than restricted
<gchristensen> restricted you can buil a thing off the filesystem, pure you must start with --expr 'builtins.fetchGit ...'
<ottidmes> gchristensen: but with pure you have access to the builtin fetchers, while with restricted not, right?
<ottidmes> as long as those fetchers are called with a output hash
<gchristensen> I think with restricted you can use a builtin fetcher if you define the sha? not sure ...
<ottidmes> not tested it myself but read it multiple times just now
<Lisanna> ottidmes: the builtin fetchers don't accept shas?
<ottidmes> they do
<Lisanna> does fetchGit?
<ottidmes> https://nixos.org/nix/manual/#ssec-builtins its explicitly mentioned in the manual that restricted evaluation mode does not support those builtins
<gchristensen> dang
<Lisanna> so, short answer is no, you can't fetch nixpkgs with restricted eval mode without nixpkgs
<ottidmes> also this comment seems to confirm it: https://github.com/NixOS/nix/issues/1888#issuecomment-368090042
<Lisanna> the only real solution I have to pin nixpkgs for my hydra channel then is to make nixpkgs a submodule of my channel's repo... but that causes eval times to take forever
<Lisanna> since the submodule checkout isn't cached at all
hedning has joined #nixos
ensyde has joined #nixos
drakonis has quit [Quit: WeeChat 2.3]
q6AA4FD has quit [Read error: Connection reset by peer]
<ottidmes> Lisanna: the tests document it pretty well: https://github.com/NixOS/nix/blob/master/tests/restricted.sh so you might use allowed-uris to workaround it?
q6AA4FD_ has joined #nixos
o1lo01ol1o has joined #nixos
<Lisanna> ottidmes: I guess if it's just on my hydra server that's fine
<{^_^}> [nixpkgs] @dtzWill merged pull request #54908 → gitAndTools.grv: use buildGoPackage instead of buildGo19Package → https://git.io/fh1zn
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fh1KT
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
worldofpeace has joined #nixos
halfbit has joined #nixos
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aleph- has joined #nixos
nDuff has quit [Quit: zzz]
doyougnu has joined #nixos
sicklork1n has quit [Ping timeout: 240 seconds]
ditadi has joined #nixos
<yl[m]> domenkozar: cachix is down
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 245 seconds]
lassulus_ is now known as lassulus
worldofpeace has quit [Remote host closed the connection]
counting1ort has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<ditadi> I ended up rolling back my nixos to the point where I didn't use cachix and got rid of it. Is there an easier way to do this?
<clever> ditadi: you can use --option to override any nix.conf field
o1lo01ol1o has joined #nixos
<clever> ditadi: so you could --option substituters htts://cache.nixos.org
countingsort has quit [Ping timeout: 246 seconds]
<ditadi> ty
<yl[m]> clever: do you know what's the issue with cachix? does domenkozar need help with it?
<clever> yl[m]: unknown, looks like the server may just be offline
<clever> yl[m]: its about 4am where domen is, so it will probably come back in a few hours
<yl[m]> clever: I'll get in touch with domenkozar maybe I can help him from my side
ottidmes has quit [Quit: WeeChat 2.2]
gagbo has quit [Ping timeout: 244 seconds]
petersjt014 has joined #nixos
ditadi has quit [Quit: Lost terminal]
dgarzon has left #nixos [#nixos]
xkapastel has quit [Quit: Connection closed for inactivity]
<petersjt014> anyone know how I can use a wireless device to provide network access to a non-wireless one via ethernet?
pie___ has joined #nixos
<clever> petersjt014: yes
<clever> petersjt014: the nat does the bulk of the work, and the dhcp/bind config automate configuring the devices on the ethernet side
<petersjt014> huh. alrighty then. I take it I'm setting that on the wireless one?
<clever> petersjt014: in this module, i define my own options for the wan card (your wifi) and lan card (your ethernet)
<{^_^}> [nixpkgs] @pbogdan opened pull request #54916 → emacs: link libXcursor when using lucid toolkit → https://git.io/fh16X
pie__ has quit [Ping timeout: 240 seconds]
<clever> petersjt014: so you could simply do imports = [ ./netboot_server.nix ]; and then set netboot_server.network = { wan = "wlpsomething"; lan = "eth0"; };
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/853bea47e35 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<petersjt014> and i had a twisted pair ready and everything
hellrazo1 has joined #nixos
hellrazor has quit [Ping timeout: 245 seconds]
q6AA4FD_ has quit [Quit: ZNC 1.7.1 - https://znc.in]
q6AA4FD has joined #nixos
hedning has quit [Remote host closed the connection]
amosbird has quit [Quit: ZNC 1.7.1 - https://znc.in]
amosbird has joined #nixos
hakujin has quit [Ping timeout: 244 seconds]
IRCsum has quit [Remote host closed the connection]
reinhardt has joined #nixos
IRCsum has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
hakujin has joined #nixos
<teto> I've seen some code using channels:XXX . Can't I do nix-build -A linux_hardkernel_4_14 channels:nixos-unstable ?
aleph- has quit [Ping timeout: 246 seconds]
hakujin has quit [Ping timeout: 244 seconds]
<clever> teto: i would just use an http url, nix-build https://github.com/nixos/nixpkgs-channels/archive/nixos-unstable.tar.gz -A hello
<yl[m]> teto: `nix build` has that feature: `nix build -f channel:nixos-17.03 hello`
<yl[m]> see `nix build --help`
<teto> yl[m]: oh great thanks
tdbgamer has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<teto> I just went thourgh the log quickly and noticed the user phizzz complaining about how hard it is to compile ns-3 but it's already packaged... you can refer him to me if he logs in again
petersjt014 has quit [Ping timeout: 244 seconds]
endformationage has quit [Quit: WeeChat 2.3]
hc1^ has quit []
o1lo01ol1o has joined #nixos
MrCoffee has quit [Quit: Lost terminal]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
o1lo01ol1o has quit [Ping timeout: 272 seconds]
vk3wtf has quit [Ping timeout: 252 seconds]
doyougnu has quit [Ping timeout: 246 seconds]
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
revtintin has quit [Quit: WeeChat 2.3]
kvda has joined #nixos
jasongrossman has joined #nixos
Vanessa229 has joined #nixos
<Vanessa229> Register and looking for me and maybe we will be sex partner ---> http://gg.gg/d0al3
Vanessa229 has quit [Client Quit]
<otwieracz> Is there any support for (local) lxd in nixops?
<otwieracz> I've got nixos machine and wanted nixops containers with network LAN-bridged network.
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 268 seconds]
slyfox_ has joined #nixos
slyfox has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @peterhoeg opened pull request #54917 → vmware: move from servers to virtualisation where it belongs → https://git.io/fh1X9
halfbit has quit [Ping timeout: 268 seconds]
kvda has joined #nixos
_kwstas has joined #nixos
palo1 has joined #nixos
_kwstas has quit [Remote host closed the connection]
Edes has joined #nixos
<Edes> Hi, I'm trying to make a package which clones a github repo and then does npm install
<Edes> but I keep getting a weird error
Havvy has quit [Read error: Connection reset by peer]
palo has quit [Ping timeout: 244 seconds]
palo1 is now known as palo
<Edes> the package builds if I clone it by hand and then run `nix-shell --pure -p nodejs` and then `npm install`
<elvishjerricco> Edes: On NixOS at least, Nix's sandboxing feature is turned on. This means derivations aren't allowed to use the network unless they state what the sha256 of their output will be ahead of time. If they don't honor that hash, Nix fails the build. Here, you're seeing npm fail because of lack of networking
<elvishjerricco> Edes: NPM is really hard to make work deterministically
<Edes> ah
<elvishjerricco> Edes: You probably want to look at https://github.com/svanderburg/node2nix
<clever> Edes: you want to use yarn2nix
<elvishjerricco> or yarn2nix :P
<Edes> ah
<Edes> yeah
<Edes> I was looking for packages which used npm
<Edes> on nixpkgs
<Edes> but I couldn't find any
Havvy has joined #nixos
<elvishjerricco> Edes: I think the base16-builder package is an example of node2nix output checked into nixpkgs, IIRC
<Edes> to be more concrete
<Edes> this is the package i'm trying to build
<Edes> so I would use node2nix instead of npm install?
<Edes> or like as a base for it I guess
Ariakenom has joined #nixos
<teto> I am trying to bump LanguageClient-neovim since the release from 1h ago supports neovim virttext (cool) but Iget "error: no matching package named `crossbeam-channel` found". I don't know the rust ecosystem so not sure how to fix this
iqubic has joined #nixos
<elvishjerricco> IIRC, you can just do `node2nix` instead of `npm install`, and then `nix-build -A package` to build it
<elvishjerricco> yarn2nix might be better though; I've not used it, but I've had some quirks with node2nix
<Edes> I saw more yarn2nix packages on nixpkgs
<Edes> so I'll try that, thanks
<bpye> If I have a NixOS machine stalling in startup how can I see why?
<bpye> Specifically, the last message I see is "Starting ZFS file system shares."
<bpye> I haven't booted this box in a few months but now it just seems to get stuck
<clever> bpye: and if you try to do rollbacks via grub?
<bpye> I can try that but this config should be working - it certainly did the last time I was running this machine...
<bpye> I don't even see it obtaining a DHCP lease...
<clever> bpye: is the ethernet cord maybe damaged?
<bpye> It's new - I see the link lights and some activity going on
<clever> bpye: try adding the word `single` to the kernel params in grub?
<bpye> Yeah that got me to a rescue shell
<clever> bpye: anything interesting in `journalctl -b -1` ?
<bpye> Buuut I don't think I have a root password set, I use SSH and sudo...
<bpye> If I do have one I don't remember it :(
<clever> bpye: you can also change it to init=/bin/sh (and tell it to continue when it claims it doesnt exist)
<clever> that will drop you into a root shell without asking for a pw
<clever> then you can use /nix/var/nix/profiles/system/sw/bin/passwd to fix the pw
Ariakenom has quit [Quit: Leaving]
<sphalerite> init=/nix/var/nix/profiles/system/sw/bin/passwd :D
<clever> sphalerite: it may not sync on the way down? :D
<sphalerite> oh hm
<bpye> There's basically nothing in journalctl
<clever> bpye: do you have any special zfs shares setup?
<bpye> I have some samba shares, but they aren't really special - it just shares a directory which is stored on ZFS
<clever> bpye: all i can think of is to try to disable them and reboot, then maybe look into why its having issues
<bpye> How should I do that from a rescue shell, a normal nixos-rebuild reload?
<clever> bpye: are they configured with zfs settings, or nixos settings?
<bpye> Switch*
<bpye> NixOS config
<clever> bpye: the nixos ones are not likely an issue
<clever> and you want `nixos-rebuild boot` since its not able to switch
o1lo01ol1o has joined #nixos
<bpye> Okay here's hoping
<bpye> Reboot on a Microserver takes years
eeva has quit [Remote host closed the connection]
o1lo01ol1o has quit [Ping timeout: 240 seconds]
eeva has joined #nixos
<bpye> Yeah disabling samba did it
<bpye> But why :/
<typetetris> What is the difference again betwees the nixos-unstable and the nixpkgs-unstable channels?
<clever> typetetris: nixos-unstable waits for nixos testscases to pass before updating
<clever> typetetris: about a 2 years ago, a bug was introduced, that corrupted the grub cfg file
<clever> nixos-unstable correctly refused to update
rauno has joined #nixos
<clever> nixpkgs-unstable didnt test that, updated, and then at least 20 people discovered boot problems
<typetetris> clever: Will nixos-unstable contain only expressions which hydra already built, so I get to use cache.nixos.org?
<clever> typetetris: for all channels not ending in -small, the channel only updates when hydra has tried to build everything
<clever> typetetris: but things can fail, and the channel will still update
<typetetris> ah ok.
<clever> typetetris: the hydra links here, point to the subset that must pass, for the channel to update
<clever> everything else, just has to finish (pass or fail)
<typetetris> I have a machine with nixpkgs on debian and nixpkgs-unstable, which started to build emacs from scratch yesterday :(
<bpye> Right well I guess I'll fight with this tomorrow - past my bedtime
<bpye> Finally gotten my hardware from the UK - shipping on a boat to Canada takes a while
<bpye> Hence the machine being off for like 3 months
<clever> bpye: ah
<clever> bpye: where in canada? i'm on the east coast, tons of snow here
<bpye> Ah, I'm over in relatively sunny Vancouver
<clever> ah, exact other end of the country
<typetetris> clever: Thanks for howoldis that is really cool and should be linked on nixos.org somewhere.
<bpye> We've had pretty good weather whilst the rest of the country has been frozen
<bpye> Yeah
<bpye> The weather back in the UK has been colder and snowier than here
<bpye> Hopefully tomorrow I can get my UniFi controller on the NixOS box and fix this boot issue
<bpye> Night all
<otwieracz> Morning. :
<otwieracz> :)
jasongrossman has quit [Ping timeout: 250 seconds]
schjetne has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f2a1a4e93be (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<judson> I probably should've asked if anyone else was using fish with home-manager before building a nix repo of fisherman packages, right?
hyper_ch2 has joined #nixos
Edes has quit [Ping timeout: 240 seconds]
<typetetris> I did `nix-channel --remote <name>` but ~/.nix-defexpr/channels still contains stuff for <name>? Shouldn't that be gone?
<clever> typetetris: you need to --update to apply the changes
<typetetris> still the same
<clever> does --list show a channel?
iqubic` has joined #nixos
<typetetris> nope
<clever> there is a bug, where --update does nothing if you have zero channels
<clever> so there is no "right" way to remove the last channel
iqubic has quit [Ping timeout: 240 seconds]
<typetetris> oh
<clever> typetetris: where does the ~/.nix-defexpr/channels symlink point?
<typetetris> hmm
<typetetris> ` /nix/var/nix/profiles/per-user/<username>/channels`
<clever> typetetris: nix-env --profile /nix/var/nix/profiles/per-user/<username>/channels -q
<clever> that will show everything installed into it, then you can change `-q` to `-e <name>` to uninstall things like normal
<clever> nix-channel is just a helper that wraps that nix-env profile
<typetetris> ok
<typetetris> That worked
<{^_^}> [cabal2nix] @qrilka opened pull request #403 → Add option for disabling hpack completely → https://git.io/fh1D2
jasongrossman has joined #nixos
<teto> I am trying to fetch via ssh a repo with ` src = builtins.fetchGit { url = "ssh://git@github.com/teto/myrepo.git"; }`. during the sudo nixos-rebuild, I get git@github.com: Permission denied (publickey) I suppose because the command being run with sudo, fetchGit can't access my user key. What's the most elegant way to work around that ? According to https://github.com/NixOS/nixpkgs/issues/4004, I would need to
<teto> add extra paths to the sandbox and export an ssh-config-file, is that the goto option ?
<{^_^}> #4004 (by domenkozar, 4 years ago, closed): fetchgit: support specifying location of public keys for ssh transport
<{^_^}> [cabal2nix] @peti merged pull request #403 → Add option for disabling hpack completely → https://git.io/fh1D2
<{^_^}> [cabal2nix] @peti pushed 2 commits to master: https://git.io/fh1D1
<clever> teto: builtins.fetchGit is the simplest solution
<clever> that just runs the git clone outside of the sandbox
Ariakenom has joined #nixos
<teto> clever: but I need to use sudo because of the "nixos-rebuild" which prevents access to /home/teto/.ssh/id_rsa (I think)
<clever> teto: an ssh agent will keep things working
<clever> the $SSH_AUTH_SOCK var will carry over, and give it access
<clever> you might even have an agent running already, what happens when you run `ssh-add -l` ?
hamishmack has joined #nixos
<{^_^}> [nixpkgs] @peti merged pull request #53680 → GHC 8.6 fixes and bound relaxation → https://git.io/fhZqy
<{^_^}> [nixpkgs] @peti pushed 4 commits to haskell-updates: https://git.io/fh1D7
<teto> good, let me look into it, seems like HM has services.gpg-agent.enableSshSupport
<teto> thanks for the tip
<{^_^}> [nixpkgs] @Mic92 merged pull request #54838 → buku: 3.8 -> 4.1 → https://git.io/fhPay
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fh1Dh
manjaroi3_ has joined #nixos
<{^_^}> [nixpkgs] @endgame opened pull request #54918 → haskellPackages.posix-pty: dontCheck → https://git.io/fh1yT
Makaveli7 has joined #nixos
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @peti merged pull request #54918 → haskellPackages.posix-pty: dontCheck → https://git.io/fh1yT
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/fh1yg
dermetfan has joined #nixos
<typetetris> How can I get the sha of the commit a channel referred to for me?
o1lo01ol1o has quit [Ping timeout: 250 seconds]
maximiliantagher has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #54914 → compton-git: 2 -> 5 → https://git.io/fh1w3
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fh1yF
maximiliantagher has quit [Ping timeout: 240 seconds]
jomik has joined #nixos
jackdk has quit [Ping timeout: 246 seconds]
jomik has quit [Client Quit]
jomik has joined #nixos
<{^_^}> [cabal2nix] @peti pushed to master « Bump version number for upcoming release. »: https://git.io/fh1Sf
<{^_^}> [cabal2nix] @peti pushed 0 commits to refs/tags/v2.14: https://git.io/fh1SJ
<{^_^}> [nixpkgs] @dotlambda merged pull request #54904 → home-assistant-cli: 0.3.0 -> 0.4.2 → https://git.io/fh1Bz
<{^_^}> [nixpkgs] @dotlambda pushed 3 commits to master: https://git.io/fh1SU
cantstanya has quit [Remote host closed the connection]
cantstanya has joined #nixos
jomik has quit [Client Quit]
<{^_^}> [cabal2nix] @peti pushed to master « Our test suite can no longer run with 1 KB stack. »: https://git.io/fh1SG
<{^_^}> [nixpkgs] @dotlambda pushed to master « home-assistant-cli: 0.4.2 -> 0.4.4 »: https://git.io/fh1Sn
goibhniu has joined #nixos
brejoc has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fh19k
brejoc has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « git-annex: update sha256 hash for version 7.20190129 »: https://git.io/fh19l
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
q6AA4FD has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @elohmeier opened pull request #54920 → pythonPackages.favicon: init at 0.5.1 → https://git.io/fh19P
dermetfan has quit [Ping timeout: 268 seconds]
<rauno> Hey, anyone here working on upgraded mesos package ?
<rauno> upgrading*
q6AA4FD has joined #nixos
Makaveli7 has quit [Ping timeout: 240 seconds]
Makaveli7 has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fh1HW
freeassange has joined #nixos
knupfer has joined #nixos
__Sander__ has joined #nixos
freeman42x has quit [Ping timeout: 252 seconds]
<sphalerite> typetetris: referred to at a particular point in time?
maximiliantagher has joined #nixos
<{^_^}> [nixpkgs] @squidpickles opened pull request #54921 → Use nativeBuildInputs for building Docker images → https://git.io/fh1QH
brejoc has joined #nixos
maximiliantagher has quit [Ping timeout: 272 seconds]
freeassange has quit [Ping timeout: 250 seconds]
thc202 has joined #nixos
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #54813 → fdroidserver: 2016-05-31 -> 1.1 → https://git.io/fhiFq
<{^_^}> [nixpkgs] @dotlambda pushed 5 commits to master: https://git.io/fh15U
o1lo01ol1o has quit [Ping timeout: 268 seconds]
freeassange has joined #nixos
countingsort has joined #nixos
counting1ort has quit [Ping timeout: 250 seconds]
Makaveli7 has quit [Quit: Leaving]
sigmundv_ has joined #nixos
<{^_^}> [nixpkgs] @pSub merged pull request #54895 → bitlbee-facebook: 1.1.2 -> 1.2.0 → https://git.io/fh1vt
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/fh1ds
<{^_^}> [nixpkgs] @pSub closed pull request #54866 → bitlbee-facebook: 1.1.2 -> 1.2.0 → https://git.io/fhPAT
globin has quit [Remote host closed the connection]
Makaveli7 has joined #nixos
globin has joined #nixos
<{^_^}> [nixpkgs] @marsam opened pull request #54922 → vale: 1.3.0 -> 1.3.1 → https://git.io/fh1d7
maximiliantagher has joined #nixos
Makaveli7 has quit [Quit: Leaving]
<typetetris> sphalerite: Now. So, maybe there is something in ~/.nix-defexpr which states the sha?
maximiliantagher has quit [Ping timeout: 240 seconds]
<sphalerite> typetetris: nix eval nixpkgs.lib.version
<sphalerite> for older channels, nix eval -f /nix/var/nix/profiles/per-user/root/channels-$n-link/nixos lib.version
<sphalerite> or s/nixos/nixpkgs/ if your channel isn't called nixos
brejoc has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
o1lo01ol1o has joined #nixos
woffs has quit [Quit: Gateway shutdown]
woffs has joined #nixos
<{^_^}> [nixpkgs] @marsam opened pull request #54923 → gitAndTools.lab: specify subPackages → https://git.io/fh1Fx
o1lo01ol1o has quit [Ping timeout: 250 seconds]
knupfer has quit [Ping timeout: 272 seconds]
knupfer has joined #nixos
gagbo has joined #nixos
Makaveli7 has joined #nixos
knupfer has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @vdemeester opened pull request #54925 → Add a programs.podman module → https://git.io/fh1bS
<{^_^}> [nixpkgs] @elohmeier opened pull request #54926 → pythonPackages.django-sesame: init at 1.4 → https://git.io/fh1Nv
ubert has joined #nixos
knupfer has joined #nixos
<typetetris> sphalerite: Thank you very much.
__monty__ has joined #nixos
<{^_^}> [nixpkgs] @andir pushed 17 commits to release-18.09: https://git.io/fh1Ni
o1lo01ol1o has joined #nixos
rprije has joined #nixos
<kenogo> Hey! So I know I can use patchelf to patch the libraries a binary uses, but is there a tool to patch arbitrary paths to something I want them to be?
<symphorien> can you expand ?
<kenogo> The printer driver I'm packaging is looking for files under "/opt/brother/..." and I need to patch it to "$out/opt/brother"
<sphalerite> nope you can't do that usually
<clever> kenogo: libredirect
<symphorien> use libredirect
<sphalerite> oh ok lol
<symphorien> there are examples in nixpkgs
<kenogo> Thanks I'll look into that!
o1lo01ol1o has quit [Ping timeout: 268 seconds]
simukis has joined #nixos
rprije has quit [Ping timeout: 250 seconds]
Acou_Bass has quit [Ping timeout: 245 seconds]
vk3wtf has joined #nixos
<kenogo> Thanks a lot guys! I've had a rough night trying to get this printer to work and almost gave up. This turned out to have been the last hurdle, it works now :))
Acou_Bass has joined #nixos
<{^_^}> [nixpkgs] @andir pushed to release-18.09 « gitAndTools.grv: use buildGoPackage instead of buildGo19Package »: https://git.io/fh1xB
maximiliantagher has joined #nixos
<ekleog> Has anyone built a rustc with wasm32-unknown-unknown without the mozilla overlay here?
<ekleog> (I need to add a patch, so to build from source)
Ariakenom has quit [Ping timeout: 272 seconds]
orivej has joined #nixos
Mateon2 has joined #nixos
maximiliantagher has quit [Ping timeout: 250 seconds]
Mateon1 has quit [Ping timeout: 246 seconds]
Mateon2 is now known as Mateon1
fendor has joined #nixos
MtP has joined #nixos
MtP has quit [Client Quit]
<WilliamHamilton[> when I run a ./configure command I get "configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."`. How can I locate where the shtool is in nixpkgs (nix locate works only on local packages)?
<WilliamHamilton[> :l shtool
<WilliamHamilton[> :d shtool
<WilliamHamilton[> :locate shtool
hakujin has joined #nixos
<WilliamHamilton[> I remember that there was a shortcut here on the irc channel to do that, but I don't remember which one
<{^_^}> [nixpkgs] @deepfire opened pull request #54927 → Ghc 8.8 → https://git.io/fh1pA
<goibhniu> ,locate shtool
<{^_^}> Found in packages: php, php71, php73, php-unit, php-embed, php71-unit, php73-unit, php71-embed, php73-embed
* goibhniu lucky guess \o/
<goibhniu> but probably not the shtool you're looking for
schjetne has quit [Ping timeout: 244 seconds]
<eeva> Do you guys deploy nix packages to non-nixos machines? If so do you do everything by hand (like symlinking some config, and starting/stopping services) or do you use some tooling I don't yet know of?
<goibhniu> eeva: disnix might be good for that
<goibhniu> I don't know about deploying nixos services to non-nixos machines though
<typetetris> hmm, used hoogleLocal with hakyll and now my nix is compiling stuff from scratch .. a bit strange isn't it?
CcxWrk has quit [Ping timeout: 244 seconds]
<WilliamHamilton[> thanks goibhniu , that's unfortunately not the same shtool
mtesseract has joined #nixos
<eeva> goibhniu: I'll ask/check on discourse
CcxWrk has joined #nixos
<WilliamHamilton[> ,locate aclocal
<symphorien> WilliamHamilton[: for autoconf, usually autoreconfHook is enough
<{^_^}> [nixpkgs] @vbgl merged pull request #54602 → coqPackages.coq-extensible-records: init at 1.2.0 → https://git.io/fhK8j
<{^_^}> [nixpkgs] @vbgl pushed commit from @Ptival to master « coqPackages.coq-extensible-records: init at 1.2.0 »: https://git.io/fh1hx
o1lo01ol1o has joined #nixos
fengels has joined #nixos
ThatDocsLady has joined #nixos
Ariakenom has joined #nixos
o1lo01ol1o has quit [Ping timeout: 272 seconds]
rtjure has quit [Ping timeout: 250 seconds]
jethron has joined #nixos
<infinisil> ,ping
<{^_^}> pong
<infinisil> ,locate aclocal
<{^_^}> Found in packages: agg, gsl, gts, ppl, yad, gimp, gnet, gob2, npth, root, soqt, soxt, xosd, bison, check, clisp, cmake, gsl_1, gwrap, imlib, libeb, smpeg, wxGTK, bison2, coin3d, gdome2, gnupth, gthumb, hamlib, lib3ds, libaal, libast, libdap, libnih, libotr, libsmi, pidgin, smpeg2, xapian, SDL.dev, dovecot, libagar, libtool, log4cpp, mariadb, mysql55, mysql57, orc.dev, pkgconf, wayland, wxGTK29, wxGTK30, wxGTK31, xineLib, zziplib, and 105 more
abaiste^ has joined #nixos
<infinisil> WilliamHamilton[: seems to have swallowed the message
dermetfan has joined #nixos
jethron has quit [Remote host closed the connection]
jethron has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/4a200fbbf0a (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @DeltaEvo opened pull request #54928 → beam-packages: add erlang_nox → https://git.io/fhMe3
<__monty__> infinisil: What's {`-`} btw?
<sphalerite> __monty__: samueldr's logging bot
rtjure has joined #nixos
__monty__ has quit [Quit: Lost terminal]
__monty__ has joined #nixos
gagbo has quit [Quit: I'm out !]
gagbo has joined #nixos
schjetne has joined #nixos
<{^_^}> [nixpkgs] @DeltaEvo opened pull request #54930 → coredns: 005 -> 1.3.1 → https://git.io/fhMv2
ng0 has joined #nixos
mtesseract has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @DeltaEvo opened pull request #54931 → nixos/coredns: init → https://git.io/fhMvy
jethron has quit [Quit: Leaving]
jethron has joined #nixos
<Taneb> Is there a way to tell Hydra that a target is just an old target that's been renamed, for the purposes of history and metrics and stuff?
nikivi has quit [Quit: ZNC is awesome]
<elvishjerricco> Taneb: Dunno. I wonder if Hydra understands `pkgs/top-level/aliases.nix` at all
schjetne has quit [Ping timeout: 240 seconds]
<Taneb> I couldn't see any relevant looking mention of aliases in Hydra's source, so I'm going to guess the answer is "no"
nakkle has joined #nixos
knupfer has quit [Ping timeout: 245 seconds]
<elvishjerricco> Taneb: Might not be at the hydra level. Could be in nixpkgs
<Taneb> elvishjerricco: that'd surprise me, I assumed Hydra stores the metrics accoridng to project:jobset:job
o1lo01ol1o has joined #nixos
regulus_ has quit [Ping timeout: 268 seconds]
nikivi has joined #nixos
mtesseract has joined #nixos
q6AA4FD has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @peti merged pull request #54927 → Ghc 8.8 → https://git.io/fh1pA
<{^_^}> [nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/fhMJZ
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
init_6 has joined #nixos
o1lo01ol1o has quit [Ping timeout: 272 seconds]
hakujin has quit [Ping timeout: 245 seconds]
regulus_ has joined #nixos
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/23806968dad (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<{^_^}> [nixpkgs] @fuzzy-id opened pull request #54932 → Mfcl8690cdw update → https://git.io/fhMUW
o1lo01ol1o has joined #nixos
<WilliamHamilton[> suppose I have a nix expression like https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/audio/linuxband/default.nix . It's really a function, to which I provide the arguments by referencing this file in the nixpkgs tree
<WilliamHamilton[> but how do I call this function from the command line?
<{^_^}> [nixpkgs] @aanderse opened pull request #54933 → redmine: 3.4.6 -> 3.4.8 → https://git.io/fhMUi
o1lo01ol1o has quit [Remote host closed the connection]
<noonien> hello
<noonien> how does one use `lib` in a nix expression?
patrl has joined #nixos
o1lo01ol1o has joined #nixos
<symphorien> can you expand ?
<noonien> i want to use the functions from https://github.com/NixOS/nixpkgs/blob/master/lib/attrsets.nix
<symphorien> yes but in what context ?
<noonien> in an expression to nix-instantiate
<symphorien> starting with "with import <nixpkgs> {};" ?
<noonien> i want to create a list of packages available from each channel, so i can compare to packages i've got installed, to check what packages come from where
<symphorien> you can use "let lib = import <nixpkgs/lib>; in" in most contexts
o1lo01ol1o has quit [Remote host closed the connection]
<symphorien> if nixpkgs is in scope, `lib` is enough
o1lo01ol1o has joined #nixos
alex`` has joined #nixos
Makaveli7 has quit [Quit: Leaving]
schjetne has joined #nixos
<symphorien> if nixpkgs is called pkgs. then pkgs.lib should work
patrl has quit [Quit: WeeChat 2.3]
hakujin has joined #nixos
hakujin has quit [Ping timeout: 246 seconds]
rauno has quit [Ping timeout: 268 seconds]
knupfer has joined #nixos
ub has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #54926 → pythonPackages.django-sesame: init at 1.4 → https://git.io/fh1Nv
<{^_^}> [nixpkgs] @dotlambda pushed commit from @elohmeier to master « pythonPackages.django-sesame: init at 1.4 (#54926) »: https://git.io/fhMkm
abcrawf has quit [Remote host closed the connection]
ubert has quit [Ping timeout: 240 seconds]
abcrawf has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #54920 → pythonPackages.favicon: init at 0.5.1 → https://git.io/fh19P
<{^_^}> [nixpkgs] @dotlambda pushed commit from @elohmeier to master « pythonPackages.favicon: init at 0.5.1 (#54920) »: https://git.io/fhMkw
<noonien> hmm, `map (x: x) (builtins.attrNames pkgs)` seems to evaluate to a `[ CODE CODE CODE ... ]`
<noonien> is there a way to eval each value as well?
<noonien> or, better yet, print each value on a separate line?
o1lo01ol1o has quit [Remote host closed the connection]
<WilliamHamilton[> how do I call a nix expression that requires some input with nix-build? I want to use the inputs from nixpkgs
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<wedens> WilliamHamilton[: `nix-build --no-out-link -E 'with import <nixpkgs> {} ; callPackage ./default.nix {}';` something like this?
<WilliamHamilton[> wedens: yes, thanks!
MisterOutofTime has joined #nixos
werner_ has joined #nixos
<MisterOutofTime> hey how can i change the docker version?
<MisterOutofTime> ive tried it like this in my nixos config: https://privatebin.net/?8b1c74e7d0e9dcca#dMQIxfwh9ofOpMXABbfieYMll5Yf108VdwW5u954F0Q=
<MisterOutofTime> but i get: error: attribute 'dockerGen' missing, at /
<srhb> MisterOutofTime: Your pastebin does not respond to me.
<srhb> MisterOutofTime: I don't think dockerGen is actually exposed via the pkgs set anywhere. I think you'd be better off overriding the docker package itself using overrideAttrs
<srhb> But if you're touching every component, perhaps you could just get a different nixpkgs version for that package.
<MisterOutofTime> how?
<srhb> Or even import the dockerGen definition manually..
<srhb> Overriding docker itself will be something like docker = pkgs.docker.overrideAttrs (oldAttrs: { src = ... old source; })
<srhb> To a first approximation
q6AA4FD has joined #nixos
fendor has quit [Ping timeout: 250 seconds]
<MisterOutofTime> so i would "just" override the containerdSha256 etc attributes?
<{^_^}> [nixpkgs] @dotlambda opened pull request #54934 → python.pkgs.keras-preprocessing: 1.0.5 -> 1.0.6 → https://git.io/fhMIx
<MisterOutofTime> srhb: well now its building smth lets see what happens..
freeassange has quit [Remote host closed the connection]
<srhb> MisterOutofTime: No, with overrideAttrs you'd override the src for docker specifically.
<srhb> MisterOutofTime: Meaning, the src attribute should end up being the actual source tree of the version you want.
<srhb> (Using fetchurl or whatever you like)
erictapen has joined #nixos
knupfer has quit [Ping timeout: 240 seconds]
<MisterOutofTime> oh, how would i use dockerGen alternativly then
<MisterOutofTime> as i would have to overwrite like 30 attributes
init_6 has quit []
xkapastel has joined #nixos
agander has joined #nixos
<noonien> variables can only be defined in ley expressions?
<srhb> MisterOutofTime: As far as I can see it's not exposed at all. It only exists within that default.nix file
<srhb> MisterOutofTime: So you'd have to pull it out of there to refer to it.
<srhb> noonien: Depends what you mean by variables.
<{^_^}> [nixpkgs] @taku0 opened pull request #54935 → thunderbird, thunderbird-bin: 60.4.0 -> 60.5.0 → https://git.io/fhMLc
<MisterOutofTime> srhb: so if thats not an option, how do i specify the sources of docker-runc docker-containerd etc
<srhb> noonien: For instance, in the expression `foo = x: x` I'd call x a variable.
<srhb> MisterOutofTime: Yeah, it doesn't look trivial, they're also within that single file
<srhb> MisterOutofTime: It's probably easiest to duplicate that entirely.
timor has joined #nixos
<srhb> The file, I mean.
<srhb> And call it like it's called from all-packages.nix
<MisterOutofTime> urgh
<srhb> Better yet, PR making it accessible :)
<Twey> noonien: Variables are bound by a) functions and b) rec sets
<MisterOutofTime> jsut wanna use a supported docker version :/
<Twey> (let expressions are sugar for b)
<srhb> MisterOutofTime: What do you mean "supported" ?
<MisterOutofTime> well most tools are still using docker 18.06
<timor> I am currently trying to copy a large directory structure to the store manually, along the lines of https://nixos.wiki/wiki/Cheatsheet#Adding_files_to_the_store. The described method only works for files, not for directories. What is the correct set of options to ensure that the correct store path name is generated in that case?
<{^_^}> [nixpkgs] @jpotier opened pull request #54936 → nomad: 0.8.6 -> 0.8.7 → https://git.io/fhMLH
<tilpner> timor: You can't pass --flat for directories
knupfer has joined #nixos
<MisterOutofTime> srhb: or can i somehow specify a specific commit of nixpkgs to be used for the docker pkg? as 18.06 was back then included in it https://github.com/NixOS/nixpkgs/commit/ff2b0316b4d0c861790fb407aa827a8eaf2634c5
<timor> tilpner: I know
<tilpner> MisterOutofTime: Last time someone asked about accessing dockerGen, we ended up on callPackage-calling the file it is contained in
<tilpner> timor: Then what isn't working?
<timor> tilpner: even with and without --recursive to nix-store I am unable to generate the correct hash it seems
<noonien> srhb: i'm trying to simplyfy this a bit: http://vpaste.net/MOrtm
<srhb> MisterOutofTime: sure, something like (import (builtins.fetchTarball { url = https://github.com/NixOS/nixpkgs/archive/revision.tar.gz; } {}).docker
<noonien> (i'm new to nix)
<noonien> also, apparentl, some derivations/packages don't have a .version, or it's not a string
<tilpner> timor: What is the correct hash, and how do you know it's correct?
<MisterOutofTime> srhb: attempt to call something which is not a function but a string with context
<timor> tilpner: I asked myself the same question right now. Currently trying to make an MWE...
<{^_^}> [nixpkgs] @dotlambda opened pull request #54937 → python.pkgs.django_1_8: mark as insecure → https://git.io/fhMts
<timor> tilpner: ok, got it working. I initially made the mistake of trying this out on an output path, not a source path
<{^_^}> [nixpkgs] @mmlb opened pull request #54938 → iperf2: 2.0.12 -> 2.0.13 → https://git.io/fhMtu
schjetne has quit [Ping timeout: 252 seconds]
silver has joined #nixos
ng0 has quit [Remote host closed the connection]
<srhb> MisterOutofTime: Got some parens wrong probably. The intention is to call the imported function: (import (builtins.fetchTarball { url = https://github.com/NixOS/nixpkgs/archive/revision.tar.gz; }) {}).docker
ng0 has joined #nixos
timor has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @alyssais opened pull request #54939 → ruby_2_6: 2.6.0 -> 2.6.1 → https://git.io/fhMtA
timor has joined #nixos
mtesseract has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @dotlambda opened pull request #54940 → CVE-2019-3498 → https://git.io/fhMqJ
<MisterOutofTime> srhb: https://pastebin.com/wtxYYheK
<MisterOutofTime> srhb: sudo docker --version Docker version 18.09.0, build 4d60db472b2bde6931072ca6467f2667c2590dff
<MisterOutofTime> still same docker version, even tho it downloaded a bunch of stuff
q6AA4FD has quit [Ping timeout: 268 seconds]
<srhb> MisterOutofTime: How are you installing docker?
<MisterOutofTime> yeah it downloaded 18.09 again
<MisterOutofTime> virtualisation.docker.enable = true;
<srhb> MisterOutofTime: And this override is also in your configuration.nix?
<MisterOutofTime> here t
<MisterOutofTime> he whole https://pastebin.com/1iykq5WC
<srhb> MisterOutofTime: The revision you're pointing to appears to be 18.09 as well
<srhb> So everything is working correctly.
<srhb> MisterOutofTime: (Specifically that is the commit that bumped docker to 18.09)
<MisterOutofTime> oh wow sorry
<srhb> No worries :)
<{^_^}> [nixpkgs] @dotlambda opened pull request #54941 → [18.09] CVE-2019-3498 → https://git.io/fhMqS
<{^_^}> [nixpkgs] @Profpatsch merged pull request #54887 → bazel: 0.21.0 -> 0.22.0 → https://git.io/fhX2A
<{^_^}> [nixpkgs] @Profpatsch pushed commit from @NinjaTrappeur to master « bazel: 0.21.0 -> 0.22.0 »: https://git.io/fhMq5
<noonien> i'm curious, is using cached binaries secure? if so, what provides this security?
<simpson> noonien: Which security property do you want, and what's your threat model?
<pbb> Hi, is it possible to set a static address on all available interfaces, without knowing the names of the available interfaces on boot?
<simpson> noonien: Binaries from the NixOS cache are signed with a key, and by default your NixOS installation will verify that signature, IIUC.
erictapen has quit [Ping timeout: 240 seconds]
<gchristensen> you have to trust who is providing the cache
<noonien> i'm asking out of curiosity, there is no threat model. from what i can tell, i can only trust the cached binaries as much as i can trust the NixOS devs, which is fine, since this is common practice wit other distros that provide already-built binaries.
<srhb> noonien: Pretty much, yes.
<gchristensen> you don't have to trust nixos devs to trust the cache's binaries
<gchristensen> almost no nixos maintainers have the ability to publish binaries they built
<noonien> ah, sure, i meant the default cache, i'm guessing that's also maintained by the nixos devs
<qyliss^work> Most people with commit access to nixpkgs don't have access to the cache
<srhb> Frankly, it's probably easier to get something malicious into the cache by just committing it, rather than trying to tamper with the cache.
<gchristensen> there are only a very small number of people who have any access to the build infrastructure, nixos package maintainers don't build and publishbinaries
MisterOutofTime has quit [Ping timeout: 256 seconds]
<noonien> cool. i was asking because there might have been some extra security i might not have been aware of.
<gchristensen> the only part the package maintainers have control over is the expression commited to nixpkgs, as srhb suggests
<gchristensen> well, this _is_ extra security over what many distros provide
<noonien> for example, build systems such as bazel provide reproducible builds, and from what i can tell, it works similarely to nix
<srhb> noonien: In some ways, yes.
<srhb> Though nix really isn't a build system per se..
<gchristensen> Its Complicated
<srhb> Then again, it isn't really _anything_ other than Nix.
<gchristensen> many of nix's packages are reproducible
<noonien> yup, i understand, i'm also not naive enough to think that all package builds are reproducible, just wondering if that was the case.
<gchristensen> not all builds are reproducible -- even with bazel :)
<srhb> noonien: I was surprised to find recently than somewhere upwards of 90% of debians packages are in fact reproducible bit for bit.
<srhb> Which is way better than I had thought.
<noonien> if it was, then the cache servers could have probably been verified periodically
<qyliss^work> 92.5!
tilpner has quit [Quit: WeeChat 2.3]
<noonien> woah, that's actually pretty interesting!
<srhb> qyliss: Nice, thanks!
jethron has quit [Remote host closed the connection]
jethron has joined #nixos
<qyliss^work> Even with reproducible builds you have to trust the cache
<gchristensen> noonien: you can verify the packages reproducibility right with Nix, if you'd like! though a hash mismatch doesn't (necessarily) mean the cache is compromised -- it could just be unreproducible
<{^_^}> [nixpkgs] @Ma27 merged pull request #53650 → shmig: 2017-07-24 -> 1.0.0 → https://git.io/fhGxS
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/fhMmK
<qyliss^work> It could be serving malicious binaries to just your IP
o1lo01ol1o has joined #nixos
erictapen has joined #nixos
<noonien> well, i wouldn't assume the cache maintainers are malicious, that would make using the default cache unfeasible
<gchristensen> yes :)
schjetne has joined #nixos
nikivi has quit [Quit: ZNC is awesome]
endformationage has joined #nixos
apaul1729 has joined #nixos
<{^_^}> [nixpkgs] @adisbladis pushed 3 commits to master: https://git.io/fhMmN
q6AA4FD has joined #nixos
timor has quit [Remote host closed the connection]
timor has joined #nixos
<WilliamHamilton[> how can I debug a .nix derivation I'm writing when I have only the error message `builder for '/nix/store/zv3mdvgvdb3gqls81q40bk6yxy59sq82-linuxband-master.drv' failed with exit code 1`?
ub has quit [Ping timeout: 240 seconds]
ubert has joined #nixos
<WilliamHamilton[> I remember there is a way to do the separate phases of the build in a shell
<{^_^}> [nixpkgs] @7c6f434c merged pull request #54460 → lua: add withPackages function → https://git.io/fhgNl
<{^_^}> [nixpkgs] @7c6f434c pushed commit from @teto to master « lua: add withPackages function (#54460) »: https://git.io/fhMYY
<WilliamHamilton[> so that I can go to the configurePhase, which I know it's what is generating the problem
schjetne has quit [Ping timeout: 272 seconds]
tdbgamer has joined #nixos
fendor has joined #nixos
nikivi has joined #nixos
<{^_^}> [nixpkgs] @7c6f434c merged pull request #54935 → thunderbird, thunderbird-bin: 60.4.0 -> 60.5.0 → https://git.io/fhMLc
<{^_^}> [nixpkgs] @7c6f434c pushed commit from @taku0 to master « thunderbird, thunderbird-bin: 60.4.0 -> 60.5.0 (#54935) »: https://git.io/fhMYu
agander has quit [Quit: Leaving]
drakonis has joined #nixos
<joepie91> what's the current status, if any, on Cinnamon support in NixOS?
alex`` has quit [Quit: WeeChat 2.3]
<joepie91> (the DE)
<sphalerite> joepie91: based on a grep in nixpkgs, none at all :p
<arianvp> When I do nix-shell I get
<arianvp> warning: ignoring untrusted substituter 'https://cache.nixos.org'
<sphalerite> I do seem to recall a github issue about it though
<arianvp> and then it downloads from cache.nixos.org anyway \o/
<arianvp> where does the error come from? I have it since recent update
<sphalerite> joepie91: oh, it was actually there at one point
<WilliamHamilton[> how could I see the output of `./configure` in the configure phase when doing nix-build?
erictapen has quit [Ping timeout: 272 seconds]
<joepie91> sphalerite: right, I'm mostly asking about the non-greppable status :) are there any people known to be working on it, is there any known reason why it is not packaged, etc.
<sphalerite> joepie91: yeah looks like it was there, broke due to lack of maintenance, was marked as broken and eventually removed
<joepie91> right, but that was several years ago
<joepie91> has anything happened since?
<{^_^}> [nixos-org-configurations] @edolstra pushed to master « Remove www.nixos.org »: https://git.io/fhMOD
nikivi has quit [Quit: ZNC is awesome]
<{^_^}> [nixpkgs] @teto opened pull request #54942 → lua: use lua environments for neovim/mpv → https://git.io/fhM3I
<hodapp> does anyone do any sort of C++ dev in Emacs on NixOS? I am running into Irony and rtags seemingly both being basically broken out of the box
<noonien> is there no `nix-env -q` for system packages installed in nixos?
<infinisil> noonien: There is somewhat
mkoenig has quit [Ping timeout: 240 seconds]
abaiste^ has quit []
<noonien> i tried nix-store -q --references /run/current-system/sw, however, it seems to return some derivations which are not in any channels
<infinisil> noonien: nix-instantiate '<nixpkgs/nixos>' --eval --strict -A config.environment.systemPackages
<noonien> most of them seem to have suffixes like -man, -info, etc
<noonien> oh, i'll give that a try
mkoenig has joined #nixos
<infinisil> Oh, maybe you wanna map this over the name, this will probably be lots of output
<symphorien> Or nixos-option environment.systemPackages maybe ?
<etu> hodapp: I know that talyz does some c++ in emacs on nixos. Not sure what/how he does his completions etc. But he showed it off at our local emacs meetup some months ago :)
hcfe^ has joined #nixos
<infinisil> nix-instantiate -E 'map (p: p.name) (import <nixpkgs/nixos> {}).config.environment.systemPackages' --strict
<infinisil> symphorien: noonien: Ah yeah, maybe nixos-options works. If not, try above ^^
<infinisil> (I'm on my phone right now)
<symphorien> noonien: but I suspect you want do to something impossible. Can you explain your final goal ?
nikivi has joined #nixos
<noonien> i want to check what channel system packages come from, i've got this so far: http://vpaste.net/wesFt
rauno has joined #nixos
<hyper_ch2> finally I fixed my .rtf problem :)
<noonien> quite a hacky solution, i wanted to check how many packages come from unstable, and this was enough
arianvp has quit [Quit: WeeChat 2.2]
<noonien> even though this doesn't really compute where packages "come from", but instead just "available from"
<noonien> considering it factors versions as well, its pretty close for a quick check
arianvp has joined #nixos
<symphorien> How come you don't know this just by reading your configuration.nix ?
<noonien> i'm new to nix, and don't understand all its intricacies yet
<noonien> i was fairly sure, just wanted to check
<symphorien> That's quite a lot of work "just to check"
<noonien> some parts of nix are still pretty magic to me, and i don't like second guessing if i can just check
<noonien> i added just a dependency from unstable, and on the next rebuild, quite a few packages/derivations were installed, it was possibly do a update as well
<noonien> btw, what's the correct teminology of an installed application? a package, or a derivation?
<symphorien> Depends on what you mean by install, mostly
<devalot> When using `nix-store --serve', does the --write option require root access or does it go through the daemon like normal?
<{^_^}> [nixpkgs] @andir opened pull request #54944 → [18.09] dockerTools: unpin go version → https://git.io/fhMsd
<infinisil> noonien: If you mean something that's in /nix/store, the correct term would be "a realized derivation"
<noonien> i see. what is a "package", then?
<noonien> since channels seem to contain packages
<qyliss> Doesn’t really have a fixed definition
<infinisil> noonien: There aren't any packages really, there's only derivations
<noonien> i see, that makes more sense
rauno has quit [Remote host closed the connection]
ryantrinkle has joined #nixos
<{^_^}> [nixpkgs] @nyanloutre opened pull request #54945 → riot-web: 0.17.8 -> 0.17.9 → https://git.io/fhMGv
<noonien> the "package" terminology seems to be used in several places, i'm guessing this is either legacy, or to make it easier for people coming from other package managers
<symphorien> probably the latter
<{^_^}> [nixpkgs] @andir pushed 2 commits to release-18.09: https://git.io/fhMGc
<{^_^}> [nixpkgs] @andir merged pull request #54910 → [18.09] prometheus-node-exporter: remove go 1.9 pinning → https://git.io/fh1gZ
<simpson> noonien: You could think of a package as a path in /nix/store to some non-.drv directory.
<simpson> I don't know whether there's a technical/official definition.
Synthetica has joined #nixos
<ubert> power outage during rebuild ... how can i "iron out" inconsistencies in the store?
<symphorien> nix-store --verify --check-contents --repair
<infinisil> noonien: Regarding adding a dependency from unstable and gettin lots of stuff to download: Every nix derivation tells exactly what other derivations (with a hash and such) it needs to work. Because pretty much every derivation somehow transitively depends on stdenv/gcc, and those often change, they'll end up producing a whole nother dependency tree of derivations
<WilliamHamilton[> in a nix derivation I have a custom patchPhase, but if I enter a `nix-shell -E` to do the derivation step by step, `patchPhase` doesn't do the command, while `genericBuild` does. How so?
<infinisil> noonien: This means only very little of the derivations between stable and unstable can generally be shared, causing all the downloads
Guest47926 has joined #nixos
<Guest47926> hi
Guest47926 has quit [Client Quit]
<symphorien> WilliamHamilton[: try variations of $patchPhase and eval $patchPhase
o1lo01ol1o has quit [Remote host closed the connection]
hakujin has joined #nixos
schjetne has joined #nixos
<WilliamHamilton[> symphorien: $patchPhase gives me `sed: -e expression #1, char 1: unknown command: `''` because the first command in my patchPhase is sed. `eval $patchPhase` gives a similar error
<infinisil> noonien: Or actually maybe not stdenv/gcc in this case (because you don't need to compile them yourself, they're from the cache), but glibc and openssl and such instead, basic runtime dependencies used by almost every derivation
<WilliamHamilton[> for concreteness
<Twey> simpson, noonien: For me a ‘package’ is the build result of a derivation
reinhardt has quit [Quit: Leaving]
<symphorien> WilliamHamilton[: sorry I don't remember better. The gist is: default phases are bash functions whereas overridden phases are bash strings
<symphorien> so there is a trick to execute them
<WilliamHamilton[> symphorien: wait but `"$patchPhase"` worked
<WilliamHamilton[> so it was a problem of quotation. But what is patchPhase then?
<WilliamHamilton[> oooh I see
<WilliamHamilton[> so when I overwrite the phases I always want to use the variables
<WilliamHamilton[> thanks
<mightybyte> Is it possible to evaluate a nix expression and create files outside the nix store?
iqubic` has left #nixos ["ERC (IRC client for Emacs 26.1)"]
<symphorien> by disabling the sandbox, probably
<infinisil> WilliamHamilton[: I think `runPhase pathPhase` is there to abstract this
<{^_^}> [nixpkgs] @Mic92 merged pull request #54258 → zfsUnstable: 0.8.0-rc2 -> 0.8.0-rc3 → https://git.io/fhB2U
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fhMZ6
<WilliamHamilton[> infinisil: runPhase: command not found
<timor> mightybyte: NixOS's activation scipts do that, in a way.
<infinisil> WilliamHamilton[: Ah, um, i thought there was something like that, maybe it's called differently
<symphorien> iirc this is only a rfc
<symphorien> or a PR
<WilliamHamilton[> infinisil: the weird thing is that there is something called runPhase https://github.com/NixOS/nixpkgs/pull/21060
<{^_^}> #21060 (by LnL7, 2 years ago, closed): stdenv: add runPhase function
schjetne has quit [Ping timeout: 240 seconds]
<WilliamHamilton[> and it seems to have been force-pushed
<LnL> that wasn't merged
<LnL> right?
<WilliamHamilton[> right, so the right way for now is using variables for patched phases, got it
<infinisil> Ah dar
<infinisil> n
Makaveli7 has joined #nixos
<LnL> there's an RFC to improve it which would make it behave like expected
<infinisil> Tbh I really don't like how mkDerivation works
<infinisil> I think we could make it much better if we design it from scratch
<{^_^}> rfcs#32 (by dezgeg, 21 weeks ago, closed): [RFC 0032] Phase running changes for better nix-shell use
ubert has quit [Remote host closed the connection]
ubert has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
<mightybyte> timor: I'm wanting to do it not with NixOS, but with Nix on any system.
<WilliamHamilton[> what's the difference between $out and $prefix as mkDerivation enviroment variables?
<infinisil> LnL: I guess that is a slight improvement
o1lo01ol1o has joined #nixos
jabranham has joined #nixos
<timor> mightybyte: Are you familar with nix-build --out-link? In the most general case you might want to wrap a call to nix-build in a shell script, and copy the parts you need after building, I suppose...
<noonien> hmm, how can someone contribute to nixos?
<noonien> i see there are donations, apart from that, can i contribute, for example, CPU cycles? perhaps for building packages?
EffSquared has joined #nixos
<infinisil> The best contributions right now are reviewing PR's (once you're comfortable with it)
<noonien> sadly, i can't contribute like that just yet, don't got much time available.
<simpson> Don't feel forced to contribute.
<infinisil> I'm myself unsure where donations go, but it could be that they also go towards the cost for the build servers, gchristensen probably knows
<noonien> I'm not, just that nix seems to be one of the best project i've discovered in a while, it seems to be able to solve a lot of problems for me, so i'd like to give back if i can
<{^_^}> [cabal2nix] @peti pushed to revert-402-quote-src « Revert "Put file src attribute in quotes to allow more paths" »: https://git.io/fhMlj
<gchristensen> donations go to the general nixos foundation fund, which are typically spent on replacement hardware or services (though most services are graciously provided)
<{^_^}> [nixpkgs] @dotlambda merged pull request #54739 → Fix firefox sync-server → https://git.io/fh6h6
<{^_^}> [nixpkgs] @dotlambda pushed 8 commits to master: https://git.io/fhM8U
<{^_^}> [cabal2nix] @peti opened pull request #404 → Revert "Put file src attribute in quotes to allow more paths" → https://git.io/fhM8T
<infinisil> noonien: Awesome, nice to hear :D
<gchristensen> there isn't a lot of spending going on. I think there is some effort to keep it for a rainy day should one of our services stop being provided
<{^_^}> [nixpkgs] @Mic92 pushed to master « iperf3: fix musl patch »: https://git.io/fhM8c
halfbit has joined #nixos
<infinisil> This might sound a bit selfish, but I thought about opening a patreon for me working on nixpkgs, reviewing/testing PR's and other things that are needed
linkrage has joined #nixos
chessai has joined #nixos
<noonien> I've seen projects like neovim, that have bounties for solving issues, AFAIR. That doesn't sound like a bad model
<infinisil> Yeah that's something I thought of too
<EffSquared> I am in the process to package scikit-build for python, and it seems to build and test just fine with python2 but when it comes to python3, the tests starts failing because it is unable to find Python.h.
<noonien> https://salt.bountysource.com/ seems to be used, i'm unsure of how it operates, or of alternatives
<EffSquared> I was able to trace it back to scikit-build believing it can be found in /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-python3-3.7.2/include/python3.7m
<pbb> Is it possible to build a 32-bit x86 nixos iso on a 64-bit x64 nixos system?
<EffSquared> Where does this hash come from?
<EffSquared> @pbb Yes.
<pbb> what option would I have to set?
<timor> WilliamHamilton[: $out is where the builder needs to put the resulting files. $prefix is something that the default configurePhase sets to $out to make sure that a configure/make-style package places its output exactly there when running make install in the default installPhase
<WilliamHamilton[> timor: so if I want to follow the build in nix-shell -E I have to set both $prefix and $out to the same local directory in which I can write, right?
<pbb> I don't actually have to cross-compile anything, since everything I want to add is some custom configuration, so it should be able to download everything from the cache.
<infinisil> noonien: Not sure if that's a good thing.. "How are funds distributed across the team members? This is up to the team to decide."
<noonien> yes, i was under the impression that anyone can collect "bounties", either that is an option in salt, or perhaps there was another service that provided that
<timor> WilliamHamilton[: You mean executing the steps manually? Yes at least $out you have to set. For $prefix, I don't know when it is set to $out. But if it has been, you probably also need to change that.
o1lo01ol1o has quit [Remote host closed the connection]
weechat has joined #nixos
o1lo01ol1o has joined #nixos
<pbb> in theory I could just set `nixpkgs.system = "i686-linux"` ?
<infinisil> noonien: Also, patreon only charges 5%, whereas salt seems to charge 10%
<WilliamHamilton[> timor: thanks!
<gchristensen> infinisil: patreon's averages to about 10%. they all do
<gchristensen> "all"
<WilliamHamilton[> what does the string `prefix = @prefix@` in a `Makefile.in` means? How can I substitute that with my $out?
<noonien> well, apart from the donation page, which not much people seem to be using, there doesn't seem to be another way to contribute money
werner_ has quit [Quit: Leaving]
<noonien> 10% of something, doesn't seem that much of an issue when comparing to 100% of nothing
<infinisil> gchristensen: averages? What does that mean
tv has quit [Ping timeout: 250 seconds]
<gchristensen> iirc there are two fees patreon charges, one is static at 5% and the other is variable
<gchristensen> and together, they're about 10%
tollb has joined #nixos
<EffSquared> pbb: I spoke to soon. The solution/hack I had no longer works. But it should be possible.
tv has joined #nixos
<gchristensen> infinisil: "just 5% and why we do everything we can to minimize transaction fees"
<noonien> most big distros receive quite a few donations, and it's not about the money, but the work, and giving back
<pbb> EffSquared: now trying `pkgs = import <nixpkgs> { system = "i686-linux" };`
<infinisil> gchristensen: ah i see
o1lo01ol1o has quit [Remote host closed the connection]
<pbb> or is there more to it?
<EffSquared> pbb: As all imports need to run of the same nixpkgs, it might be enough to just pass the differen system to nix-build
<pbb> you mean something inside nixpkgs might import nixpkgs itself?
<symphorien> EffSquared: the eeeeeeeeeeeeeeeeeeee hash comes from nuke-references
<symphorien> ie the derivation was written to explicitely remove this reference to reduce the closure size
weechat has quit [Quit: WeeChat 2.2]
<noonien> being able to donate BTC would also be very helpful!
jethron has quit [Ping timeout: 268 seconds]
o1lo01ol1o has joined #nixos
dsiypl4_ has joined #nixos
<{^_^}> [nixpkgs] @andir closed pull request #53437 → thunderbird: 60.3.3 -> 60.4.0 → https://git.io/fh3C3
doyougnu has joined #nixos
doyougnu has quit [Client Quit]
<ekleog> Has anyone here compiled wasm32-unknown-unknown on NixOS without the mozilla overlay?
<ghostyy> uh
<ghostyy> in my nix installation i have / owned by my user account
<EffSquared> pbb: Reading up on this shortly confused me even more. :-D
<gchristensen> yikes
<ghostyy> did i somehow do this by accident or is this a typical nix behavior
<gchristensen> that is not normal, ghostyy
<ghostyy> i can't even imagine how i could have done this
<ghostyy> all the folders are owned by root
<gchristensen> can you paste the output of `ls -la /` ?
<symphorien> ghostyy: are you using nix-user-chroot ?
<tollb> Hi. I filed a pull request (54909) yesterday and need to update it with a bug fix. It was also requested that I move it to staging. I want to confirm how to do this. Do I fix, squash commit, and rebase to staging?
<ghostyy> nope
<{^_^}> [nixpkgs] @teto opened pull request #54948 → LanguageCLient-neovim: virttext support → https://git.io/fhMRD
<gchristensen> tollb: that all sounds good to me
<EffSquared> pbb: A lot of the cross compiling has changed in 2018 and I am not up to date.
<pbb> okay.. I will just try my luck with stuff.. o.o
<tollb> ghristenson: Thanks. Do I need to do anything with the previous commit pushed to master? Do I need to notify anyone who is already looking at the pull request?
<linkrage> Anyone using cri-o on NixOS by any chance?
<gchristensen> ghostyy: there are a bunch of dirs there that I wouldn't expect. are they intentional? cfg, hydrus, src, srv.
<EffSquared> symphorien: So that means I will have to recompile python3 to allow skbuild to find its headers?
<gchristensen> tollb: no, just do your squash and rebase
<{^_^}> [cabal2nix] @peti merged pull request #404 → Revert "Put file src attribute in quotes to allow more paths" → https://git.io/fhM8T
<{^_^}> [cabal2nix] @peti pushed 2 commits to master: https://git.io/fhM0J
<{^_^}> [cabal2nix] @peti pushed 0 commits to revert-402-quote-src: https://git.io/fhM0k
<gchristensen> tollb: your PR hasn't been merged, right?
<WilliamHamilton[> is there something wrong in writing `sed -i "s:@prefix@:$out:g" Makefile.in` in the patchPhase?
<{^_^}> [nixpkgs] @dotlambda opened pull request #54949 → sage: python-openid: move django and twill to checkInputs → https://git.io/fhM0t
<pbb> EffSquared: actually for my use case it seems to be sufficient to pass the system attribute to nixpkgs
<pbb> because the iso I just built boots just fine in a 32-bit qemu
<tollb> gchristensen: Apologies for the typos and no, the PR has not been merged.
<gchristensen> no worries
xorkle has quit [Quit: ZNC 1.7.1 - https://znc.in]
<ghostyy> gchristensen, yes all of those i was expecting
<ghostyy> some are the result of accidentally forgetting to set zfs mountpoints
<gchristensen> ghostyy: well, I'd just chown root:root / and call it done, then ... :)
<{^_^}> [cabal2nix] @peti pushed to master « Bump version number for upcoming release. »: https://git.io/fhM0c
<{^_^}> [cabal2nix] @peti pushed 0 commits to refs/tags/v2.14.1: https://git.io/fhM0W
<ghostyy> yeah, it seems so - it's just weird that i have no memory of chowning /
<EffSquared> pbb: Awesome, glad it got easier. Also nix is pretty expressive, so just because I found a working solution, does not mean it was correct or sane.
<ghostyy> maybe it's an artifact from when i installed nix
<symphorien> EffSquared: either that or skbuild is well behaved and can be told to use a different path at runtime
<EffSquared> ghostyy: chowning /mnt during install maybe?
<ghostyy> ahhh that might have been it
<Synthetica> Is there some caveat in accessing one set of overrides from another?
<timor> WilliamHamilton[: are you trying to build an autotools-based package?
<WilliamHamilton[> timor: indeed, I am
<WilliamHamilton[> is there some special facility for that?
chessai has quit [Read error: Connection reset by peer]
chessai has joined #nixos
<symphorien> it should be automatic
<tollb> gchristensen: Thanks for your help.
<symphorien> --prefix=$out is passed to ./configure by default
<symphorien> are you overriding the default configurePhase ?
mtesseract has joined #nixos
<gchristensen> tollb: thank you for the PR testing a new ofborg feature ;)
<WilliamHamilton[> symphorien: I am overriding the default configurePhase, but let me see if I can do without
<WilliamHamilton[> no, it seems that I cannot, because there is a custom script beforehand
<tollb> gchristensen: Your ofborg bot is really cool. What's the new feature?
<WilliamHamilton[> maybe I can call this custom script in a pre-configure hook
<WilliamHamilton[> let me try that
<gchristensen> tollb: a new rebuild range tag: https://github.com/NixOS/nixpkgs/pull/54909#event-2106927691
dermetfan has quit [Quit: WeeChat 2.3]
<timor> WilliamHamilton[: a lot of times, simply adding autoreconfHook to your buildInputs attribute does the whole trick
<WilliamHamilton[> (the script is named `autogen.sh`, don't know if it is a standard thing)
hyper_ch2 has quit [Quit: Page closed]
<apaul1729> i just called `./autogen.sh` in a custom `preConfigure` phase and let the default `configurePhase` run after that
<{^_^}> [nixpkgs] @jpotier closed pull request #54936 → nomad: 0.8.6 -> 0.8.7 → https://git.io/fhMLH
<WilliamHamilton[> timor: adding `autoreconfHook` to buildinputs leads me to the initial error, `configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."`, which I avoid with the script
<EffSquared> symphorien: If I run 'import sysconfig; print(sysconfig.get_config_var("INCLUDEPY"))' for python3 from the unstable channel I get a correct path.
<apaul1729> when i was building a package for something that had autogen.sh and configure
<EffSquared> symphorien: On the latest master, that is no longer the case.
fusion809 has joined #nixos
<WilliamHamilton[> apaul1729: that seems the thing to do! let me see how I can add custom preConfigure phases
<EffSquared> symphorien: git bisect it is...
<symphorien> WilliamHamilton[: or just add autoreconfHook to your nativeBuildInputs
<symphorien> it will do this automatically
<WilliamHamilton[> symphorien: I'll repost the message before, see:
<WilliamHamilton[> adding autoreconfHook to buildinputs leads me to the initial error, configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../..", which I avoid with the script
<linkrage> MoreTea, did you manage to package cri-o on NixOS in 2017? -> https://github.com/kubernetes-sigs/cri-o/issues/997#issuecomment-335824008
<symphorien> ah
<symphorien> sorry
<WilliamHamilton[> symphorien: the content of my autogen.sh is
<WilliamHamilton[> #!/bin/sh
<WilliamHamilton[> autoreconf --install
<WilliamHamilton[> automake --add-missing --copy >/dev/null 2>&1
<WilliamHamilton[> and I suspect some flags there, like `--add-missing`, solve the missing install.sh problem
<WilliamHamilton[> timor: I don't think I'm using `substituteAll` correctly. Can I write `substituteAll Makefile.in Makefile.in` in my patchPhase and expect `@prefix@` to be substituted with $prefix?
<goibhniu> infinisil you might consider liberapay too
alex has joined #nixos
<tollb> gchristensen: Thanks again. I still have a lot to learn.
<timor> WilliamHamilton[: Do you have a copy of the nixpkgs lying around? Check pkgs/tools/system/logrotate/default.nix
<WilliamHamilton[> the autoreconfPhase?
<timor> WilliamHamilton[: also check substituteAllInPlace. And yes, this automagically should replace all @..@ constructs, if the corresponding environment variables are set
<timor> WilliamHamilton[: yes
<infinisil> goibhniu: Neat. I'm still tending toward patreon though, it's the most common right now (I personally donate to like 10 people on patreon), I also like the idea of providing benefits to donators
<timor> WilliamHamilton[: link goes to wrong file though
<WilliamHamilton[> no, sorry
tollb has left #nixos ["bye"]
<WilliamHamilton[> I get:
<WilliamHamilton[> autoreconfHook
<timor> WilliamHamilton[: yes. Don't forget the hook in the nativeBuildInputs though, otherwise that phase is meaningless
<WilliamHamilton[> autoreconfPhase
<WilliamHamilton[> builder for '/nix/store/1i5fmmxsk7r2zcdrql72y3pjyx5c83bp-linuxband-master.drv' failed with exit code 1
<goibhniu> infinisil cool, you could also set up an account on a few of these platforms, to suit whatever people are comfortable with
<WilliamHamilton[> yes I added that to the nativeBuildInputs, but the build fails. Let me try to step through it
Ariakenom has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @edef1c opened pull request #54950 → go_1_12: init at 1.12beta2 → https://git.io/fhMzW
<yl[m]> is there a way to use binary cache from an external drive? Say I copy my entire store on an external drive to help me setup a new computer without internet connection?
<timor> WilliamHamilton[: There is already a derivation for a package called linuxband in nixpkgs. Different Package?
<WilliamHamilton[> timor: it's the same package, but that derivation is too old, and I'm writing the new one
<WilliamHamilton[> that version has a bug
mtesseract has quit [Ping timeout: 244 seconds]
<WilliamHamilton[> timor: now, the autoreconf stuff does in fact solve that problem, but my build still fails and I cannot follow it because all seems to go well till the install phase, in which I don't have permissions to write to /nix/store in the nix-shell -E
<Synthetica> How do I solve recursion in packageOverrides?
dermetfan has joined #nixos
<infinisil> Synthetica: Gotta be a bit more specific than that
<WilliamHamilton[> timor: here's what I have till now https://gist.github.com/meditans/7c8db107a065d5cd6899646708034892
<timor> WilliamHamilton[: if you export out and prefix to a writable location, like you already described, you should be able to successfully runn installPhase
<WilliamHamilton[> I try to build it with nix-build --no-out-link -E 'with import <nixpkgs> {} ; callPackage ./linuxband.nix {}'
<Synthetica> infinisil: I have multiple files that define nixpkgs.config.packageOverrides
<Synthetica> One uses an override from another, but it complains about infite recursion when I actually use it
<WilliamHamilton[> timor: I already built the package successfully locally, by substituting the path to a writable location manually, but I don't understand why it doesn't work in the general case
<infinisil> Synthetica: I think using overlays as a start would be good
<infinisil> Those handle this stuff much better
Aerobit has joined #nixos
<timor> WilliamHamilton[: What is the general case?
<WilliamHamilton[> timor: building it in the /nix/store via nix-build -E 'with import <nixpkgs> {} ; callPackage ./linuxband.nix {}'
<Aerobit> hey all - how can I make my derivation install a dependancy? It depends on the `usbmuxd` daemon working, so i want it to auto-install `usbmuxd` and have the service registered through systemd.
<Aerobit> if I just put it in `buildInputs` it doesn't make `usbmuxd` available on my PATH or in my services
<infinisil> Aerobit: There's an usbmuxd nixos service you can just enable
<Aerobit> infinisil: can I make my derivation enable that service?
<timor> WilliamHamilton[: also, you can use substituteInplace instead of sed. It is also better if you put that into prePatch or postPatch
<gchristensen> Aerobit: derivations can't enable services
<Aerobit> so if you enable my derivation it'll enable the service
<Aerobit> aw
<infinisil> Aerobit: Think of it the other way around: NixOS services can install derivations
<Aerobit> what's the right solution here, then? Because the derivation is completely useless unless you have `usbmuxd` installed and running
<Aerobit> How can I provide that information to people who would be installing the derivation
<Synthetica> infinisil: I'll look into overrides
<infinisil> Aerobit: Then you can write a NixOS module that enables usbmuxd and installs the derivation
<WilliamHamilton[> timor: I'll correct that, in the meantime, do you have any other suggestion on how to debug why that expression doesn't build?
<Aerobit> cool! thanks
xorkle has joined #nixos
jasongrossman has quit [Ping timeout: 246 seconds]
<timor> WilliamHamilton[: add --keep-failed to the nix-build call, and inspect the directory that it returns
dermetfan has quit [Ping timeout: 268 seconds]
xorkle has quit [Client Quit]
<{^_^}> [nixpkgs] @alexfmpe opened pull request #54951 → Fix typos in docker tools docs → https://git.io/fhM23
<WilliamHamilton[> timor: given that the Makefile doesn't exist in the failed directory, I'd say that this failed during the configure phase. But the configure phase works alright in nix-shell -E!
<WilliamHamilton[> and I cannot issue ./configure in the /tmp directory because of
ddellacosta has joined #nixos
<WilliamHamilton[> ./configure: line 1917: config.log: Permission denied
ng0 has quit [Remote host closed the connection]
ng0 has joined #nixos
ddellacosta has quit [Remote host closed the connection]
symphorien has quit [Quit: WeeChat 2.3]
Aerobit has quit [Quit: WeeChat 2.3]
<jD91mZM2> Myrl-saki: If the nix-lsp issue was just the SHA checksum being outdated, it's fixed now
<timor> WilliamHamilton[: did you try with --pure in your nix-shell call?
<WilliamHamilton[> timor: no, let me try that!
hakujin has quit [Ping timeout: 240 seconds]
fendor has quit [Ping timeout: 268 seconds]
<WilliamHamilton[> timor: it works till before the installPhase even with --pure
<{^_^}> [nixpkgs] @bbarker opened pull request #54952 → WIP: coconut init at 1.4.0; prompt-toolkit init at 2.0.8 → https://git.io/fhMaU
<Synthetica> infinisil: Using overlays worked, thanks!
kitl_ has quit []
<Myrl-saki> jD91mZM2: Thanks. That was one of the problems, but I'll give it another try.
<infinisil> Synthetica: Nice!
erasmas has joined #nixos
andi- has quit [Ping timeout: 250 seconds]
andi- has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<devalot> If I use `nix-store --serve --write --store /some/path' on a remote machine, then use it as a builder, I get hash errors saying expected sha256:0000000000000000000000000000000000000000000000000000. Why would the client ever expect a null hash?
<timor> WilliamHamilton[: sorry, no idea then at the moment
<{^_^}> [nixpkgs] @arilotter opened pull request #54953 → usbmuxd: 2018-07-22 -> 2018-10-10 → https://git.io/fhMVk
<WilliamHamilton[> timor: sure, no problem, I'll use the local version in the meantime
dermetfan has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
<timor> WilliamHamilton[: what you could do is, when building manually, check the exit code after each step.
linkrage has quit [Quit: Leaving]
knupfer has quit [Remote host closed the connection]
Ariakenom has joined #nixos
<timor> WilliamHamilton[: also, that ./autogen.sh script disables all output
nD5Xjz_ has joined #nixos
nD5Xjz has quit [Ping timeout: 246 seconds]
perique has joined #nixos
drakonis has quit [Quit: WeeChat 2.3]
xok has joined #nixos
EffSquared has quit [Ping timeout: 240 seconds]
ryantrinkle has quit [Ping timeout: 246 seconds]
<xok> can anyone help me add "mysqlnd" to my php installation using nixos?..
<apaul1729> anybody ever used jhbuild? it's a tool used to build gnome projects, so it handles downloading and installing modules on its own. trying to figure out how to have nix handles the modules and link them into a simple jhbuild derivation where jhbuild expects them to be
<apaul1729> (and then build the package i'm trying to build)
o1lo01ol1o has joined #nixos
orivej has joined #nixos
knupfer has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
mizu_no_oto has joined #nixos
<averell> Anybody able to take a look at (and merge/move along) this reviewed PR: https://github.com/NixOS/nixpkgs/pull/51733
<{^_^}> #51733 (by averelld, 7 weeks ago, open): nvidia-docker module/package
mizu_no_oto has quit [Client Quit]
<sphalerite> Well, when I got up this morning I was well enough to go to work again. That turns out not to have been such a good idea and now I'm feeling much more ill than yesterday. gchristensen qyliss qyliss^work (ckauhaus isn't here right now?) I don't think I'm well enough to participate in the meeting tonight, I need to eat then go to bed :/
<sphalerite> idk if you want to proceed without me or if we should reschedule?
<gchristensen> yikes!
<qyliss^work> I'm happy to reschedule
<gchristensen> I think we need our fearless leader
<qyliss^work> I don't think it's so urgent that we need to do it without all of us there
<gchristensen> sphalerite: send out a reschedule email, with a few proposed times?
<jabranham> Is there any way to see package version differences between two nixos generations?
<sphalerite> haha I fear nothing but colds. Yeah can do.
ubert has quit [Remote host closed the connection]
<{^_^}> [nixos-homepage] @davidak opened pull request #260 → Add license (CC-BY-SA) → https://git.io/fhMoE
azdle has joined #nixos
<qyliss^work> jabranham: look into nix-diff
perique has quit [Read error: Connection reset by peer]
ryantrinkle has joined #nixos
<{^_^}> [nixpkgs] @fpletz merged pull request #45567 → certmgr: Add patch for optional trust of self-signed certificates at remote cfssl apiserver → https://git.io/fAtEu
<{^_^}> [nixpkgs] @fpletz pushed 4 commits to master: https://git.io/fhMo9
<xok> guys, please help...
<xok> I need to use mysqlnd driver for PHP...
<xok> i don't know how to do that in my nixops configuration file...
<xok> i tried this: config.php.mysqlnd = true;
<jabranham> qyliss^work: thanks, that seems to want a .drv file. Is there such a file that describes the entire system profile somewhere?
<xok> but it didn't work..
<qyliss^work> Yep! Have a look in /nix/var/nix/profiles
<philipp[m]> I want to get rid of a few dotfiles in my homedir by wrapping a few applications and giving them arguments to direct them to files in the nix store. I guess I'm not the first one to try this. Does anybody have a nice pattern example how to do it most efficiently?
<timor> WilliamHamilton[: you still there?
<xok> anyone please?..
tilpner has joined #nixos
<timor> xok: you might want to post a link to your configuration
<WilliamHamilton[> timor, sorry, had to go away for a minute, but I'm here now
danielrf has joined #nixos
<WilliamHamilton[> timor: I'll make the script print out all the output
<timor> WilliamHamilton[: Best don't ask... :)
<gchristensen> sphalerite: can't wait to have that meeting, though!
<timor> WilliamHamilton[: if you make the commands give the output, you are back to the missing install-sh error
<sphalerite> gchristensen: yeah I was looking forward to it too…
<WilliamHamilton[> timor: I'm amazed by your build, but what was the problem then?
<WilliamHamilton[> I see you added more substitutions
<xok> timor: but this config doesn't work...
<WilliamHamilton[> commenting out AC_PROG_INSTALL
<WilliamHamilton[> and capitalizing differently INSTALL :D
<qyliss^work> philipp[m]: I use this: https://clbin.com/2v07g
<timor> WilliamHamilton[: the second one is not correct
<WilliamHamilton[> but my question is: what did you do to find those (I know I shouldn't ask) :D
<WilliamHamilton[> the INSTALL one?
<qyliss^work> Can't easily provide a more full example, because I lost the yubikey for the computer I have this on and so it doesn't have any of my passwords on it :(
<dmj`> Hey guys
<timor> WilliamHamilton[: the way it was supposed to be: autoreconf provides "install-sh", sets $INSTALL to that, automake replaces @INSTALL@ by $INSTALL
mmlb08 has quit [Ping timeout: 250 seconds]
<dmj`> I'm running the NixOS testing framework, and I have hit an out of memory kernel panic. How do I increase the memory on my QEMU vm
<timor> WilliamHamilton[: I short-circuited that, because `install` is provided by stdenv
<philipp[m]> qyliss^work: Thanks, that seems like more boiler plate than I'd like tbh but you've got a few neat constructs I wouldn't have figured out on my own. I'll play around with it a little.
hakujin has joined #nixos
<timor> WilliamHamilton[: and I found it by what I was suggesting earlier, not discarding the output of that automake command
<xok> timor: can you help?..
<timor> xok: the let statement is definitely wrong
<timor> but I don't know much about nixops
<xok> timor: I just want to use "mysqlnd = true; " and couldn't find the proper place for it... :D
<WilliamHamilton[> timor: later I'll try to re-invent your solution to understand your debug process, thanks in the meanitme!
hakujin1 has joined #nixos
<dmj`> nvm, I got it
MP2E has joined #nixos
<jabranham> qyliss^work: I can't seem to find any .drv files in there. /nix/var/nix/profiles/system-XX-link seems to just contain scripts for setting up the system and links to executables, no .drv files. Am I missing something obvious?
<timor> xok: you might need to set the attribute `nixpkgs.config.php....` at the same level as `services..` and `environment....`
<infinisil> sphalerite: gchristensen: What's this meeting abuot?
<gchristensen> RFC-0039's shepherd meeting! :)
<qyliss^work> infinisil: RFC shepherding
hakujin has quit [Ping timeout: 250 seconds]
<infinisil> rfcs#39
<{^_^}> https://github.com/NixOS/rfcs/pull/39 (by grahamc, 2 weeks ago, open): RFC-0039: unprivileged maintainer team
<infinisil> I see :o
<timor> WilliamHamilton[: the don't ask part is where you google for gory autoconf details....
<qyliss> jabranham: point it to /nix/var/nix/profiles/system-XX-linx
<WilliamHamilton[> timor: I can only imagine :D
<qyliss> I think it should be able to find the derivations for those
<{^_^}> [nixpkgs] @costrouc opened pull request #54954 → munge: fix module munge.key permissions from 0700 -> 0400 readonly → https://git.io/fhM60
<xok> timor: it didn't work...
<timor> xok: well, what did you change, what did you try, and what did not work?
<jabranham> qyliss: "nix-diff system-33-link system-32-link" complains about them being directories, not files
<qyliss^work> Oh :(
<gchristensen> doesn't nix-diff require the .drv's?
<qyliss^work> I didn't think it did but I guess it does
<timor> xok: no override. just the line you had earlier, prepended by "nixpkgs."
<jabranham> gchristensen: yes, I'm trying to find package version differences between 2 nixos generations. qyliss said to look at nix-diff, which looks right, but I'm not sure if there exists a .drv that describes the whole system?
<gchristensen> you bet there is!
<qyliss^work> There definitely is one; I've just forgotten how to find it.
<jabranham> gchristensen: where
<gchristensen> nix-store --query --deriver /run/current-system will show you the .drv for your current system
<gchristensen> you can change /run/current-system to the system-xx-link path
<jabranham> gchristensen: awesome, thanks :-)
<gchristensen> ^.^
<xok> timor: thank you, it recompiles the package...
<timor> xok: in my experience that can take a long time
maximiliantagher has joined #nixos
<xok> timor: yeah, it will take long as it compiles lots of packages...
maximiliantagher has quit [Remote host closed the connection]
ddellacosta has joined #nixos
fendor has joined #nixos
wigust has joined #nixos
maximiliantagher has joined #nixos
<{^_^}> [nixpkgs] @alyssais merged pull request #54939 → ruby_2_6: 2.6.0 -> 2.6.1 → https://git.io/fhMtA
<{^_^}> [nixpkgs] @alyssais pushed 2 commits to master: https://git.io/fhMip
<noonien> what is the "Attribute name" column in https://nixos.org/nixos/packages.html#pavucontrol ?
mmlb08 has joined #nixos
<noonien> it's for use with "pkgs" in configuration.nix, right?
maximiliantagher has quit [Remote host closed the connection]
wigust- has quit [Ping timeout: 245 seconds]
<mdash> noonien: right, or 'nix-env -iA nixos.pavucontrol'
<noonien> ah, cool
<gchristensen> or nix-shell -p pavucontrol
rauno has joined #nixos
<noonien> is there a shortcut for `nix-shell -p pavucontrol --command "pavucontrol args"`?
sicklork1n has joined #nixos
<{^_^}> [nixpkgs] @alyssais merged pull request #54601 → argo: init at 2.2.1 → https://git.io/fhKly
sigmundv_ has quit [Ping timeout: 240 seconds]
lawlesseel has quit [Remote host closed the connection]
lawlesseel has joined #nixos
simukis has quit [Quit: simukis]
<infinisil> noonien: How much shorter can it be?
simukis has joined #nixos
<infinisil> You could use a bash alias I guess
<infinisil> Or a bash function
<bsima> what does "distributed builds transiently enabled" mean in this context? https://github.com/awakesecurity/nix-delegate
<noonien> yeah, i'm using a bash function, can run commands with `nix-run pavucontrol` for example
<noonien> it doesn't work in all cases, but most
<noonien> pretty useful to test new packages
maximiliantagher has joined #nixos
<infinisil> bsima: Enabling distributed builds just for the given command
pvinis has joined #nixos
ddellacosta has quit [Remote host closed the connection]
<pvinis> hello people
<bsima> infinisil: ok so "distributed builds" just means "send a build to another machine" https://nixos.org/nix/manual/#chap-distributed-builds
<bsima> like nix-copy-closure
<pvinis> what is the "preferred" way to keep the configuration.nix file in a git repo? do you keep it in the home dir somewhere, and link it in /etc/nixos or something?
<infinisil> bsima: Yeah
<bsima> infinisil: thanks
<bsima> pvinis: I keep mine in a git repo and use the 'imports' in /etc/nixos/configuration.nix
<infinisil> pvinis: I'm setting `nixos-config=/path/to/my/configuration.nix` in nix.nixPath, then you can put it anywhere you want
<pvinis> and what is in the /etc/nixos/conf? the default generated one?
<bsima> pvinis: http://ix.io/1zA0
<bsima> that's my entire /etc/nixos/configuration.nix
<pvinis> aha
fendor has quit [Ping timeout: 246 seconds]
<pvinis> so what is the flow then? i think i am missing something. you want to put this in a new machine
<pvinis> you boot nixos from like a usb
<pvinis> then clone your config somewhere in the root folder. then rebuild and switch, then what?
<pvinis> i am always getting lost somewhere in the flow, because of some cycle :|
<bsima> yeah i setup a new nixos machine, then clone my config repo into my user directory, then edit configuration.nix to import my machine config, then 'nixos-rebuild switch' and everything is in place
<bsima> the only manual step is cloning my config repo, everything else is automated
<bsima> i could get rid of that manual step by following these instructions http://www.haskellforall.com/2018/08/nixos-in-production.html?m=1
<bsima> just haven't done that yet
<bsima> that's a really good article for understanding what's happening in nixos-rebuild
<{^_^}> [nixpkgs] @alyssais merged pull request #54954 → munge: fix module munge.key permissions from 0700 -> 0400 readonly → https://git.io/fhM60
<{^_^}> [nixpkgs] @alyssais pushed 2 commits to master: https://git.io/fhMXh
<pvinis> bsima: nice. thanks. one quick question: to clone your repo in your user dir, do you first manually change the default /e/n/config to create your user?
<bsima> yeah
<pvinis> and then you remove everything and just leave the include part, right?
<bsima> yeah because the included nix file has all that stuff
<pvinis> hm alright
<{^_^}> [nixpkgs] @matthewbauer merged pull request #54898 → pyspark: 2.3.2 -> 2.4.0, fix version bounds → https://git.io/fh1s3
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fhM1Z
<pvinis> it makes a bit more sense now! thanks
<bsima> pvinis: here's my actual machine config, if it helps https://git.sr.ht/~ben/config/tree/master/machines/lithium.nix
<pvinis> cool!
<pvinis> does your config file move or link your dotfiles?
<{^_^}> [nixpkgs] @flokli merged pull request #53762 → Improving integration of `nslcd`, PAM and `openldap`. → https://git.io/fhZ1q
<{^_^}> [nixpkgs] @flokli pushed 4 commits to master: https://git.io/fhM1H
<bsima> pvinis: i use home-manager for my dotfiles
<bsima> so they are basically managed automatically in a similar way that nixos-rebuild manages stuff
<pvinis> the reason im asking is that i am trying to make a simple configuration that is easy to recreate, and i basically want it to make a user, put a couple of dotfiles, then install some node modules, and then run a service
<bsima> my advice is to build it piecemeal, one thing at a time. I built my config over like 2 years of tweaking
<bsima> it was a lot to learn at first
<noonien> is there a mainUser, if so, where, and what is it?
<pvinis> ok, so in theory with the home-manager i should be able to do this. i was trying also to do it by just throwing some text, which might also be fine
<{^_^}> [nixpkgs] @primeos pushed to master « scdoc: 1.8.0 -> 1.8.1 »: https://git.io/fhMMJ
<pvinis> bsima: makes sense
<pvinis> i want to make a small server, and since i kinda have to make it with a bunch of scripts or with nix to be reproducible, i thought ill try with nix directly
q6AA4FD has quit [Ping timeout: 272 seconds]
reinhardt has joined #nixos
<tilpner> Hey, can anyone confirm that remote unlocking of an encrypted /boot just isn't possible?
<qyliss^work> I think you can do it with dropbear?
<gchristensen> an encrypted initrd I know, but dropbear can be embedded in grub?
<tilpner> qyliss^work: That works for encrypted / and unencrypted /boot, yes, but also for encrypted /boot?
<tilpner> Oh!
<gchristensen> that was a question-question, not a question-statement, tilpner :)
<tilpner> :/
<qyliss^work> oh, hmm
<emily> I don't think you'd want GRUB to be your ssh daemon, it's not a very good operating system. why encrypt the /boot?
<qyliss^work> Yeah, fundamentally _something_ has to be unencrypted.
<tilpner> And I'm fine with an unencrypted grub install that also allows for unlocking of /boot via ssh
<tilpner> But I don't know if that's a good idea to try
<gchristensen> what do you gain by encrypting /boot?
<{^_^}> [nixpkgs] @veprbl merged pull request #53872 → anki: add manual output → https://git.io/fhno9
<{^_^}> [nixpkgs] @veprbl pushed 2 commits to master: https://git.io/fhMMA
<tilpner> People already encrypt /boot when remote locking isn't necessary, right?
<emily> I don't.
<qyliss^work> I think people mostly don't bother with a seperate /boot any more
<emily> that's not true either, you need it for UEFI
tollb has joined #nixos
<emily> the "standard" thing these days is /boot as ESP
<qyliss^work> Oh, right, sure
<emily> tilpner: anyway, I'd rather use a Linux initrd to do my disk decryption than GRUB
<emily> you can use secure boot to make sure your kernel+initrd is signed or whatever if you want
<emily> I think there's stuff for doing that with nixos
<{^_^}> [nixpkgs] @alyssais pushed 2 commits to master: https://git.io/fhMDJ
<{^_^}> [nixpkgs] @alyssais merged pull request #54951 → Fix typos in docker tools docs → https://git.io/fhM23
<emily> systemd-boot supports it at least
<tilpner> I haven't touched secureboot at all yet
<gchristensen> emily: do you use secureboot?
<tilpner> And this is a remote server I have no access to, so I can't do much experimentation
<emily> gchristensen: no, too lazy to have set it up yet :(
<tilpner> (No physical access, that is)
<gchristensen> dang
<tollb> hello...I think I just made a mistake trying to update pull request 54909 for staging
<tilpner> gchristensen: You did some secureboot recently. Is that something I want to try?
<emily> I know you have to pack kernel+initrd into some weird container thing that systemd-boot looks at for the name and cmdline and stuff
<emily> probably not on a server
<__monty__> qyliss^work: I also think /boot can't be an LVM partition?
<emily> I mean, what is your threat model there really?
<gchristensen> tilpner: with no physical access? I wouldn't recommend it, and you probably can't even turn it on without access to the BIOS config
<gchristensen> (if you have DRAC/iLO/SOL/etc-like thing, by all means)
<tollb> i thought i was pushing to my github branch, but it appears to have updated against the nixos:master on pull request 54909. What did I do wrong? Anything I can do to fix?
<tilpner> emily: I don't intend to guard against the technical personnel. All I want is to decouple the confidentiality of user data from whether any given datacenter employee follows protocol for disposing/replacing drives
<gchristensen> don't need encrypted /boot for that
<emily> *nods* then I think unencrypted /boot is your best bet
<qyliss^work> Why would user data be on /boot?
<tilpner> gchristensen: Right, it's not a requirement
<tilpner> But I figured I might as well encrypt as much as possible, if it's not too much pain
<tilpner> I'm asking to see if it's possible, not because I depend on it
<tilpner> (My laptops currently don't encrypt /boot, so this is curiosity speaking)
<{^_^}> [nixpkgs] @alyssais pushed 2 commits to master: https://git.io/fhMD9
<{^_^}> [nixpkgs] @alyssais merged pull request #53959 → elixir_1_8: 1.8.0-rc.1 -> 1.8.1 → https://git.io/fhcf8
griff_ has joined #nixos
<tilpner> I realize there's pretty much no chance to defend against an attacker who has physical access to your running server and unlimited time
<tilpner> This is just about drives removed from the server, so /boot doesn't matter
<Church-> Hmm hell does ESP stand for? I always think extended stack pointer.
<tilpner> Efi System Partition
<tilpner> ... I hope
<{^_^}> [nixpkgs] @costrouc opened pull request #54956 → pythonPackages.tableaudocumentapi: init at 0.6 → https://git.io/fhMDh
<Church-> Ahhh
maximiliantagher has quit [Remote host closed the connection]
rauno has quit [Remote host closed the connection]
<tollb> gchristensen: I seem to have done a push update incorrectly on PR 54909 that I asked about earlier. It went to NixOS:master instead of NixOS:staging. Hoping you can help...
<gchristensen> hmm
<gchristensen> think its fixed, tollb :)
ckauhaus has joined #nixos
Edes has joined #nixos
<tollb> gchristensen: Thanks! Is there something different I should have done to push the update to staging directly?
<gchristensen> tollb: you did everything correctly
<gchristensen> tollb: you missed the step of telling github's UI you want the PR to be against staging though: https://github.com/NixOS/nixpkgs/pull/54909 -> the Edit button to the right of the title is where you do that
ThatDocsLady has quit [Ping timeout: 252 seconds]
<{^_^}> #54909 (by tollb, 18 hours ago, open): wrap-gapps-hook.sh: only wrap links when required
maximiliantagher has joined #nixos
<xok> is it possible to set hostname + username + password for system mail?...
<{^_^}> [nixpkgs] @alyssais merged pull request #54945 → riot-web: 0.17.8 -> 0.17.9 → https://git.io/fhMGv
<{^_^}> [nixpkgs] @alyssais pushed 2 commits to master: https://git.io/fhMy2
agander has joined #nixos
<{^_^}> [nixpkgs] @grahamc pushed to grahamc-patch-1 « riot-web: see if dropping hydraPlatforms causes ofborg to realize it changed. »: https://git.io/fhMy6
<{^_^}> [nixpkgs] @grahamc opened pull request #54957 → (WIP) riot-web: see if dropping hydraPlatforms causes ofborg to realize it … → https://git.io/fhMyX
<tollb> gchristensen: Thanks! I only see a "new issue" button to the right of the title now. Does it appear after a push?
<{^_^}> [nixpkgs] @alyssais merged pull request #54808 → traefik: 1.7.4 -> 1.7.8 → https://git.io/fhi76
<{^_^}> [nixpkgs] @alyssais pushed 2 commits to master: https://git.io/fhMyp
freeman42x has joined #nixos
maximiliantagher has quit [Ping timeout: 272 seconds]
symphorien has joined #nixos
<tollb> gchristensen: No, I just have a little green button that says "New Issue".
<gchristensen> hrm. I thought authors could retarget PRs.
<gchristensen> anyway, it is sorted now :)
<tollb> gchristensen: Thanks, again!
<gchristensen> you're welcome, glad to help!
jonreeve has joined #nixos
tollb has left #nixos ["bye"]
maximiliantagher has joined #nixos
<jonreeve> Does anyone here use haskell?
<gchristensen> usually the assumption is *everybody* here uses Haskell, and then the outliers feel weird :P
<jonreeve> I'm having this problem when I try to make a package for my haskell project
tmaekawa has joined #nixos
<jonreeve> It says it needs hspec, but then I can't add that
<emily> does anyone here use NixOS? :3
<jonreeve> Am I doing something wrong?
tmaekawa has quit [Client Quit]
<rain1> I do
<dmj`> every time I try to build a python package on nixos I get this error: Download error on https://pypi.org/simple/setuptools-scm/: [Errno -2] Name or service not known -- Some packages may not be found!
<dmj`> anyone know what I'm doing wrong
<simpson> jonreeve: How does it fail to work? I can't attempt to reproduce anything from my current location.
<matthewbauer[m]> jonreeve: i think it should go in testHaskellDepends not executableHaskellDepends
<{^_^}> [nixpkgs] @dywedir pushed commit from @marsam to master « heroku: 7.18.2 -> 7.19.4 »: https://git.io/fhM9n
tritoncompute has joined #nixos
<jonreeve> simpson: It says: `Setup: Encountered missing dependencies:
<jonreeve> hspec >=2.2.0 && <2.6, hspec-discover >=2.2.0 && <2.6
<jonreeve> matthewbauer[m]: That doesn't seem to have any effect
tollb has joined #nixos
<tritoncompute> Nix failing to install on Debian Stretch Linux 4.10 x86_64 issue opened #2662
<{^_^}> https://github.com/NixOS/nixpkgs/pull/2662 (by wkennington, 4 years ago, merged): mumble: Update 1.2.5 -> 1.2.6
<tollb> gchristensen: Just to close the loop...you were right about the "Edit" button. I was checking with a second browser that wasn't logged into my account. I'll use it next time!
silver_hook has quit [Ping timeout: 268 seconds]
<gchristensen> ah, cool :)
tollb has left #nixos [#nixos]
knupfer has quit [Quit: knupfer]
<xok> can anyone help me install a mail service on a nixos system?..
<xok> I don't know how to do that ...
q6AA4FD has joined #nixos
i1nfusion has quit [Remote host closed the connection]
<Edes> quick question, could I fetch multiple files from the internet in a derivation?
<matthewbauer[m]> jonreeve: okay it looks like it's one of your dependencies that is breaking on it
<matthewbauer[m]> "clay" seems to be broken in haskellPackages? anyone know how we fix something like that?\
silver_hook has joined #nixos
EffSquared has joined #nixos
i1nfusion has joined #nixos
<gchristensen> Edes: a fixed output derivation can do that, yes
nikivi has quit [Ping timeout: 252 seconds]
acarrico has quit [Remote host closed the connection]
<eyjhb> gchristensen: can you look at #52112, and make sure that gramhamcofborg runs the checks needed to merge?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/52112 (by eyJhb, 6 weeks ago, open): arduino-mk: init at 1.6.0
<eyjhb> Would be awesome if we could close it :D
knupfer has joined #nixos
acarrico has joined #nixos
knupfer has quit [Read error: Connection reset by peer]
timor has quit [Ping timeout: 240 seconds]
<tritoncompute> Tried to install latest Nix from a binary tarball - fails at error: cloning builder process: Invalid argument
<symphorien> tritoncompute: disable the sandbox
<symphorien> or enable user namespaces
<jonreeve> matthewbauer[m]: I just added an issue for it: https://github.com/NixOS/nixpkgs/issues/54958
<{^_^}> #54958 (by JonathanReeve, 31 seconds ago, open): haskellPackages.clay has missing dependencies
<jonreeve> Any help would be much appreciated
<tritoncompute> <symphorien> user namespaces - I'm checking that now - thank you
<{^_^}> [nixpkgs] @jslight90 opened pull request #54959 → gitlab: add openssh dependency to gitaly → https://git.io/fhMHd
tritoncompute has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<jonreeve> Does anyone know how I can override a broken dependency? I just want to be able to work on my project, but I can't enter the shell or anything while Clay isn't building
doyougnu has joined #nixos
<eyjhb> How does one specify requirements that are needed when a nixpkgs is ran, and not doing build? Should I just omit "buildinputs"?
MP2E has quit [Remote host closed the connection]
Aerobit has joined #nixos
ckauhaus is now known as ckauhaus[afk]
<Aerobit> if I'm overriding the definition of more than 1 package in nixpkgs.overlays, can I be assured that if I override package B that depends on package A, and package A, that my modified package B will build with the modified package A?
<Aerobit> sorry if that doesn't make a lot of sense
<jabranham> Aerobit: yes
<Aerobit> hmm. I've got something funky going on then :(
<jabranham> Aerobit: if you're using the usual self/super nomenclature, make sure to refer to self if you want your modifications
<jabranham> in the package B overlay
<Aerobit> yeah, i realized that earlier :P thanks
<Aerobit> for some reason, one of my dependancies is failing to build with a cryptic mysterious error
<{^_^}> [nixpkgs] @ivan opened pull request #54960 → chromium: 71.0.3578.98 -> 72.0.3626.81 → https://git.io/fhMQd
<lewo> Do we have tools to generate documentation from NixOS module options (ideally markdown)?
knupfer has joined #nixos
drakonis has joined #nixos
petersjt014 has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
<infinisil> lewo: You want to generate markdown from the option descriptions?
reinhardt has quit [Quit: Leaving]
<infinisil> You could build the xml docs, then convert that to markdown with pandoc
<lewo> infinisil yes (and types)
<{^_^}> [nixpkgs] @dtzWill opened pull request #54961 → lua-5 setup-hook: quiet noisy 'cd -' printing path repeatedly → https://git.io/fhM7E
<lewo> infinisil but these modules are not in the nixpkgs repository
<infinisil> I see, there is something in nixpkgs that disables building docs for out-of-tree modules, but I don't know what that is right now (and whether it can be disabled)
<xok> I want to have ability to send emails from a nixos system, what do I do in this case ,can anyone help?..
<infinisil> xok: Just install an email client?
<xok> ok, let's move forward: what if I want to do that from a PHP script?.. :D
nDuff has joined #nixos
<infinisil> xok: use a php email sending library?
<lewo> infinisil ok, I'll have a look at that. thx
<infinisil> xok: I think I know what you want, but i can't be sure until you ask a more precise question :)
<xok> infinisil I have a simple script for example: mail( TO, SUBJECT, TEXT );
<Soft> How stable nixos-unstable tends to be in practice? Are we talking like Arch level of stability or something that breaks every other day
<xok> it doesn't work and alerts with a strange message: -t unknown command
<clever> xok: run it under `strace -f -e execve -s 200 php foo.php`
<xok> clever: thanks here is the result ( the most important line ): [pid 9203] execve("/bin/sh", ["sh", "-c", " -t -i "], 0x32f6f00 /* 43 vars */) = 0
elgoosy has joined #nixos
<xok> and the result follows with: sh: -t: command not found
<infinisil> Soft: It's pretty stable, I occasionally run into some breakage, maybe once a month, but never anything fatal (since it's covered with lots of tests)
<clever> xok: sounds like php was running sendmail + " -t -i "
<clever> xok: but the sendmail variable was "", so it turned into just " -t -i "
knupfer has quit [Read error: Connection reset by peer]
<xok> can you help ?..
<clever> xok: youll want to dig around in the php config to tell it where to find the sendmail binary
<infinisil> Now just gotta figure out where it tries to read sendmail from
mtesseract has joined #nixos
<noonien> is there a command to get the description of a package, given the package name?
<clever> $ nix eval nixpkgs.hello.meta.description
<clever> "A program that produces a familiar, friendly greeting"
<clever> infinisil: simplest thing is to just jump to the extreme, [root@system76:~]# nix-shell '<nixpkgs>' -A php --run unpackPhase
<noonien> awesome!
<clever> infinisil: main/main.c:# define DEFAULT_SENDMAIL_PATH PHP_PROG_SENDMAIL " -t -i "
aleph- has joined #nixos
<infinisil> "Use the source, Luke!"
<clever> infinisil: so it relies on PHP_PROG_SENDMAIL being set right at compile time? feels like a nixpkgs bug
<clever> ah, thats inside a #ifdef PHP_PROG_SENDMAIL
<clever> it sounds like somebody defined it to "" ?
<infinisil> If there's no dynamic way for it to figure out the binary then this looks like a php bug
<infinisil> s/bug/not-yet-implemented-feature
<clever> infinisil: if PHP_PROG_SENDMAIL is defined, it will use that, if its not defined, it will be hard-coded to # define DEFAULT_SENDMAIL_PATH "/usr/sbin/sendmail -t -i"
<infinisil> Booo
<clever> infinisil: the fact that we are not seeing /usr/sbin in the error, means that PHP_PROG_SENDMAIL is defined, yet empty
<infinisil> But yeah, why is PHP_PROG_SENDMAIL set to "" then
<clever> also, this is merely the default path, DEFAULT_SENDMAIL_PATH
<clever> PHP_INI_ENTRY("sendmail_path", DEFAULT_SENDMAIL_PATH, PHP_INI_SYSTEM, NULL)
<clever> that default then acts as the fallback, for when you dont set it in php.ini
<clever> so you can still fix it by setting sendmail_path in php.ini
<{^_^}> [nixpkgs] @grahamc closed pull request #54957 → (WIP) riot-web: see if dropping hydraPlatforms causes ofborg to realize it … → https://git.io/fhMyX
aleph- has quit [Ping timeout: 245 seconds]
<eyjhb> How do I specify required packages for a package?
chessai has quit [Remote host closed the connection]
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<mdash> eyjhb: in buildInputs
<eyjhb> mdash: I need them to available after the build, as it is only a `.sh` script, I will paste the nixpkgs, 2 secs
jonreeve has quit [Ping timeout: 268 seconds]
<eyjhb> I keep getting that xdpyinfo is unavailble for `betterlockscreen`.. DOn't know the best way to do this
worldofpeace has joined #nixos
acarrico has quit [Ping timeout: 268 seconds]
<mdash> eyjhb: nix determines runtime deps by looking at what store paths your outputs refer to
<eyjhb> mdash: so how do I fix this, so that it knows where to find the deps? I can't just patch everything.. or?
<eyjhb> Wait.. Patching is the correct way... Right?
<mdash> eyjhb: right, something like 'substitute $src/betterlockscreen $out/bin/betterlockscreen --replace xdpyinfo ${xdpyinfo}/bin/xdpyinfo'
<mdash> (when you put a derivation into a string, it gets converted to the store path for that derivation)
mtesseract has quit [Ping timeout: 268 seconds]
jabranham has joined #nixos
mtesseract has joined #nixos
<mdash> eyjhb: no need for a patch if you can just do it in a single substitute call
nikivi has joined #nixos
jabranham has quit [Client Quit]
<eyjhb> mdash: got told back that `patch` is the way to go, as it doesn't silently fail like e.g. substitute does.. :/
Mark___ has joined #nixos
<gchristensen> patch is definitely my preference, too, but by all means do what seems right
Edes has quit [Ping timeout: 240 seconds]
Mark___ has quit [Client Quit]
<eyjhb> It is quite likely that you told me that gchristensen :p But I am a little split currently... As this file changes a lot...
<eyjhb> Oh.. And do you remember your awesome command to do `git diff`, as they default cant be applied...
xok has quit [Quit: Leaving.]
<mdash> eyjhb: Makes sense.
jabranham has joined #nixos
<eyjhb> Now my patch doesn't want to play nicely... When does the patch occur according to the patching phase?
vk3wtf has quit [Ping timeout: 250 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/8f354badbc7 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<eyjhb> How.. Do I get the patch to apply to $src?
_kwstas has joined #nixos
<Synthetica> `pathes = [ 0001-yourpatch.patch ]`
<Synthetica> (what do you mean with "When does the patch occur according to the patching phase"?)
<eyjhb> Currently I have the patch as you described, but it says it cannot find the files, that it needs to patch
Edes has joined #nixos
<eyjhb> As I just have specified a FromGithub statement, which is the src.. And then, basically nothing else
<Synthetica> That should work, maybe your patch is wrongly formatted?
<eyjhb> The patch - https://termbin.com/sk8a
<eyjhb> `betterscreenlock` is in the root of the repo, so it should be correct?
<Synthetica> This sounds more like a job for a wrapper
eadwu has joined #nixos
<eyjhb> You might be right! But I have no clue.. I am just trying to get into making packages...
i1nfusion has quit [Remote host closed the connection]
<eyjhb> Synthetica: do you have any example I could go from?
i1nfusion has joined #nixos
<Synthetica> (Should have the benefit of being less fragile as well)
agander has quit [Quit: Leaving]
<eyjhb> I might be a idiot.. But... The path stuff confuses me.. THen syntax of it.. Why is lib.makeBinPath outside, and .. idk
<eyjhb> Well, trail and error here I come!
<{^_^}> [nixpkgs] @pSub pushed to update-parallel « parallel: 20181222 -> 20190122 »: https://git.io/fhMNF
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/bc739d01ccb (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<{^_^}> [nixpkgs] @pSub opened pull request #54963 → parallel: 20181222 -> 20190122 → https://git.io/fhMNp
lawlesseel has quit [Remote host closed the connection]
<eyjhb> Synthetica: thanks! I will check it out and see if I can get it to work!
lawlesseel has joined #nixos
<eyjhb> Plan B is getting depressed and drinking some vodka
slyfox_ is now known as slyfox
<eyjhb> Synthetica: how should I change the mkDerivation accordingly? Since I am not building anything, or doing python stuff?
<Synthetica> Something like `postInstall = "wrapProgram "$out/bin/yourexec" --prefix PATH : "${stdenv.lib.makeBinPath [ dep1 dep2 ]}"`
<eyjhb> Thanks, I will try it! - And then I wouldn't need the patch at all, correct?
<Synthetica> Correct, you shouldn't
<Edes> how do you add a systemd service to a package?
apaul1729 has quit [Remote host closed the connection]
<gchristensen> a package cannot create a nixos system service
<Synthetica> You don't really "add a systemd service to a package" as such, it's more like making a systemd service using a package, they are stored in two different places
<Synthetica> (One is stored in ./pkgs, the other in ./nixos)
Dagger2 is now known as Dagger
<Synthetica> (Or rather, ./nixos/modules)
<Edes> so I'd have to make like a separate nix file
<Synthetica> Yes
<Edes> any package I can look for an example?
jasongrossman has joined #nixos
<gchristensen> lots. what does your package do?
<Edes> it's a node application, I basically want a service that launches the server
<Edes> and kills it or whatever
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
<Edes> I'm looking at this page too
knupfer has joined #nixos
<eyjhb> Synthetica: so sorry to disappoint you.. But I still need to replace one thing... And it says again, that it cannot find the specified file :/
dustinm has quit [Quit: Leaving]
ivan has quit [Quit: lp0 on fire]
<Synthetica> Code?
<eyjhb> https://termbin.com/rs7m -> patch
<eyjhb> Code
<eyjhb> Ignore all the commented stuff.. I call that "might need it later" code
<Synthetica> ,locate i3lock
<{^_^}> Found in packages: i3lock, i3lock-color
<Synthetica> It should be fine with i3lock-color as an input, no? That also provides the i3lock executable
<eyjhb> As far as I know, it only provides i3lock-color input, as when I execute the script currently, it will call i3lock but i3lock does not know the requirements
maximiliantagher has quit [Remote host closed the connection]
dustinm has joined #nixos
<eyjhb> ` mv $out/bin/i3lock $out/bin/i3lock-color` is in the postInstall of i3lock-color
<eyjhb> So it only provides `i3lock-color`
<Synthetica> That's the postinstall, it just creates an extra alias
maximiliantagher has joined #nixos
<eyjhb> Hmm... Well, but it would be nice to use `i3lock-color`, as e.g. on my system `i3lock` points to the original i3lock
<Synthetica> Wait, that's on my system somehow 😓
<{^_^}> [nixpkgs] @eadwu opened pull request #54965 → nvidia_x11_beta: nvidia_x11 -> 418.30 → https://git.io/fhMxi
<eyjhb> That's the first time ever, I have needed my emoji replacer script for Weechat on a IRC server... :p
<eyjhb> But.. Yeah.. I don't know the best approach... As the patch fails...
<gchristensen> maybe just go the way of substituteinplace? :)
ivan has joined #nixos
<eyjhb> But.. That would replace the other occurences too, which are paths named i3lock... :/
acarrico has joined #nixos
<eyjhb> But I really just do not understand at all, why the patch would not work? It just seems like it never gets the files, so it can't patch them?
<noonien> does anyone here use screensaver? or only lockscreens? in both cases, which?
<Synthetica> eyjhb: Yeah, I sometimes forget I'm not on discord ;)
<eyjhb> I feel like everybody on Discord/Slack are doing roleplay with me, because of the translated emojis... (using Bitlbee), so everything is like "blinking_face" etc...
<eyjhb> But I am real close at grapping at the vodka here.. Am I overriding any of the steps because of "phases"
tritoncompute has joined #nixos
ambro718 has joined #nixos
sicklork1n has quit [Ping timeout: 246 seconds]
griff_ has quit [Quit: griff_]
<eyjhb> I am skipping some phase, that I need..
<Synthetica> ... the source fetch phase?
<Synthetica> What's that called?
<eyjhb> unpackPhase I am hoping
<eyjhb> Looks like it!
<Synthetica> Works here!
<eyjhb> Same here, but it still tries to execute `i3lock` ?! :(
elgoosy has quit [Remote host closed the connection]
<eyjhb> Does the patch happen inline $src ?
<eyjhb> Because I might be copying the wrong.. No.. It shouldn't be that..
<eyjhb> Synthetica: WORKS! Just removed the $out part when copying the file.. Is that the correct approatch?
<eyjhb> approach*
<Synthetica> What? `cp $src/bin/bls ./bin/bls` instead of `cp $src/bin/bls $out/bin/bls`?
pvinis has quit [Ping timeout: 256 seconds]
<eyjhb> Actually just ` cp betterlockscreen $out/bin/betterlockscreen`
<eyjhb> 2 sec
vk3wtf has joined #nixos
jonreeve has joined #nixos
<eyjhb> Don't know if that is the correct approach Synthetica :/
<Synthetica> Might be, $src points to the immutable dir in the nix store, pwd is the mutable variant in /build/store
<Synthetica> So I'd say it's fine
q6AA4FD has quit [Read error: Connection reset by peer]
<eyjhb> Synthetica: great! What do I do about the maintainer? I have a PR that is in progress, where I have added myself to the maintaineres list, but.. In this new PR, I have not done so.. Should I just do it yet again?
<eyjhb> So.. that I am added to the maintainers list in both of the PRs?
q6AA4FD has joined #nixos
<Synthetica> Is one PR the successor of another, or are they for two different things?
<eyjhb> Two different things, the other is #52112
<{^_^}> https://github.com/NixOS/nixpkgs/pull/52112 (by eyJhb, 6 weeks ago, open): arduino-mk: init at 1.6.0
<dmj`> gchristensen: ping
ingenieroariel has joined #nixos
<gchristensen> pong-ish
<dmj`> gchristensen: do you nix with python ever
ingenieroariel is now known as Guest48810
<gchristensen> very rarely
<noonien> is there a "metapackage" that installs stuff such as `killall`?
<Synthetica> ,locate killall
<{^_^}> Found in packages: psmisc, busybox, killall, netbeans, playonlinux, bashCompletion
<Synthetica> (No more netbeans, netbeans, netbeans :P)
<dmj`> gchristensen: ok no worries
<eyjhb> Synthetica: do you have permissions for merging? ;) ;)
<Synthetica> eyjhb: Nope :(
<noonien> do people usually install psmisc or busybox?>
<gchristensen> psmisc
<gchristensen> don't install busybox
<eyjhb> Or if gchristensen have the time :p
<eyjhb> Else I guess I just have to add myself once again to the maintainers list in the new PR
<Synthetica> It shouldn't have any merge conflicts, so I guess it should be fine
<gchristensen> mind squashin?
<gchristensen> in to 2 commits
<Thra11> I have a really simple default.nix (with import <nixpkgs> {}; haskellPackages.callCabal2nix "foo" ./. {}) for developing a haskell program. Is there a good way to run nix-shell using this default.nix, but add a few extra haskell packages which aren't really part of the program, but which are useful for experimenting in ghci?
knupfer has quit [Remote host closed the connection]
<gchristensen> 1. adding yourself to the maintainer list, 2. init the package
<eyjhb> gchristensen: one for the actual .nix file, and one for adding myself as the maintainer?
<gchristensen> :)
<eyjhb> Okay, will do ;)
doyougnu has quit [Ping timeout: 268 seconds]
<Guest48810> Hello, I am trying to package somebody else's binary that contains a line like box := packr.NewBox("../../engine/ladon/rego") but fails when built as a nix package because of the read only system - what can I patch it to to ensure that it is a writeable place?
ryantrinkle has quit [Ping timeout: 250 seconds]
mtesseract has quit [Quit: good night]
<Guest48810> i.e. like /tmp
<Synthetica> You could patch it?
<Synthetica> With patches = [ ./mypatch.patch ] (which you'd probably have to write yourself)
<Guest48810> I already wrote one and tried to make it write on my home folder (no dice)
nspin has joined #nixos
<{^_^}> [nixpkgs] @eyJhb opened pull request #54966 → betterlockscreen: init at 3.0.1 → https://git.io/fhMjo
<eyjhb> gchristensen: done ;)
<Synthetica> Guest48810: What exactly did you try? Using ~ could be problematic in some contexts (I don't know if that's the case here)
<Synthetica> (Also, during build $HOME is set to a dummy value
<Synthetica> )
acarrico has quit [Ping timeout: 244 seconds]
<gchristensen> eyjhb: the arduino-mk PR seems unchanged
<eyjhb> gchristensen: I only change `cp -r` to `ln -s`
<eyjhb> changed**
<eyjhb> As that was the only requests
<eyjhb> But.. Don't know if I have screwed the bot over by doing a forced push to the repo?
simukis has quit [Quit: simukis]
<gchristensen> oh, I asked you to squash them
<Guest48810> Synthetica: the problem happens at run time (build time is fine). packr appears to be a library that bundles static files into golang binaries
<eyjhb> gchristensen: squash them?
dermetfan has quit [Ping timeout: 268 seconds]
acarrico has joined #nixos
<eyjhb> Ohh.. Squash all the commits into a single commit? - new to the PR game...
sicklork1n has joined #nixos
<gchristensen> in to two comits: 1. adding yourself to the maintainer list, 2. init the package
<Guest48810> I do not know why it tries to be resolved as a relative path at run time, it probably is an error. But the fact is that the binary in nixos just dies when it reaches that line.
<eyjhb> AH! You wanted me to do that for the arduino-mk PR
<eyjhb> I did it for the PR I just opened... :/
<Thra11> elvishjerricco: The default.nix you described for me yesterday doesn't seem to allow me to import the dependencies in ghci (when I run `nix-shell --run ghci` in the directory). Am I doing something wrong, or do I need a different default.nix to do that?
dermetfan has joined #nixos
<gchristensen> eyjhb: no worries :)
<Synthetica> Guest48810: What exactly did you try?
doyougnu has joined #nixos
tritoncompute has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
o1lo01ol1o has joined #nixos
acarrico has quit [Ping timeout: 268 seconds]
<eyjhb> Synthetica: I have only ever seen patches with substituteAll.. Even in the one you linked :/
alex has quit [Quit: WeeChat 2.3]
sicklork1n has quit [Ping timeout: 250 seconds]
phizzz has joined #nixos
hakujin2 has joined #nixos
hakujin2 has quit [Client Quit]
<phizzz> hi i'm looking for resources to help me learn how to build existing custom c/c++ software the *nixos* way. any one have any suggestions?
<Synthetica> eyjhb: `find -name "*.patch" | wc -l` -> 1970
<phizzz> i'm looking at the nix manual, section on nix-shell.
<phizzz> i also found this, and wondering if it's still relevant (last commit 2 years ago): https://github.com/nixcloud/nix-shell-workshop
Guest48810 has quit [Ping timeout: 256 seconds]
hakujin1 has quit [Ping timeout: 246 seconds]
<eyjhb> Synthetica: what do you mean?
<eyjhb> gchristensen: I have done it now! Was a little messy.. But should do
<phizzz> i really want to use nixos to deploy this, but i need a better understanding of the *nixos* way...
<eyjhb> I will apply the last changes to the other PR... Forgot all about adding it..
<Synthetica> eyjhb: That there are 1970 patches in the Nixpkgs repo, it's hardly unique
<eyjhb> Synthetica: never meant it was unique, only meant I have only seen it used with "substituteall" :D But seeing as I have only done like.. 2-3 packages, theeen
Edes has quit [Ping timeout: 246 seconds]
<phizzz> basic question, for instance: how do i even leave a nix-shell? just `exit`?
<eyjhb> phizzz: yup :)
<noonien> is there any information collected about what packages people usually install? i'm looking to see how popular packages are
lawlesseel has quit [Ping timeout: 256 seconds]
tertl3 has joined #nixos
<noonien> something similar to https://popcon.ubuntu.com/by_inst
<bsima> noonien: if so, it would be a part of http://cache.nixos.org/
<bsima> that's where nix packages are (usually) fetched from when you install
<bsima> if the packages isnt in the cache though, it gets built from source. No way to track that afaik
_kwstas has quit [Quit: _kwstas]
jackdk has joined #nixos
<goibhniu> atime isn't a great way to measure usage either, since mounting your FS with noatime is faster
<simpson> Presumably we'd do what popcon does and run an agent on each different machine, which means that it'd be opt-in.
<simpson> noonien: What do you want to do with that information?
<noonien> there are a lot of packages in the nix channels, i want to discover programs that might be useful to me
<noonien> so far i've compiled some lists from available nix configs i could find on github
<noonien> and useful programs are usually more popular
<{^_^}> [nixpkgs] @danbst merged pull request #54656 → Update nomad v0.8.6 -> v0.8.7 → https://git.io/fh6Zs
<{^_^}> [nixpkgs] @danbst pushed commit from @mfossen to master « nomad: v0.8.6 -> v0.8.7 (#54656) »: https://git.io/fhDJT
<simpson> Any package you've found useful on other distros which isn't distro-specific is likely available in nixpkgs.
<noonien> or, rather, poularity might be a decent metric when deciding what packages to review first
<noonien> well, sure, but i'm looking the other way around
<noonien> there are packages in nix that aren't in other PMs
endformationage has quit [Quit: WeeChat 2.3]
<simpson> Sounds futile IMO; the really cool packages are stuff like GNU Parallel which you'll only learn about from word-of-mouth.
<simpson> But I can understand the feeling.
<noonien> i'm not unfamiliar with parallel
<noonien> i've discovered rofi, arandr, autorandr, variety, wpgtk, ranger, for example
jtojnar has joined #nixos
* goibhniu thinks it would be very interesting, but can't find a nice alternative
<noonien> almost all are GUI apps
endformationage has joined #nixos
<noonien> but i'm not looking specifically for GUI programs
<noonien> i've also stumbled upon alacritty, which provided for a good read/test
<noonien> nix-shell is also really nice for testing these programs
Edes has joined #nixos
<{^_^}> [nixpkgs] @danbst merged pull request #54637 → module system: small eval optimization → https://git.io/fh6fJ
<{^_^}> [nixpkgs] @danbst pushed 4 commits to master: https://git.io/fhDJu
jonreeve has quit [Quit: WeeChat 2.3]
maximiliantagher has quit [Remote host closed the connection]
Aerobit has quit [Quit: WeeChat 2.3]
o1lo01ol1o has quit [Remote host closed the connection]
Makaveli7 has quit [Quit: Leaving]
o1lo01ol1o has joined #nixos
maximiliantagher has joined #nixos
eddyb has joined #nixos
eddyb has quit [Changing host]
eddyb has joined #nixos
maximiliantagher has quit [Remote host closed the connection]
<__monty__> noonien++ For the ranger <3 ; )
kvda has joined #nixos
<{^_^}> noonien's karma got increased to 1
o1lo01ol1o has quit [Ping timeout: 244 seconds]
<noonien> hehe
o1lo01ol1o has joined #nixos
aleph- has joined #nixos
maximiliantagher has joined #nixos
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<noonien> is anyone running zfs?
<{^_^}> [nixpkgs] @dotlambda merged pull request #54937 → python.pkgs.django_1_8: mark as insecure → https://git.io/fhMts
<{^_^}> [nixpkgs] @dotlambda pushed to master « python.pkgs.django_1_8: mark as insecure (#54937) »: https://git.io/fhDTt
<noonien> i've ran btrfs for a few years, in the end, it wasn't worth it, it was really unstable
<noonien> zfs shouldn't be, afaik
<noonien> and i really wouldn't mind the dedup/snapshots
<{^_^}> [nixpkgs] @dotlambda pushed to release-18.09 « python.pkgs.django_1_8: mark as insecure (#54937) »: https://git.io/fhDTm
<noonien> however, i'm unsure if it's hard on the CPU/RAM
<noonien> not really the channel to ask, but anyway
<gchristensen> its fie
<gchristensen> ne
<gchristensen> fine
<goibhniu> I think a fair few people here use it, e.g. hyper_ch is a big fan.
<noonien> hmm, awesome
<noonien> any issuues running it on top of luks?
<gchristensen> nope
tilpner has quit [Quit: WeeChat 2.3]
<{^_^}> [nixpkgs] @volhovm opened pull request #54967 → clmagma: init at 1.3 → https://git.io/fhDTR
<__monty__> noonien: You experience instability with btrfs recently? I've been running it for a couple years on my laptop and haven't had any issues to speak of.
<__monty__> I know that's anecdotal but there hasn't even been a semblance of an issue.
<noonien> i think i stopped using it ~2years go
<noonien> but afai, the project isn't active anymore
<noonien> i've used it on ubuntu
orivej has quit [Ping timeout: 240 seconds]
orivej_ has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<noonien> i've had problems with it running out of metadata space, even with regular balancing
<noonien> even though the metadata didn't really run out of space
<noonien> nor did the rest of the FS
<noonien> it always took hour-long balances to fix
<noonien> and sometimes it didn't even fix, needing a reinstall (since i had it on root)
fusion809 has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
fusion809 has joined #nixos
<noonien> i didn't even have any intensive workloads
<__monty__> Not active, what?
<tolt> I'm getting an error trying to download some things from the nixos cache... "SSL peer certificate or SSH remote key was not OK (60)". Any ideas on how to fix it or where to look?
jasongrossman has quit [Ping timeout: 250 seconds]
q6AA4FD has quit [Quit: ZNC 1.7.1 - https://znc.in]
clr__ has quit [Ping timeout: 240 seconds]
clr_ has quit [Ping timeout: 240 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @danbst merged pull request #54427 → bloop: 1.2.3 -> 1.2.5 → https://git.io/fhzbk
<{^_^}> [nixpkgs] @danbst pushed commit from @Tomahna to master « bloop: 1.2.3 -> 1.2.5 (#54427) »: https://git.io/fhDkM
EffSquared has quit [Ping timeout: 240 seconds]
__monty__ has quit [Quit: leaving]
doyougnu has quit [Ping timeout: 268 seconds]
Ariakenom has quit [Quit: Leaving]
eadwu has quit [Quit: WeeChat 2.3]
kvda has quit [Read error: Connection reset by peer]
rwe has joined #nixos
q6AA4FD has joined #nixos
erasmas has quit [Quit: leaving]
Ridout has joined #nixos
dsiypl4_ has quit [Ping timeout: 272 seconds]
rwe is now known as erydo
tritoncompute has joined #nixos
erydo is now known as rwpe
rwpe is now known as rwe
doyougnu has joined #nixos
fragamus has joined #nixos
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
<{^_^}> [nixpkgs] @markuskowa merged pull request #49871 → getdp: init at 3.0.4 → https://git.io/fpJxY
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fhDLJ
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/30c312341fb (from 63 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @worldofpeace merged pull request #52590 → pythonPackages.pyu2f: init at 0.1.4 → https://git.io/fhv4J
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @prusnak to master « pythonPackages.pyu2f: init at 0.1.4 »: https://git.io/fhDLl
hellrazo1 has quit [Quit: WeeChat 2.3]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
devalot has quit [Remote host closed the connection]
fragamus has joined #nixos
<{^_^}> [nixpkgs] @danbst merged pull request #54834 → pythonPackages.qscintilla: enable for python3 → https://git.io/fhPui
<{^_^}> [nixpkgs] @danbst pushed 2 commits to master: https://git.io/fhDLM
maximiliantagher has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @worldofpeace pushed to release-18.09 « pythonPackages.txaio: disable tests »: https://git.io/fhDLS
fragamus has quit [Client Quit]
ambro718 has quit [Quit: Konversation terminated!]