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
<infinisil> clever: From the nix-info earlier it seems that the channels are not empty
<infinisil> Or have something odd in them
<clever> both root and non-root have a channel called nixos
<clever> they are going to cause conflicts
<clever> remove the nixos channel from the non-root user, and nix-channel --update
<infinisil> clever: You think it could cause a 'error: attribute 'haskell' missing', when doing `nix-env -iE 'pkgs: pkgs.haskell.lib.doJailbreak pkgs.haskellPackages.clay'`?
<clever> infinisil: nix-env isnt passing you a pkgs set
<clever> infinisil: its passing you a set of channel name -> channel path
<infinisil> Ah lol
<clever> you dont have any channel called haskell, hence, the error
<infinisil> Well not really
<infinisil> It just passes what's in your ~/.nix-defexpr, converted a bit
martinb_ has quit [Ping timeout: 246 seconds]
<infinisil> And for me that's just a normal nixpkgs, so I'm the cause of the error
<infinisil> lol
<dckc> do not know how to unpack source archive /nix/store/4xg10325b0dynncf47jxx6x8v4z3blyd-rxkbr5bv3cs3zkxcj36hzlm6g6djp9i2-instantclient-basic-linux.x64-12.1.0.2.0.zip
<jonreeve> Ah
<dckc> sigh. neither do I.
<infinisil> Can't wait til we can get rid of nix-env..
<clever> dckc: add unzip to the buildInputs
<dckc> thanks!
<clever> [clever@amd-nixos:~/apps/nixos-configs]$ nix-env -iE 'channels: (let pkgs = channels.nixos {}; in pkgs.haskell.lib.doJailbreak pkgs.haskellPackages.clay)'
<clever> infinisil: this is the correct way to use -E, i believe
<infinisil> Ugh
<clever> but ive also see others do, -iE '_: with import <nixpkgs>{};...' and just bypass defexpr entirely
<infinisil> Yeah I'd use that instead
<clever> oh, and -f also works
<dckc> ooh! I think I'm winning...
<clever> nix-env -f '<nixpkgs>' -iA ....
<clever> but yeah, you need -E for jailbreak
<infinisil> clever: Yeah but this example needs an expression
acarrico has quit [Ping timeout: 245 seconds]
<clever> also, i would avoid -iE whenever possible
<clever> it doesnt save the expr, so -u will undo it
<clever> make a config.nix that defines the expr, and install that set
<infinisil> Yeah
<infinisil> jonreeve: See what clever said ^^
<clever> [clever@amd-nixos:~/apps/nixos-configs]$ cat ~/.nix-defexpr/test/foo/default.nix
<clever> import /home/clever/apps/nixpkgs
<clever> and due to defining custom defexprs, i can: nix-env -iE 'channels: (let pkgs = channels.foo {}; in pkgs.haskell.lib.doJailbreak pkgs.haskellPackages.clay)'
<infinisil> I doubt the parens are needed though?
<clever> likely not needed
<clever> a left-over from when i was doing `import channels.nixos` and it failed, because nix-env had pre-imported the defexpr
Rusty1 has joined #nixos
aleph- has quit [Ping timeout: 245 seconds]
<dckc> so... I goofed in a build step; how I do I tell nix something needs to be rebuilt?
<infinisil> dckc: Start the nix build again?
<dckc> nix build seems to think it doesn't need to be built again
<clever> dckc: if the build instructions have changed, it will be a new build, and nix will redo whatever steps have changed
<clever> dckc: then you havent changed the build instructions
* dckc scratches head
<clever> what file did you edit to fix things?
griff_ has quit [Quit: griff_]
<{^_^}> [nixpkgs] @dotlambda merged pull request #55056 → pythonPackages.grammalecte: 0.6.1 -> 0.6.5 → https://git.io/fhSf8
<{^_^}> [nixpkgs] @dotlambda pushed commit from @apeyroux to master « pythonPackages.grammalecte: 0.6.1 -> 0.6.5 (#55056) »: https://git.io/fhSLY
<dckc> I see what I did wrong; I made an install-time fixup in . rather than in $out
<dckc> rather: I copied stuff to $out before making a fixup
griff_ has joined #nixos
<dckc> libmql1.so: cannot open shared object file: No such file or directory
<dckc> some linking issue...
<jonreeve> clever: Is that `~/.config/nixpkgs/config.nix`? What would the file look like with that definition?
eadwu has joined #nixos
<clever> jonreeve: line 12
<clever> nix-env -iA nixos.newstuff, will install every value in that set
<{^_^}> [nixpkgs] @dtzWill opened pull request #55065 → llvm-polly,clang-polly: Add llvm/clang variants w/polly support → https://git.io/fhSLs
<jonreeve> Nice
Rusty1 has quit [Quit: Konversation terminated!]
<dckc> what to do about stuff that's expected to be found via LD_LIBRARY_PATH?
rwe has joined #nixos
<clever> dckc: use patchelf to add it to the RPATH
<dckc> I'm not sure how to fit that into the structure of rPackages.ROracle.overrideDerivation ; got a clue? Or is there a way to add it to the list of libraries at compile time?
<clever> dckc: after something is compiled, you can run patchelf to modify it, or use wrapProgram to prefix LD_LIBRARY_PATH
<dckc> my expression so far looks like: let instantclient = ... in rPackages.ROracle.overrideDerivation (attrs: { configureFlags = [ "--with-oci-lib=${instantclient}" ]; })
<dckc> I'm not sure where wrapProgram would fit in there.
<clever> since your using overrideDerivation, you can just shove it into something like postInstall = '' ls $out/bin; '';
* dckc checks to see if rPackages already has some facility for wrapping...
lassulus has quit [Ping timeout: 250 seconds]
dsiypl4_ has quit [Ping timeout: 245 seconds]
<dckc> at the risk of being dense... I don't see how ls would help
q6AA4FD has quit [Quit: ZNC 1.7.1 - https://znc.in]
<jonreeve> clever: So I'm definitely doing something wrong. Is it supposed to be something likie this?
* dckc gives it a whirl...
Rusty1 has joined #nixos
<jonreeve> *like
<clever> jonreeve: the packageOverrides are missing
NightTrain has joined #nixos
<clever> jonreeve: and line 3 needs to be a key=value; set, you just have a naked value
<jonreeve> Aha
<dckc> it's odd... the library that's not found (libmql1.so) is in the same directory as one that does seem to be found (libclntsh.so)
<clever> dckc: strace?
copumpkin has quit [Ping timeout: 244 seconds]
<jonreeve> clever: So like this: https://hastebin.com/xoyovifeqa.js ?
<jonreeve> That seems to work, but then I don't know how to refer to it in my project default.nix
<clever> jonreeve: you would put the override into the projects default.nix, and never even touch nix-env or config.nix
<jonreeve> Ahhh damn
doyougnu has quit [Ping timeout: 250 seconds]
Havvy has joined #nixos
jonreeve has quit [Ping timeout: 240 seconds]
ng0_ has joined #nixos
ng0 has quit [Ping timeout: 256 seconds]
dermetfan has joined #nixos
dermetfan has quit [Ping timeout: 245 seconds]
thc202 has quit [Ping timeout: 268 seconds]
rwe has quit [Ping timeout: 244 seconds]
goibhniu1 has quit [Ping timeout: 246 seconds]
<dckc> strange strange strange... ldd shows libmql1.so => not found but libmql1.so is in a directory that's in the rpath (according to readelf -d)
alex`` has quit [Read error: Connection reset by peer]
<clever> dckc: is libmql1.so of the right arch?
<dckc> yes (both it an the one that works are ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped )
rprije has joined #nixos
<dckc> `strace ldd ROracle.so` didn't show either of them... what's that flag to make strace chase subprocesses?
<clever> -f
<dckc> right... strace shows libclntsh.so.12.1 all over but nothing about libmql1.so ... like it's not even looking
<dckc> wait...
<dckc> 1
<clever> dckc: dlopen or DT_NEEDED?
<clever> ldd wont show dlopen things
<gchristensen> [ 2.265374] [Firmware Bug]: register x18 corrupted by EFI get_time
<gchristensen> oops
<dckc> strace ldd is showing: openat(AT_FDCWD, "/lib/x86_64-linux-gnu/tls/haswell/x86_64/libmql1.so", O_RDONLY|O_CLOEXEC)
<dckc> etc.
<clever> dckc: why is it looking in /lib/ ?
<dckc> hellifino; isn't that where ldd usually looks?
<dckc> (this is normal ubuntu ldd)
<clever> you may want to use nix ldd
<dckc> `nix-shell -p ldd` loses; got a clue?
<clever> its part of glibc, which should be in the default env
<clever> `nix-shell -p` is enough
gagbo has quit [Ping timeout: 272 seconds]
<dckc> now I only get: openat(AT_FDCWD, "/nix/store/fivq0nbggp4y8mhy3ixprqd7qyn1hy2j-glibc-2.27/lib/libmql1.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT
<dckc> it looks all over before finding this one: openat(AT_FDCWD, "/nix/store/bzx6cwbqgk2z5491nlf7wjyw7ymqw6lf-instantclient-12_1/libclntsh.so.12.1", O_RDONLY|O_CLOEXEC) = 3
<clever> yeah, thats normal
<clever> which library actually needs libmql1.so?
<clever> is it ROracle.so or one of its deps?
<clever> the rpath has to be fixed, on the right lib
<dckc> I'm not sure how to tell
<clever> lddtree
<clever> ,locate bin lddtree
<{^_^}> Found in packages: pax-utils
<dckc> `nix-shell -p lddtree` loses
<dckc> thanks...
<dckc> aha! it's libclntsh.so that wants libmql1.so and friends
<dckc> what's the normal patchelf pattern?
<clever> when ld.so is handling DT_NEEDED, it only obeys the RPATH on the ELF file that DT_NEEDED'd the thing
acarrico has joined #nixos
<clever> for compiled things, there are gcc flags that just set it right from the start
<clever> for pre-compiled stuff, you usually just patchelf every library with the same rpath
<clever> and then the fixup phase will run --shrink-rpath, to remove un-needed things
<dckc> right... but how? in installPhase?
lassulus has joined #nixos
<clever> or preInstall, or postInstall
<dckc> there isn't a norm?
<clever> mostly preference, if you want to patch the copy in the working dir, before its copied to $out
<clever> or if you want to patch it after copying
* dckc finds discussion in https://nixos.wiki/wiki/Packaging/Binaries ...
<dckc> preFixup is used there
fengels has left #nixos ["User left"]
<dckc> how do I refer to the path of the package I'm building?
<clever> $out is an env var, pointing to the output
<dckc> undefined variable 'out' at ...
<clever> $out is a bash var, ${out} is a nix var
<clever> ,escape''
<{^_^}> '' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
<clever> > '' and ''${out} is an escaped bash var''
<{^_^}> "and ${out} is an escaped bash var"
<dckc> losing. harrumph.
<dckc> for lib in *.so*; do patchelf --set-rpath $out $lib; done
<dckc> ^ that's what I tried
<clever> that sets the rpath to $out, and lacks the lib subdir
<clever> it also wont find any other deps
<dckc> lib subdir? these .so files are right at the top level in this package
<clever> libraries should be in the lib dir, $out/lib/
<dckc> hm. well, that's not where ROracle expects to find them
<dckc> preInstall doesn't seem to get used
<clever> if installPhase is set, it can sometimes cause the pre/post hooks to not work
<dckc> I guess when I changed installPhase...
<clever> yep
<clever> overriding installPhase breaks the pre/post hooks
<clever> simpler at that point to just put everything into installPhase
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhSLh
<dckc> stat: No such file or directory
<dckc> ^ from patchelf. wild.
<dckc> oh...
<dckc> how do I refer to the normal libc directory? I'm losing on libaio.so.1 now
<dckc> oh... wait...
<dckc> maybe that's not a libc thing...
<clever> patchelf has a flag to print the current rpath on a binary
<clever> so you can then add to it, rather then replacing it
drakonis has quit [Quit: WeeChat 2.3]
<gchristensen> is there a nice benchmarking program that I could run and compare results against another machine? cli-only
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #nixos
<dckc> hey! I win! thanks for all your help!
<Rusty1> gchristensen: for compiler benchmarking or like hardware?
<gchristensen> hardware
<gchristensen> sysbench --test=cpu --num-threads=32 --cpu-max-prime=9999 run tells me "illegal instruction" :D
<gchristensen> hmm!
<{^_^}> [nixpkgs] @petabyteboy opened pull request #55066 → ifdtool: init at 4.9 → https://git.io/fhStO
evhan has quit [Ping timeout: 250 seconds]
evhan has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace opened pull request #55067 → zeitgeist: 1.0.1 -> 1.0.2 → https://git.io/fhStZ
lassulus has quit [Ping timeout: 250 seconds]
lassulus has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
silver_ has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #55068 → qownnotes: 19.1.8 -> 19.2.0 → https://git.io/fhStK
n0qqe has joined #nixos
o1lo01ol1o has quit [Ping timeout: 250 seconds]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
noqqe has quit [Ping timeout: 268 seconds]
n0qqe is now known as noqqe
Ariakenom has quit [Quit: Leaving]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/ece22b62bb5 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
rprije has quit [Remote host closed the connection]
mizu_no_oto has joined #nixos
napping has quit [Quit: leaving]
rprije has joined #nixos
Synthetica has quit [Quit: Connection closed for inactivity]
i1nfusion has quit [Remote host closed the connection]
rwe has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #55069 → trilium: 0.27.4 -> 0.28.3 → https://git.io/fhSt5
ng0 has joined #nixos
ddellaco_ has joined #nixos
ng0_ has quit [Ping timeout: 256 seconds]
ddellacosta has quit [Ping timeout: 268 seconds]
halfbit has joined #nixos
rwe has quit [Remote host closed the connection]
rwe has joined #nixos
rwe has quit [Client Quit]
Makaveli7 has quit [Ping timeout: 252 seconds]
kvda has joined #nixos
halfbit has quit [Ping timeout: 268 seconds]
Guanin has quit [Remote host closed the connection]
noonien has quit [Quit: Connection closed for inactivity]
xadversaryxx has joined #nixos
halfbit has joined #nixos
alex_giusi_tiri has left #nixos [#nixos]
xadversaryxx has quit [Quit: Leaving]
halfbit has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55067 → zeitgeist: 1.0.1 -> 1.0.2 → https://git.io/fhStZ
<{^_^}> [nixpkgs] @worldofpeace pushed to master « zeitgeist: 1.0.1 -> 1.0.2 »: https://git.io/fhSqR
psy3497 has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
momack2[m] has joined #nixos
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace pushed to release-18.09 « typora: 0.9.53 -> 0.9.64, remove electron blob »: https://git.io/fhSqg
fresheyeball has quit [Quit: WeeChat 2.2]
dmitry-zen[m] has joined #nixos
o1lo01ol1o has quit [Ping timeout: 240 seconds]
Guest12887 has quit [Ping timeout: 246 seconds]
countingsort has joined #nixos
counting1ort has quit [Ping timeout: 268 seconds]
<simpson> ,eeee
<ottidmes> ,
<{^_^}> Special commands: find tell locate - Commands sorted by use count, page 0 (use ,<n> to view page <n>): tofu IFD library unfree declarative escape'' -A stateVersion help libraries dnw pr profiling paste imperative callPackage escape" which-channel exec fancy-uninstall channels home-manager loot nixlang++ overlay ping unstable xy NUR jDwhat pills pinning cloak error gctest.html howoldis nixGL smart-questions tias upgrade wololo configsearch haskell
<ottidmes> ,1
<{^_^}> Page 1: timer bootfull cloudfront context escape-special gctest info logs nix-info nixeval nur runtimeDeps stuck whomademe wrapper xml activationScripts arm ask github hardware ifd jdwhat nix-env-r nix-repl nixcon nixossearch nixpkgsVersion not-os notfound outPath proot pure-eval python qt releasenotes replaceModule root stats.json the-pr-with-initially-1152-new-nixos-options thesis todeclarative wrapnix zol
<simpson> I'm fixing up a derivation with optional Python support, and I'm getting this delightful combination of wrongness: https://bpaste.net/show/4fb08ee3fd60
eadwu has quit [Quit: WeeChat 2.3]
<clever> simpson: looks like nuke-references
<simpson> clever: My current thought is that I should patch that setup.py --root --record line a bit. Any idea what those flags do?
<clever> no idea
psy3497 has quit [Quit: WeeChat 2.3]
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 240 seconds]
lassulus_ is now known as lassulus
<simpson> I wonder if it's something wrong with Cython.
mizu_no_oto has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
pie___ has joined #nixos
griff_ has quit [Quit: griff_]
pie__ has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @lopsided98 opened pull request #55070 → lkl: install liblkl.so and liblkl-hijack.so → https://git.io/fhSqy
mizu_no_oto has joined #nixos
mizu_no_oto has quit [Client Quit]
ng0 has quit [Ping timeout: 256 seconds]
mizu_no_oto has joined #nixos
mizu_no_oto has quit [Remote host closed the connection]
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 246 seconds]
Mateon3 is now known as Mateon1
justanotheruser has joined #nixos
balsoft has joined #nixos
acowley has quit [Quit: ZNC - http://znc.in]
leothrix has quit [Quit: ZNC 1.7.1 - https://znc.in]
leothrix has joined #nixos
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/7e15417e423 (from 79 minutes ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
balsoft has quit [Quit: Konversation terminated!]
balsoft has joined #nixos
acowley has joined #nixos
balsoft has quit [Ping timeout: 246 seconds]
<tom39291> Anyone know of a set override operator/function that only replaces leave. e.g. ...
amosbird has quit [Quit: ZNC 1.7.1 - https://znc.in]
<tom39291> ({ s = { a = 1; b = 2; };} // { s = { a = 5; }; }).s.b <-- this fails with 'attribute "b" missing'. I want it to return 2
amosbird has joined #nixos
bgamari has quit [Ping timeout: 240 seconds]
<tom39291> The // operator replaces s as a whole. I want to just replace s.a in the LHS
bgamari has joined #nixos
<ottidmes> tom39291: lib.recursiveUpdate
<ottidmes> > (recursiveUpdate { s = { a = 1; b = 2; };} { s = { a = 5; }; }).s.b
<{^_^}> 2
<ottidmes> tom39291: good luck, I got to go!
ottidmes has left #nixos ["WeeChat 2.2"]
Rusty1 has quit [Quit: Konversation terminated!]
o1lo01ol1o has joined #nixos
Myrl-saki has quit [Ping timeout: 244 seconds]
o1lo01ol1o has quit [Ping timeout: 240 seconds]
rprije has quit [Remote host closed the connection]
endformationage has quit [Quit: WeeChat 2.3]
rprije has joined #nixos
<tom39291> f
<tom39291> otti0815: Great, thanks!
Myrl-saki has joined #nixos
Myrl-saki is now known as Guest83105
Guest83105 has quit [Ping timeout: 240 seconds]
init_6 has joined #nixos
Guest83105 has joined #nixos
brejoc has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/bdc70034399 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
Guest83105 has joined #nixos
Guest83105 has quit [Changing host]
Guest83105 is now known as Myrl-saki
palo1 has joined #nixos
palo has quit [Ping timeout: 246 seconds]
palo1 is now known as palo
brejoc has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
q6AA4FD has joined #nixos
init_6 has quit [Ping timeout: 250 seconds]
init_6 has joined #nixos
rprije has quit [Read error: Connection reset by peer]
rprije has joined #nixos
<{^_^}> [nixpkgs] @dtzWill merged pull request #55021 → inkscape: 0.92.3 -> 0.92.4 → https://git.io/fhyHS
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to staging: https://git.io/fhSmn
<{^_^}> [nixpkgs] @dtzWill merged pull request #55008 → ninja: 1.8.2 -> 1.9.0 → https://git.io/fhyRL
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to staging: https://git.io/fhSmc
simukis has joined #nixos
balsoft has joined #nixos
fusion809 has quit [Remote host closed the connection]
griff_ has joined #nixos
otwieracz has joined #nixos
<otwieracz> Hi!
<otwieracz> I've got LXD running on NixOS machine - and I wanted to create new NixOS containers on this LXD with NixOps. Is this possible?
balsoft has quit [Quit: Konversation terminated!]
<otwieracz> Or, from the other hand, how can I create system container (nixos-container) with its own IP address, bridged with hosts enp1s0?
balsoft has joined #nixos
elgoosy has joined #nixos
balsoft has quit [Ping timeout: 246 seconds]
<otwieracz> privateNetwork (like https://github.com/qknight/nixos-declarative-containers-example/blob/master/configuration.nix#L346) lets you isolate container networking from host, but what I'd really like is bridge VM adapter with br0 on host.
lassulus has quit [Ping timeout: 240 seconds]
lassulus has joined #nixos
Ralith_ has joined #nixos
redj has quit [Read error: Connection reset by peer]
redj has joined #nixos
<otwieracz> I've managed to set it up - last issue I have is lack of default route on container.
<otwieracz> When privateNetwork and hostBridge is used.
init_6 has quit [Ping timeout: 250 seconds]
o1lo01ol1o has joined #nixos
<clever> otwieracz: networking.defaultGateway should still work, within the container itself
<otwieracz> It fails, unfortunately, when starting container unit.
<otwieracz> eloading the following units: container@cloud.service
<otwieracz> Job for container@cloud.service failed because the control process exited with error code.
<otwieracz> But nothing interesting in journal.
o1lo01ol1o has quit [Ping timeout: 250 seconds]
<otwieracz> But I have managed to work it around with:
<otwieracz> networking.interfaces.eth0.ipv4.routes = [
<clever> it would be in the guests journal, i think
<otwieracz> { address = "0.0.0.0"; prefixLength = 0; via = "10.1.0.1"; }
<clever> i just setup private-network and NAT for my containers
<otwieracz> clever: yeah, but I don't want to use NAT.
<otwieracz> And just bridge with hosts adapter
lassulus has quit [Ping timeout: 268 seconds]
lassulus_ has joined #nixos
griff_ has quit [Quit: griff_]
knupfer has joined #nixos
lassulus_ is now known as lassulus
palo has quit [Quit: WeeChat 2.2]
dermetfan has joined #nixos
palo has joined #nixos
teehemka_ has joined #nixos
ddellacosta has joined #nixos
_kwstas has joined #nixos
_kwstas has quit [Client Quit]
mkoenig has quit [Ping timeout: 240 seconds]
viric has quit [Read error: Connection reset by peer]
mkoenig has joined #nixos
agander has joined #nixos
NightTrain has quit [Quit: Lost terminal]
wigust has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @dywedir opened pull request #55072 → oxipng: 2.1.8 -> 2.2.0 → https://git.io/fhSYO
ddellacosta has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @megheaiulian opened pull request #55073 → lxd: fix sh not in path → https://git.io/fhSY3
<{^_^}> [nixpkgs] @sbourdeauducq closed pull request #54995 → llvm: support overriding experimental targets → https://git.io/fhykA
wigust has joined #nixos
wigust has quit [Ping timeout: 240 seconds]
agander has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @roosemberth opened pull request #55074 → youtube-dl: 2019.01.17 -> 2019.01.30.1 → https://git.io/fhSYg
<{^_^}> [nixpkgs] @roosemberth closed pull request #55074 → youtube-dl: 2019.01.17 -> 2019.01.30.1 → https://git.io/fhSYg
wigust has joined #nixos
<{^_^}> [nixpkgs] @roosemberth opened pull request #55075 → youtube-dl: 2019.01.17 -> 2019.01.30.1 → https://git.io/fhSYa
teehemka_ is now known as teehemkay[away]
<{^_^}> [nixpkgs] @roosemberth opened pull request #55076 → youtube-dl: 2019.01.17 -> 2019.01.30.1 → https://git.io/fhSYw
teehemkay[away] has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ThatDocsLady has joined #nixos
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/7e15417e423 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
ThatDocsLady has quit [Remote host closed the connection]
ixxie has joined #nixos
<Orbstheorem> Please ignore #55074
<{^_^}> https://github.com/NixOS/nixpkgs/pull/55074 (by roosemberth, 23 minutes ago, closed): youtube-dl: 2019.01.17 -> 2019.01.30.1
philippD has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhSYS
iqubic` has joined #nixos
<{^_^}> [nixpkgs] @sbourdeauducq opened pull request #55077 → rink: init at 0.4.4 → https://git.io/fhSYH
iqubic has quit [Ping timeout: 240 seconds]
jasongrossman has quit [Remote host closed the connection]
griff_ has joined #nixos
ixxie has quit [Ping timeout: 246 seconds]
dermetfan has quit [Ping timeout: 246 seconds]
Dagger has quit [Excess Flood]
Dagger2 has joined #nixos
Dagger2 is now known as Dagger
Ariakenom has joined #nixos
sondr3 has joined #nixos
<{^_^}> [nixpkgs] @timokau closed pull request #48841 → pythonPackages.sphinx: 1.7.9 -> 1.8.2 → https://git.io/fxiOx
simukis has quit [Quit: simukis]
bobvanderlinden_ has joined #nixos
dermetfan has joined #nixos
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/fhSYp
<{^_^}> [nixpkgs] @dywedir merged pull request #54773 → mill: 0.3.5 -> 0.3.6 → https://git.io/fhiCs
<{^_^}> [nixpkgs] @timokau opened pull request #55078 → sage: add compatibility for sphinx 1.8.3 → https://git.io/fhSYj
simukis has joined #nixos
teehemka_ has joined #nixos
kurimi has joined #nixos
CrazedProgrammer has joined #nixos
<CrazedProgrammer> hi all, how do I go about removing a nonfree package that has been discontinued?
<CrazedProgrammer> from nixpkgs
gagbo has joined #nixos
knupfer has quit [Remote host closed the connection]
<dtz> git rm, commit, PR? (or are there other considerations...?)
<CrazedProgrammer> thanks. should I make a backport PR to 18.09 aswell?
<MichaelRaskin> Well, is it discontinued as in uninstallable anymore?
<CrazedProgrammer> it has been discontinued since september 2018, but the downloads have been removed recently
<MichaelRaskin> Yeah, sounds like a removal PR for both branches
<CrazedProgrammer> all right!
ixxie has joined #nixos
<{^_^}> [nixpkgs] @CrazedProgrammer opened pull request #55079 → astah-community: remove → https://git.io/fhSOC
griff_ has quit [Quit: griff_]
<{^_^}> [nixpkgs] @dotlambda merged pull request #55009 → papis: 0.6 -> 0.7.5 → https://git.io/fhy0R
<{^_^}> [nixpkgs] @dotlambda pushed 5 commits to master: https://git.io/fhSOE
ixxie has quit [Ping timeout: 244 seconds]
<CrazedProgrammer> I have a feeling I should mention it in the release notes...
<MichaelRaskin> Indeed
ambro718 has joined #nixos
CrazedProgrammer has quit [Remote host closed the connection]
obadz has quit [Quit: WeeChat 2.3]
mounty has quit [Remote host closed the connection]
mounty has joined #nixos
ambro718 has quit [Quit: Konversation terminated!]
obadz has joined #nixos
averell has quit [Ping timeout: 252 seconds]
silver has joined #nixos
daifa has joined #nixos
tilpner has joined #nixos
<tilpner> Hi, does anyone happen to know the conditions for the initrd to advance to the next stage?
<tilpner> I'm stuck in ssh-to-initrd, and I feel it should boot, but cryptsetup-askpass doesn't agree
<otwieracz> Hm. I am using ssh to initrd and it works…
<tilpner> Yes, it worked fine here too
<tilpner> But then I replaced a disk, so the /dev/disk/by-id path doesn't exist anymore
<tilpner> So cryptsetup-akspass can't unlock that device
<tilpner> I can do it manually, but it doesn't advance the boot
<tilpner> Maybe I should be using /dev/disk/by-partlabel instead
<tilpner> But before I can switch to that, I need to get this booting at least once
averell has joined #nixos
<MichaelRaskin> Do you actually need to boot?
<rnhmjoj> is there an env variable or an option to control the nixos channel temporarily? i want to test building my configuration on a different channel without invoking nix-channel
<MichaelRaskin> Mount everything by hand, chroot, Nix as root can build stuff even without daemon?
rprije has quit [Ping timeout: 250 seconds]
<ckauhaus> rnhmjoj: nix-build -I nixpkgs=...
<ben> rnhmjoj: my "test this config" thing is NIX_PATH=nixpkgs=...:nixos-config=... nixos-rebuild ...
<rnhmjoj> thank you, does that support the <> notation?
Makaveli7 has joined #nixos
<tilpner> MichaelRaskin: Maybe not, I've thought about that, but it seemed tricky too. I would need to copy the derivations into the chroot, and I don't know if that would mess up any state if done without the daemon running
<tilpner> Do you think I can just nix-copy-closure to /mnt/nix and not break anything?
<MichaelRaskin> I think if you nix-copy-closure from inside (so no need to ssh as root), that would be fine
<MichaelRaskin> In my experience daemon is critical only for privilege arbitrage; multiple as-root no-daemon Nix invocations grab enough locks not to trample each other
<pbb> tarballs should generally be preferred over fetchgit, because they are faster, right?
<MichaelRaskin> Faster for both sides, yes
<MichaelRaskin> In the sense that exactly the content you want is gathered and even pre-compressed
Daifa_ has joined #nixos
daifa has quit [Ping timeout: 256 seconds]
<pbb> who can instruct OfBorg to build packages? is it allowed for all contributors, or only for selected ones?
<MichaelRaskin> All committers + a whitelist of contributors
<pbb> thanks
ambro718 has joined #nixos
<ambro718> What are current possibilities for seamlessly running normal Linux binaries on NixOS?
<{^_^}> [nixpkgs] @timokau merged pull request #55078 → sage: add compatibility for sphinx 1.8.3 → https://git.io/fhSYj
<{^_^}> [nixpkgs] @timokau pushed to staging « sage: add compatibility for sphinx 1.8.3 (#55078) »: https://git.io/fhS3U
<tilpner> ambro718: steam-run is good
teehemka_ is now known as teehemkay[away]
<tilpner> (And buildFHSUserEnv, which steam-run is built with)
<ambro718> This kind of solution would not work for me well. I mean without wrappers.
<ambro718> i.e. deployed system-wide
teehemkay[away] has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tilpner> You can deploy wrapper system-wide
<tilpner> But there's also patching with patchelf
<ambro718> I basically want to have /lib/ld-stuff and other /lib symlinks in the root fs.
<wedens> another option is systemd-nspawn container
<wedens> if nothing else works
<ambro718> again I don't want monkey patching, but a base environment that can run normal binaries
<tilpner> ambro718: I think I saw that somewhere, but I've already failed at finding it
<wedens> buildFHSUserEnv should have that, shouldn't it?
<ambro718> "buildFHSUserEnv provides a way to build and run FHS-compatible lightweight sandboxes."
<ambro718> I don't want a sandbox, I want a system environment with FHS symlinks.
<tilpner> (But you might make everyone glare at your for doing that)
<tilpner> *at you
<ambro718> thanks
darkf has quit [Quit: Connection closed for inactivity]
Guest52746 has quit [Ping timeout: 268 seconds]
<tilpner> MichaelRaskin: I got the derivations imported, but the chroot doesn't have a network connection to build it
<tilpner> (That's with nixos-enter)
<{^_^}> [nixpkgs] @peti pushed 13 commits to haskell-updates: https://git.io/fhS3m
<{^_^}> [nixpkgs] @peti pushed 4 commits to haskell-updates: https://git.io/fhS3O
<{^_^}> [nixpkgs] @peti pushed 7 commits to master: https://git.io/fhS33
<tilpner> Ah, with --option substituters "" --option sandbox false it builds fine
<{^_^}> [nixpkgs] @petabyteboy opened pull request #55080 → cbfstool: 4.7 -> 4.9 → https://git.io/fhS3G
sinner has joined #nixos
sinner is now known as Guest43281
<tilpner> Yay, boot advances past cryptsetup-askpass. Thank you, MichaelRaskin :)
Judson has joined #nixos
Judson is now known as Guest28063
<MichaelRaskin> Right, I forgot that on actual NixOS setting up networking after not-fully-booting might not be completely trivial, sorry
<{^_^}> [nixpkgs] @vcunat pushed to staging-next « haskellPackages.servant: fixup build after 86f646da »: https://git.io/fhS38
hcs^ has joined #nixos
hcs^ has quit [Max SendQ exceeded]
hcs^ has joined #nixos
hcs^ has quit [Max SendQ exceeded]
alex`` has joined #nixos
<tilpner> MichaelRaskin: The entire system was still in /mnt/nix, it only built a few config files, so it didn't any caches
Ariakenom has quit [Quit: Leaving]
<tilpner> I still wonder what could have made this disk replacement smoother
<MichaelRaskin> Yeah, normally just replacing disk ID should work without network-hitting builds
<tilpner> Maybe it should have been replaced without shutting down? I don't know if Hetzner can even physically do that
Ariakenom has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
<tilpner> But configuring luks by-id seems quite annoying
Ariakenom has joined #nixos
<tilpner> So, uhh, any suggestions from experience? from-partlabel should work fine, from-path could probably eat data if not careful
Guest43281 has quit [Ping timeout: 240 seconds]
<Daifa_> Hi. I'm trying to show an image in octave but it yields an error that there was something missing while building octave. A quick search reveals that probably graphicsmagick is missing and that this should be reported during building. In fact in nix log it is reported. default.nix for octave has graphicsmagicks in its buildInputs but I do not find it when printing $buildInputs in a nix-shell. I feel like it should find magicks there. Am
<{^_^}> [nixpkgs] @primeos pushed to master « tdesktop: 1.5.9 -> 1.5.11 »: https://git.io/fhS3E
<tilpner> Daifa_: Your message was cut off after ". Am"
teehemka_ has joined #nixos
<Daifa_> "Am I missing something? " was the question.
orivej has quit [Ping timeout: 240 seconds]
boogiewoogie has joined #nixos
Makaveli7 has quit [Quit: Leaving]
<tilpner> #54929 seems relevant
<{^_^}> https://github.com/NixOS/nixpkgs/issues/54929 (by MasseGuillaume, 3 days ago, open): octave cannot read image (imread)
<laas> does anyone here use carnix? the documentation for it seems to be outdated, so I'm not exactly sure how to use it
<laas> I somehow managed to make a Cargo.nix file using `carnix generate-nix --standalone --src ./.`, but I can't build the resulting .nix file
<tilpner> What's the error?
<tilpner> My Cargo.nix was generated without --standalone
Makaveli7 has joined #nixos
<laas> ah, it says to use --standalone in the documentation, so I used it
<laas> it says it couldn't find the crate `nix`
delroth has quit [Ping timeout: 250 seconds]
<laas> tilpner: it says I have to use --standalone if I want to build it with nix-build
<laas> ` --standalone Produce a standalone file, which can be built directly with nix-build.`
<tilpner> It builds with cargo build, right?
<laas> I have actually not tried
<laas> should I just nix-shell Cargo.nix?
<tilpner> No
<laas> what do you mean then?
<laas> I built it without carnix fine
<tilpner> And you've not made any changes to source or Cargo.toml since?
<tilpner> I don't quite remember if carnix consumes Cargo.loc
<tilpner> But if it does, you want that to be up-to-date
<tilpner> Which you do by cargo update/cargo build
<tilpner> Specifying a dependency on "nix" in Cargo.toml may not be enough
<tilpner> And afterwards you need to regenerate Cargo.nix of course
sinner has joined #nixos
sinner is now known as Guest67377
superherointj has joined #nixos
knupfer has joined #nixos
fendor has joined #nixos
<laas> tilpner: well I did `cargo update`, and then `carnix generate-nix --src ./.` and then `carnix build`, but it fails
<laas> `nix-build -E "..."` does not work either
<tilpner> I'll need more than "..."
tilpner has quit [Quit: WeeChat 2.3]
tilpner has joined #nixos
<laas> `(callPackage ./Cargo.nix {}).sd`
<tilpner> And what's the error? Paste the full thing
<tilpner> ,paste
<{^_^}> Use a website such as [ https://gist.github.com/ http://ix.io/ https://hastebin.com/ https://paste.ee/ ] or similar services to share anything that's longer than a couple lines.
<laas> it's actually very short, just `error: attribute 'atomic_write' missing, at /home/las/Repoer/sd/Cargo.nix:16:8`
<laas> it tries to access it from the `cratesIO.crates` set
<laas> is there no up-to-date guide on how to use carnix?
fendor_ has joined #nixos
<laas> I feel like I have to dive into the source code to figure it out
<tilpner> Yeah, carnix can be hard to use if it doesn't work out-of-the-box :/
<tilpner> But that seems weird
<tilpner> Which carnix are you using?
<{^_^}> [nixpkgs] @vcunat pushed to staging-next « pythonPackages.wxPython: fixup build »: https://git.io/fhS3z
fendor has quit [Ping timeout: 244 seconds]
<tilpner> And which nixpkgs version do you have installed?
<{^_^}> [nixpkgs] @dtzWill merged pull request #55072 → oxipng: 2.1.8 -> 2.2.0 → https://git.io/fhSYO
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fhS3g
<laas> I am using the nixos-unstable channel
delroth has joined #nixos
<tilpner> laas: And "carnix -V" says what?
<gagbo> If I want to use the nixpkgs-unstable version of one package (here, qtile), can I create a simple nix expression using the unstable channel in my home.nix ? I can't find anything about that in the manual for now
<laas> 0.9.2
<tilpner> ,unstable gagbo
<tilpner> laas: That seems fine :/
<gagbo> thanks tilpner
<laas> tilpner: how do you exactly build your own rust projects?
<laas> I tried building `sd`
<laas> It works completely fine if I just do it the normal way, but I'd rather do it with nix
<tilpner> Is sd public? Link?
<laas> it's a sed replacement
<laas> super useful
bpa has joined #nixos
fendor_ has quit [Ping timeout: 240 seconds]
<tilpner> laas: Aha, error[E0433]: failed to resolve: maybe a missing `extern crate nix;`?
simukis has quit [Remote host closed the connection]
<laas> yeah, but I have no idea how to fix that
<laas> what does it mean
<laas> I was thinking it might be because `sd` is edition 2015, but it's 2018
<tilpner> Yep, same thought
<tilpner> I'll try it with a newer rust
<boogiewoogie> hey, I want to install an old wine version that seems to not be in the repo anymore -- 1.9.6 specifically. how would you do this?
dermetfan has quit [Quit: WeeChat 2.3]
<gchristensen> boogiewoogie: me? I'd find the .nix file in nixpkgs, `git log ./that/file.nix` and find where 1.9.6 was in there
<tilpner> boogiewoogie: 16.09 had 1.9.16, if that works for you
upsaday has joined #nixos
eadwu has joined #nixos
<gagbo> Is it normal that I only have nixos-unstable listed in nix-channels --list after adding the unstable channel ? I thought there would also be the stable channel used in /etc/nixos/configuration.nix
sondr3 has quit [Quit: sondr3]
<laas> gagbo: root and normal users have their own channels
<laas> `sudo nix-channel --list`
<gagbo> I did use the sudo one
<tilpner> laas: I can see your atomic_write error now too
<gagbo> basically it went 1) have stable chan in etc/config and nixos-install 2) sudo add nixos-unstable channel and update it 3) sudo nixos-rebuild switch complains there's no nixos channel 4) sudo nix-channel --list doesn't show nixos
<gagbo> I did not reinstall that VM yet to see what the output of sudo nix-channel --list is just after nixos-install and reboot.
<boogiewoogie> gchristensen tilpner: thanks! yes, 1.9.16 would be fine! how would I access 16.09's packages?
<laas> tilpner: maybe we should just ask the guy who made carnix
<laas> pmeunier
<laas> wonder if he's on irc
<tilpner> He is, but he takes a while to reply
<laas> doesn't seem so
<tilpner> idle: 118 days, 20 hours 29 minutes 08 seconds, signon at: Wed, 05 Sep 2018 10:29:22
simukis has joined #nixos
<tilpner> So that might take a bit of patience
Daifa_ has left #nixos [#nixos]
<tilpner> ,unstable boogiewoogie
<tilpner> boogiewoogie: That, but with nixos-16.09 instead of unstable
<tilpner> Which is going to cost you a bunch of disk space and eval time, but at least it's going to work
simukis has quit [Client Quit]
<gchristensen> or just checkout the git repo, and git checkout release-16.09
<tilpner> gchristensen: git checkouts are imperative and manual :/
<tilpner> Or did you mean to do them with fetchgit?
<gchristensen> depends on the scope of what boogiewoogie wants :)
<boogiewoogie> tilpner: perfect, thanks again :)
<{^_^}> [nixpkgs] @vcunat pushed to staging-next « python*Packages.pkgconfig: try avoiding multiple breakages »: https://git.io/fhS3h
<tilpner> laas: I tried building with beta and nightly, but that makes it worse: error[E0463]: can't find crate for `core`
acarrico has quit [Ping timeout: 240 seconds]
simukis has joined #nixos
<laas> lol
<laas> I think I'll make an issue on the pijul repo
<tilpner> Not yet
<tilpner> laas: Wait 5 minutes
<{^_^}> [nixpkgs] @moyamo opened pull request #55081 → Link subdirs.el into emacs-packages-deps site-lisp → https://git.io/fhSsf
<tilpner> laas: It's possible carnix doesn't support the "edition" entry yet
<tilpner> But I think I can work around that
teehemka_ is now known as teehemkay[away]
<boogiewoogie> one more thing: is there a canonical way to resolve the PATH collision since I now have old and current wine installed in parallel?
teehemkay[away] has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
griff_ has joined #nixos
griff__ has joined #nixos
<laas> boogiewoogie: priorities?
<laas> you can set a flag with nix-env
griff_ has quit [Ping timeout: 250 seconds]
griff__ is now known as griff_
<boogiewoogie> I'd probably prioritize the current one; gonna need the old one only sparsely
<tilpner> laas: Okay, I ended up with https://gist.github.com/0a781a87fcff1f83cf08ce91e38dade0
<tilpner> laas: This doesn't work. It sets edition 2018 for everything, which breaks 2015 crates
pointfourone has joined #nixos
<tilpner> laas: You could manually specify which crates to build with 2018, but that's annoying
<boogiewoogie> laas: do you mean setting the old one's active flag to false? seems to be the most fitting after skimming the manpage
dsiypl4_ has joined #nixos
superherointj has quit [Quit: Leaving]
<laas> `nix-env --set-flag priority $priority $package` boogiewoogie
<laas> tilpner: huh
<laas> thanks, I'll make an issue
b has joined #nixos
<boogiewoogie> laas: since it's just executables, is there any functional difference between setting the lower priority one inactive and giving it a lower priority flag?
orivej has joined #nixos
<laas> boogiewoogie: I don't think so
<laas> I am not sure however
<laas> I am myself quite a noob
<laas> been barely one month since I started using nix
<boogiewoogie> laas: alright. still, thanks! :)
delroth has quit [Quit: WeeChat 2.3]
delroth has joined #nixos
teehemka_ has joined #nixos
tikznutsa has joined #nixos
blankhart has joined #nixos
<pbb> I want to define an nginx virtualhost location, but only if the virtualhost was defined in another module before. Is that possible?
<pbb> I always get recursion errors, which makes sense since I want to set the attribute I'm checking
<clever> pbb: not easily, would be simpler to define a custom option, then have both modules check that
<pbb> okay, thanks
<pbb> clever++
<{^_^}> clever's karma got increased to 86
klntsky has quit [Quit: WeeChat 1.6]
oida has quit [Remote host closed the connection]
knupfer has quit [Quit: knupfer]
dermetfan has joined #nixos
dermetfan has quit [Client Quit]
pbb has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
pbb has joined #nixos
boogiewoogie has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @dotlambda pushed 2 commits to staging-next: https://git.io/fhSsF
noonien has joined #nixos
knupfer has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #55084 → compton-git: 5 -> 5.1-rc2, fix crashes and other regressions → https://git.io/fhSGf
dsiypl4__ has joined #nixos
<noonien> hello folks
<noonien> is it possible to list all files from a package?
<noonien> or, find a file?
<gchristensen> what is it you want to ccomplish?
dsiypl4_ has quit [Ping timeout: 268 seconds]
<noonien> i want to find the equivalent of /usr/local/share/doc/polybar/config
<noonien> i could do a find in /nix/store, however, i remember reading about a command that does just what i ned
<noonien> need*
<tilpner> tree $(nix-build --no-out-link '<nixpkgs>' -A polybar)
<clever> nix-locate and nix-index
<tilpner> Which leads to /share/doc/polybar/config
<clever> you can also `nix-store -qR /run/current-system | grep polybar` if your current-system depends on it
<noonien> clever: hmm, i've got neither
sicklorkin has joined #nixos
<noonien> also, `command-not-found` seems to not work, i get `DBI connect('dbname=/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite','',...) failed: unable to open database file at /run/current-system/sw/bin/command-not-found line 13. cannot open database `/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite' at /run/current-system/sw/bin/command-not-found line 13.`
<clever> noonien: do you have a channel called nixos on root?
<noonien> i've never logged in as root on this install, without sudo
<clever> noonien: `sudo -i` and then `nix-channel --list`
<noonien> so, i don't know, it should have the defaults
<noonien> yes, it appears to have it
<clever> noonien: ls -lh /nix/var/nix/profiles/per-user/root/channels/nixos
pointfourone has left #nixos ["Leaving"]
<dhess> I know there's home-manager for homedir management, what's the other one?
<noonien> clever: http://vpaste.net/VW2PW
shibboleth has joined #nixos
<clever> noonien: nix eval nixpkgs.lib.version
<noonien> "18.09.1985.749a3a0d00b"
<clever> not that old, but it could be a bug in the nixos-channel-scripts, when the channel was made
endformationage has joined #nixos
<{^_^}> [nixpkgs] @timokau merged pull request #55075 → youtube-dl: 2019.01.17 -> 2019.01.30.1 → https://git.io/fhSYa
<{^_^}> [nixpkgs] @timokau pushed commit from @roosemberth to master « youtube-dl: 2019.01.17 -> 2019.01.30.1 (#55075) »: https://git.io/fhSGW
<{^_^}> [nixpkgs] @timokau merged pull request #55076 → [18.09] youtube-dl: 2019.01.17 -> 2019.01.30.1 → https://git.io/fhSYw
<{^_^}> [nixpkgs] @timokau pushed commit from @roosemberth to release-18.09 « youtube-dl: 2019.01.17 -> 2019.01.30.1 (#55076) »: https://git.io/fhSGl
tikznutsa has quit [Quit: Page closed]
orivej has quit [Ping timeout: 268 seconds]
locallycompact has joined #nixos
<noonien> what is an "overlay"? i see it used in quite a few configurations
Ariakenom has quit [Read error: Connection reset by peer]
<simpson> noonien: Technically, an overlay is anything with a specific signature that can rewrite an object. In practice, they are extended package sets which can be composed onto ("overlaid onto") nixpkgs or other package sets.
<simpson> ,overlay
<{^_^}> Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
upsaday has quit [Quit: Leaving]
<simpson> The manual has a chapter on overlays: https://nixos.org/nixpkgs/manual/#chap-overlays
<noonien> oh, awesome, thanks!
<noonien> hmm, is the recommended way of adding your own packages? and not creating your own channel?
<clever> noonien: yeah, i use overlays any time i add packages to my systems
<noonien> i'm guessing this is so there are no surprises when having packages with different versions
<{^_^}> [nixpkgs] @timokau merged pull request #55015 → kdevelop: 5.2.4 -> 5.3.1, bump llvm version used from 3.8 to 7 → https://git.io/fhyKH
<{^_^}> [nixpkgs] @timokau pushed commit from @aanderse to master « kdevelop: 5.2.4 -> 5.3.1, bump llvm version used from 3.8 to 7 (#55015) »: https://git.io/fhSGa
upsaday has joined #nixos
<simpson> noonien: It depends on your goals. For example, I have a goal to minimize my private package set, so I develop my derivations on nixpkgs directly and plan to send them upstream.
knupfer has quit [Ping timeout: 250 seconds]
<noonien> i see, cool
teehemka_ is now known as teehemkay[away]
<noonien> command-not-found seems to be working after a `nixos-rebuilt switch --upgrade`
<clever> noonien: nix-channel --update, is what fixed it (and --upgrade runs that behind the scenes)
<noonien> yeah, i wanted to update the pacakges as well
<noonien> i have some weird issue sometime, the display just freezez, the mouse works, i can hear sound, the keyboard seems to work as well(ctrl+alt+f1 interrupts the sound, but the screens are still frozen, and sysrq+REISUB still works)
<noonien> this might be because i've not installed the intel microcode yet, or perhaps the intel/nvidia driver, i guess this doesn't happen by default
<clever> noonien: sounds like a gpu issue, not a microcode issue
<clever> noonien: i would check `journalctl -b -1` to see the logs from the previous boot
<clever> noonien: or ssh in from another machine, while its crashed, and read the journal
sicklorkin has quit [Ping timeout: 246 seconds]
<tilpner> noonien: Did you get "station" running?
<noonien> yeah, i'll give that a try, i can't see anyting relevant in the journal
eadwu has quit [Quit: WeeChat 2.3]
<noonien> tilpner: not yet, sticked with rambox atm, will start working on that once i'm done with getting the OS in working order
<noonien> appimage-run .AppImage did not seem to work
<noonien> it was complaining about missing a dependency when ld-ing
<tilpner> Sure, that can be fixed
<noonien> and i'm unsure if ld works as with normal systems, can i just install the dependency system-wide and it'll work?
<tilpner> No, you'd have to add it to appimage-run or appimageTools
<noonien> yeah, that's what i figured
<tilpner> Which can be done per-package
nbp_ is now known as nbp
<laas> is there a way to get network access in build scripts?
<clever> laas: what do you need network access for?
<laas> cargo needs network access
<laas> it's not actually a "functional" build then, I suppose
<clever> laas: use the rust framework in nixpkgs, which will handle giving cargo network at the right time
<laas> it doesn't work
<laas> it doesn't work with 2018 edition just like carnix
<clever> laas: the only way to get network access, is to define the hash of $out, and its best to do that on only the part that downloads source, or your going to have fun updating the hash every time you make a new compile
<symphorien> laas: nixos-unstable has a recent enough rustc for 2018 edition
<clever> fixed-output derivations have the following attrs, outputHashMode, outputHashAlgo, outputHash
teehemkay[away] has quit [Quit: ZZZzzz…]
<symphorien> So buildRustPackage should work
<laas> symphorien: that's not the problem though
<tilpner> laas: Huh? I would have expected buildRustPackage to work there, given that it uses cargo instead of a Nix reimplementation
<laas> it messes up with my dependencies
<laas> tilpner: it can't find one of my dependencies
<tilpner> Can you share your current working default.nix?
<laas> I use the crate rename feature
<laas> I don't have one
orivej has joined #nixos
<laas> I'm trying to make one
<laas> clever: how do I generate a hash?
<tilpner> Not as in "it works", but as in "I'm working on this"
<symphorien> It is using cargo-vendor under the hood
<clever> laas: simplest answer is to just give the wrong one, and then let nix tell you what the right one is
<clever> ,tofu laas
<laas> tilpner: my current script just does `env HOME=$(realpath .) cargo build`
<{^_^}> laas: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<laas> oh that's easy
<tilpner> laas: So you're not using buildRustPackage?
<symphorien> Check if cargo-vendor supports renamed dependencies
<laas> yeah currently not
<tilpner> You should try that
<symphorien> ^
<clever> > let f = pkgs.hello.src; in "${f.outputHashMode} ${f.outputHashAlgo} ${f.outputHash}"
<{^_^}> "flat sha256 0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i"
<{^_^}> [nixpkgs] @dtzWill opened pull request #55087 → cairo: 1.16.0 -> 1.17.2 → https://git.io/fhSGS
<clever> laas: outputHashMode can either be flat or recursive, the rest are simple enough to figure out
<laas> oh cargo vendor doesn't work actually
eadwu has joined #nixos
* clever heads back off to bed
joncfoo has quit [Read error: Connection reset by peer]
markus1189 has quit [Ping timeout: 250 seconds]
avn has quit [Ping timeout: 246 seconds]
nikolah has joined #nixos
avn has joined #nixos
markus1189 has joined #nixos
<noonien> what happens if i do, `services.redshift.enable = true;` and `services = { openssh.enable = true };` in another file? will redshift be disabled?
<gchristensen> no
<noonien> i see, what happens if they're in the same file?
sicklorkin has joined #nixos
<gchristensen> you can't have two definitions of `services` in one file :)
agander has joined #nixos
<ben> generally either the parser will yell at you or it's going to do something reasonable
<gchristensen> so you'dhave to do services.redshift.enable = true; services.openssh.enable = true; or, services = { redshift ... openssh... }
<noonien> i see, interesting
moope[m] has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
petersjt014_ has joined #nixos
sicklorkin has quit [Ping timeout: 244 seconds]
petersjt014 has quit [Ping timeout: 240 seconds]
__red___ is now known as __red__
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<{^_^}> [nixpkgs] @vcunat pushed 69 commits to staging-next: https://git.io/fhSZq
teehemka_ has joined #nixos
philippD has joined #nixos
<{^_^}> [nixpkgs] @vcunat closed pull request #45276 → ninja: 1.8.2 -> 2018-04-10 → https://git.io/fNj9P
justanotheruser has quit [Ping timeout: 252 seconds]
balsoft has joined #nixos
balsoft has quit [Ping timeout: 244 seconds]
<laas> is there any easy way to install a .nix file?
Guest72058 has joined #nixos
<laas> I know I can build it and then install the result, but it seems like to me there should be a single command to do it
Guest72058 has left #nixos [#nixos]
aanderse has quit [Remote host closed the connection]
sicklorkin has joined #nixos
<{^_^}> [nixpkgs] @delroth opened pull request #55088 → nixos/tasks/encrypted-devices: fix regression from #54637 → https://git.io/fhSZR
<{^_^}> [nixpkgs] @dtzWill closed pull request #55087 → cairo: 1.16.0 -> 1.17.2 → https://git.io/fhSGS
<{^_^}> [nixpkgs] @dotlambda pushed 2 commits to master: https://git.io/fhSZ2
<Orbstheorem> How often is the branch `release-18.09` published as a channel?
<Orbstheorem> I just ran nix-channel --update and last commit is from yesterday
<gchristensen> every time the tested jobset passes
<Orbstheorem> Where can I read about it?
<gchristensen> http://howoldis.herokuapp.com/ has some info
petersjt014 has joined #nixos
petersjt014_ has quit [Ping timeout: 250 seconds]
ckauhaus has quit [Quit: WeeChat 2.2]
mizu_no_oto has joined #nixos
iqubic` has left #nixos ["ERC (IRC client for Emacs 26.1)"]
kurimi has quit [Ping timeout: 246 seconds]
daifa has joined #nixos
ryantrinkle has joined #nixos
<{^_^}> [nixpkgs] @andir opened pull request #55089 → [18.09] qt511: 5.11.1 -> 5.11.3, qt56 & qt59 security fixes → https://git.io/fhSZ9
<jluttine> Syncthing service failing to build on nixos-unstable. I can run `nix-shell -p syncthing` without problems, but enabling the syncthing systemd service fails to build syncthing. really weird.. any ideas what could cause this?
shibboleth has quit [Quit: shibboleth]
bpa has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @vbgl opened pull request #55090 → ocamlPackages.ocp-index: 1.1.7 -> 1.1.8 → https://git.io/fhSZd
teehemka_ is now known as teehemkay[away]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/5c986a45ced (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
<infinisil> jluttine: My guess is that your nixpkgs is different for nixos-rebuild and nix-shell
__Sander__ has joined #nixos
gagbo has quit [Quit: I'm out !]
leothrix has quit [Ping timeout: 268 seconds]
<jluttine> i don't even know how to achieve that :o
<jluttine> could that happen by accident somehow?
<{^_^}> #55091 (by jluttine, 55 seconds ago, open): syncthing service fails to build
teehemkay[away] has quit [Quit: ZZZzzz…]
gagbo has joined #nixos
thequux[m] has joined #nixos
teehemka_ has joined #nixos
akapav has joined #nixos
akapav has quit [Client Quit]
akapav has joined #nixos
Ariakenom has joined #nixos
<infinisil> jluttine: Cannot reproduce
<infinisil> What's /etc/nixpkgs?
dermetfan has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
akapav has quit [Quit: ZNC 1.6.5 - http://znc.in]
akapav has joined #nixos
akapav has quit [Remote host closed the connection]
akapav has joined #nixos
<jluttine> infinisil: my local checkout of nixpkgs
<infinisil> Yeah, but like, version and stuff. That's the main thing that influences nix builds
hc1^ has joined #nixos
<jluttine> infinisil: i put some info in that issue report. is there something more you'd like to see and how can i get that info?
<infinisil> jluttine: I mean, at least the exact git version of the checkout, you didn't put that in the issue
<jluttine> infinisil: ah true, that provided command doesn't print that info. my commit is: f2a1a4e93be2d76720a6b96532b5b003cc769312. it's current nixos-unstable
knupfer has joined #nixos
drakonis1 has joined #nixos
fusion809 has joined #nixos
knupfer has quit [Remote host closed the connection]
<infinisil> Yeah so I can't reproduce it, there must be something in your setup that makes this fail
knupfer has joined #nixos
werbitt has joined #nixos
<{^_^}> [nixpkgs] @samueldr opened pull request #55092 → Reverts kernel bump + patch → https://git.io/fhSnO
ottidmes has joined #nixos
<jluttine> infinisil: oohps, yeah, i figured it out... quite embarassing.. i had defined an overlay for syncthing in my service definition.. sorry for the trouble, and thanks for the help!
<infinisil> jluttine: Np :)
<edef> where are fosdem folk going for dinner? cc fpletz
daifa has quit [Ping timeout: 256 seconds]
<infinisil> edef: #nixos-fosdem
mizu_no_oto has joined #nixos
<noonien> hmm, is there a nordvpn package?
xkapastel has joined #nixos
<gchristensen> looks like it is just openvpn, noonien
<noonien> hmmm
<noonien> it seems they only provide a .deb
<noonien> gonna have to take a look inside, maybe it's just a simple binary
<noonien> this is how google-chrome is also downloaded if i'm not mistaken
<noonien> are there helpers to work with deb files?
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
<gchristensen> you don't need their binary at all https://nordvpn.com/tutorials/openwrt/openvpn/
werbitt has quit [Quit: werbitt]
<gchristensen> laas: did you open this bug? https://bugzilla.kernel.org/show_bug.cgi?id=202497
teehemka_ is now known as teehemkay[away]
werbitt has joined #nixos
teehemkay[away] has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @costrouc opened pull request #55093 → python3Packages.sly: init at 0.3 → https://git.io/fhSn8
ddellacosta has joined #nixos
<laas> gchristensen: yes
mizu_no_oto has joined #nixos
<laas> why do you ask?
<gchristensen> do you happen to have the commit which broke it?
<laas> Nope, actually not
<laas> gchristensen: if you're looking to fix it you can just increase the limit
<laas> it's defines in include/uapi/linux/binfmts.h or something
<laas> s/defines/defined
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ddellacosta has quit [Client Quit]
<laas> I'm not sure if you need to increase anything else too though
<gchristensen> no, not looking to fix it, but am trying to mkae the bug report as helpful as possible :)
realrokka has quit [Ping timeout: 240 seconds]
philippD has joined #nixos
<samueldr> (dtz is pretty sure it's the right commit)
<laas> samueldr: have you looked at the age of that commit?
<samueldr> no
<laas> it's from 2017!
<laas> 2017!
<samueldr> oh right
<samueldr> that's definitely not right then
<aszlig> has anyone written a vm test so we can bisect?
realrokka has joined #nixos
<samueldr> I don't think so
kp__ has joined #nixos
<aszlig> samueldr: okay, then i'll write one
<noonien> can i make a nix-shell in which i can install ld-able libs?
<samueldr> but from the comments, it's easy to trigger
<{^_^}> [nixpkgs] @samueldr merged pull request #55092 → Reverts kernel bump + patch → https://git.io/fhSnO
<{^_^}> [nixpkgs] @samueldr pushed 3 commits to master: https://git.io/fhSnw
<noonien> i want to run factorio for the firs time, and i get an error, this is a strace of the run: http://vpaste.net/dylRJ
<dtz> well FWIW I went through every commit between 4.20 and 5 that would have changed this (with various heuristics)-- I have notes on how that went but remember finding a commit where Linus was like "lol actually enforce the limit like we should have been doing oops this is so broken" and that commit (linked from PR) seemed like it? Anyway it's actually not a part of code that changes a lot ^_^ so shouldn't be too bad to chase down
<dtz> +1 to VM test
<dtz> (and bisect run)
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
kurimi has joined #nixos
<laas> what was the effective limit before anyway?
<laas> it just truncates it it seems...
<laas> why does nixos even work then?
Makaveli7 has quit [Ping timeout: 252 seconds]
acarrico has joined #nixos
<gchristensen> does our postgres auto-vacuum?
<{^_^}> [nixpkgs] @zimbatm opened pull request #55094 → pkgconfig: rename to pkg-config → https://git.io/fhSn6
<gchristensen> "yes"
<laas> I'm trying to update the cargo-vendor package, but I can't get carnix to work of course...
<laas> it's 10 versions behind currently!
<laas> apparently my bug is fixed in 0.1.23
<{^_^}> alexcrichton/cargo-vendor#176 (by Laaas, 2 hours ago, open): Doesn't work with renamed crates
<aszlig> samueldr, laas, dtz, gchristensen: bisecting
mizu_no_oto has joined #nixos
<gchristensen> do you have a cool setup for bisecting the kernel?
<aszlig> gchristensen: well, just a vm test and a git clone of the kernel tree
<noonien> does `nix search` not show unfree packages?
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
<gchristensen> ,unfree noonien
<{^_^}> noonien: You cannot install your unfree software? See https://nixos.wiki/wiki/FAQ/unfree
<noonien> i had export NIXPKGS_ALLOW_UNFREE=1
<samueldr> `warning: using cached results; pass '-u' to update the cache` <- were you passing -u?
<noonien> oh
<noonien> didn't think that only the free packages were cachd
<noonien> awesome, -u worked
<noonien> (or it might have been setting ~/.config/nixpkgs/config.nix)
<noonien> since i also did that
<noonien> oh, no, it needed the -u
<noonien> nix search finds the package nixpkgs.factorio, nix-env -i factorio doesn't find anything though
<noonien> i'm confused
<laas> noonien: nix-env -iA nixos.factorio
werbitt has quit [Quit: werbitt]
<noonien> that worked
<noonien> thanks!
darkf has joined #nixos
dermetfan has quit [Ping timeout: 250 seconds]
<noonien> hmm, can i ses the nix files nix-env uses when i install a package?
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/2ff7ef373e5 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<laas> noonien: well you can access the expressoins
<laas> just do `nix repl` to open a REPL
<laas> then `pkgs = import <nixpkgs> {}`
<laas> you can access `pkgs.factorio` then
<noonien> hmm, i get a `«derivation /nix/store/v51wjdidxdr1yn0xag1v38bmyhxz5n45-factorio-alpha-0.16.51.drv»`
<tilpner> And if you do "nix repl '<nixpkgs>'" you don't need to import it manually anymore
<noonien> that files seems to be machine generated
<tilpner> noonien: nix edit -f '<nixpkgs>' hello
Guest67377 has quit [Ping timeout: 268 seconds]
<tilpner> That can be used to find source files corresponding to attributes
VeryParanoidPers has joined #nixos
<tilpner> Default opens with $EDITOR. With EDITOR=echo it will print the path, EDITOR=cat will print the file
<noonien> aah! cool!
<noonien> yeah, i opened with nano and i was really confused
<noonien> yeah, as I suspected, it's an older version of https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/factorio/default.nix
<VeryParanoidPers> Hey is it normal that a installation of the Nix Package Manager Ends up like this: https://pastebin.com/raw/7gZqTDBx
<symphorien> VeryParanoidPers: enable user namespaces
_kwstas has joined #nixos
worldofpeace has joined #nixos
_kwstas has quit [Client Quit]
<gchristensen> or disable sandboxing, by adding `sandboxing = false` to /etc/nix/nix.conf
<{^_^}> [nixpkgs] @vbgl merged pull request #55054 → parity: 2.2.7 -> 2.2.8 → https://git.io/fhSel
<{^_^}> [nixpkgs] @vbgl pushed 3 commits to master: https://git.io/fhScC
<VeryParanoidPers> symphorien: Nix really depending on user namespaces: https://github.com/subgraph/oz/issues/11#issuecomment-163396758
<{^_^}> [nixpkgs] @vbgl opened pull request #55095 → smplayer: 18.10.0 -> 19.1.0 → https://git.io/fhScW
<gchristensen> yes, nix depends upon user namespaces, unless you turn it off as described
<gchristensen> it is not a security feature
_kwstas has joined #nixos
<gchristensen> you shouldn't build untrusted code with Nix
sicklorkin has quit [Ping timeout: 246 seconds]
<VeryParanoidPers> ok
VeryParanoidPers has quit [Quit: Page closed]
<aszlig> gchristensen: this is how i bisect: https://gist.github.com/aszlig/10d4a8541826d7cc922bcc86476f5376
<aszlig> gchristensen: so for every revision, i update the rev and let it run on my build farm
<aszlig> gchristensen: i'm using the github mirror here because the kernel.org git is very slow
_kwstas has quit [Ping timeout: 250 seconds]
ddellaco_ has quit [Remote host closed the connection]
<aszlig> s/every revision/& in the bisect/
<aszlig> gchristensen: i could have used "src = lib.cleanSource ~/linux" here as well, but that would take ages to upload to the build machines
<aszlig> so it's only useful if you bisect locally
<{^_^}> [nixpkgs] @samueldr pushed to master « linux: Removes the previously removed raspberry pi patch »: https://git.io/fhScE
upsaday has quit [Remote host closed the connection]
upsaday has joined #nixos
JosW has joined #nixos
cantstanya has quit [Ping timeout: 256 seconds]
griff_ has quit [Ping timeout: 244 seconds]
cantstanya has joined #nixos
_kwstas has joined #nixos
sicklorkin has joined #nixos
brejoc has joined #nixos
balsoft has joined #nixos
gagbo has quit [Quit: I'm out !]
sicklorkin has quit [Ping timeout: 240 seconds]
<simpson> Any ideas on how to get opendht to have Python support? The door seems to be opened by adding `python3Packages.cython` to buildInputs, but the rest of the build doesn't work. Similar packages with bundled Python bindings haven't revealed useful hints.
<simpson> Example failing build log: https://bpaste.net/show/006b2b81f991
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/3b698b537c5 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<simpson> I also have more fixes for this package, like a version bump and doc/manpage fixes, but this is a real stumper, and I'm not interested if I can't use the Python bindings.
balsoft has quit [Ping timeout: 244 seconds]
balsoft has joined #nixos
<{^_^}> [nixpkgs] @markuskowa merged pull request #55068 → qownnotes: 19.1.8 -> 19.2.0 → https://git.io/fhStK
<{^_^}> [nixpkgs] @markuskowa pushed 3 commits to master: https://git.io/fhScF
fosterop[m] has joined #nixos
<fosterop[m]> Anyone at fosdem?
brejoc has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<ottidmes> simpson: maybe base the package on https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/opendht
<tilpner> fosterop[m]: #nixos-fosdem is apparently a thing
_kwstas has quit [Quit: _kwstas]
<fosterop[m]> Yeah, saw it. Thanks
<simpson> ottidmes: What are you seeing in there? I'm not seeing anything relevant.
q6AA4FD has quit [Ping timeout: 246 seconds]
<ottidmes> simpson: its stating both cpython, and python as optional dependency for the bindings, and I see an explicit -DOPENDHT_PYTHON=ON
<ottidmes> assuming cython is cpython?
balsoft has quit [Ping timeout: 245 seconds]
<rain1> gnu/stubs-32.h: No such file or directoryHow do I get a nix shell with 32 bit toolchain around? I tried some stuff but I keep getting the error
<rain1> oops
<rain1> the end of the message came at th estart
<simpson> ottidmes: Cython is not CPython.
<symphorien> rain1: do you want multilib or only 32bit support
<symphorien> ?
<fosterop[m]> I am usinc riot. Is there still a way to join nixos-fosdem?
<simpson> ottidmes: Cython is a language that compiles to CPython extension modules. By including Cython, the configure script decides to enable Python support. Without Cython, the configure script won't set up the Python module.
<ottidmes> simpson: I noticed "configure: WARNING: Cython not found - continuing without python support"
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fhSCI
<{^_^}> [nixpkgs] @markuskowa merged pull request #55095 → smplayer: 18.10.0 -> 19.1.0 → https://git.io/fhScW
martinb_ has joined #nixos
balsoft has joined #nixos
justanotheruser has joined #nixos
kp__ has quit [Quit: WeeChat 2.3]
<fosterop[m]> #nixos-fosdem seems abandoned. If you are at fosdem and see this message today or tomorrow, please reply.
fpob has quit [Ping timeout: 264 seconds]
<tilpner> fosterop[m]: There are 25 people in that channel, are you sure you made Matrix join the right one?
<fosterop[m]> I am using riot, but only this nixos channel was listed.
fpob has joined #nixos
<fosterop[m]> I joined also via webchat.freenode.
<fosterop[m]> But that doesn't work offline.
balsoft has quit [Ping timeout: 240 seconds]
<tilpner> You could try something like #freenode_nixos-fosdem:matrix.org
<tilpner> But I don't use that bridge
<simpson> ottidmes: I have a version that doesn't do that but still has all of the rest of the problems. I don't understand what you're suggesting.
balsoft has joined #nixos
<simpson> > python3Packages.python.withPackages (ps: [ ps.cython ])
<{^_^}> "<derivation /nix/store/gcz4ciaql3r2airhacjw2ybj50sbgmj9-python3-3.7.2-env.drv>"
<ottidmes> simpson: I am suggesting just to reproduce what they have, I tried just now, but we are missing a dependency in Nixpkgs, its in it, but only as a subdependency of another package, not as a standalone package, the restbed dependency
werbitt has joined #nixos
werbitt has quit [Client Quit]
balsoft has quit [Ping timeout: 240 seconds]
domenkozar has quit [Ping timeout: 250 seconds]
domenkozar has joined #nixos
balsoft has joined #nixos
<fosterop[m]> Tilpner, that string doesn't work.
laalf_ has joined #nixos
<tilpner> You may want to get a proper IRC client setup, IME bridges from other protocols aren't much fun
shabius has quit [Quit: Leaving]
<ottidmes> simpson: I got it building with cmake now (still in process)
shabius has joined #nixos
simukis has quit [Quit: simukis]
<ottidmes> simpson: ok, got to the tests, which failed horribly due to a linker error, so I am disabling tests for now
q6AA4FD has joined #nixos
dermetfan has joined #nixos
agander has quit [Quit: Leaving]
s2mitrov has joined #nixos
upsaday_ has joined #nixos
<simpson> ottidmes: Ah, that's an interesting idea.
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #55061 → all-packages.nix: remove `res.` (next stage super) → https://git.io/fhSIX
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/fhSC1
<simpson> I have no idea whether they intend for make or cmake.
shabius has quit [Quit: Leaving]
<s2mitrov> so the current iterm2 available in nixpkgs (unstable channel) is pretty outdated - is that something I can update? or is it not really recommended to install iterm2 through nixpkgs
<ottidmes> simpson: it keeps failing on libopendht.so.1.7.4: undefined reference to `TLSv1_1_server_method' and similar for me though, I thought to add maybe openssl to the buildInputs, but that does not seem to work, I probably have to explicitly list them in some parameter, its probably assuming openssl is installed
upsaday has quit [Ping timeout: 250 seconds]
<simpson> ottidmes: Interesting.
<ottidmes> simpson: if it helps, here is what I got so far (ugly, I know, its pasted everything together, first make it work, then clean it up): https://gist.github.com/msteen/d9016a2b55a4c64c062e01d0886d0837
<ottidmes> simpson: ah got the missing dependency, its right there in the build log, although it builds without it
<ottidmes> gnutls rather than openssl
<ottidmes> hmm, its already listed
<ottidmes> but its supposed to contain the library its complaining about not being there
<ghostyy> how do i get more framebuffers
<ghostyy> ive got ctrl-alt-f1 through f6 and then f7 is the one the display manager uses
<ottidmes> simpson: I added the build log: https://gist.github.com/msteen/d9016a2b55a4c64c062e01d0886d0837
<ghostyy> but id like for the display manager to use f10 and f1-f9 to be so i can log in at the console with them
<ghostyy> is this possible in nixos?
<laas> This probably isn't the response you want, but I think relying on the built-in console in Linux is a bad idea...
<laas> you're not supposed to use that except when you have no choice
<simpson> ottidmes: I'm really not sure whether the cmake build is viable. If you can get it working, then great.
<tilpner> ghostyy: boot.extraTTYs
<ghostyy> tilpner, thank you!
<tilpner> ghostyy: Also: services.xserver.tty
<ottidmes> simpson: since its in the official Arch Linux repos like that, I assume it is
<simpson> Hypothetically, if I had a single-file JS application somewhere besides NPM, how would I arrange that into nixpkgs? How would I adapt the existing procedures?
<ghostyy> this is perfect
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #55097 → all-packages: Just refer to `self`, not `super`, or `res` → https://git.io/fhSC7
oida has joined #nixos
fragamus has joined #nixos
<ottidmes> simpson: seems you will have to package this one too: https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/p11-kit
upsaday_ has quit [Remote host closed the connection]
upsaday_ has joined #nixos
balsoft has quit [Ping timeout: 244 seconds]
<fpletz> edef: sorry, saw your message about dinner just now
<simpson> ottidmes: Oh, that's probably packaged somewhere. I was rather hoping that you had specific insights into building CPython extension modules, as that's seemingly all that's broken on the original Nix expression.
balsoft has joined #nixos
fragamus has quit [Read error: Connection reset by peer]
Laalf has quit [Remote host closed the connection]
<ottidmes> simpson: not that I could find, I rather dislike Python, so I am afraid I do not have the insights you are looking for.
justanotheruser has quit [Ping timeout: 264 seconds]
<simpson> ottidmes: Bet I dislike it more: https://gist.github.com/MostAwesomeDude/eee722a254adc100062c1921cfa4dfc9 But no worries.
s2mitrov has quit [Quit: leaving]
eadwu has quit [Quit: WeeChat 2.3]
JosW has quit [Ping timeout: 252 seconds]
eadwu has joined #nixos
laalf_ has left #nixos [#nixos]
shabius has joined #nixos
kurimi has quit [Ping timeout: 250 seconds]
sondr3 has joined #nixos
eadwu has quit [Quit: WeeChat 2.3]
balsoft has quit [Ping timeout: 268 seconds]
jasongrossman has joined #nixos
evck has joined #nixos
locallycompact has quit [Ping timeout: 245 seconds]
eadwu has joined #nixos
JosW has joined #nixos
<gchristensen> aszlig: nice!
<aszlig> 40 revisions left to test after this (roughly 6 steps)
bl1nk has joined #nixos
iddt has joined #nixos
sondr3 has quit [Quit: sondr3]
<neonfuz> uh oh...
<neonfuz> just rebooted and kernel panicking to can't find init
<neonfuz> and I booted into live usb, mounted my root, and /etc/nixos is a symlink :/
<neonfuz> where is my nixos config?
<neonfuz> I was gonna just do a rebuild, is it possible running rebuild-switch could have nuked my config?
<tilpner> neonfuz: It's possible, but should only happen if you asked it to. Do you have backups or git?
<neonfuz> oh here, I Think I do have a backup
<neonfuz> I'm lucky though, I used to store my config in /etc
<neonfuz> and I do use git but I don't back it up anywhere like github
<neonfuz> only to sync between my computers which I do infrequently
<tilpner> Did you do anything weird that would cause all that (init and etc)?
<neonfuz> no, besides a nix-store --optimise
<neonfuz> nothing funny though
<neonfuz> I remember not being able to find the window I ran nix-store --optimise in lol... I wonder if I accidentally closed it and corrupted something?
<neonfuz> none of my older generations worked either
<tilpner> That sounds very bad, and probably caused the "can't find init" thing
<neonfuz> yeah, it's just a guess
sondr3 has joined #nixos
<neonfuz> I think I can fix it, I found my config
<tilpner> Keep more backups :/
<teeAyy> odd question but does nixos have an os-tan yet?
<tilpner> Is there a way to make hydra not keep a binary cache?
<tilpner> I already use nix-serve, so I don't see any point in maintaining /var/lib/hydra/cache
<tilpner> (Other than speed, which I don't think I need for just a few cache consumers)
evck has quit [Ping timeout: 250 seconds]
__monty__ has joined #nixos
Cale has quit [Ping timeout: 250 seconds]
sondr3 has quit [Ping timeout: 250 seconds]
<infinisil> Oh my god, minecraft server is really bad at accepting a declarative config file
upsaday_ has quit [Remote host closed the connection]
<infinisil> When it starts, it reads and parses server.properties, then writes to that exact file a newly generated config file, with all defaults filled out, and a timestamp at the top when it generated it..
upsaday_ has joined #nixos
realrokka has quit [Remote host closed the connection]
<ottidmes> simpson: got it to build, I just hope you don't need the tools, but only the python bindings and shared library
laalf_ has joined #nixos
realrokka has joined #nixos
<apajx> For user configuration the folder listed here: https://nixos.wiki/wiki/FAQ/How_can_I_install_a_proprietary_or_unfree_package%3F needs to be ~/.nixpkgs/config.nix right? I tried the one listed and it didn't seem to work, but the corrected folder/file I list there did
<aszlig> gchristensen: 3 steps to go
<ottidmes> simpson: hmm, sorry, after inspection it seems to still give an error, the build process just succeeds while giving the error :(
<simpson> ottidmes: I have no idea what I need. I'm exploring various DHT options.
elgoosy has quit [Ping timeout: 240 seconds]
<ottidmes> simpson: the CMakeLists.txt file is pretty understandable, it seems that you somehow need to convince it to install it to a different directory than that of python itself: https://github.com/savoirfairelinux/opendht/blob/master/python/CMakeLists.txt#L11
<steveeJ> is the "systemd.nspawn" configuration expected to work? creating a config there doesn't seem to have any effect on my system
mounty has quit [Remote host closed the connection]
mounty has joined #nixos
<__monty__> NixOS not being repped at fosdem anymore?
Cale has joined #nixos
<tilpner> Well, uhh, pretend I never asked a question, it was stupid
lnikkila has joined #nixos
gagbo has joined #nixos
rprije has joined #nixos
<{^_^}> [nixpkgs] @flokli merged pull request #55066 → ifdtool: init at 4.9 → https://git.io/fhStO
<{^_^}> [nixpkgs] @flokli pushed 2 commits to master: https://git.io/fhSlY
JosW has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
tiksnut has joined #nixos
laalf_ is now known as laalf
laalf has quit [Quit: ZNC 1.7.1 - https://znc.in]
taktaktak has joined #nixos
<ottidmes> simpson: I am pretty confident this one should work: https://gist.github.com/msteen/d9016a2b55a4c64c062e01d0886d0837
laalf has joined #nixos
<ottidmes> simpson: yep it finished building succesfully and contains: lib/python3.6/site-packages/opendht-1.7.4-py3.6-linux-x86_64.egg/opendht.cpython-36m-x86_64-linux-gnu.so
<simpson> ottidmes: Nice! Can you `import opendht`?
<simpson> At this point, you could own this if you like. The newest version is 1.8.1.
<ottidmes> simpson: not sure how :P guess adding it to python packages
<ottidmes> simpson: no thank you, I rather have nothing to do with maintaining any python
taktaktak has quit [Quit: Mutter: www.mutterirc.com]
<aszlig> gchristensen: i'm going to finish the bisect, but i already have the suspicion that 8099b047ecc431518b9bb6bdbba3549bbecdc343 might be the commit that introduced the regression
<ottidmes> simpson: how about that, simply `nix-shell -p opendht python3` and then `>>> import opendht` worked :)
<{^_^}> [nixpkgs] @etu opened pull request #55098 → gitea: 1.7.0 -> 1.7.1 → https://git.io/fhSlo
endformationage has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @flokli opened pull request #55099 → cbfstool: 4.7 -> 4.9 → https://git.io/fhSlK
knupfer has quit [Remote host closed the connection]
<tiksnut> I have a question. I am currently working on creating a local nix package for my st configuration. Mainly also to learn how nix works
<neonfuz> ugh, the only nixos iso I had around had nix < 2.0
<neonfuz> and I have limited data here
<tiksnut> So I create a nix script just like in the manual (with import ...). When defining buildInputs just like how nixpkgs/st does it nix-build keeps telling me 'undefined variable libX11'
<ottidmes> could you share what you are doing in a paste?
<ottidmes> ,paste tiksnut
<{^_^}> tiksnut: Use a website such as [ https://gist.github.com/ http://ix.io/ https://hastebin.com/ https://paste.ee/ ] or similar services to share anything that's longer than a couple lines.
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #55097 → all-packages: Just refer to `self`, not `super`, or `res` → https://git.io/fhSC7
<{^_^}> [nixpkgs] @Ericson2314 pushed 3 commits to master: https://git.io/fhSlP
<{^_^}> [nixpkgs] @fpletz merged pull request #55099 → cbfstool: 4.7 -> 4.9 → https://git.io/fhSlK
<{^_^}> [nixpkgs] @fpletz pushed 2 commits to master: https://git.io/fhSlX
<ottidmes> tiksnut: you probably have to use callPackage or add the dependency as an attribute on the top level attrset argument
<tiksnut> Sure :) Here it is https://paste.ee/p/cuUXf
<ghostyy> is there a way to get an arm cross-compilation environment in nixos?
<tiksnut> The src folder is where the local clone of st lives
<ottidmes> tiksnut: libX11 is under xorg, so you will have to add xorg.libX11 in buildInputs
<ottidmes> tiksnut: same for the other two X libraries
<tiksnut> Oh wow that solved it
<tiksnut> Haha thanks!
<simpson> ottidmes: Very nifty. I'll play with this later. Thanks.
<steveeJ> ghostyy: I once set this up in a classroom environment. if you're brave you can follow this: https://github.com/htwg-syslab/nix-expressions/blob/master/shells/default.nix#L445-L471
ambro718 has quit [Quit: Konversation terminated!]
<steveeJ> given this was over a year ago things may be different now
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<ghostyy> ah...
<steveeJ> so the nspawn settings do put "/etc/systemd/nspawn/webserver.nspawn" in place, but `systemctl cat systemd-nspawn@webserver` don't show the changes of that snippet
<ghostyy> thank you but i am not that brave, so i will probably just use an lxd container :p
philippD has joined #nixos
griff_ has joined #nixos
<steveeJ> ghostyy: fair enough ;)
orivej has joined #nixos
<{^_^}> [nixpkgs] @etu merged pull request #55098 → gitea: 1.7.0 -> 1.7.1 → https://git.io/fhSlo
<{^_^}> [nixpkgs] @etu pushed 2 commits to master: https://git.io/fhSl7
<steveeJ> arianvp: may I bug you about systemd-nspawn containers? in https://github.com/NixOS/nixpkgs/issues/51076 it looks like you've thought about this for a bit. can you tell if the current state of these overrides is broken?
<{^_^}> #51076 (by arianvp, 9 weeks ago, open): nixos/nspawn: Do not use makeUnit to create systemd.nspawn files, causes it to have bogus configuration options
<aszlig> gchristensen: yep, 8099b047ecc431518b9bb6bdbba3549bbecdc343 is the commit introducing the regression
<infinisil> tiksnut: How did you decide on that nick?
<infinisil> Because it's oddly close to another certain someone
<tiksnut> My motherlanguage is Dutch and I have been heavily playing with the tikz library in Latex
<drakonis1> infinisil: the question we all wanted to ask
<infinisil> Hehe alright
<tiksnut> Is there something I need to know? ^^
<infinisil> tiksnut: The person with the similar nick is niksnut, Eelco Dolstra, the creator of Nix
<tiksnut> Damn
leothrix has joined #nixos
<infinisil> And NixOS and more
<tiksnut> Cool. Some time ago I setup an account under the name tikznut but I still need to install an irc client on my fresh install
<infinisil> At least this doesn't mess up autocomplete, unlike the recent encounter with infinii
<tiksnut> Yes. That was my main concern when choosing a nickname ^^
griff__ has joined #nixos
griff_ has quit [Ping timeout: 268 seconds]
griff__ is now known as griff_
<steveeJ> could I use the containers.<name>.path option to pass a regular rootfs instead of using the systemd.nspawn option?
<steveeJ> I can't get systemd.nspawn port mappings to work
drakonis1 has quit [Quit: WeeChat 2.3]
__monty__ has quit [Quit: leaving]
<apajx> is there an easier way to get libstdc++ in a nix-shell aside from following this: https://github.com/rust-lang/rust/issues/55979
<apajx> nix-shell -p rustup is not enough for me
shabius has quit [Quit: Leaving]
orivej has quit [Remote host closed the connection]
orivej has joined #nixos
<infinisil> apajx: Is that not easy enough?
eadwu has quit [Quit: WeeChat 2.3]
<apajx> it is easy, it just didn't feel very nix-like if that makes sense
<apajx> I guess I could build a shell.nix that pulls it in though
<infinisil> apajx: Yeah that's what people usually do
<apajx> cool, cool, I still have much to learn
<infinisil> The nix-shell -p thing is really just if you need something simple quickly
<{^_^}> [nixpkgs] @bsima opened pull request #55100 → urbit: 0.6.0 -> 0.7.1 → https://git.io/fhS8m
<simpson> Hm. Trying to locally hack on a Node package but just using a local src isn't working; the override doesn't do anything. Why? `pkgs.nodePackages_8_x.dht-storejs.overrideAttrs (_: { src = ./.; })`
<simpson> Adding to the puzzle, if I change the src dir's contents, then the derivation hashes also change. But the built package is the same.
justanotheruser has joined #nixos
orivej has quit [Remote host closed the connection]
<infinisil> simpson: Unfortunately nodePackages doesn't seem to use standard stdenv phases: https://github.com/NixOS/nixpkgs/blob/4bc42aa4d0ee8aae1e2b8288228c02992310ad31/pkgs/development/node-packages/node-env.nix#L517-L536
<infinisil> Oh wait
orivej has joined #nixos
tiksnut has quit [Quit: Page closed]
ddellacosta has joined #nixos
shabius has joined #nixos
<infinisil> Oh huh, I think it uses standard phases after all
justanotheruser has quit [Excess Flood]
justanotheruser has joined #nixos
<aszlig> infinisil, simpson: yeah, i think node env could be a bit better if it comes to overriding
<aszlig> like eg. for introducing patches, you need to override preRebuild, eg: https://github.com/headcounter/shabitica/blob/master/node-overrides.nix
justanotheruser has quit [Client Quit]
justanotheruser has joined #nixos
<aszlig> simpson: you could try setting unpackPhase to null, which should work for specifying a different src
<ottidmes> simpson: know that you can always make it work outside Nix, you just have to configure the global directory to something different than the /nix/store path, that is what I use for the few nodejs packages I need on NixOS, tried to package them all properly, but there was always a problem or another, just so you know that that alternative works
<simpson> ottidmes: Nothing today has been of need. This is all exploration.
<simpson> aszlig: Interesting idea. I'll give that a try in a bit.
<aszlig> like eg: somenodepkg.overrideAttrs (lib.const { src = ./.; unpackPhase = null; })
<simpson> aszlig: Did not result in immediate satisfaction. I'll poke at it a bit more.
<aszlig> simpson: mhm, the problem is that the compositionScript basically ignores the different source
rcshm_ has joined #nixos
<ekleog> do we have any tools to profile nix code?
<infinisil> ,profile ekleog
<{^_^}> infinisil: Did you mean profiling?
<{^_^}> ekleog: Use NIX_COUNT_CALLS=1 and/or NIX_SHOW_STATS=1 to profile Nix evaluation
<ekleog> nice, thanks!
rcshm has quit [Ping timeout: 268 seconds]
<ekleog> hmm I don't get it, `NIX_COUNT_CALLS=1 NIX_SHOW_STATS=1 nix-shell default.nix --run echo` literally outputs nothing
<aszlig> simpson: hm... so basically you need to .override (not overrideAttrs) the args to buildNodePackage, but not sure if it's even overridable
<ekleog> now, maybe I'm looking at the wrong place, because `nix-build default.nix` is fast and `nix-shell default.nix` is awfully slow
<aszlig> simpson: because the src is unpacked during composePackage
<aszlig> simpson: which gets the src attribute from the arguments in buildNodePackage
<simpson> Hmm. Interesting.
<aszlig> simpson: so .overrideAttrs won't help here, because the unboxed attribute from the arguments is already part of the installPhase
<simpson> Oh well. That's too bad.
<aszlig> ah, it should be overridable
sinner has joined #nixos
<aszlig> simpson: does "pkg.override { src = ./.; }" work?
sinner is now known as Guest65401
<simpson> aszlig: Yes! Wow. Could have sworn that I'd tried that, but I guess not. Well done.
upsaday_ has quit [Remote host closed the connection]
orivej has quit [Read error: Connection reset by peer]
upsaday_ has joined #nixos