noobly_ has joined #nixos
<noobly_> why would the command "gist <(nix-build -E 'let p = import <nixpkgs> {}; in p.lib.callPackageWith (p) (import ./racket.nix) {}')" fail to gist because it creates and empty file?
<tilpner> Try "gist <(nix-build -E 'let p = import <nixpkgs> {}; in p.lib.callPackageWith (p) (import ./racket.nix) {}' 2>&1)"
<clever> noobly_: you can also nix-build .... 2>&1 | gist -
<tilpner> A no-changes $ nixos-rebuild switch timing comes out at 6.55s user 0.88s system 7% cpu 1:36.48 total for me. That seems way too long, and most of its time is spent in "setting up tmpfiles", which calls out to systemd-tmpfiles. Did anyone have a similar problem?
<clever> also, it sounds like your making that way too complex
<clever> noobly_: nix-build -E 'with import <nixpkgs> {}; callPackage ./racket.nix {}'
<noobly_> clever: is the hyphen in "gist -" necassary? and ok I'll try that more simplified version
<clever> yeah, the - tells it to read stdin
<tilpner> Yeah, that callPackageWith was my fault, I corrected that locally
<noobly_> ok, trying again. this command takes hours on my machine, so it's hard to troubleshoot
<luigy> hmm how would I go in order to get an environment in which the haskell dependencies of more than a single package get included? instead of haskellPackages.servant.env I would have something like (combineHaskellDeps [haskellPackages.servant, haskellPackages.servant-server]).env
<noobly_> thanks clever and tilpner!
davidak has joined #nixos
<clever> luigy: nix-shell -p '(haskellPackages.ghcWithPackages (ps: with ps; [ servant servant-server ]))'
<clever> i think
<luigy> almost except that would require building those two packages instead of just giving an environment in which I can build either, right?
<davidak> mbrgm: i tried to install your restic package on darwin, but it's marked as linux only
<davidak> do you know that it will not work?
<clever> luigy: ah yeah, that would provide servant and servant-server, not their deps
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vQ08V
<NixOS_GitHub> nixpkgs/master 5c45f34 Jörg Thalheim: pythonPackages.intervaltree: fix evaluation
NixOS_GitHub has left #nixos []
<clever> luigy: its not really simple to join the deps of 2 things
<luigy> yeah, this doesn't look as simple as I thought
<clever> luigy: i'm guessing that in addition to providing servant, it will also provide the libs servant uses
<clever> luigy: so it might allow building servant, but it may also complicate which servant will be loaded
pxc1 has quit [(Ping timeout: 276 seconds)]
<luigy> yeah, ideally i would like to just be able to access the haskell libraries for a package and use the method you suggested
<luigy> clever: but I didn't see a way to do that either
<luigy> so that I can work on two packages simultaeneously
<luigy> I have been manually building these envs, but was wondering if there an automated way
<clever> you would need to get a list of haskell deps from both, concat them, and make a new env using ghcWithPackages
<luigy> yes!
<luigy> that
<luigy> I guess manually grep them from the cabal files
<clever> cabal2nix will generate a nix file, then you could manualy merge the 2 nix files
<luigy> probably easier to extend cabal2nix to give me something for this use case
<luigy> oh wait, what?!
aneeshusa has quit [(Ping timeout: 260 seconds)]
<clever> just open both nix files it makes, and paste the list of inputs in one into the other
<luigy> oh I thought there was a function that did that already
<luigy> yeah, that is basically my current workflow
madsa has joined #nixos
madsa has quit [(Client Quit)]
<tilpner> noobly_ - Do you intend to use DrRacket?
<noobly_> tilper: yeah, that's precisely what I want to do
<tilpner> noobly_ - Oh, okay. I just figured out how to build your package locally, and it didn't work
eacameron has joined #nixos
<tilpner> noobly_ - It'll probably turn out the same for you, so you might as well abort your build
<tilpner> (Or keep it running, who knows)
<noobly_> haha ok, I'll keep it running with my fingers crossed. So should I be working from dr racket source code or something?
<tilpner> noobly_ - For now, you could try to build minimal Racket and use another editor, if you need it quickly
<tilpner> Or you can keep trying to get DrRacket working, but your iteration time is ridiculously high...
phinxy has quit [(Read error: Connection reset by peer)]
<noobly_> Ok, I'll look into a minimal and if that fails I'll try something else
<tilpner> I'm currently trying to build minimal for 32-bit
<noobly_> how do you install things in nix shell?
<noobly_> tilpner: oh ok, well awesome - that's a big essential for me
<clever> noobly_: you generally avoid installing things in nix
<tilpner> What do you mean? nix-shell provides you with the specified packages, but you don't install anything after you get the nix-shell
<clever> noobly_: what nix-shell command are you using, and what do you want different?
<noobly_> clever: oh ok, thank you. I am nix-shell (maybe I shouldn't be) and realized I needed asciidoctor, but I'll just do it in another tab :-)
<noobly_> I am not nix-shell, lol, but was in it rather
<tilpner> noobly_ - That appeared to work, and much faster. I used https://gist.github.com/7a5a9a72a642f3f331660a757cf10c26
<noobly_> Awesome tilpner, you got it working on 32 bit?
<tilpner> noobly_ - Maybe. I used callPackage_i686, and it built successfully, but I don't know if that'll translate to working on your system
ris has quit [(Ping timeout: 276 seconds)]
<noobly_> tilpner: so, as far as using that file goes, I would just need to place it wherever, but include "racket.nix" in my imports section of the configuration.nix file?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] volth opened pull request #27029: syncthing: typo (master...syncthing-typo) https://git.io/vQ04i
NixOS_GitHub has left #nixos []
<tilpner> No, didn't you already import it into your systemPackages as I told you?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #27029: syncthing: typo (master...syncthing-typo) https://git.io/vQ04i
NixOS_GitHub has left #nixos []
noobly_ has quit [(Ping timeout: 260 seconds)]
hapticFeels has joined #nixos
<clever> tilpner: yikes, i just lost all network for over 5 minutes from my nixos-rebuild!
hapticFeels has quit [(Client Quit)]
mudri has quit [(Ping timeout: 240 seconds)]
<tilpner> Oh, not good :c
<clever> tilpner: nixos-rebuild wanted to restart the dhcpcd and wpa_supplicant services, so it shut the network off
<clever> oh, and it wants to restart the zram service
<clever> so it burns the cpu for 5 minutes, uncompressing all ram
<tilpner> I don't think I ever had problems like that with NetworkManager
<clever> then systemd-askpass blocked
tmaekawa has joined #nixos
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
s33se has joined #nixos
s33se_ has quit [(Ping timeout: 240 seconds)]
<tilpner> Hmm, is there a way to fetch a file exactly once without nixpkgs?
marsel has quit [(Ping timeout: 240 seconds)]
<tilpner> fetchTarball checks for updates every few hours, it seems
<clever> tilpner: fetchurl
<clever> but you will need to know the hash of the file
thc202 has quit [(Ping timeout: 248 seconds)]
<tilpner> Oh, that's fine. I'm just using this to fetch fetchgit :D
<clever> thats usualy done like this
<clever> (import <nixpkgs>{}).fetchgit
<clever> if you want to fetch a copy of nixpkgs
<tilpner> I'm trying to build a setup that works with NIX_PATH=""
<tilpner> So I fetch a bootstrap nixpkgs that I only use fetchgit from
<clever> yeah
<clever> why cant you fetch nixpkgs over http?
<tilpner> Do you mean outside of my Nix config?
<tilpner> I'd like to have all that managed by Nix
noffle has left #nixos ["WeeChat 1.9-dev"]
<clever> the version of nixpkgs is typicaly controlled with nix-channel
<clever> and some parts like nixos and nix-build cant easily be told to fetch from somewhere dynamicaly
<tilpner> Oh, it's working fine. Here's my bootstrap.nix: https://gist.github.com/e4e65b3c37903b414eb68b440c397662
<tilpner> It's just trying to access the network a little too often
<clever> what do you keep in $NIX_PATH?
<clever> ah, i think i see what your doing
<clever> tilpner: what if you just do NIX_PATH=nixpkgs=/bootstrap.nix
<clever> and as long as that returns a nixpkgs set, and obeys the config arg, it will work
Wizek_ has quit [(Ping timeout: 248 seconds)]
Wizek has quit [(Ping timeout: 248 seconds)]
<tilpner> I'm confused. How would that help eliminate network access?
<clever> it would still need to import 2 nixpkgs, but it would exist within $NIX_PATH, so all tools use it by default
<clever> and by giving both fetches a hash, it will only do the network access once
aneeshusa has joined #nixos
erictapen has joined #nixos
mtncoder[m] has joined #nixos
mbrgm has quit [(Ping timeout: 248 seconds)]
mbrgm has joined #nixos
lambdamu_ has joined #nixos
lambdamu has quit [(Ping timeout: 240 seconds)]
<eacameron> I finally needed this bad enough that I just made it.
<eacameron> A CLI to watch as many *different* glob patterns as you want and each pattern can be given a command to run when it changes
<eacameron> See usage
<eacameron> I hope to get this into nixpkgs soon
<tilpner> clever - I just tried that. I switched to a configuration that doesn't have a display-manager and am now sitting at a console. I can't get your suggestion to work, what exactly should bootstrap.nix return in your idea?
noobly_ has joined #nixos
<clever> tilpner: something like this
<clever> example a: { ... }@args: import /home/clever/nixpkgs args
<clever> example b: { ... }@args: import (builtins.fetchtarball { url=...; sha256=...; }) args
<clever> hmmm, but that might not work with <nixpkgs/nixos> now that i think of it, would need some experimentation
Supersonic112 has quit [(Disconnected by services)]
<clever> eacameron: sounds neat
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
<eacameron> clever: Yah it's nothing special. Took an hour or so to make (mainly cuz there was already a Haskell lib that did 99% of the work)
<eacameron> clever: I'm still baffled this doesn't exist in some GNU project
<eacameron> inotifywait is pretty rough
aneeshusa has quit [(Quit: WeeChat 1.9)]
<noobly_> tilpner: hey, sorry computer froze for awhile, but earlier you said "No, didn't you already import it into your systemPackages as I told you?", by this you mean include "racket.nix" in the enviroment.systemPackages function within configuration.nix? Apologies if you've already outlined this, I don't remember this
silentcuboid has quit [(Ping timeout: 260 seconds)]
<clever> noobly_: environment.systemPackages = [ (pkgs.callPackage ./racket.nix {}) ];
jgertm has quit [(Ping timeout: 276 seconds)]
tmaekawa has quit [(Read error: Connection reset by peer)]
tmaekawa has joined #nixos
<swflint> Is there any way to get pkg-config to work in non-nix builds?
jsgrant has joined #nixos
watersoul has quit [(Ping timeout: 240 seconds)]
<clever> swflint: are you using nix-shell?
<swflint> No, should I?
<clever> yes
<clever> pkg-config only works inside nix-shell and nix-build
<swflint> Okay, what do I need to know then?
<clever> and installing pkg-config will never make it work right
<clever> installing libraries wont make them visible to pkg-config either
<clever> you must nix-shell -p pkgconfig libfoo libbar
<swflint> Okay.
<pie_> clever, do you have the link for your binary wrapper template thing?
<swflint> I'm still getting the same error.
<clever> pie_: the patchelf one?
ebzzry has joined #nixos
<pie_> yeah
<clever> swflint: what nix-shell command did you use?
<swflint> Just nix-shell -p zsh
<clever> swflint: that shell wont have a working pkgconfig in it
<clever> you must tell nix-shell to include pkgconfig
<swflint> Okay, and I assume the relevant libraries?
<clever> yep
<pie_> thanls
<pie_> clever, buildinputs right?
<swflint> Still getting the error (syntax error near unexpected token on ./configure)
<pie_> clever, sorry, what was the thing again that makes finding libraries/names easier?
leothrix has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
leothrix has joined #nixos
<pie_> thanks
<pie_> it was b
leothrix has quit [(Remote host closed the connection)]
<pie_> now i need to remember where i put it heh
<swflint> So, I'm passing the packages and pkgconfig to build, still not working, can't find the file.
<clever> swflint: what is the new nix-shell command, the command your running inside that, and the error?
<swflint> Found the problem (quoting).
<pie_> clever, it doesnt like buildInputs = [ gcc "mesa-17.1.2" ]
<pie_> not such package
<pie_> *does not exist
<clever> pie_: it must be a name without the version
<clever> and typicaly, you use mesanoglu for this part
<pie_> ah. and then it gets an arbitrary version? >.>
<clever> mesa_noglu
<clever> it gets the version that is the default in the current nixpkgs
<pie_> wait am isuppose to do the buildinputs or the librarypaht
<pie_> sorry i cant spell :P
<clever> oh right, and buildInputs is 100% useless when patching things
<clever> it has to go into the RPATH, via makeLibraryPath in my gist
<swflint> Any idea what package would have X11/extensions/scrnsaver.h?
<jtojnar> What is the easiest way to turn GitHub repository containing a derivation into a channel?
<clever> swflint: xlibs.libXScrnSaver
<swflint> No Such File or Directory.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Infinisil opened pull request #27030: luksroot: fix typo (master...luks-typo) https://git.io/vQ001
NixOS_GitHub has left #nixos []
<clever> swflint: you must add that to the nix-shell args
<Infinisil> ^^^ #relevantPRs
<clever> swflint: -p xlibs.libXScrnSaver
<swflint> It is.
<clever> swflint: what is the exact nix-shell commant you ran?
<swflint> Nix-shell -p xlibs.libXScrnSaver --run 'gcc -lXss -lX11 x11idle.c -o x11idle'
watersoul has joined #nixos
<clever> swflint: try without the --run, and then manualy do the gcc inside of that
nh2 has quit [(Quit: Leaving.)]
<swflint> Same error.
<clever> can you copy/paste everything in the terminal to a pastebin and link that?
watersoul has quit [(Read error: Connection reset by peer)]
<pie_> clever, best thing for libstdc++.so.6? :/
<clever> pie_: gcc.cc.out i think
<clever> try gcc.cc first
<clever> swflint: what does "type gcc" say?
watersoul has joined #nixos
<pie_> well i just freed 3 gigs with garbage collection, hope i didnt need any of that
<swflint> In /home/swflint/.nix-profile/bin/gcc
<clever> pie_: that is why you and swflint should always build things with nix-build, and never try to do things by hand
<clever> swflint: and also, installing gcc doesnt work, you must nix-shell -p gcc
<clever> pie_: nix can only know about things being in-use by other things in /nix/store
leothrix has joined #nixos
<pie_> ugh haha, i always mess up with ld
<joepie91> new strategy for learning how complex Nix code works: try to convert it to JS manually
<pie_> *ldd ; if the path is shorter i think i didnt fix it yet
<clever> pie_: so if you do everything with nix-store, then nix will never delete something in-use
<pie_> clever, yeah i know :P :/
<joepie91> (with some hacks to make lazy evaluation work in JS)
<pie_> it runs \o/
<pie_> nevermind it crashes
<clever> joepie91: it can help to know how thunks work in nix
<clever> joepie91: basicaly, any time nix parses a non-trivial expression, it just generates a value of type thunk, that basicaly contains a function pointer and some args
<clever> joepie91: and if you try to use that value for anything, nix will run it on the spot, and replace the thunk with the return value
<clever> and while running, it will temporarily change the type to black-hole
<swflint> Clever: that did it. Now to learn how to write a build expression.
<pie_> either that or a gamepad is required https://pastebin.com/zzdfeSQi
fresheyeball has joined #nixos
<clever> if it ever hits a black hole, it will know its turned back and hit its own stack trace
<fresheyeball> hey can you refresh me on a command
<fresheyeball> I'm in a local clone of the nixpkgs repo
<fresheyeball> and I want to do a nix-env install
<fresheyeball> nix-env -i -f?
<joepie91> clever: hmm, have a source code reference for me by any chance to read up more about that?
<pie_> hm its supposed to work with a mouse
<joepie91> clever: (fwiw, I had little trouble converting Nix to JS -- the trouble was mostly in understanding the concept behind the original Nix code)
<joepie91> (but the conversion is fairly mechanical)
<clever> swflint: stdenv.mkDerivation { name = "x11idle"; installPhase = "mkdir -p $out/bin; gcc -lXss ${./x11idle.c} -o $out/bin/x11idle"; buildInputs = [ xlibs.libXScrnSaver ]; }
<clever> joepie91: ah
<clever> fresheyeball: do you really want to install something, or just test that it builds and runs?
<joepie91> clever: the code in question originated from http://r6.ca/blog/20140422T142911Z.html, which I reformatted to https://gist.github.com/joepie91/249b9d9c4495a3139e0768b1e6c6eeda, which I then converted to JS as https://gist.github.com/joepie91/4bbedbc4e24ea23dbcee1a10cba32520
<joepie91> and now I *finally* understand how overrides work :)
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/756e69bf97 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
<joepie91> clever: thanks, bookmarked
<pie_> ld_debug doesnt suggest anything is missing
<clever> pie_: ah, is that unity based?
<pie_> yeah
<pie_> i get the feeling that is a problem
<swflint> Clever: thanks.
<joepie91> oh
<joepie91> Unity issues
<joepie91> pie_: summarize your issue? I might have run across it while packaging Stardew Valley
<clever> pie_: what is LD_LIBRARY_PATH set to?
<joepie91> er
<joepie91> not Stardew Valley
<joepie91> that other game
<clever> joepie91: mouse/keyboard not working after patchelf i believe
<pie_> no, the game shows the unity personal splash screen and then "Aborted"s
<joepie91> ah yesa
<joepie91> yes *
<joepie91> sec
<pie_> its /nix/store/r0802bkz0c70kswbjqpf9h8jn5rvn9kd-sane-config/lib/sane:/run/opengl-driver/lib:/run/opengl-driver-32/lib
<joepie91> pie_: iirc Unity stuff does a bunch of runtime loading, you can figure out what it's missing by strace'ing the process and grepping for missing libs
<joepie91> pie_: I have a script that filters strace output for such issues but it's not published yet
<joepie91> I can shove it onto git if you want :p
<pie_> LD_DEBUG=all didnt show anything :C
<pie_> guess i have to look closer
<pie_> would be useful i think :)
<clever> i think LD_DEBUG only handles things flagged with DT_NEEDED
<clever> but dlopen isnt covered
<joepie91> pie_: alright, give me a few minutes to get it into a vaguely cleaned-up state :P
<pie_> >.> oh....
<clever> pie_: while you wait, try strace -e open
<pie_> strace | gre pdlopen xD
<pie_> oooor that
<clever> dlopen is a library function, strace wont find it
<joepie91> it may also fail on non-library things btw
<clever> any files its trying to open are a good place to stat
<clever> start*
<pie_> [...]
<pie_> open("/dev/input/js253", O_RDONLY|O_NONBLOCK) = -1 ENOENT (No such file or directory)
<pie_> open("/dev/input/js254", O_RDONLY|O_NONBLOCK) = -1 ENOENT (No such file or directory)
<pie_> open("/dev/input/js255", O_RDONLY|O_NONBLOCK) = -1 ENOENT (No such file or directory)
<pie_> jesus thats one way to do device enumeration
<joepie91> lol
<clever> :D
<clever> ever heard of readdir?
<clever> dont worry, bash does the same thing with file handles, lol
<pie_> wow, a lot of junk to parse in this output :I
<joepie91> hence why I wrote a script :D
<pie_> tfw it searches several folders and you have to figure out if it actually foudn the lib :P
<joepie91> uh...
<joepie91> wtf?
<joepie91> Git just ate my code..
<joepie91> well shit.
<clever> joepie91: reflog?
<joepie91> it just flat-out deleted uncommitted shit
<joepie91> hold on
<clever> pie_: usualy, it will stop when it fails, so the last thing it did is the important one
<clever> just need to scroll up past the error handling logic
<pie_> alternatively, i can paste it xD
<joepie91> yay for extundelete
ertes has joined #nixos
<pie_> oh it didnt like not having libudev
<pie_> *shrug*
<pie_> but at least joepie91 got motivated to clean some code :P
schoppenhauer has quit [(Ping timeout: 248 seconds)]
<pie_> and i got reminded that strace is a thing
<eacameron> Is there a way to take a regular default.nix file and install it via nix-env?
<dash> eacameron: yes
<clever> eacameron: nix-env -i -E 'with import <nixpkgs> {}; callPackage ./. {}' i think
<clever> joepie91: i prefer zfs snapshots
<eacameron> clever: dash: Sweet. Actually even better would be if I can just get a path to the exe in that build and run it.
<clever> joepie91: i have months worth of undo's waiting :P
<dash> eacameron: nix-shell then
schoppenhauer has joined #nixos
<pie_> whats libdl?
<clever> eacameron: nix-build -E 'with import <nixpkgs> {}; callPackage ./. {}'
<joepie91> pie_: bah, now I don't get to test it on your thing :(
<clever> pie_: the library that gives you dlopen
<pie_> joepie91, you can :P
<eacameron> dash: Trouble is...I already am in nix-shell and it starts to get really hairy if I do that.
<pie_> itchio is pay as you want https://nusan.itch.io/fragments-of-euclid
<clever> [clever@amd-nixos:~]$ ./apps/nix-index/result/bin/nix-locate lib/libdl.so
<clever> glibc.out 0 s /nix/store/izxnyg94352qxa4a4783dzgnpy5cwazj-glibc-2.25/lib/libdl.so.2
<clever> pie_: its in glibc
<pie_> but i can still use it because looks like i have some more libs to get
<pie_> (dunno why it didnt crash)
<eacameron> dash: hmm...maybe nested nix-shells would work
<joepie91> pie_: on your system with your expression, I mean :P
<swflint> Clever: my apologies (and I'm probably just missing something), but that expression you listed isn't working.
<clever> eacameron: what about the nix-build i gave above?
<clever> swflint: what error does it give?
<pie_> joepie91, well you still can P:
<eacameron> clever: I don't really want to create a symlink
<dash> eacameron: i meant nix-shell --command
<dash> er, nix-shell --run
<joepie91> pie_: https://git.cryto.net/joepie91/find-missing-files -- code's a mess but it works
pxc1 has joined #nixos
<joepie91> or should work anyway
<swflint> Undefined variable stdenv.
<eacameron> dash: Yah, that might work. I'm just leery of 2 or maybe even 3 layers of nested shells.
<clever> eacameron: --no-out-link
<joepie91> pie_: basically, `npm install` (or npm2nix/node2nix if you prefer that), then just pipe the output from `strace -f` into `node find.js`
<eacameron> clever: Does it print the path so I can grab it?
<joepie91> pie_: after the application crashes, it'll print a report of found and missing stuff
<clever> swflint: nix-build -E 'with import <nixpkgs> {}; callPackage ./yourfile.nix {}'
<clever> eacameron: yes
<dash> eacameron: sure
edwtjo has quit [(Ping timeout: 268 seconds)]
<joepie91> pie_: it'll filter out a bunch of known-missing stuff that's usually not a problem, and separately identify libraries and not-libraries, and also ignore stuff like /dev
<joepie91> so the resulting report should be reasonably useful and clean
<swflint> Clever: same error.
erictapen has quit [(Ping timeout: 240 seconds)]
<clever> swflint: oh right, need to add { stdenv, xlibs }: to the start of the file
<pie_> mesa_noglu provides libgl right?
<joepie91> pie_: be aware that 'missing libraries' may not necessarily translate to 'this is why it crashes' - some libraries it will look for but are optional (pulseaudio is a typical example)
<swflint> Okay. Is there any way to make it work without the weird nix-build incantation?
<joepie91> think so, yes
<clever> pie_: LD_LIBRARY_PATH provides the real libgl
<pie_> well it says it cant find libgl even though im pretty sure it can
<clever> pie_: nixos has to change it at runtime for the gpu driver you need
<eacameron> clever: dash: Perfect. Yep that'll do it.
pxc1 has quit [(Ping timeout: 260 seconds)]
<swflint> Clever: still have an error (variable $src or $srcs should point to the source)
<clever> swflint: oh right, have to add unpackPhase = ":";
<clever> swflint: and to make it work without that incanation, add it to either your config.nix, or nixpkgs and open a PR so it works for all
katie has joined #nixos
<joepie91> pie_: does my tool say that, or does the game say that?
<katie> any recommendations for a Standard ML compiler?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jerith666 opened pull request #27031: cnijfilter: init at 2.80 (master...cnijfilter-2-80) https://git.io/vQ0E1
NixOS_GitHub has left #nixos []
<pie_> joepie91, tool says taht
<pie_> hmmm still no sound
<swflint> Clever: getting a no such file or directory error.
<clever> swflint: from which command?
<pie_> oh, libpulse
<joepie91> pie_: hm, might be a tool bug. if you can upload your strace log somewhere (transfer.sh?) then I can have a look at that tomorrow
<joepie91> pie_: I'd be very surprised if it legitimately cannot find libgl
<pie_> joepie91, no im pretty sure it can :P
<clever> joepie91: gist is also a command in nixpkgs, and it just uploads right to gist
<swflint> Clever: it was caused by a typo. Never mind.
<pie_> once people are really bored it would be nice if package naming was made more consistent
dmr has quit [(Quit: Lost terminal)]
iyzsong has joined #nixos
<swflint> Clever: how would I add it to a personal config.nix?
<pie_> yay\o/ its more or less OK now!
<clever> swflint: in the packageOverrides, do x11idle = pkgs.callPackage ./x11idle.nix {};
<clever> swflint: then you can just nix-build '<nixpkgs>' -A x11idle, or nix-env -iA nixos.x11idle
<swflint> Ah. Okay.
<joepie91> clever: strace logs are massive, and iirc gist is pretty limited in filesikze
<joepie91> filesize*
<clever> joepie91: gist only limits what can be seen on the site, you can still git clone the logs
<clever> joepie91: ive moved 10-15mb of strace logs like that before
<joepie91> hm, I'm pretty sure I had issues with paste size before
<joepie91> perhaps that has changed
<joepie91> (and I mean that it rejected my paste)
<joepie91> pie_: anyhow, if you can drop me a link to your strace log at some point tonight, I'll look at it tomorrow
<joepie91> definitely need to go to sleep now :P
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] aij opened pull request #27032: megacli: Fix missing libncurses.so.5 (master...fix-megacli) https://git.io/vQ0EH
NixOS_GitHub has left #nixos []
katie has quit [(Quit: Page closed)]
<pie_> aight
<swflint> Is there a way to get a specific file from a git repository for building?
<clever> swflint: https://gist.github.com/4c165e69f08aec185d4b2366e3b62303 another variant if you get stuck
<pie_> heh, tfw you end up in the "next level" in the wrong orientation because of some level parkour
<pie_> *some parkour
<clever> src = fetchFromGitHub { owner = "foo"; repo = "bar"; sha256 = "baz"; rev = "something"; };
<clever> swflint: and then use a path relative to $src in the script
<clever> or relative to . since the default unpackPhase copies the source to the current dir
<swflint> Okay, so it builds, but it errors ou (error loading shared library libX11.so.6
<swflint> What if the repo isn't on github?
<clever> swflint: your missing -lX11, check my gist
<clever> src = fetchgit { url = "something"; rev = "something"; sha256 = "something"; };
<noobly_> tilpner: so you got DrRacket to launch?
spinus has quit [(Ping timeout: 276 seconds)]
<swflint> Thanks!
<pie_> joepie91:
<pie_> open("/nix/store/r0802bkz0c70kswbjqpf9h8jn5rvn9kd-sane-config/lib/sane/libGL.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
<pie_> open("/run/opengl-driver/lib/libGL.so.1", O_RDONLY|O_CLOEXEC) = 3
<clever> pie_: yeah, thats where nixos puts the gl drivers for your gpu
<clever> vendors like to make things difficult, and you need the right libGL for your card
<clever> and rpath and immutable outputs makes that tricky on nix
<clever> so LD_LIBRARY_PATH is required, to sneak those in after things have been made immutable
<clever> otherwise, you would have to compile amd and nvidia versions of every gui app
<pie_> aw reentering the game loaded me back in that room and it fixed my orientatio
drakonis has joined #nixos
<pie_> clever, neat
<pie_> just saying that thats the gl lines i have
<pie_> *libgl
<swflint> Clever: do I need to specify both rev and sha256?
<clever> swflint: yes
<clever> git needs a rev, and nix needs a sha256
<swflint> And how would I determine those?
<clever> nix-prefetch-git will tell you the sha256
<clever> git will tell you the rev
<clever> nix-prefetch-git might also give a rev
<tilpner> noobly_ - No, most of my system broke after I passed wrong paths to nixos-rebuild, and I just now discovered I also had broken activation scripts
<swflint> Awesome, thanks!
<tilpner> noobly_ - I... currently can't test
<clever> tilpner: did you use a revision of nixpkgs that wasnt from a nixos channel?
orivej has quit [(Ping timeout: 260 seconds)]
<tilpner> Ah, here we go, back in X. I don't really know what happened, I ran nixos-rebuild and X stopped immediately
<swflint> Clever: fetchgit doesn't work (undefined variable fetchgit)
<clever> swflint: you need to add fetchgit to the function arguments on line 1
<clever> tilpner: check the journal
<swflint> Clever: okay. My apologies if I'm being annoying or seem ontuse.
<swflint> *obtuse
<noobly_> tilpner: Oh ok, well good luck with your current endeavors :-) if I see you on tomorrow maybe I'll bug you then
orivej has joined #nixos
<noobly_> if I don't figure it out by then that is ;)
<tilpner> noobly_ - Did you get minimal Racket to work at least?
<noobly_> Yes I did! Thank you for that
<tilpner> Yay! That's all I use, really. I never got used to DrRacket
<noobly_> Well this book / course I use (How to Design Programs) uses it quite a bit, so I thought it'd be nice. But if I do'nt need it, then no big deal I suppose (I've never not used it)
zraexy has quit [(Ping timeout: 260 seconds)]
zraexy has joined #nixos
<tilpner> You should be able to use another editor for now, but of course it would be good to get DrRacket working as well
<tilpner> clever - No, it was some recent nixos-17.03 revision, it just didn't have a display-manager systemd file and everything. It's not a problem now, the other thing you said solved my original problem. I didn't know you could also pass an object to fetchTarball
<tilpner> clever - But apparently my current Nix is too old to support sha256 as an argument (re: Nix update in nixos-rebuild)
* tilpner looks at how nixos-rebuild updates Nix
<swflint> clever: with the x11idle package and fetchgit, I'm getting an error. The .nix, and the nix-prefetch-git output can be found at https://gist.github.com/swflint/d639c745c36e1b345d42adec5fabee92
HurricaneHarry has quit [(Ping timeout: 260 seconds)]
<swflint> How can I fix the error?
<swflint> setting sha256 to null fixed it, but it seems a bit off.
<noobly_> So I had help getting a C library to work and want to submit a pull request to make it available for anyone. I commited the details of the package, but what else do I need to upload? Does the default.nix need to be commited too?
<noobly_> And what would be the right base / compare for such a package? I just don't want to have to cause anyone any hassel and want to make sure it's done right
noobly_ has quit [(Ping timeout: 260 seconds)]
<tilpner> swflint - This looks like a bug. You can get the correct hash from the error message or by passing --fetch-submodules to nix-prefetch-git
noobly_ has joined #nixos
<tilpner> swflint - But nix-prefetch-git should default to that, and prints "fetchSubmodules": true in both cases, so something definitely is broken here
noobly_ has quit [(Client Quit)]
<swflint> Hmm. Well, where should I submit the bug report?
tmaekawa has quit [(Quit: tmaekawa)]
<swflint> Thanks!
<hodapp> okay, about to give up on tt-rss.nix. I just tried basically the stock configuration with an nginx virtualhost, and I am still getting that bullshit problem where all PHP pages render as blank with a 200 OK.
<hodapp> as far as I can tell, it's just broken out of the box, and the fact that it's based on tooling that prefers to fail silently is a complicating factor
jgertm has joined #nixos
drakonis has quit [(Read error: Connection reset by peer)]
<hodapp> yeah. just tried it in a completely empty container with just nginx & postgresql
HurricaneHarry has joined #nixos
ebzzry has quit [(Ping timeout: 276 seconds)]
<jtojnar> When running `nix-channel --update` with https://github.com/jtojnar/nix-extrapkgs I am getting "error: syntax error, unexpected ID, expecting '.' or '=', at (string):5:85"
<jtojnar> any idea how can I debug it?
jacob_ has joined #nixos
jacob_ is now known as Guest27936
<tilpner> What's the current content of your ~/.nix-channels?
ebzzry has joined #nixos
xadi has quit [(Ping timeout: 260 seconds)]
eacameron has quit [(Remote host closed the connection)]
xadi has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/1add3519df (from 19 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
leothrix has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
leothrix has joined #nixos
<tilpner> jtojnar - What does the inherit in let inherit (foo) bar; in ... do?
<tilpner> I know what it does in { inherit (foo) bar; }. Where does it inherit to?
ebzzry has quit [(Ping timeout: 248 seconds)]
<tilpner> jtojnar - I think the issue is the lack of <nix> which is needed by nix-channel:172
<tilpner> jtojnar - But the error we're seeing refers to a generated Nix expression, which is why the (string):line:col are completely useless
pie_ has quit [(Ping timeout: 276 seconds)]
simukis has joined #nixos
Filystyn has joined #nixos
endformationage has quit [(Quit: WeeChat 1.7)]
justelex has joined #nixos
pxc1 has joined #nixos
<nixos-users-wiki> "FAQ" edited by 0xABAB https://git.io/vQ0Vv
pxc1 has quit [(Ping timeout: 248 seconds)]
hellrazor has joined #nixos
MarcWeber has joined #nixos
fnlkj has quit [(Read error: Connection timed out)]
roberth has quit [(Ping timeout: 240 seconds)]
jgertm has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti pushed 1 new commit to master: https://git.io/vQ0VQ
<NixOS_GitHub> nixpkgs/master b1ebe7a Peter Simons: r-modules: update package set
NixOS_GitHub has left #nixos []
mudri has joined #nixos
faffolter has joined #nixos
MercurialAlchemi has joined #nixos
zraexy has quit [(Remote host closed the connection)]
mudri has quit [(Ping timeout: 268 seconds)]
eacameron has joined #nixos
zraexy has joined #nixos
eacameron has quit [(Ping timeout: 260 seconds)]
FRidh has quit [(Quit: Konversation terminated!)]
FRidh has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mimadrid opened pull request #27034: vifm: 0.8.2 -> 0.9 (master...update/vifm-0.9) https://git.io/vQ0wM
NixOS_GitHub has left #nixos []
faffolter has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] zraexy opened pull request #27035: redshift-plasma-applet: 1.0.17 -> 1.0.18 (master...redshift-plasma-applet) https://git.io/vQ0wS
NixOS_GitHub has left #nixos []
vandenoever has quit [(Ping timeout: 276 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vQ0wQ
<NixOS_GitHub> nixpkgs/master dad7df9 romildo: qtcreator: 4.3.0 -> 4.3.1
<NixOS_GitHub> nixpkgs/master 8d55617 Frederik Rietdijk: Merge pull request #27021 from romildo/upd.qtcreator...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #27035: redshift-plasma-applet: 1.0.17 -> 1.0.18 (master...redshift-plasma-applet) https://git.io/vQ0wS
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #27032: megacli: Fix missing libncurses.so.5 (master...fix-megacli) https://git.io/vQ0EH
NixOS_GitHub has left #nixos []
arianvp2 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #27030: luksroot: fix typo (master...luks-typo) https://git.io/vQ001
NixOS_GitHub has left #nixos []
MercurialAlchemi has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vQ0wA
<NixOS_GitHub> nixpkgs/master 0878ca7 Emmanuel Rosa: splix: enable JBIG...
<NixOS_GitHub> nixpkgs/master 9143cc6 Frederik Rietdijk: Merge pull request #27027 from emmanuelrosa/splix-jbig...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti pushed 1 new commit to master: https://git.io/vQ0rU
<NixOS_GitHub> nixpkgs/master e7c38c1 Peter Simons: cabal2nix: disable test suite in 32 bit builds to fix the build...
NixOS_GitHub has left #nixos []
MercurialAlchemi has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vQ0rY
<NixOS_GitHub> nixpkgs/master 37f0aaf Eric Sagnes: releaseTools: add channel function
<NixOS_GitHub> nixpkgs/master d88f83d Joachim F: Merge pull request #17681 from ericsagnes/feat/releaseTools.channel...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] zraexy opened pull request #27036: streamlink: 0.6.0 -> 0.7.0 (master...streamlink) https://git.io/vQ0rO
NixOS_GitHub has left #nixos []
orbekk1 has quit [(Remote host closed the connection)]
orbekk1 has joined #nixos
Wizek has joined #nixos
Wizek_ has joined #nixos
faffolter has joined #nixos
faffolter has quit [(Changing host)]
faffolter has joined #nixos
arianvp2 has quit [(Quit: arianvp2)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #27036: streamlink: 0.6.0 -> 0.7.0 (master...streamlink) https://git.io/vQ0rO
NixOS_GitHub has left #nixos []
mojjo has joined #nixos
FRidh has quit [(Read error: Connection reset by peer)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vQ0rP
<NixOS_GitHub> nixpkgs/master a5a98f9 Frederik Rietdijk: krename: fix build
NixOS_GitHub has left #nixos []
FRidh has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dywedir opened pull request #27037: xsv: 0.11.0 -> 0.12.1 (master...xsv) https://git.io/vQ0rQ
NixOS_GitHub has left #nixos []
bennofs has joined #nixos
tmaekawa has joined #nixos
tmaekawa has quit [(Client Quit)]
Jackneilll has joined #nixos
thc202 has joined #nixos
leat has quit [(Read error: Connection reset by peer)]
<mojjo> Does anybody have an advice what to do against memory issues on nix? When running one or more JVMs I'm frequently hitting the point where memory usages gets close to 100%. and this is the only occasion that makes my machine hang once in a while, forcing me to reboot. I'm using a swap partition, but I'm not sure if it works properly. `free` tells me though that's in use now. Remeber having the same issue with another
<mojjo> machine and it was solved by a swap then. That makes me doubt if it works properly now..
<tilpner> There's zram that you could enable, but... it might not help very much
<tilpner> You could also try to limit Java's memory hunger by setting a max heap size limit
<mojjo> alright, I'll check them out..
<tilpner> Also play around with kernel.sysctl = { "vm.swappiness" = ...; };
<tilpner> See https://askubuntu.com/a/103916 for an explanation of the value
Eisfreak7 has joined #nixos
stranger__ has joined #nixos
<stranger__> hi. is it to possible to combine few packages into one?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 6 new commits to master: https://git.io/vQ0oE
<NixOS_GitHub> nixpkgs/master bd08111 Frederik Rietdijk: python.pkgs.django_1_9: remove...
<NixOS_GitHub> nixpkgs/master 6bcf106 Frederik Rietdijk: python.pkgs.django_1_6: remove...
<NixOS_GitHub> nixpkgs/master d25c87c Frederik Rietdijk: python.pkgs: do not pin django version...
NixOS_GitHub has left #nixos []
<tilpner> See if buildEnv is what you want, stranger__
<FRidh> or symlinkJoin which is even simpler
k0001_ has joined #nixos
DanC has quit [(Ping timeout: 268 seconds)]
mojjo has left #nixos ["Killed buffer"]
celldee has joined #nixos
leat has joined #nixos
<celldee> I'm trying to set up a minimal NixOS environment that uses the sway window manager with wayland. I have most things working but have a couple of minor snags. Is anyone using a similar setup?
* tilpner tried, but nvidia :(
<stranger__> cool, thanks :)
<sphalerite> celldee: I've tried it out a couple of times. What are the snags?
slyfox_ is now known as slyfox
<celldee> sphalerite: I've been trying to set background wallpaper using the 'output' directive but can't get anything to display.
<celldee> sphalerite: The directive in my sway config is
DanC has joined #nixos
<celldee> output "*" background /home/chris/Pictures/Wallpapers/wallpaper.jpg fill
blahdodo has quit [(Remote host closed the connection)]
<tilpner> Does sway complain when started with --debug?
<tilpner> If we can't solve this, perhaps also ask in #sway
<celldee> Also, wanted to try swaylock but it is not built with current nixos sway package. I had to build my own package that included pam as a build input and then I got it.
<celldee> tilpner: I'll try it
mpcsh has quit [(Quit: THE NUMERICONS! THEY'RE ATTACKING!)]
mpcsh has joined #nixos
blahdodo has joined #nixos
<sphalerite> celldee: hmm, it doesn't seem to work for me either, although strace shows that it is reading the image file
zraexy has quit [(Quit: Leaving.)]
<celldee> sphalerite: Thanks for testing. Maybe it's an issue with sway. I'll ask in #sway.
<sphalerite> I also don't get any output at all even with --debug
spinus has joined #nixos
<celldee> tilpner: Thanks for the link. I'll have a read.
<sphalerite> Ah, redirecting its stderr seems to do the trick
arianvp2 has joined #nixos
<celldee> sphalerite: What was the command that you used please?
<sphalerite> celldee: sway -c config -d 2>/tmp/sway-log
<sphalerite> That is, to get the debug output. Not to actually get the background image working
<celldee> tilpner: Had a look, I don't think that my problem is addressed by this as I'm using the full path to my background image file.
<celldee> sphalerite: Thanks for that.
Filystyn has quit [(Remote host closed the connection)]
<sphalerite> celldee: I think I might have it
<sphalerite> celldee: do you have a line in your config that sets the stock background?
<sphalerite> no, never mind, that didn't help...
<celldee> sphalerite: No, I used an i3 config file as the starting point for my sway config
<sphalerite> For some reason the line "output * bg /nix/store/p7bw86zafn90fj975c6fnyl5v2vb711h-sway-0.11/share/sway/Sway_Wallpaper_Blue_1920x1080.png fill", which is in the stock config, works
<celldee> sphalerite: That's interesting. I'll give it a try ...
<sphalerite> but taking that line verbatim and replacing the filepath with my own breaks :/
pie_ has joined #nixos
celldee has quit [(Quit: Page closed)]
<sphalerite> Hm, trying running swaybg manually
<sphalerite> (against its own advice)
<tilpner> Try with something that's also a png and of the same resolution (away)
celldee has joined #nixos
<sphalerite> Yep, it's just because it wasn't a png >_>
<sphalerite> celldee: is yours a jpg too?
<celldee> sphalerite: Yes, I'll try a .png ...
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
<sphalerite> celldee: that'll be it, unless it's built with gdk_pixbuf it assumes png: https://github.com/SirCmpwn/sway/blob/master/swaybg/main.c#L95
joko has quit [(Remote host closed the connection)]
nckx has joined #nixos
<celldee> sphalerite: That works. Thanks for your help :)
<sphalerite> no problem! I want to switch to sway eventually too so it's good to know that for myself as well.
<sphalerite> celldee: let me know if there are any other issues you encounter
<celldee> sphalerite: Will do.
celldee has quit [(Quit: Page closed)]
arianvp2 has quit [(Quit: arianvp2)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #27019: heartbeat service: init (master...heartbeat_service) https://git.io/vQ0UJ
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #26980: collectd service: minor refactoring (master...collectd-service-minor-refactoring) https://git.io/vQ4l9
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #26978: lighttpd: add collectd submodule (master...lighttpd-collectd-submodule) https://git.io/vQ4mT
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jokogr opened pull request #27039: kdiff3: add dependency to kcrash (master...f/kdiff3-kcrash) https://git.io/vQ0iw
NixOS_GitHub has left #nixos []
spluko has joined #nixos
marsel has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lheckemann opened pull request #27040: wlc: 0.0.8 -> 0.0.9 (master...wlc-0.0.9) https://git.io/vQ0ix
NixOS_GitHub has left #nixos []
<spluko> Hi, I'm trying to build QLC+ on NixOS. I get an error "libudev development package not found". The instructions for Ubuntu say you need libudev-dev which doesn't seem to exist for NixOS.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jokogr opened pull request #27041: skrooge: drop kdelibs4support dependency (master...f/skrooge-drop-kdelibs4support) https://git.io/vQ0PU
NixOS_GitHub has left #nixos []
<sphalerite> spluko: are you using a nix-shell yet? If not, see https://github.com/nixos-users/wiki/wiki/FAQ#i-installed-a-library-but-my-compiler-is-not-finding-it-why . Then add udev to your nix-shell
tmaekawa has joined #nixos
tmaekawa has quit [(Client Quit)]
<spluko> sphalerite: I'm following http://sandervanderburg.blogspot.co.uk/2014/07/managing-private-nix-packages-outside.html and have libudev in buildInputs
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pSub pushed 1 new commit to master: https://git.io/vQ0P3
<NixOS_GitHub> nixpkgs/master 2dc5990 Pascal Wittmann: fsql: 0.2.1 -> 0.3.1
NixOS_GitHub has left #nixos []
<sphalerite> Even better than using nix-shell :) if you have libudev in buildInputs that's like having libudev-dev installed on other distros. You may need to add pkgconfig or something for the build scripts to be able to find it though
ris has joined #nixos
<sphalerite> If you could share your expression so far it would be very helpful
<spluko> Sure, one sec...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pSub pushed 1 new commit to master: https://git.io/vQ0Pl
<NixOS_GitHub> nixpkgs/master b300472 Sebastian Jordan: guetzli: init at 1.0.1 (#26595)...
NixOS_GitHub has left #nixos []
<magnetophon1> wohoo! unstable upgrade! :D
<sphalerite> spluko: if you use qt5.mkDerivation instead of stdenv.mkDerivation it'll add appropriate qmake flags andd you won't need to manually specify qmake
<sphalerite> (although that's probably not relevant to it finding libudev)
<spluko> Cool, I'll try that anyway
<sphalerite> My best guess is that you need pkgconfig to get it working — try adding nativeBuildInputs = [ pkgconfig ];
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/d15e20f9c9 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
<spluko> qt5.mkDerivation doesn't seem to be in scope: "error: attribute ‘mkDerivation’ missing, at /home/peter/Workspace/qlc+/default.nix:6:2"
<spluko> nativeBuildInputs = [ pkgconfig ]; worked though... on to the next failure
<sphalerite> Oh yeah, I think that changed between 17.03 and unstable and I was looking at unstable. For 17.03 add qt5.qmakeHook to the buildInputs instead Ithink
pxc1 has joined #nixos
<spluko> yes, that worked, thanks.
arianvp2 has joined #nixos
pxc1 has quit [(Ping timeout: 246 seconds)]
arianvp2 has quit [(Client Quit)]
<hyper_ch> did nixos language change again?
Fare has quit [(Ping timeout: 248 seconds)]
<sphalerite> hyper_ch: what do you mean?
<hyper_ch> sphalerite: on june 25th I update my expression for quiterss to https://paste.simplylinux.ch/view/a9cb5613
<hyper_ch> which worked fine
<hyper_ch> and now I get: error: attribute ‘qmakeHook’ missing, at /etc/nixos/quiterss.nix:14:89
<sphalerite> yeah I think now you use qt5.mkDerivation instead of stdenv.mkDerivation
<sphalerite> which is not a nice solution IMHO
<hyper_ch> why do things keep changing all the time?
<sphalerite> Because you're on unstable? :)
<hyper_ch> you're just making that up now :)
<sphalerite> Maybe you should use 17.03 if you expect stuff not to change
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/vQ0XZ
<NixOS_GitHub> nixpkgs/master fd488c4 mimadrid: vifm: 0.8.2 -> 0.9
<NixOS_GitHub> nixpkgs/master b084b93 Michael Raskin: Merge pull request #27034 from mimadrid/update/vifm-0.9...
NixOS_GitHub has left #nixos []
<hyper_ch> sphalerite: no systemd v233 on 17.03
<hyper_ch> changed now to qt5.mkDerivation rec {
<hyper_ch> still same error
<hyper_ch> still can't find qmakeHook
<sphalerite> well yeah you don't use qmakeHook anymore
<sphalerite> instead qt5.mkDerivation handles qmake
<sphalerite> qmakeHook no longer exists at all
<hyper_ch> ok, seems to build things now
pie__ has joined #nixos
pie_ has quit [(Ping timeout: 268 seconds)]
<hyper_ch> oh dear: /nix/store/v2sbiqz7mhvryk63xm52vzvs075kp5l7-xz-5.2.3-bin/bin/xz: (stdin): Compressed data is corrupt
stanibanani has joined #nixos
<sphalerite> nice
<hyper_ch> not really :(
<hyper_ch> how to fix that? is that problem with the downloaded file or a problem with the hydra?
k0001_ has quit [(Ping timeout: 240 seconds)]
<gchristensen> hyper_ch: usually a problem with the download
<hyper_ch> so I just remove that file from my disk?
tmaekawa has joined #nixos
<gchristensen> hyper_ch: what do you need in 233?
tmaekawa has quit [(Client Quit)]
<hyper_ch> gchristensen: enhanced mount options in fstab
<gchristensen> oh that is right, I remember now
<spluko> sphalerite: seems to have built now! However install is failing "cannot create directory '/usr/lib': Permission denied" which makes sense on nixos. Any suggestions?
<sphalerite> spluko: if you're using the qmake hook, it should tell qmake where to install it correctly (make sure to get rid of your preBuild line)
carlosda1 has quit [(Ping timeout: 240 seconds)]
bennofs has quit [(Ping timeout: 260 seconds)]
<hyper_ch> gchristensen: so, how to best remove that faulty file?
<gchristensen> hyper_ch: it is already gone
<hyper_ch> you're an optimist... I'll retry :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] aycanirican opened pull request #27042: update patches so that they can be applied to perl 5.22.3 (master...fix_perl_patches) https://git.io/vQ01U
NixOS_GitHub has left #nixos []
<hyper_ch> gchristensen: it seems you were right
<spluko> sphalerite: I removed preBuild earlier, current expression is at https://gist.github.com/petermarks/4e1c3d2a38a193cec1769ab95b4c9825
<hyper_ch> sphalerite: still can't get it to work: https://paste.simplylinux.ch/view/b892c027
<sphalerite> spluko: there seem to be a lot of explicit references to /usr in the code, you'll need to get all of those out :/
<spluko> nice :-( Am I supposed to do that with patch files?
<spluko> ... and what should I change them to?
<sphalerite> spluko: patches are the simplest option but won't work for all cases. You might need to use sed to substitute in the right paths in some places
<sphalerite> using postPatch
<sphalerite> hang on let me see if I can find an example in nixpkgs
<spluko> thanks
<sphalerite> hyper_ch: then I really don't know, sorry :(
parsnip0 has quit [(Quit: Connection closed for inactivity)]
eacameron has joined #nixos
<spluko> OK, I'll try that. Thanks
k0001_ has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
tmaekawa has joined #nixos
spluko has quit [(Ping timeout: 260 seconds)]
tmaekawa has quit [(Client Quit)]
tmaekawa has joined #nixos
<hyper_ch> current unstable is total broken
<hyper_ch> kdevelop fails, teamviewer fails, vritualbox fails... not sure what else is failing
<gchristensen> what version are you on?
<hyper_ch> what do you mean by what version?
<gchristensen> like what exact git commit are you on?
<hyper_ch> no idea
<gchristensen> ok, is it failing when you run nixos-rebuild? or when you run the applications?
<hyper_ch> no idea... but would that matter? I mean running nixos-rebuil boot --upgrade on unstable should get latest commit to unstable
<gchristensen> I'm trying to understand if the problems are build time or run time
<hyper_ch> I have no idea what that means
<gchristensen> "kdevelop fails" <- what does it mean that it failed? did it get bad grades in school?
<hyper_ch> yes
tmaekawa has quit [(Quit: tmaekawa)]
<gchristensen> what does `nixos-version` say?
<hyper_ch> [Sonntag, 2. Juli 2017] [14:19:46 CEST] <hyper_ch> current unstable is total broken
<hyper_ch> [Sonntag, 2. Juli 2017] [14:20:42 CEST] <hyper_ch> kdevelop fails, teamviewer fails, vritualbox
<hyper_ch> 17.09pre109180.0d4431cfe9 (Hummingbird)
<gchristensen> yes what does it mean that it fails?
<hyper_ch> it fails to isntall
<gchristensen> what did you do to see that it fails?
<hyper_ch> ktorrent is another candidate that fails to build/install
<Filystyn> i have feeling read and others kidn of work slower on nixos or is this xface i had reading 1gb file in 1 sec
<Filystyn> actualy coping
<Filystyn> now 10giga takes like fucking ? 1,30 sec
<Filystyn> ok no sync here hue but
<gchristensen> ok this is a build time failure
<hyper_ch> pretty much everything fails.... ktorrent, kdevelop, teamviewer, virtualbox.... still uncomment stuff
<gchristensen> virtualbox built just fine on hydra, ktorrent didn't, nor did kdevelop
<hyper_ch> vb fail
<gchristensen> by the wa error: build of ‘/nix/store/jbiqdv3yd9m38jnwhvqkd2g2pkh83apv-nixos-system-subi-17.09pre110094.1add3519df.drv’ failed <- 1add3519df is your commit verssion
spluko has joined #nixos
<gchristensen> sure, just saying it did manage to build on hydra
<Filystyn> huper_ch if you wnat teamviewer to work
<Filystyn> download their bianry from site and
<Filystyn> steam-run it
<Filystyn> ;-)
<hyper_ch> gchristensen: will you open bug reports for ktorrent / kdevelop?
<gchristensen> hyper_ch: no, I'm not a user or really capable of that. can you?
<hyper_ch> you're not capable of that? you know more about nixos than me... way more
<gchristensen> I know nothing of kdevelop or ktorrentt
<Infinisil> hyper_ch: I mean you're the one who has the problem, why would he report a bug for you?
bennofs has joined #nixos
<hyper_ch> Infinisil: because he knows more...
<hyper_ch> about the whole stuff
<gchristensen> in this case I don't :P
<gchristensen> bennofs: what do you think about reverting https://github.com/NixOS/nixpkgs/pull/26983? (see my comments)
<Filystyn> hyper_ch just download binaries for those and compile them
pie__ has quit [(Changing host)]
pie__ has joined #nixos
<Filystyn> i mean source
<Filystyn> not binaries
<Filystyn> if you are desperate
<hyper_ch> Filystyn: no idea how to compuile thme
<Filystyn> nix is very compilation friendly
<Filystyn> you want kdevelope for coding and you are not familair with compilation ;> ?
<Infinisil> I mean technically the nix derivation should do the whole download & compile thing for you..
<hyper_ch> Filystyn: yes, why?
<Filystyn> okie man
<Filystyn> Let's see if we can do it
erictapen has joined #nixos
<hyper_ch> Filystyn: php doesn't require compiling
<hyper_ch> Filystyn: neither to bash scripts
<Infinisil> True
<Filystyn> Okie man ;-)
<gchristensen> I don't know much about C/++ either
<hyper_ch> that "not much" is probably "a lot more than me"
<gchristensen> I'm not going to open your issues for you
<hyper_ch> ah yeah, for openvpn I just do apt-get build-dep openvpn (on debian), fetch current sources, unpack, run ./configure, make, make install :)
<gchristensen> you don't need to be an expert to open issues
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat opened pull request #27045: stdenv: refactor meta checks (master...meta-refactor-2-rebased) https://git.io/vQ0Mb
NixOS_GitHub has left #nixos []
<hyper_ch> gchristensen: well, it seems to report kde bugs you have to be an expert... most of the bugs I reported on kde were marked as invalid or ignored for such a long time that EOL has become and then marked invalid
carlosda1 has joined #nixos
<gchristensen> yeah that is unfortunate
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc created revert-26983-i3/allow-custom-configuration (+1 new commit): https://git.io/vQ0Mj
<NixOS_GitHub> nixpkgs/revert-26983-i3/allow-custom-configuration ed59b2c Graham Christensen: Revert "i3: add `configFile` to enable cutom configuration locations"
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc opened pull request #27046: Revert "i3: add `configFile` to enable cutom configuration locations" (master...revert-26983-i3/allow-custom-configuration) https://git.io/vQ0DJ
NixOS_GitHub has left #nixos []
<Infinisil> hyper_ch: That's usually the reality for bigger projects, there are just so many bug reports and not enough people to want to look at all of them. Debugging is the hardest part of programming, especially if you can't reproduce it yourself
<Filystyn> hyper_ch maybe you should upgrade to unstable but let me see something..
<hyper_ch> Filystyn: I am on unstable...
<gchristensen> Filystyn: stable isn't broken like thiscurrently
<gchristensen> part of the problem of unstable :P
<Filystyn> ooh;-)
<manveru> btw, does anyone know how to setup nginx to make file checksums for static files instead of looking at mtime? (which is always the same in nix store...)
<Filystyn> ill see if i can compile ktorrent downlaoding it now. gib me sec
<hyper_ch> Infinisil: the problem is, when there's a bug report like 2-3 years just left alone, nothing done and then marked invalid because EOL it makes me wonder, if I should report a bug next time...
<hyper_ch> gchristensen: seems vbox is working again -- at least it's compiling here
<Infinisil> Does unstable really build all packages? I once heard it would just randomly select a few, because it would be too much if everything was built on every PR
<gchristensen> yeah, our volunteers don't always get to bug fixes
<gchristensen> hopefully more people volunteer
carlosda1 has quit [(Ping timeout: 255 seconds)]
<gchristensen> Infinisil: no it builds all packages
<gchristensen> but not on every PR
<Infinisil> Ahh, when then?
<Infinisil> Like just once every hour or so?
<hyper_ch> when the Elders of Nixos press the button "recompile everything now"
<gchristensen> every 8 hours
<hyper_ch> (or so I imagine)
tmaekawa has joined #nixos
<Infinisil> gchristensen: I see, so unstable can progress once every 8 hours at max I'd think
<Infinisil> hyper_ch: Automation :)
<gchristensen> right
<sphalerite> It also doesn't build everything every time. It builds whatever has changed, or whatever has a dependency that's changed
tmaekawa has quit [(Client Quit)]
<gchristensen> however everything builds every tim
<sphalerite> oh?
<gchristensen> yeah but it uses caching
<gchristensen> it doesn't calculate diffs
<sphalerite> right so it evaluates everything but doesn't necessariyl build it
<sphalerite> (build in the sense of realise)
<hyper_ch> automation can be dangerous ;)
tmaekawa has joined #nixos
<Infinisil> Without automation we would be compiling our programs *manually*!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] elitak opened pull request #27047: factorio: 0.15.16 -> 0.15.26 (master...factorio-version) https://git.io/vQ0D4
NixOS_GitHub has left #nixos []
<hyper_ch> Infinisil: you make it sound like that's something bad - https://xkcd.com/303/
<Infinisil> And running them manually after we've compiled them of course
<Infinisil> hyper_ch: :P
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 6 new commits to master: https://git.io/vQ0Du
<NixOS_GitHub> nixpkgs/master 6f36967 Vincent Laporte: ocamlPackages.lablgl: mark as broken on Darwin
<NixOS_GitHub> nixpkgs/master ed12c7a Vincent Laporte: ocamlPackages.git-http: init at 1.11.0...
<NixOS_GitHub> nixpkgs/master e8c0e8a Vincent Laporte: ocamlPackages.git-unix: init at 1.11.0...
NixOS_GitHub has left #nixos []
<Infinisil> I would really like to get some games working on nixos eventually
<hyper_ch> tux racer?
<Infinisil> I dream of playing Overwatch or Rocket League on NixOS
stranger__ has quit [(Quit: Connection closed for inactivity)]
<srhb> Infinisil: Aren't those on Steam?
<srhb> Probably Just Work^{tm}
<Infinisil> srhb: Rocket League is on Steam, Overwatch is in the blizzard launcher
<hyper_ch> and wouldn't you require proper gfx support?
<Infinisil> gfx?
<hyper_ch> video card
<srhb> Infinisil: Hm, Blizzard things can occasionally be a bit annoying...
<srhb> hyper_ch: We have that?
<hyper_ch> don't know if you have a video card
<srhb> Oh
<srhb> You mean the actual hardware :P
<Infinisil> I'm currently running NixOS only on my intel (Mac) laptop, but I eventually want to put it on my now Windows machine which has an Nvidia graphics card, there I'd test these two gaes
<hyper_ch> well, from what I know nvdiai and amd running subpar on linux compared to that other OS
<Infinisil> hyper_ch: And btw every computer has a graphics card, some just not as powerful
<srhb> hyper_ch: No, it's fine.
bennofs has quit [(Ping timeout: 260 seconds)]
<hyper_ch> every computer has a video card? really?
<srhb> Maybe not a _discrete_ video card, but certainly an integrated one. Aside from some embedded systems.
<gchristensen> every reasonable one
<gchristensen> any counter example you come up with will prove the rule
<manveru> Infinisil: i've got a ton of games on steam that work nicely, including rocket league :)
<manveru> for battle.net you need wine
<Infinisil> manveru: Nice to hear! I'm excited to try it
<manveru> i've played stuff like heroes of the storm and hearthstone on nixos... tried overwatch but that was months ago
<Infinisil> manveru: If overwatch doesn't work I'll try my best to get it to work
<hyper_ch> (one could always run that stuff in a virtualized system....)
<srhb> gpu passthrough is still a bit iffy. Or it was last I tried.
<manveru> i tried it back when it was garbage rated :)
<hyper_ch> well, seems to run just fine here https://www.youtube.com/watch?v=37D2bRsthfI
<Infinisil> hyper_ch: I really want that performance, I have a 2560x1440 monitor with 144 Hz :D
magnetophon1 has quit [(Remote host closed the connection)]
<Filystyn> oh wow nix-shell is fucke dup 2
<srhb> Oh, it's totally doable, if you have the hardware. It was just messy to set up when last I tried. :)
<hyper_ch> I have 2x 24" attached to my notebook
<Filystyn> or maybe someone can point me what is the problem here
<Infinisil> Filystyn: What's the problem?
<Filystyn> wnated to check if i can build that ktorrent
<gchristensen> unstable is broken in some way
<Filystyn> but it fails on qt shit knwos why never had such problem
<manveru> hyper_ch: i only buy games now that support linux out of principle ;)
<manveru> hyper_ch: and out of 509 games in my steam library, 302 run on linux already
<hyper_ch> well, if you run a game in a virtualized environemnt, isn't it then also supported by linux because you run linux on the host?
<Infinisil> manveru: Similarly I use firefox out of principle, even though chrome might be a bit faster. (because of all that web standard stuff mozilla is doing)
<Infinisil> manveru: 509 games??? Holy moly..
<srhb> hyper_ch: Not if the virtualized environment means "Windows license"
<hyper_ch> Infinisil: ssome people just don't have enough to do at work ;)
<manveru> heh
<manveru> i always go back to dota anyway :P
<Filystyn> hyper_ch seems it's impossible to even compile it udner nix now welel this is a bit failure
<Filystyn> so i guees all you can do is get binary and steam-run ti
<hyper_ch> Filystyn: compile what?
<Filystyn> steam-run binary
<Filystyn> i tried to compile ktorrent
<Filystyn> and nix-shell breaks
<hyper_ch> I opened bug report
<srhb> Filystyn: How does nix-shell break? Isn't it just the derivation failing?
<Filystyn> what do you mean
<srhb> Filystyn: "undefined variable ‘qt’ at (string):1:81"
<Infinisil> srhb: In the paste he sent you can see that the expression itself fails to evaluate
nh2 has joined #nixos
<Filystyn> might be i pasted wrong output?
<Filystyn> give me sec
<srhb> Maybe I clicked a wrong link... :-P
<srhb> In that link it just says qt is undefined, which it is.
<nh2> is there a reason why cache.nixos.org should be 2x slower in Singapore than in Europe? It takes 2x as long to bring up my AWS machine there with nixops, with identical config
<gchristensen> nh2: we don't have cloudfront endpointst in singapore because of how expensive it is
<nh2> gchristensen: ah, that explains it. Is there a list where I can see where we have cloudfront endpoints?
<nh2> I could for example put my AWS server into Seoul instead as well
<Infinisil> srhb: Is that something other than a nix expression failing to evaluate?
<Filystyn> omg yeah i ate ending lol
<Filystyn> it works now
<srhb> Infinisil: I suppose not. It just sounded like Filystyn said nix-shell itself was breaking.
<Infinisil> Ah
<Infinisil> Filystyn: You ate ending? Who is Ending?
iyzsong has quit [(Read error: Connection reset by peer)]
<Filystyn> no i mean i ate last few letters
<Filystyn> of the package and got fail
<Filystyn> was sure i wrote correct lol
<Infinisil> ;P
<gchristensen> nh2: I think United States Canada Europe, based on the pricing table here: https://aws.amazon.com/cloudfront/pricing/
Mateon2 has joined #nixos
<Infinisil> I really wonder if NixOS is used by anything other than developers, seems pretty hard to use as a "user" only
DeaDSouL has joined #nixos
Mateon1 has quit [(Ping timeout: 248 seconds)]
Mateon2 is now known as Mateon1
<gchristensen> some :)
<spluko> I should probably know this, but when doing substitutions in postPatch, what do I put for the install directory?
<Infinisil> $out
<Infinisil> ah no
<Infinisil> Well $sourceRoot is where your source is
<Infinisil> wait but what has that to do with installing?
romildo has joined #nixos
<Infinisil> In the patch phase you want to patch the source, in the install phase you want to install it to $out
<sphalerite> Infinisil: I think some people here install it for less technically-skilled people and administer it for them. I'd definitely install it on my grandma's computer.
<spluko> In the app I'm installing, it hard codes the install directory to /usr. I need to patch that
DeaDSouL_ has joined #nixos
<Infinisil> sphalerite: Ah yes that, very valid use case, NixOS pretty much "just works"
<Infinisil> (if you don't use any other than the semesterly releases)
<hodapp> I do use it a lot for development stuff
<hodapp> I'm kinda unconcerned with who uses it for "other" stuff so long as it remains comprehensible to me
<adisbladis> Infinisil: It would definitely need some higher level tooling to be used by "users"
<nh2> gchristensen: another question, when I ping cache.nixos.org from Singapore, then reverse DNS doesn't resolve to *.cloudfront.net, but to 13.32.205.47. Is that an upstream server in the US?
<hyper_ch> nh2: you're in Seoul?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #26990: mpd service: Create playlist directory (master...mpd-create-playlistDir) https://git.io/vQBgL
NixOS_GitHub has left #nixos []
<Infinisil> spluko: There are a few ways to solve this, how does the package install it? With make install? Or something else?
<gchristensen> nh2: looks like a cloudfront server to me
<gchristensen> nh2: https://gist.github.com/grahamc/df1bb806eb3552650d03eef7036a72ba run this from singapore?
<romildo> When upgrading my unstable NixOS system I am getting an error regarding xerver keyboard layout:
<romildo> The selected keyboard layout definition does not exist:
<romildo> us,br,us
<romildo> I have used this configuration for years. Is anybody aware of changes in this area?
<nh2> hyper_ch: no, I'm still in CH, but I have a server to provision in Singapore or around there
<sphalerite> romildo: yes. I've submitted a PR that fixes it
<spluko> Infinisil: make install. It is a QT5 app using qmake. Looks like there is just one variable I need to replace
DeaDSouL has quit [(Ping timeout: 248 seconds)]
<Infinisil> spluko: I don't know anything about qmake, but usually you can do something like `make install PREFIX=$out` or `make install DESTDIR=$out`. The Makefiles usually let you set this, best have a look at it to see how it works
<adisbladis> nh2: Overall the caches are pretty slow from asia..
<Infinisil> (don't know if that applies to qmake though)
koserge has joined #nixos
<spluko> OK, I think I just need to replace with $out, I'll try it.
<gchristensen> IMO geodistribution is the largest selling factor for me re some p2p cache system
<nh2> gchristensen: from AWS Singapore: http://ix.io/ydt
<gchristensen> nh2: thank you, I've been collecting these :)
<nh2> gchristensen: from AWS Frankfurt: http://ix.io/ydu
iyzsong has joined #nixos
<nh2> gchristensen: strangely the AWS Frankfurt also looks pretty bad, with time_starttransfer being 0.5, tat's only slightly worse than Singapore
<gchristensen> huh.
<Infinisil> IPFS could solve that to an extent :D
<gchristensen> surprising
<nh2> for me it has always been like this, my AWS Frankfurt servers always deploy in a crawl with like 2-4 MB/s
<spluko> Infinisil: If the app wants to install in /usr/lib/foo, should that become ${out}/lib/foo?
<srhb> spluko: Depends. Some packages are rewritten such that their outputs go to ${out}/lib instead of ${out}/lib/foo
<srhb> spluko: Since the extra layer is mostly redundant when it's one derivation per $out/ anyway
<spluko> thanks
<romildo> sphalerite, is there any workaround for the keyboard layout issue until a new unstable version with your PR integrated is made available?
<sphalerite> romildo: none that would preserve the desired behaviour that I know of, sorry :/
<spluko> Hmm, undefined variable 'out'
<romildo> sphalerite, I find it difficult to install NixOS with local changes to modules.
<sphalerite> spluko: qmake might have its own special syntax for using environment variables
<sphalerite> romildo: it's not too bad, just add -I nixpkgs=path/to/your/nixpkgs to your nixos-rebuild invocation
adisbladis has quit [(Ping timeout: 240 seconds)]
<spluko> Oh, is out just an environment variable. I thought the variable substitution was done by nix before the command is called
<sphalerite> spluko: nope :)
<gchristensen> sometimes it is, but not in this case
<sphalerite> spluko: nix substitutes ${stuff} in string literals in a nix expression
<spluko> I used ${out}, was that not right?
<romildo> sphalerite, yes, but that it would trigger local compilation of packages that has been updated in master but has not been cached yet, right?
<gchristensen> spluko: if out was defined in this derivation it would be correct, but it isn't sso it needs to be $out
carlosda1 has joined #nixos
<sphalerite> romildo: not if your local checkout is on nixos-unstable rather than master
<gchristensen> spluko: because the derivation is told what `out` is later
<spluko> Ah, I see the difference, thanks
carlosda1 has quit [(Ping timeout: 276 seconds)]
<Infinisil> Man I'm spending so much time configuring my whole system, I don't have much time for *doing* actually anything
<Infinisil> Should get less with time though
Filystyn has quit [(Quit: Konversation terminated!)]
<hodapp> bleh. not sure if I should try to run Tiny Tiny RSS inside a docker container, or just find another RSS reader
<spluko> It is somewhat tedious that I have to run the whole build from the start every time I test my package. Is there some way to keep previous build progress whilst developing a package?
<hodapp> spluko: what package?
<Infinisil> docker works guaranteed
<Infinisil> And isn't too bad on performance
<hodapp> the problem is I'm on a host without tons and tons of disk space
DanC has quit [(Ping timeout: 260 seconds)]
<spluko> hodapp: I'm writing a nix expression to build QLC+. I'm new to this, so making lots of mistakes. I now have the build working, but install is failing due to path issues. Each time a try a fix, it runs the whole build again.
eacameron has joined #nixos
<hodapp> as in, I only have ~2 GB free right now, and trying to be able to work within that amount - and docker containers can be rather large
<hodapp> spluko: hmmm. trying in nix-shell and going through build steps by hand can alleviate some of this but mostly I don't know a good way around it
<Infinisil> spluko: You could use nix-shel
darlan has joined #nixos
darlan has quit [(Client Quit)]
eacameron has quit [(Ping timeout: 248 seconds)]
alpha_sh has joined #nixos
ris has quit [(Ping timeout: 240 seconds)]
<spluko> Infinisil: I thought that might be the way, but haven't figured out the relationship between an expression for a derivation and what to do in a shell. I've looked for a tutorial on the steps to go through to add new software to nix - build it in a shell, build a local package, build it as part of nixpkgs or something. Haven't found anything.
chris___ has joined #nixos
<gchristensen> hodapp: I'd try unsetting database.host and postgresql.enableTCPIP
<gchristensen> gotta go
<hodapp> gchristensen: when I tried that earlier, it refused to connect and I didn't feel like going through the yak shaving ritual of figuring out why unix domain sockets weren't working
<sphalerite> spluko: if you just nix-shell default.nix (assuming that's what your expression file is called) you get an environment for building the expression in
<Infinisil> What I really want is an interactive nix-shell that creates the expression for you as you go along
<hodapp> gchristensen: but I'm pretty sure this matters none, because I can put a "Hello World" PHP file in the web root directory and it fails to serve even this
chris___ has quit [(Quit: leaving)]
<spluko> Yes, I was thinking that might be useful
phinxy has joined #nixos
phinxy has quit [(Changing host)]
phinxy has joined #nixos
DanC has joined #nixos
asymmetr- has quit [(Ping timeout: 240 seconds)]
ebzzry has joined #nixos
civodul has joined #nixos
romildo has quit [(Quit: Leaving)]
eacameron has joined #nixos
Fare has joined #nixos
<spluko> It looks like qmake can reference environment variables using $$(out). Do I need any escaping to put that in a postPatch? I'm just getting a syntax error when qmake reaches the line I've tried to patch.
jonte has joined #nixos
<hodapp> can you get it to echo the actual line at you so you can see what $$(out) was bastardized into?
<spluko> dunno, maybe :-)
FRidh has quit [(Ping timeout: 260 seconds)]
<symphorien> maybe $out is just a shell variable and not an environment variable and you have to export it before
<Infinisil> spluko: Can you show the makefile/
<Infinisil> ?*
FRidh has joined #nixos
<spluko> Infinisil: the makefile seems to be generated dynamically by qmake. I can post the input file qmake uses if that would be useful?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #27049: offlineimap: 7.1.0 -> 7.1.1 (master...upd.offlineimap) https://git.io/vQ0H7
NixOS_GitHub has left #nixos []
iyzsong has quit [(Quit: bye.)]
<spluko> The error I get is "bash: -c: line 0: syntax error near unexpected token `('"
asymmetric has joined #nixos
<Infinisil> Have you tried setting QT_PREFIX and QT_INSTALL_PREFIX? as in something like `export QT_PREFIX=$out` in the install phase
<Infinisil> It's not that and you need to call qmake too in the install phase, but something like that should work
<sphalerite> Is there a way to have nix-store --delete just skip any paths that are no longer referenced?
<spluko> Infinisil: but line 82 of the variables.pri explicitly says to use /usr, no?
eacameron has quit [(Remote host closed the connection)]
<sphalerite> spluko: if you pass INSTALLROOT=$out to qmake it might take priority
<sphalerite> I don't know how qmake works though
<spluko> seems possible. how do I do that in mkDerivation?
<Infinisil> spluko: You could always move the contents around after the install phase
<Infinisil> In the fixupPhase
vandenoever has joined #nixos
celldee has joined #nixos
<sphalerite> Infinisil: not if it tries to install to /usr and fails at that point
<Infinisil> sphalerite: It tries to install to QTPREFIX/usr, right?
<Infinisil> sphalerite: But this isn't used in the makefile
<Infinisil> It looks like they did this before, but changed it at some point while leaving the old declaration in
<Infinisil> isn't used in the .pri file*
<sphalerite> oh
<spluko> I'm not clear what += means here. the manual says "The += operator appends a new value to the list of values in a variable"
<spluko> could it be used in another file?
<spluko> INSTALLROOT is used in many files
carlosda1 has joined #nixos
jonte has quit [(Ping timeout: 240 seconds)]
DeaDSouL_ has quit [(Remote host closed the connection)]
FRidh has quit [(Ping timeout: 260 seconds)]
<Infinisil> spluko: Don't know
<Infinisil> Well += is really just adding a string to an existing one, very intuitive
mudri has joined #nixos
carlosda1 has quit [(Ping timeout: 276 seconds)]
zraexy has joined #nixos
<sphalerite> spluko: what if you put preConfigure = ''qmakeFlags="INSTALLROOT=$out"''; inthe expression?
celldee has quit [(Quit: leaving)]
<sphalerite> symphorien: no, I'm pretty sure $out is an env variable, because it's set by nix and as such can't really be shell-specific AFAIU
<spluko> So that I don't have to keep running the whole build, I'm trying to use nix-shell. In the shell, I copy the source directory, cd to it and try running qmake. This fails with error "Could not find qmake configuration file linux-g++." am I missing some step?
<sphalerite> try doing eval "$configurePhase" instead
<spluko> yes, of course. thanks.
Wizek_ has quit [(Ping timeout: 240 seconds)]
Wizek has quit [(Ping timeout: 248 seconds)]
asymmetric has quit [(Ping timeout: 255 seconds)]
phinxy has quit [(Read error: Connection reset by peer)]
phinxy has joined #nixos
endformationage has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] magnetophon opened pull request #27051: notmuch: 0.23.5 -> 0.24.2 (master...notmuch) https://git.io/vQ07b
NixOS_GitHub has left #nixos []
<spluko> trying preConfigure = ''qmakeFlags="INSTALLROOT=$out"'';. In nix-shell, I've done the configure and the build. eval "$installPhase" doesn't seem to do anything, should it?
Filystyn has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQ05k
<NixOS_GitHub> nixpkgs/master dbe61c9 Vincent Laporte: ocamlPackages: make lwt-3.0.0 the default
NixOS_GitHub has left #nixos []
marsel has quit [(Ping timeout: 276 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lheckemann opened pull request #27053: firefox wrapper: add libudev to libs (master...firefox-gamepad) https://git.io/vQ05O
NixOS_GitHub has left #nixos []
<sphalerite> pie__: it was you who noticed that firefox didn't have gamepad support, right? Well ^
<pie__> sphalerite, yay \o/
<spluko> saphalerite: I guess I can't do an install from a shell, but I tried make install anyway. It is still trying to write to /usr/lib
<srhb> spluko: If you're developing currently, you should probably use the builder functions.
<srhb> spluko: as in, unpackPhase, buildPhase, then try figuring out what the installPhase should be if the default one doesn't work
<srhb> spluko: make install is typically not what you want (it usually tries to install globally.) Instead you want the usual "make build" and then your installPhase should copy the resulting files (that should be in a build or dist directory or something like that) to the store, using $out
<srhb> It all depends on the project in question of course.
<srhb> I just noticed you had a longer conversation about this above, sorry about butting in then. :) I should learn to scroll back.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQ059
<NixOS_GitHub> nixpkgs/master 3beb47f Vincent Laporte: ocamlPackages.inotify: init at 2.3...
NixOS_GitHub has left #nixos []
<spluko> srhb: the project is QLC+. it is a QT5 project using qmake. According to the nixpkgs manual, the default installPhase is to create the $out directory and do make install.
asymmetric has joined #nixos
<zraexy> Is there anyone here who can merge hydra pull requests?
pietranera has joined #nixos
pietranera has left #nixos []
ebzzry has quit [(Ping timeout: 276 seconds)]
<srhb> spluko: Yeah I just noticed you were already onto this. But it sounds like the Makefile isn't respecting the destination directory, so you might want your own installPhase. Do you get a decent output in CWD after buildPhase?
pietranera has joined #nixos
<pietranera> Hello, does anyone know how I can expose a lua package to my shell? Is there something similar to python.withPackages?
<pietranera> or anything I can do to modify my LUA_PATH env var... all I can see is that lgi is there (possibly because I am using the Awesome WM)
<pietranera> thank!
<pietranera> thanks!
carlosda1 has joined #nixos
asymmetric has quit [(Quit: ZNC - http://znc.in)]
<nh2> clever: I finished the nginx cache.nixos.org reverse proxy cache we once talked about: https://gist.github.com/nh2/28bce850755cf14bd7749ea78e4238ab. Ha to use proxy_cache_valid, otherwise nginx wouldn't save any files in the cache dir
carlosda1 has quit [(Ping timeout: 248 seconds)]
<spluko> srhb: depends what you mean by decent. It goes through each module of the project to see if there is anything to install. The first one which has something fails when it tries to create /usr/lib. I think I can patch the file to use $out, but I need to figure out how to escape $.
<srhb> spluko: Wait, buildPhase tries to copy things to /usr/lib ? Not installPhase?
asymmetric has joined #nixos
<srhb> But OK, sounds like you have a different but viable approach :)
<spluko> Sorry, my confusion buildPhase is fine and spews pages and pages. The problem is installPhase.
<spluko> I've now patched the file and the failure is now trying to write into the store (in nix-shell)
<spluko> So, this might be fixed.
<spluko> I'll try a nix-build
<Infinisil> srhb: Regarding scrolling back in my IRC client (irssi), I still haven't figured out how I can do that /.\
<nh2> domenkozar: ping
<srhb> Infinisil: I use weechat, it's pageup. I just forget and then regurgitate something someone else has already said :P
<sphalerite> Infinisil: alt-p/alt-n or pgup/pgdown
<srhb> Infinisil: I think irssi has the same bindings, by the way
<srhb> (Or at least weechat is closely modelled on irssi in that regard)
<Infinisil> sphalerite: HOLY SHIT THANKS
<sphalerite> hahaha
<Infinisil> I always pressed Ctrl-P and Ctrl-N and wondered why it wouldnpt work
<sphalerite> those switch between windows :)
<Infinisil> exactly
<Infinisil> my life is complete now
Itkovian has joined #nixos
<Infinisil> Damn, you have no idea how nice it feels to finally be able to scroll back after all this time
<Infinisil> I even turned on logging everything to a file, specifically so I could "scroll back"
rtjure_ has joined #nixos
<sphalerite> There's also https://botbot.me/freenode/nixos/
MercurialAlchemi has quit [(Remote host closed the connection)]
rtjure has quit [(Ping timeout: 276 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Itkovian has joined #nixos
<Infinisil> Yeah, but it's really hard to find something there
ixxie has joined #nixos
Itkovian has quit [(Client Quit)]
rtjure_ has quit [(Ping timeout: 260 seconds)]
ryanartecona has joined #nixos
marsel has joined #nixos
romildo has joined #nixos
Filystyn has quit [(Quit: Konversation terminated!)]
<romildo> Where is the best place in the file system to put a nix expression for the jwm-settings-manager package? It is a configuration manager for JWM: https://github.com/Israel-/jwm-settings-manager
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] emmanuelrosa opened pull request #27054: Revert "splix: enable JBIG" (master...splix-jbig) https://git.io/vQ0bz
NixOS_GitHub has left #nixos []
<romildo> I mean in the nixpkgs repository.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #27047: factorio: 0.15.16 -> 0.15.26 (master...factorio-version) https://git.io/vQ0D4
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #27037: xsv: 0.11.0 -> 0.12.1 (master...xsv) https://git.io/vQ0rQ
NixOS_GitHub has left #nixos []
justan0theruser is now known as justanotheruser
nh2 has quit [(Quit: Leaving.)]
tmaekawa has quit [(Read error: Connection reset by peer)]
tmaekawa has joined #nixos
rodgort has quit [(Quit: Leaving)]
Turion has joined #nixos
carlosda1 has joined #nixos
rodgort has joined #nixos
<spluko> sphalerite: your earlier suggestion of replacing /usr in postPatch worked fine after I figured out how to escape $.
<sphalerite> great!
eacamero_ has joined #nixos
<spluko> Now I have to patch a .sh file with a shebang /bin/bash. What's the recommended way?
stanibanani has left #nixos []
carlosda1 has quit [(Ping timeout: 248 seconds)]
<spluko> Oh, it was in the example you sent earlier
eacamero_ has quit [(Ping timeout: 268 seconds)]
stanibanani has joined #nixos
stanibanani has left #nixos []
riclima has joined #nixos
rtjure has joined #nixos
riclima has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<rtjure> I am trying to set a fixed ip address but had no luck with how it is set in the wiki
<sphalerite> which wiki?
<rtjure> networking.interfaces.enp0s18.ip4 = [ { address = "10.0.10.254"; prefixLength = 24; } ];
<rtjure> did not proof helpful either
<rtjure> on sec
layus has joined #nixos
<rtjure> manual, sorry
<sphalerite> oh right
<sphalerite> And after adding that you did nixos-rebuild switch?
<rtjure> yes
<sphalerite> what does systemctl status enp0s18-cfg.service say?
<rtjure> so I tried eth0 and enp0s18
<Infinisil> spluko: The default mkDerivation should patch shebangs for you
<rtjure> i switched back to access the machine through ssh
<spluko> Infinisil: hmm, well it didn't. using postPatch replace worked though.
<rtjure> i only currently see dhcpd there
<Infinisil> spluko: The default fixup phase should really do that, can you show you nix file?
<spluko> I now have a successful install! ... so how do I test it in nix-shell? I didn't give it a -A in my build
<sphalerite> Infinisil: only in $out, not in the source I believe
<sphalerite> rtjure: sorry, I don't really know. I think someone was having a similar problem a while back though
marsel has quit [(Ping timeout: 240 seconds)]
<spluko> oops
<sphalerite> spluko: what do you want to achieve with the nix-shell?
<sphalerite> Have the result of the build available in it?
<sphalerite> You don't need to, you can just do ./result/bin/<name>
noobly_ has joined #nixos
<sphalerite> but if you want to do it anyway I think the shortest way is nix-shell -p 'import ./default.nix'
<spluko> I want to run the binary which has now been build and placed in the store
rtjure has quit [(Ping timeout: 268 seconds)]
<spluko> ...by nix-build
<spluko> If I had built it with -A qlcplus, i could just use nix-shell -p qlcplus, but I may be completely wrong
<LnL> I think you need to use nix-shell -I nixpkgs=. -p foo in order for -p to use your local checkout
<spluko> LnL: even though I have already done nix-build?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jfrankenau opened pull request #27055: mpd service: Start when needed and harden (master...mpd-startWhenNeeded) https://git.io/vQ0xC
NixOS_GitHub has left #nixos []
<spluko> I tried it and got "error: stack overflow (possible infinite recursion)"
<sphalerite> spluko: just do ./result/bin/qlcplus or whatever
<sphalerite> you don't need nix-shell for that
stanibanani1 has joined #nixos
<sphalerite> But if you do want to use nix-shell I think the shortest way is nix-shell -p 'import ./default.nix'
<sphalerite> As I said before
<Infinisil> sphalerite: Didn't know that works
freusque has joined #nixos
rtjure has joined #nixos
<spluko> Oh, so ./result is a symlink to the entry it created in the store
<spluko> How does import ./default.nix work? How does that know about the entry in the store?
justan0theruser has joined #nixos
<spluko> Is it some map to a cache?
boomshroom has joined #nixos
<boomshroom> Good morning!
freusque has quit [(Ping timeout: 255 seconds)]
<boomshroom> Has anyone tried directly creating a derivation without going through nix-instantiate?
justanotheruser has quit [(Ping timeout: 248 seconds)]
<rtjure> seems like it was the ip(254?) and there was another mistake.. and I forgot I am using that machine to talk to you
marsel has joined #nixos
<boomshroom> As in, making a tool that outputs .drv files directly
<rtjure> thx sphalerite!
<Infinisil> boomshroom: Why would you want that?
<Infinisil> And that's exactly what nix-instantiate already does
justan0theruser has quit [(Quit: WeeChat 1.7.1)]
justanotheruser has joined #nixos
<boomshroom> I'm thinking of making a tool to facilitate installing packages. I figured it would maintain it's own derivation that it builds into the user's environment and I was wondering if it would be possible for it to output a pre-instantiated .drv rather than a .nix.
layus has quit [(Read error: Connection reset by peer)]
layus has joined #nixos
carlosda1 has joined #nixos
pxc has joined #nixos
<boomshroom> I wouldn't just write a simple wrapper around nix-env as I want it to still be declarative and have a list of packages installed with it like a mystuff buildEnv, but accessed with a similar interface as nix-env. Since it would just be one file, it would be easy to move it between machines.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Nadrieril opened pull request #27056: [neovim] Allow overriding the derivation of neovim even through the c… (master...override-configured-neovim) https://git.io/vQ0pO
NixOS_GitHub has left #nixos []
<boomshroom> On my endevours to install Nix on my university account: findutils has failed with 3 test failures, all of which include "Cannot fork"
pietranera has quit [(Ping timeout: 260 seconds)]
ryanartecona has quit [(Quit: ryanartecona)]
romildo has quit [(Quit: Leaving)]
<boomshroom> The first error is failed to create temporary directory because it already exists. Second: t-select-out.tmp: No such file or directory and ./test-select-out.sh: 25: test: =: unexpected operator. Third test-sigprocmask.c:85: assertion 'sigint_occurred == 1' failed.
carlosda1 has quit [(Ping timeout: 260 seconds)]
<boomshroom> Closer inspection reveals that the third error has "sh: fork: retry: No child processes" instead of "Cannot fork."
zraexy has quit [(Ping timeout: 268 seconds)]
<boomshroom> Someone at curseforge decided it was a good idea to only let people install mods through their client and not make it available on all platforms that support Minecraft.
<clever> boomshroom: and that java launcher they had?, lets deprecate it!
<boomshroom> clever: The modpack I'm looking for isn't even mentioned on the FTB site. It's been a while since I've played minecraft, and I figured I'd give it another try after seeing this modpack.
<boomshroom> I can say, I wasn't expecting clever of all people to play Minecraft.
<sphalerite> Do we have a #nixos minecraft server? :p
<clever> i play it every now and then, but the computer has trouble getting reasonable perf
<clever> Baughn runs one
<clever> the server is heavily supported by nix
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03 advanced to https://github.com/NixOS/nixpkgs/commit/057f89b934 (from 33 hours ago, history: https://channels.nix.gsc.io/nixos-17.03)
<Infinisil> Ohh there really is a minecraft server?
nix-gsc-io`bot has quit [(Client Quit)]
<Infinisil> oh, i think i misunderstood
<Infinisil> minecraft is also one of those games I'd really like to get working on NixOS
<clever> its just a server ran on nixos by one of the guys in here, ive played on it before
<boomshroom> "Java Settings (Advanced) Executable: /nix/store/slx523f92g7h161j9wz8wv6v93klm881-openjdk-8u131b11-jre/lib/openjdk/jre/bin/java" Nice.
<clever> Infinisil: i do have nix packages for multimc and ftb launcher
<clever> and mcedit
<boomshroom> I saw MultiMC, but the website didn't give anything for FTB. I guess it just hasn't updated?
<clever> curse is trying to kill ftb
<boomshroom> Well the manual approach didn't work.
<boomshroom> Hold on, I think I found a way to replace the Twitch client with Nix itself. >:D
<Infinisil> clever: Nice
<boomshroom> Downloading the pack manually gave a manifest.json which includes the needed version of minecraft forge, and a list of "files" with a projectID and fileID which can be used to find a specific download link to a jar that can just be dropped into the mods folder.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Nadrieril opened pull request #27057: bitlbee service: Add option to load libpurple plugins into bitlbee (master...bitlbee-libpurple) https://git.io/vQ0hQ
NixOS_GitHub has left #nixos []
<boomshroom> One of the problems I can think of is having the modpack in the store, but the writable saves and configuration files in a writable location.
<sphalerite> you could make a wrapper that creates a temporary directory to replace .minecraft and symlinks in the mutable data from ~/.minecraft and the immutable modpacks
<boomshroom> To the text editor!
praduca has joined #nixos
<Infinisil> Oh hey I just had a cool idea
<Infinisil> how about a per-irc shared machine
<Infinisil> where we could test stuff
<Infinisil> have it in a separate window and everybody could see what was going on
<Infinisil> and typing stuff
<Infinisil> and because all of it would be sandboxed you can't break it (unrecoverably)
<Infinisil> admins could have some permissions over it, like resetting it etc.
stranger__ has joined #nixos
<Infinisil> And there could be a way to register and upload to your specific folder
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Nadrieril opened pull request #27058: fzf: Include fzf shell scripts in output (master...fzf-shell-scripts) https://git.io/vQ0jo
NixOS_GitHub has left #nixos []
<stranger__> hey, there is a fetchgit, but is there a neat way to apply few cherry-picks over checkout?
mkoenig has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fadenb opened pull request #27059: emby: 3.2.20.0 -> 3.2.22.0 (master...emby_3.2.22.0) https://git.io/vQ0jA
NixOS_GitHub has left #nixos []
<Infinisil> stranger__: Don't think so
<Infinisil> You can always just fork though
<sphalerite> Is there a way to do a non-recursive let binding, for the purpose of shadowing a function argument?
<sphalerite> (but using the function argument to compute the value)
<sphalerite> (I don't think it's a good idea, but am curious)
carlosda1 has joined #nixos
mudri has quit [(Ping timeout: 240 seconds)]
<sphalerite> with {a = doSomeStuffWith a;} doesn't work, apparently the pattern binding has higher priortiy or something
carlosda1 has quit [(Ping timeout: 240 seconds)]
<sphalerite> New addition to my zshrc: [[ $RANDOM -lt 16384 ]] && exec fish
telotortium has quit [(Quit: WeeChat 1.8)]
celldee has joined #nixos
Infinisil has quit [(Quit: leaving)]
celldee has quit [(Client Quit)]
ris has joined #nixos
mrcheeks has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/79df6e8068 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
ixxie has quit [(Ping timeout: 260 seconds)]
ixxie has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 opened pull request #27060: kubernetes: 1.5.6 -> 1.6.6 (master...kubernetes-1.6.6) https://git.io/vQEve
NixOS_GitHub has left #nixos []
Infinisil has joined #nixos
Kingsquee has joined #nixos
pxc has quit [(Ping timeout: 258 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] aneeshusa opened pull request #27061: groff: Add site.tmac to fix man page coloring (master...add-site-tmac-for-groff) https://git.io/vQEvg
NixOS_GitHub has left #nixos []
ilyaigpetrov has joined #nixos
ixxie has quit [(Read error: Connection reset by peer)]
layus has quit [(Quit: Leaving)]
tmaekawa has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQEff
<NixOS_GitHub> nixpkgs/master 6cd8de8 romildo: offlineimap: 7.1.0 -> 7.1.1
NixOS_GitHub has left #nixos []
<catern> argh blargh aARGGh
<catern> please help #nixos
<catern> I can do: "nix-shell /nix/store/...-drv; genericBuilder" and it all works fine
<catern> but "nix-store --realise /nix/store/...-drv" fails with a *permissions error*??
contrapumpkin has joined #nixos
<catern> see at the end the chmod error
<catern> to save you the click: chmod: changing permissions of '/nix/store/1v887yh765dmz7r3mlckqlgn2ny73qyq-xz-5.2.2-bin': Operation not permitted
<catern> but I can definitely chmod that path
<symphorien> the sandbox forbids chmod
<catern> that seems doubtful considering the generic builder uses chmod :)
<catern> and I am also not running this build as root - is the sandbox still happening?
stanibanani1 has quit [(Ping timeout: 268 seconds)]
<gchristensen> catern: is it by chance trying to set higher order bits?
<gchristensen> like 1777
<gchristensen> (the 1 is the higher order bit)
<catern> not sure how I can check that?
<catern> also, I just did "nix-store -K --realise /nix/store/...-drv; env -i bash; source /tmp/tmp-build-location/env-vars; source $stdenv; fixupPhase"
<catern> and it worked :(
<catern> whyyyy :(
<catern> gchristensen: I assume the chmod is just the one in the generic fixupPhase, which just does +w
<gchristensen> ah
tmaekawa has joined #nixos
<gchristensen> how did you get here?
<catern> I'm trying to set up Hydra, so I am just setting up a patchelf build to get started. it's pulling from internal (identical) copies of nixpkgs and patchelf, successfully. then when it goes to build patchelf, I get a failure in the build for xz - the one you see above
<catern> (I am setting up Hydra on Debian, and without root access)
<gchristensen> what nixpkgs version?
<catern> I'm also not sure exactly why it isn't using substitutes, but hopefully that doesn't matter
<catern> release-17.03
<catern> the config is exactly copied from what's on hydra.nixos.org
<gchristensen> hmm muilds for me but /nix/store/vkbh4xbgxvx3v9813d4kdwv8ggwrp038-xz-5.2.2-bin
<gchristensen> why different I wonder
<catern> i noticed that too, comparing to release-17.03 on my other installation, but wasn't sure how to debug it
pietranera has joined #nixos
<catern> the depends of my xz seem quite different:
<catern> okay I take it back
<catern> the glibc is the same
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #27059: emby: 3.2.20.0 -> 3.2.22.0 (master...emby_3.2.22.0) https://git.io/vQ0jA
NixOS_GitHub has left #nixos []
<catern> okay, so I guess I need to compare the requisites of the derivation for my XZ and one acquired from the binary cache
<catern> but I don't know how to get the derivation for an xz that comes from the binary cache?
carlosda1 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] swflint opened pull request #27062: Add x11idle package (master...add-x11idle-package) https://git.io/vQEJL
NixOS_GitHub has left #nixos []
<gchristensen> catern: what exactly will you build in your hydra?
marantz has joined #nixos
mudri has joined #nixos
<catern> gchristensen: all of nixpkgs eventually, that's why I wasn't concerned about not getting substitutes
<gchristensen> oh, ok
<gchristensen> well unless you set services.hydra.useSubstitutes it won't use any substitutes
<gchristensen> but if you enable that evaluation takes forever for all of nixpkgs
<pietranera> Hi, is there a way to set up a private binary cache? Any pointers? E.g. I'd like to store numpy built with Python 3.6
<catern> gchristensen: does it take longer than building from scratch?
<gchristensen> pietranera: nix-serve will do it, or nix-push
<gchristensen> catern: well building will be less but evaluation longer
<pietranera> Cool, I'll look into that. Thanks gchristensen
<gchristensen> pietranera: you're welcome :)
carlosda1 has quit [(Ping timeout: 260 seconds)]
<catern> gchristensen: oh, I see... hmm... why is that?
<catern> gchristensen: I don't see the mechanism by which the use of substitutes in the build phase, affects the evaluation of release.nix
<gchristensen> catern: b/c it is much faster to not make 40,000 curl requests :)
<gchristensen> ah, because it checks for subs during evaluation not build
<catern> aha! interesting progress! "nix-build '<nixpkgs>' --check -A lzma" fails with the same error!
<catern> that's not even using release-17.03
<gchristensen> hmm weird
<catern> aha
<catern> and it's not limited to xz, it happens for anything, including hello
<catern> I guess that's chmod -R trying to recurse
<catern> but why isn't it succeeding in the first place?
<boomshroom> I'm trying to use nix-prefetch-url, but the file name isn't a part of the url. Instead the provided url redirects to the filename. The reason I can't use the redirect is because it's not derivable from the json list of dependencies I'm trying to use.
jdjfigihegeghd has joined #nixos
<boomshroom> Is it possible to use nix-prefetch-url if I don't know the end filename?
eacameron has joined #nixos
jdjfigihegeghd has quit [(Read error: Connection reset by peer)]
<catern> boomshroom: could you just download the file then use nix-store --add?
<boomshroom> catern: that works. Now I just need a way to easily call shell commands and parse json.
<clever> gchristensen: i believe hydra checks for subs after the eval, inside the hydra-queue-runner daemon
<clever> gchristensen: as hydra loads each job from the queue, it will check for subs, before moving to the next job
pietranera has quit [(Remote host closed the connection)]
<clever> gchristensen: i have seen it sit on single-threaded curl requests, and not fire new jobs up
<gchristensen> ohhh sorry!
<gchristensen> yes it is the queue monitor thread, not evaluator thread!
<clever> but also, the evaluator will run the build-queued perl hook, for every single build
<clever> eelco made a commit recently saying it takes 0.7sec for each, and ~9 hours in total
<clever> during which time, it cant do another eval of that jobset
<gchristensen> I think he disabled that
<clever> yep
eacameron has quit [(Ping timeout: 260 seconds)]
<clever> and that was just a few hours after i fixed a problem in the github status plugin, related to it
<clever> because it took 9 hours, it could say a build was queued, after the build passed
<clever> causing github to claim the build is pending
<catern> heh, an amusingly fundamental problem on another box (presumably because /nix is a symlink there - it's a bind mount on the box I've been working on before) https://hastebin.com/oqilimucog "configure: error: C compiler cannot create executables"
<clever> catern: can you pastebin the entire output of "mount"?
tmaekawa has quit [(Quit: tmaekawa)]
<catern> clever: with regard to my previous problem? or the one I just posted?
<clever> catern: the one you just posted
justan0theruser has joined #nixos
<catern> I don't expect help with that one, I assume it's just due to /nix being a symlink on this host; also I think I wasn't clear, this problem is occuring on a box where there are no bind mounts or anything happning, so I assume "mount" is not useful
<clever> but the tmpfs its building in might be mounted noexec
<catern> oho
jgertm has joined #nixos
<spinus> I'm working with kvm/qemu, I'm using standard config, but it looks like it mounts /nix/store from host system and than mounts overlays to keep changes to nix store. When I'm not mounting /nix/store, it doesn't boot (as it requires stuff during the boot). What is good way to have persistant /nix/store only inside vm without mounting it? Would it be possible to copy /nix/store/ to disk during the boot if it does not exist? If
<spinus> put that?
<catern> clever: nice guess but it's not mounted noexec
justanotheruser has quit [(Ping timeout: 240 seconds)]
tmaekawa has joined #nixos
<catern> it's not worth debugging this issue though, there's no point in doing any builds on a box where /nix is a symlink, it will fail for various reasons (later, when I can, I will make it not a symlink)
<clever> spinus: you would need to use make-disk-image.nix, and then nix-copy-closure or nixops to keep it up to date
<catern> the more distressing issue is still https://hastebin.com/pujudonubu
<clever> catern: there is an option to allow it to be a symlink
contrapumpkin has quit [(Quit: My MacBook Pro has gone to sleep. ZZZzzz…)]
<clever> tests/common.sh.in: export NIX_IGNORE_SYMLINK_STORE=1
pietranera has joined #nixos
eacameron has joined #nixos
<clever> catern: does tsnix own everything in the store?
<spinus> clever: thanks, I'll take a look at make-disk-image. I'm exactly doing nix-copy-closure part now and I found that
<catern> clever: yes
<catern> clever: and outside the build, I am able to do whatever chmod I like of those paths
<catern> clever: and if I nix-shell and start the build myself, it works too
<clever> odd
<clever> spinus: ive got an example in a gist that does some whacky things
<clever> spinus: this creates a disk image containing a full nixos install, with grub, and xen
<clever> then boots it under qemu
<clever> and makes use of xen commands inside the guest
eacamero_ has joined #nixos
<spinus> xen in qemu?
<clever> yes
<spinus> what does it do?
<spinus> or, what's the point
<clever> i wanted to test xen unikernels, but they only run under the xen hypervisor
<clever> and i wanted the entire test to run without root
<clever> so i had to run xen under qemu
<spinus> wow, cool stuff
<clever> but the critical problem, is that the 9plan/virtio stuff to share /nix/store/ from the host, doesnt work
<clever> so i need a new 1gig disk image file for every test
<clever> say goodbye to your free space :P
eacameron has quit [(Ping timeout: 260 seconds)]
<spinus> samba?
<spinus> nfs
<clever> the host lacks root
<clever> its all happening inside a nix-buid
<clever> build*
<spinus> maybe mount in initrd?
<spinus> ah
<clever> and the linux is inside xen, inside qemu
<clever> it only detects xen, so it turns off qemu features
<clever> who would be crazy enough to run a vm inside a vm?
<spinus> the gist name exactly describes that :)
spluko has quit [(Quit: Page closed)]
<clever> exactly
<clever> but if your fine with impure stuff like persisting the disk image, and using nix-copy-closure to import new builds
<clever> it will work for your needs
<clever> just delete the xen bits
<spinus> I never thought about running that in qemu before, but maybe it's time for me to play with L4
eacameron has joined #nixos
eacamero_ has quit [(Ping timeout: 248 seconds)]
<spinus> I'm exactly very fine with persisting disks, I try to emulate "cloud" :]
<clever> just make sure you enable kvm, or performance will be horid
<spinus> yeah, I'll add qemu module
<spinus> btw, do you know by any chance what's happening when the nix-store changes in host (for example some stuff is removed), is guest going crazy?
<clever> for the normal guests, only stuff that the guest should know about is registered into the db.sqlite
faffolter has quit [(Ping timeout: 268 seconds)]
<clever> and the host knows thats in use via the cmdline in /proc
<clever> so it wont delete that closure
<clever> but when you start doing weird things, you might break it in weird ways
eacameron has quit [(Read error: Connection reset by peer)]
sigmundv_ has joined #nixos
eacameron has joined #nixos
<spinus> clever: yeah, so I was thinking about the scenario like: I'm starting vms, doing stuff, stopping. Another day, I'm doing nix-strore --gc and than try to run guests
<spinus> so yeah, probably disk images is the way to go :)
<spinus> thanks again, I'm looking at your gist now
<clever> the build-vm stuff in nix is mostly meant for read-only use of the store
<clever> where you make a nix file that pre-builds everything it will need, before launching the vm
jsgrant has quit [(Ping timeout: 240 seconds)]
Itkovian has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
<boomshroom> I wonder sometimes when writing scripts to generate nix-files why can't I just write it in Nix. Just because I don't know the hash now doesn't mean I won't later.
eacameron has joined #nixos
<boomshroom> I find it particularly annoying when the website that's hosting the file posts a hash, but you need to download the hash in order for it to be considered deterministic, but you still can't know the hash of the hash.
tmaekawa has quit [(Quit: tmaekawa)]
eacameron has quit [(Ping timeout: 276 seconds)]
<clever> boomshroom: builtins.fetchurl allows you to fetch things in an impure fasion, but it will re-download it every time you eval the nix file
<clever> and thats usualy a bad design in general, because the version can change without warning
eacamero_ has joined #nixos
<boomshroom> clever: Can I use builtins.fetchurl and use its output as a hash for another fetchurl without losing reproducability?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LutzCle opened pull request #27064: makemkv: 1.10.5 -> 1.10.6 (master...master) https://git.io/vQETa
NixOS_GitHub has left #nixos []
<catern> boomshroom: by definition no, because its output could be any arbitrary thing, it could even not be a hash
Turion has quit [(Ping timeout: 248 seconds)]
mkoenig has joined #nixos
eacameron has joined #nixos
<boomshroom> catern: If it wasn't a hash, it would just fail the build rather than leave it with an unchecked download.
<praduca> hi, anyone here use pgadmin?
eacamero_ has quit [(Ping timeout: 255 seconds)]
<praduca> I want to know if the fact that it doesnt end up on the system menu is a bug or not... if so I will fill a bugreport
bennofs has joined #nixos
<clever> boomshroom: but the website could change the tarball and hash at any point, and then it ceases to be reproducable
<catern> boomshroom: yes, the fact that that would cause the build to fail would make it not reproducible
<catern> I guess that's a bit too stringent
phinxy has quit [(Ping timeout: 276 seconds)]
<catern> go with what clever said
<boomshroom> If one of the websites used in Nixpkgs went offline, that would also cause the build to fail.
sg2002 has joined #nixos
<clever> yeah
justan0theruser has quit [(Quit: WeeChat 1.7.1)]
<clever> but if you properly delcare the hash, it can be cached to tarballs.nixos.org
eacameron has quit [(Ping timeout: 260 seconds)]
<clever> and then it can skip the site entirely
<catern> (tarballs.nixos.org is dead, I thought?)
<sg2002> Hello. Have a question - recently I updated my box to plasma5 and now there's no option to switch to a different user from kde. Is this becuase the new dm, whatever it's called does not support this?
<catern> (hydra just does the caching now)
<catern> (but yes)
<clever> catern: not sur eabout that, havent been keeping up wtih how the config is changing behind the scenes
<boomshroom> Really, the current system doesn't drop the impurity, it just moves it to the person or machine writing the derivation. And it's impractical to cache every possible package.
justan0theruser has joined #nixos
noobly_ has left #nixos []
tmaekawa has joined #nixos
carlosda1 has joined #nixos
justan0theruser has quit [(Client Quit)]
eacameron has joined #nixos
justan0theruser has joined #nixos
<boomshroom> As a person, I am lazy. Therefore, if I can make a machine do most of the work, it will. That means 1 step asking nix for a type of package and its id and it taking care of the rest, rather than use a separate tool to download everything impurely and then tell Nix what to do assuming that what it downloaded is reproducible.
<spinus> boomshroom: for the same reason I prefer nix way
<spinus> I spent so many hours debugging crap
<spinus> waste of time debugging because somebody changed the file on some hosting
<spinus> or changed a tag in git
<boomshroom> I basically have to download a package before telling Nix how to download what I just downloaded, despite the fact that it's unlikely anyone else will use it.
carlosda1 has quit [(Ping timeout: 240 seconds)]
<spinus> boomshroom: I have a scripts for that, for most 3rdparty packages I have "update" script which fetches stuff and produce nix source file
<spinus> garbas uses that aproach in firefox in nixpkgs I think
<spinus> so you fetches new sources, run your tests, if everything is ok, you commit that and stay happy
eacameron has quit [(Ping timeout: 255 seconds)]
eacameron has joined #nixos
DeaDSouL has joined #nixos
<boomshroom> The script I'm writing doesn't even do updates, it takes a specific version and gives its dependencies, which are all given as specific versions.
<boomshroom> So the whole thing is as deterministic as the file host.
<boomshroom> One thing that's annoying is that he md5 of each file is provided... embedded in HTML.
<boomshroom> Is it possible to write a Nix derivation that makes a Nix derivation?
eacameron has quit [(Ping timeout: 268 seconds)]
<simpson> Yes; the pattern is called import-from-derivation.
<simpson> And it works like it sounds: write an expression to the Nix store, then import from it.
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
eacameron has joined #nixos
<joepie91> praduca: depending on your environment you may need to relogin to your session to trigger a rescan of applications
<praduca> ah, ok. The thing is I installed it for some weeks now, and even an reinstall doesn't do the icon to appear on menu... but other apps do
<joepie91> praduca: have you restarted or relogged-in yet, though?
<joepie91> a lot of application menus do rescans on every logon
<boomshroom> The first derivation would be nondeterministic (unless the file-host acts nicely), the output derivation would be deterministic.
<joepie91> praduca: hm, now that I check, pgadmin isn't in my application menu either
<joepie91> so yeah, that might actually be a package bujg
<joepie91> bug*
<boomshroom> BRB: going to mow the lawn.
<praduca> both. is a desktop, and i did a restart after reinstall pgadmin just now
boomshroom is now known as boomshroom-away
<joepie91> yeah, def a bug then
tmaekawa has quit [(Quit: tmaekawa)]
<praduca> i think i will try to login on kde to see if it correct the problem...
<praduca> I use gnome and xfce
<joepie91> mind that it's going to be a bug either way :P
<joepie91> XFCE 4 here with whiskers menu
<joepie91> or w/e it's called
<joepie91> the slightly fancier menu
eacameron has quit [(Ping timeout: 260 seconds)]
<praduca> ok, I will try to do the reinstall and restart the computer on kde just in case. if the problem doesn't solve, I fill a bug report for it
<praduca> tks to all!
bennofs has quit [(Ping timeout: 248 seconds)]
<gchristensen> praduca: try opening the program via the terminal maybe?
<joepie91> praduca: please file a bug even if a KDE start *does* solve the issue :)
<praduca> ah, it works
<joepie91> because even if it works in KDE, that just means it's a bit less broken, but still broken
<praduca> I'm just trying to figure out if the menu is a bug :) i'm opening it from the terminal since
<praduca> but tks :)
<praduca> rebooting
<joepie91> well yeah - if something GUI-y is installed but does not appear in the menu, then it's going to be a bug either way :P
Wizek has joined #nixos
proteusguy has quit [(Quit: Leaving)]
eacameron has joined #nixos
praduca has quit [(Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Wizek_ has joined #nixos
Itkovian has joined #nixos
Jackneilll has quit [(Remote host closed the connection)]
simukis has quit [(Ping timeout: 255 seconds)]
jdjfigihegeghd has joined #nixos
jdjfigihegeghd has left #nixos []
pietranera has quit [(Quit: Leaving.)]
eacameron has quit [(Ping timeout: 240 seconds)]
arianvp2 has joined #nixos
eacameron has joined #nixos
phinxy has joined #nixos
praduca has joined #nixos
Fare has quit [(Quit: Leaving)]
eacameron has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Lassulus opened pull request #27066: ucspi-tcp: remove tests for file permissions (master...ucspi-tcp-fix) https://git.io/vQEIb
NixOS_GitHub has left #nixos []
<spinus> clever: disk is built ok, but at boot time, it says "found a dos partition table in /dev/vda", did you have that by any chance?
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
riclima has joined #nixos
riclima has quit [(Read error: Connection reset by peer)]
<spinus> it's kind of strage, I connected through vnc and terminal, but keyboard doesn't react (but it's working in grub)
stranger__ has quit [(Quit: Connection closed for inactivity)]
marsel has quit [(Ping timeout: 260 seconds)]
hapticFeels has joined #nixos
jgertm has quit [(Ping timeout: 240 seconds)]
magnetophon1 has joined #nixos
<magnetophon1> I have a couple of system profiles that I'd like to get rid of completely. How can I do that?
mitchty has quit [(Remote host closed the connection)]
mitchty has joined #nixos
<gchristensen> magnetophon1: find the profile's gc root via `nix-store --gc --print-roots` then delete it
celldee has joined #nixos
<magnetophon1> gchristensen: Thanks, so I can just manually delete the unneeded folders in "/nix/var/nix/profiles/system-profiles/"?
pikajude has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<gchristensen> yeah, then
<gchristensen> nix-collect-garbag
<gchristensen> e
pikajude has joined #nixos
<magnetophon1> gchristensen: thanks!
celldee has quit [(Client Quit)]
vandenoever has quit [(Ping timeout: 248 seconds)]
hiratara has quit [(Ping timeout: 246 seconds)]
Rajsun has joined #nixos
carlosda1 has joined #nixos
hiratara has joined #nixos
eacameron has joined #nixos
carlosda1 has quit [(Ping timeout: 248 seconds)]
eacameron has quit [(Ping timeout: 260 seconds)]
eacameron has joined #nixos
<spinus> I found that I had "qemu" in modules and that was part of the problem
<spinus> looks like qemu module requires some specific layout/fs
eacameron has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
ddd12 has joined #nixos
<praduca> Hi, anyone knows if VICE emulator need some configuration to work properly on nixos?
eacameron has quit [(Ping timeout: 260 seconds)]
eacameron has joined #nixos
<boomshroom-away> If I make a derivation that depends on builtins.fetchurl, it will download the file unconditionally, but will still use the old versions if the hash is the same, correct?
boomshroom-away is now known as boomshroom
eacameron has quit [(Ping timeout: 276 seconds)]
davidak has quit [(Quit: Leaving.)]
<boomshroom> Is it possible to call bash code outside of stdenv.mkDerivation?
eacameron has joined #nixos
<magnetophon1> when I try to build with a musnix RT kernel, I get: "error: anonymous function at /home/bart/source/nixpkgs/pkgs/os-specific/linux/kernel/generic.nix:1:1 called without required argument ‘hostPlatform’, at /home/bart/source/musnix/pkgs/os-specific/linux/kernel/linux-4.9-rt.nix:3:1", here's that file: https://github.com/musnix/musnix/blob/master/pkgs/os-specific/linux/kernel/linux-4.9-rt.nix
<spinus> boomshroom: yes
<magnetophon1> any ideas what causes that?
<spinus> boomshroom: what do you mean outside?
thc202 has quit [(Ping timeout: 260 seconds)]
hamishmack has quit [(Quit: hamishmack)]
<boomshroom> spinus: As in without instantiating a derivation with a "builder" attribute. Mostly because I don't know the name if the file statically.
ebzzry has joined #nixos
<spinus> boomshroom: I think I don't get your use case
eacameron has quit [(Ping timeout: 276 seconds)]
<boomshroom> like an `extern` function in c and other languages. Or `native` in Java. I could make a derivation and just have the name be the provided ids with the actual file inside a directory.
eacameron has joined #nixos
sigmundv_ has quit [(Ping timeout: 260 seconds)]
eacameron has quit [(Ping timeout: 260 seconds)]
<boomshroom> How do I download a file from the commandline who's name isn't the basename of the provided url?
<spinus> curl url -o file?
hiratara has quit [(Remote host closed the connection)]
<boomshroom> spinus: I don't know the filename either, it's gotten from a redirect.
<spinus> curl -L follows redirects, try with that
<boomshroom> (I mean, I o for this specific one, but I like making things general)
hiratara has joined #nixos
eacameron has joined #nixos
praduca has quit [(Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)]
praduca has joined #nixos
arianvp2 has quit [(Quit: arianvp2)]
<boomshroom> curl may be able to follow redirects, but I need the basename of the redirect. If I go to the url in my browser, the url ends in "download", but when it actually downloads, it has the proper filename.
eacameron has quit [(Ping timeout: 240 seconds)]
<magnetophon1> gchristensen: hmm, I seem to have been over eager with deleting GC roots: "File or directory doesn't exist: /nix/var/nix/profiles/per-user/root/channels/" how do I recreate it?
<spinus> boomshroom: curl should catch that
<spinus> if not, you can follow the redirects manually
<spinus> and you should have filename in the header returned by last call
<boomshroom> For something ubiquitous in web browsers, I'm surprised it's so hard to find the functionality in a command line tool.
<gchristensen> magnetophon1: why did you delete it?
<clever> spinus: is partitioned=true; and installBootloader=true set?
<magnetophon1> gchristensen: cause I'm dumb
<magnetophon1> :/
<clever> spinus: ahh
<magnetophon1> gchristensen: "nix-channel --update" seems to have fixed it though
<gchristensen> ok but maybe be cautious in there.
<gchristensen> my question again though is why did you delete it? what were you hoping it would do?
<clever> 2017-07-02 18:42:34 < magnetophon1> I have a couple of system profiles that I'd like to get rid of completely. How can I do that?
<magnetophon1> gchristensen: I was just trying to get rid of unneeded profiles, and mistake that for one
<magnetophon1> clever: yup
<gchristensen> why are you trying to get rid f unneeded profiles?
eacameron has joined #nixos
<clever> magnetophon1: there are 4 to 5 profiles most of the time, nixos, channels (root, your user), nix-env (root, your user)
<magnetophon1> gchristensen: more diskspace, less cutter in grub
<gchristensen> and nix-collect-garbage -d doesn't do enough for you?
<clever> only the ones starting with system show up in grub, and even after you GC them, you need to rebuild the grub config
<magnetophon1> s/cutter/clutter
<spinus> clever: yes, both set. I removed qemu from modules and solved that one. Now I'm fighting with another thing, it does not see the disk at all. I used shell_on_fail and no disk at all, maybe I have wrong params to libvirt
<clever> spinus: you may need to include the kernel modules in the initrd, one sec
<magnetophon1> clever: if I do a successful rebuild switch my grub shoud be OK again, right?
<clever> magnetophon1: yeah
<magnetophon1> phew
<clever> spinus: the qemu-vm.nix in nixos tries to also share the store, but i have a more stripped down one
<gchristensen> magnetophon1: did you try nix-collect-garbage -d ?
<magnetophon1> gchristensen: yes
<clever> spinus: this only puts the qemu drivers into the initrd, but doesnt force weird config onto things
<gchristensen> it wasn't thorough enough?
carlosda1 has joined #nixos
<magnetophon1> gchristensen: no, I had a few profiles witch pointed to old nixos versions, so lot's of disk-space
<spinus> yeah, I'm exactly looking at qemu file in nix now and trying to find modules
<spinus> clever: ^^
<gchristensen> but nix-collect-garbage deletes every generation but the one you booted with, and the current one
<clever> spinus: the one i linked should have most of them
<gchristensen> if you pass '-d'
<magnetophon1> gchristensen: and clutter in grub. they are gone now. (haven't rebooted yet though, so idk for sure about grub)
eacameron has quit [(Ping timeout: 248 seconds)]
<boomshroom> Well, so far curl options "-O", "-J", "-LO", and "-LJ" don't do what I want.
<gchristensen> but that is what nix-collect-garbage does, is what Im trying to say, and I suspect you're not aware of the `-d` option since it is less dangerous that rm'ing random symlinks
eacameron has joined #nixos
<magnetophon1> gchristensen: it didn't delete them. that's why I asked her about removing profiles. and you told me I could rm links... no?
<spinus> clever: thank you sir, trying that now (I see also that qemu config has some kernel setup, I'll try that next)
<gchristensen> it sounded like you had a specific profile, not general clean up :)
<gchristensen> did you run it as root?
<magnetophon1> gchristensen: yes
<gchristensen> ok
<boomshroom> spinus: I was on that page when you pinged me.
<magnetophon1> gchristensen: and I'm 99% sure it didn't remove the profiles. it left one version of each profile
<clever> magnetophon1: you need to leave 2 links, the un-numbered one, and the one it points to
<boomshroom> hm... the code that it suggests to pull the url doesn't seem to work.
eacamero_ has joined #nixos
<boomshroom> It's not giving any ouput at all.
eacameron has quit [(Ping timeout: 255 seconds)]
<magnetophon1> clever: /nix/var/nix/profiles/system-profiles/ is empty now, but I do have a /nix/var/nix/profiles/default Is that ok?
<clever> there shouldnt be any link or dir called system-profiles
<clever> ls -l /nix/var/nix/profiles/
<clever> magnetophon1: what does this say about system?
roconnor has joined #nixos
<boomshroom> This functionality is present by default on most web browsers. Do people think command line users just don't need it?
<magnetophon1> clever: system -> system-75-link
<clever> magnetophon1: and does system-75-link exist?
<magnetophon1> system-75-link -> /nix/store/iqp38ckx45zqkrz60j5djmnkql81rbqr-nixos-system-thinknix-17.09.git.7bd8c96
Wizek_ has quit [(Ping timeout: 276 seconds)]
<clever> then system is still intact
<magnetophon1> \o/
Wizek has quit [(Ping timeout: 276 seconds)]
hamishmack has joined #nixos
<magnetophon1> clever: gchristensen: could any of this be related to "kernel/generic.nix:1:1 called without required argument ‘hostPlatform’" ?
<spinus> clever: module list from your link works like a charm, thank you very much for all help!
<clever> magnetophon1: that sounds like the recent cross-compiler changes
eacamero_ has quit [(Ping timeout: 248 seconds)]
<spinus> boomshroom: command line tools are usually low level, and curl is doing exactly that. Send a patch to curl, be a hero :)
<magnetophon1> clever: could you point me in the right direction? How do I fix https://github.com/musnix/musnix/blob/master/pkgs/os-specific/linux/kernel/linux-4.9-rt.nix ? Is that even the correct place to fix it?
eacameron has joined #nixos
<clever> magnetophon1: it might be simpler to just use an older version of nixos, try 17.03 or 16.09
<clever> and report a bug to musnix
<spinus> boomshroom: if it's not a secret, if you paste a link I can try to fetch
<spinus> btw, I was wondering, when nixosState is bumped, when I change it in configuration.nix? (it only goes forward, right?)
<clever> spinus: it should never be bumped
<boomshroom> I want "ActuallyAdditions-1.10.2-r105.jar", not "download"
erictapen has quit [(Ping timeout: 240 seconds)]
<clever> spinus: the whole point of that option, is so that nixos knows what state your nixos was originally installed in
<magnetophon1> clever: sure, that would be more simple, but then I'd be missing all my recent PR's which just landed in unstable. Where can I read up on those cross compiler changes?
Guest27936 has quit [(Quit: Lost terminal)]
<boomshroom> wget prints out the redirected url, but I can't find an option to make the output its basename rather than what I typed.
<spinus> clever: ah, I think I need to read
<magnetophon1> clever: I've already reported a bug 15 min ago...
<tilpner> spinus - On reinstallation, probably
<clever> magnetophon1: you may want to compare it to the new versions of the kernel stuff in nixpkgs
<clever> spinus: stateVersion controls a range of things that arent backwards compatible, like the postgresql format on-disk, what type of ssh host keys sshd uses, and a few others
sg2002 has left #nixos ["ERC (IRC client for Emacs 25.2.2)"]
<gchristensen> clever: that option needs more in-line docs :P
eacameron has quit [(Ping timeout: 260 seconds)]
<magnetophon1> clever: thanks!
<spinus> boomshroom: in that case, looks like the server doesn't return proper header with filename
<spinus> it only redirects to new path
<magnetophon1> and gchristensen: thanks you too! both of you have been very helpful, like always!
<clever> boomshroom: i believe with the name attribute of fetchurl, you can just set the name
<gchristensen> <3 I'm sorry I got grumpy about nix-collect-garbage / -d
<clever> boomshroom: and nix-prefetch-url can accept a nix file and attribute path
<spinus> I see curl and wget can use remote filename (curl with -O) but server must return proper response
<spinus> browsers do a lot of tricks to provide better user exp
<boomshroom> clever: I'm not
eacameron has joined #nixos
<spinus> clever: tilpner: what if I want to upgrade all those, postgres format and keys :)? reinstall?
<boomshroom> I'm not going to manually encode 96 filenames for this.
<clever> spinus: bump the state version, and then fix whatever breaks
<tilpner> spinus - I don't know what's stored in that postgres db, but I imagine wiping only the relevant parts would be easier than reinstalling
<magnetophon1> gchristensen: NP, sorry for being so careless. NixOS has spoiled me, making me think my system is unbreakable. (and it hasn't let me down this time either. :) )
<clever> boomshroom: you may want to read over the nix files in https://github.com/Erisia/builder
<tilpner> spinus - You would lose data in either case (unless you intend to migrate it manually, which is probably too tedious), so there's no reason to reinstall
<clever> boomshroom: that does some things involving modpacks in curse
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
<spinus> tilpner: clever: I see, thanks for explaining, so actually I should be good. Curretnly my approach is that I connect to my vms, nixos-generate-cofnig --show-hardware-only (state is here) and I merge that with my config.
<clever> spinus: oh, that option looks handy
eacamero_ has joined #nixos
eacameron has quit [(Ping timeout: 260 seconds)]
<magnetophon1> clever: that was easy enough: I did some git-timemachine in emacs, and found that all I needed to do was add "hostPlatform, " to the first line... kernel is building, PR to musnix is in the making...
<clever> :D
<boomshroom> clever: from what I can tell, it seems to be three hardcoded modpacks that use mods from curse, rather than scripts to import modpacks from curse.
eacamero_ has quit [(Ping timeout: 260 seconds)]
<clever> boomshroom: it might have been generated somewhere, you can try asking Baughn next time he is on
<clever> brb
<Baughn> Uhm?
<Baughn> Oh, yeah. I have a tool to scrape / update packs on curse, but it's not in that repository. I kind of left it at the 90%-done mark, see.
<Baughn> I do mean to merge them. Anyway, this: https://github.com/Erisia/cursetool
<Baughn> You can use the 'import' subcommand to convert a Curseforge .zip modpack to the .yaml format the tool otherwise uses as input.
mkoenig has quit [(Remote host closed the connection)]
<boomshroom> Baughn: Thank you. I found cursetool when looking where 'builder' was generated, and while I don't care about the yaml, it otherwise seems to do most of what I want. Now to get it to output a client configuration rather than a server configuration.
<Baughn> It won't do that directly, but the builder can output an MCUpdater configuration.
<Baughn> It's got comments on how to do so on localhost if you'd like to try it.
justelex has quit [(Read error: Connection reset by peer)]
justelex_ has joined #nixos
<boomshroom> Baughn: I'll check out MCUpdater. I like to do things with the vanilla launcher. I keep a 'minerafts' subdirectory of my .minecraft where I keep my modpacks.
<Baughn> The pack-builder is very much geared towards running servers. MCUpdater is how I get people clients to connect to said server.
<Baughn> There simpler ways, if you just want to run a Curse pack. MultiMC can do it, for example.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Profpatsch opened pull request #27068: i3 man & doc (master...i3-man) https://git.io/vQE3I
NixOS_GitHub has left #nixos []
marantz has quit [(Quit: Leaving.)]
erictapen has joined #nixos
nh2 has joined #nixos
<boomshroom> "packs without servers are useless" Whoever wrote that clearly doesn't understand singleplayer.
<Baughn> Perhaps not, though some people do claim performance improvements from splitting the game in half. ;-)
<boomshroom> I've tried running a local server. It did not work.
spinus has left #nixos []
<Baughn> Oh, that does typically mean on a second computer.
eacameron has joined #nixos
<boomshroom> Baughn: Oh. I have tried connecting to a server on my desktop from my laptop. It wasn't terrible, but the keyboard, trackpad, and monitor on my laptop are nowhere near as enjoyable as my full desktop setup.
<Baughn> ...yeah, I don't think that'd overcome your laptop not being a desktop.
eacamero_ has joined #nixos
justelex_ has quit [(Ping timeout: 255 seconds)]
eacameron has quit [(Ping timeout: 240 seconds)]
erictapen has quit [(Ping timeout: 240 seconds)]
<clever> boomshroom: i also prefer a private server so chunkloaders dont cripple my system when i'm not actually playing
<clever> (aka, having to leave the entire client open)
eacamero_ has quit [(Ping timeout: 268 seconds)]
markus1189 has joined #nixos
<clever> boomshroom: and if i forget to even play the game for a week, i can login to a surprise of more stuff, or game-breaking lag from an out of control farm, lol
markus1199 has quit [(Ping timeout: 260 seconds)]
<boomshroom> clever: I don't know if that's a good thing or a bad thing. One thing I do know is it's hard to convert a singleplayer world to a multiplayer world. The last time I tried that, I ended up teleporting and duplication items.
<clever> the only thing i can think of that would cause that, is if you where forcing the game to play offline
<clever> the server thinks your a different player
elninja44 has joined #nixos
pie__ has quit [(Ping timeout: 240 seconds)]
hellrazor has quit [(Ping timeout: 260 seconds)]
hellrazor has joined #nixos
phinxy has quit [(Read error: Connection reset by peer)]
ericsagnes has quit [(Ping timeout: 255 seconds)]
ris has quit [(Ping timeout: 240 seconds)]