gchristensen changed the topic of #nixos to: Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://botbot.me/freenode/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64
boomshroom has joined #nixos
<boomshroom> When trying to use gccCrossStageStatic with a crossSystem, nix complains about an unknown libc. It says the same thing regardless of omitting it or setting it to null.
<boomshroom> Hello?
<sphalerite> boomshroom: hello
<boomshroom> I'm back from my laptop with homework printed.
<boomshroom> The channel seems a bit quieter than when I left.
<sphalerite> CapsAdmin: are you Elias Hogstvedt?
<sphalerite> (because your question sounds quite similar to some emails on the mailing list recently)
<boomshroom> How do I prevent gccCrossStageStatic from using and building a libc?
<CapsAdmin> sphalerite, yes
<CapsAdmin> my question now or on the mailing list?
<sphalerite> CapsAdmin: it seems your main concern is getting rid of nix after using it?
<CapsAdmin> yes, that's my concern right now
<CapsAdmin> well
<sphalerite> CapsAdmin: a regular single-user installation can be cleanly wiped out by removing /nix and ~/.nix-*. That should be all it takes, so going with the well-trodden path of the standard single-user installation is probably your best option
<CapsAdmin> sphalerite, when i posted on the mailing list it was just a detail (didn't want to clutter someones system) but now there's a different issue where the binaries from nix depend on nix (for obvious reasons)
<CapsAdmin> so right now i'm wondering how to deal with this
<sphalerite> https://github.com/matthewbauer/nix-bundle might be relevant
<CapsAdmin> how can i take freetype for instance out of nix and make it independent
<CapsAdmin> maybe, thanks
<sphalerite> there's no trivial way to do it because that's not how nix is designed to work
fyuuri has quit [Ping timeout: 256 seconds]
<CapsAdmin> yeah
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] adelbertc opened pull request #1817: HttpBinaryCacheStore: Support upsertFile with PUT. (master...http-binary-cache-put-upsert) https://git.io/vNP6j
NixOS_GitHub has left #nixos [#nixos]
<sphalerite> so what you'll want is probably something like nix-bundle, or using nix to build docker images, or something
<sphalerite> but none of those are really as elegant as just using nix properly
<CapsAdmin> but i want this for libraries, not executables
<CapsAdmin> sphalerite, i was thinknig of just using patchelf if possible
<sphalerite> you could do that but it's a massive fuss and kind of defeats the point of using nix
<sphalerite> you might as well just use static libraries with a more traditional package manager
<TimePath> It should be easier going in reverse though, right?
<TimePath> If there are any store references detected, you missed a thing
<CapsAdmin> sphalerite, what i thought was useful about nix initially was just that it was a portable package manager with most of the packages i want available
<CapsAdmin> i didn't think of how it works necessarily
alex`` has quit [Ping timeout: 240 seconds]
<sphalerite> CapsAdmin: yeah then nix is probably not what you're looking for. Or rather, you're not looking for nix. Yet ;)
yegortimoshenko has quit [Remote host closed the connection]
<boomshroom> If I want to build a compiler that runs on my local platform and builds for a foreign target, is gccCrossStageStatic the right thing to do?
yegortimoshenko has joined #nixos
jb55 has joined #nixos
<CapsAdmin> sphalerite, i think this would be an issue regardless, ultimately i want my application to be portable
<CapsAdmin> at least nix seems very clear about dependencies
<sphalerite> CapsAdmin: the best thing to do for portability is not to bother with binary distributions
<sphalerite> CapsAdmin: just make a source tarball and package it for your distro(s) of choice, and let other people take care of packaging it for other distros.
<CapsAdmin> well maybe i can rely on nix to take care of binaries for me
<CapsAdmin> hmmm
<sphalerite> CapsAdmin: single binary distributions are mired with problems, at the latest when you get to paradigm-changing packaging systems like nix. Just go with source. It works for most software.
<CapsAdmin> the problem is that i'm not maintaining the source
<CapsAdmin> i mean, my source is luajit so that's fine
<CapsAdmin> but i don't maintain freetype for instance
<sphalerite> CapsAdmin: if you use something like nix-bundle you're redistributing the libraries your application depends on — along with any bugs in them — and making it harder to replace them. And it increases the size significantly
drakonis_ has joined #nixos
Drakonis has quit [Ping timeout: 240 seconds]
<boomshroom> Looking at nixpkgs reveals that gccCrossStageStatic calls out to libcCrossChooser which panics when given anything other than the 4 it expects. This is a problem for me because I don't want a libc.
<boomshroom> I think that's why I did the roundabout manner I did before.
<sphalerite> CapsAdmin: so what you're making is a binary distribution of luajit?
silver_ has joined #nixos
erasmas has quit [Ping timeout: 240 seconds]
aloiscochard has quit [Quit: Connection closed for inactivity]
<CapsAdmin> sphalerite, luajit should not have any dependencies but i'm dynamically loading freetype and whatnot from within luajit
dkao has quit [Ping timeout: 240 seconds]
<CapsAdmin> i have prebuilt binaries on github
silver has quit [Ping timeout: 240 seconds]
<simpson> CapsAdmin: By chance, is this to distribute a game?
<CapsAdmin> not really
<CapsAdmin> i'm more or less the only user of this project
<simpson> Oh. Then what's driving your redistributable requirements?
<CapsAdmin> i just think it's fun lol
<CapsAdmin> i want to try and do it properly
<simpson> "properly" in this case involves embracing Nix.
<CapsAdmin> i guess
<CapsAdmin> first i want to try and resolve dependencies with ldd
<CapsAdmin> maybe the best way is to ask users to install nix to get the binaries needed
dkao has joined #nixos
FareTower has joined #nixos
<simpson> I thought that you were the only user.
digitus has quit [Quit: digitus]
Fare has quit [Ping timeout: 248 seconds]
<CapsAdmin> simpson, yeah but i'd like to imagine i guess
dkao has quit [Ping timeout: 240 seconds]
<CapsAdmin> maybe i can share with some friends
<simpson> CapsAdmin: I don't have friends, but if I want people to use my software these days, I check in a shell.nix. Nix is getting much more popular.
<CapsAdmin> i can also change my environment :)
<CapsAdmin> lol
* infinisil hugs simpson
FareTower has quit [Ping timeout: 260 seconds]
<judson> Dunno if this is still useful, but clever asked for a gist of my rustc build failure: https://gist.github.com/nyarly/ec8d428852cf99b982bebcc5c692362c
<CapsAdmin> ok so with the help of ldd, i can literally copy the dependencies of the shared library flat into my binary directory and export LD_LIBRARY_PATH=mybindir
silver_ is now known as silver
<CapsAdmin> that does seem to work (strace says it loads from mybindir rather than nix)
<TimePath> I've dealt with a project that had a dist script like that to copy all transitive shared libraries to the output
<clever> CapsAdmin: nixos also does similar, to make the initrd
<TimePath> It worked mostly, some of them required additional files at runtime though
yegortimoshenko has quit [Remote host closed the connection]
yegortimoshenko has joined #nixos
<TimePath> clever: seen this in not-os :)
jrolfs has quit [Quit: WeeChat 1.9.1]
<boomshroom> I think I managed to get gcc to build! :D
<clever> yay
thc202 has quit [Ping timeout: 240 seconds]
<judson> CapsAdmin, what I'm understanding is that you're working on a hobby project game, and concerned about how to package and distribute it once you get it going?
<judson> Games tend to be messy in terms of the dependencies and distribution. The former is what made me think of nix-shell
<judson> Long term, you'll have an easier time if you can get a shell.nix to set up your working environment - then you can crib and hack on your setup for the next project.
<judson> But, maybe we're not there yet, and you're happier to whack libraries around by hand.
<judson> Anywhere but games, I'd advise against that, but I appreciate how weird gamedev can be.
<CapsAdmin> judson, i think my goal is just to refactor my build system. use something that's proven to work
iqubic has joined #nixos
<CapsAdmin> i mean, that's the ultimate goal, but now i'm getting a little sidetracked on these details
mizu_no_oto has joined #nixos
<CapsAdmin> although i've often run into issues of one small library missing here and there on different linux distros
<clever> CapsAdmin: you may also want to look into appimage and nix bundle
<CapsAdmin> i thiknk relying on nix is a bit scary right now (takes too long to setup initially) :)
<CapsAdmin> yes, nix-bundle looks interesting clever
<CapsAdmin> thanks
<CapsAdmin> you've been really helpful i think
<clever> yep
judson has quit [Ping timeout: 246 seconds]
<iqubic> What does the "nix-build" command do?
pie_ has joined #nixos
FareTower has joined #nixos
quam6246 has joined #nixos
pie__ has quit [Ping timeout: 268 seconds]
<gchristensen> iqubic: it evaluates the nix expression, which creates a number of derivation files (.drv) in the nix store, and then Realizes those derivations in to store paths (ie: runs the build commands to follow the instructions to build the software)
<infinisil> iqubic: please read the nix pills for such basic questions
<infinisil> or read the man page
<iqubic> infinisil: I have to do that.
<iqubic> I should do that right now.
randomstrangerb has quit [Ping timeout: 240 seconds]
randomstrangerb has joined #nixos
quam6246 has quit [Ping timeout: 240 seconds]
<CapsAdmin> in a nix expression i can do ${freetype.dev} ${libarchive.dev} to get the header location of that package, but theh assimp library for instance doesn't have this
<clever> CapsAdmin: its just ${assimp}/include
ixxie has quit [Ping timeout: 246 seconds]
Rusty1_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #34276: abcmidi: 2018.01.02 -> 2018.01.25 (master...abcmidi) https://git.io/vNPDN
NixOS_GitHub has left #nixos [#nixos]
<boomshroom> I was able to (mostly) build a arm-none-eabi binutils, but then it complains that `arm-none-eabi-ld` doesn't exist. It appears to have an `ld` and a help command makes it look like it's actually and x86 linker/assembler.
__monty__ has quit [Quit: leaving]
<boomshroom> I will be back in a few minutes after dinner. Bye!
boomshroom has left #nixos [#nixos]
<CapsAdmin> clever, is that the common way of doing it?
<clever> CapsAdmin: there is a function in lib that will get .out if .lib doesnt exist
ryanartecona has quit [Quit: ryanartecona]
<clever> nix-repl> "${lib.getDev freetype}"
<clever> "/nix/store/s3cy1qvbczvzwx131k38kb5x3qzlv49i-freetype-2.7.1-dev"
<clever> nix-repl> "${lib.getDev assimp}"
<clever> "/nix/store/dw0b5i35vw3z4qmw02fhgnhimj6ri01q-assimp-4.1.0"
<clever> .dev i mean
<CapsAdmin> thanks
<clever> lib.getBin lib.getDev lib.getLib
<clever> 3 of them
<CapsAdmin> because i have a generated nix script where the package can change
<CapsAdmin> oh
<CapsAdmin> lib.getLib would also be useful
<CapsAdmin> clever, what's lib? a package i need to import?
<clever> its also at stdenv.lib and pkgs.lib
<clever> and a few other places
swayf has quit [Remote host closed the connection]
swayf has joined #nixos
<CapsAdmin> it says attribute lib is missing
<clever> can you gist your current expression?
<CapsAdmin> ]==] .. data.name .. [==[ is replaced with the package name
<clever> line 1 brings all of pkgs into scope
<clever> so lib just works
<clever> can you gist the output of that generation code?
<CapsAdmin> would mkDerivation { also work then?
<CapsAdmin> without stdenv
<clever> nope
<clever> mkDerivation is part of stdenv
<clever> and stdenv is within pkgs
<clever> also, you may want to switch to using json and more nix to do the generation
<clever> rather then all of that ==] mess
<clever> find ${assimp.lib}/lib/;
<clever> assimp doesnt have a .lib
<clever> you need to use ${lib.getLib assimp}
pie_ has quit [Remote host closed the connection]
<CapsAdmin> oh that's what's erroring lol
<iqubic> Why is it that this simple derivation lacks a builder and an args attribute?
<clever> the errors should also include line numbers
pie_ has joined #nixos
<clever> iqubic: its using the default builder for the stdenv
<clever> iqubic: which just unpacks $src, and runs ./configure && make && make install
<clever> CapsAdmin: also, the path you have on line 7 isnt pure, gcc -xc -E -P -I${lib.getDev assimp} -c /home/caps/goluwa/goluwa/framework/lua/build/assimp/temp.c -o temp.p
<clever> CapsAdmin: instead, do this: gcc -xc -E -P -I${lib.getDev assimp} -c ${/home/caps/goluwa/goluwa/framework/lua/build/assimp/temp.c} -o temp.p or similiar
<FareTower> back
iqubic` has joined #nixos
swayf has quit [Ping timeout: 265 seconds]
iqubic has quit [Ping timeout: 252 seconds]
<clever> CapsAdmin: oh, you also dont even need `-I${lib.getDev assimp}`, adding assimp to the buildInputs handles that for you
<CapsAdmin> clever, getDev returns the root directory of assimp
<CapsAdmin> i still have to /include
<clever> yeah
<CapsAdmin> oh
<CapsAdmin> or lib
<clever> but the stdenv already adds every buildInput to the -I path for you
<CapsAdmin> oh
<CapsAdmin> so just include/ and lib/ then?
<clever> no need to play with -I
<clever> but for dlopen(), you will probably want to symlink the libraries, not copy them
<CapsAdmin> even when calling gcc manually?
<clever> yeah
<clever> your not calling gcc, your calling a bash script with the name `gcc`
<clever> and that bash script obeys the nix options
<clever> oh
<clever> also, dont put gcc into the buildInputs
<clever> the stdenv comes with gcc
<clever> also try doing a pwd ; ls -ltrh in the buildPhase, you can likely use a shorter path
<CapsAdmin> clever, i think on macos it was clang
<CapsAdmin> i'm gonna sleep, thanks for hte help
<CapsAdmin> assimp works now
<clever> ah, $CC will fix that
<clever> then it uses the right compiler always
<iqubic`> hello?
<clever> iqubic`: hello
<iqubic`> Sorry, I was using that as a test.
iqubic` is now known as iqubic
<clever> 2018-01-25 21:36:54 < clever> iqubic: its using the default builder for the stdenv
<clever> 2018-01-25 21:37:13 < clever> iqubic: which just unpacks $src, and runs ./configure && make && make install
<iqubic> I did say those things.
<iqubic> Why are you bringing that up now?
<clever> wasnt sure what you saw when you ping timeout'd
CapsAdmin has quit [Ping timeout: 248 seconds]
<iqubic> Oh, I see.
<iqubic> the last thing I saw was you saying "then it uses the right compiler always"
<clever> thats well after you reconnected
<iqubic> Oh, it is.
<iqubic> LOL
<iqubic> I don't know when I timed out then.
<clever> 2018-01-25 21:39:41 -!- iqubic` [~user@c-24-17-226-146.hsd1.wa.comcast.net] has joined #nixos
<clever> 2018-01-25 21:41:26 -!- iqubic [~user@2601:602:8a00:1bd7:f1f1:c5b0:3b92:231a] has quit [Ping timeout: 252 seconds]
<iqubic> Yeah.
<iqubic> The last thing I saw before I timed out was: <iqubic> is that how that works?
<clever> i didnt see that on this end
<iqubic> Oh, weird.
<clever> you had already disconnected before that
<iqubic> Alright, I don't care when I disconnected.
<iqubic> So how do I tell my derivation which build script to use?
<clever> depends heavily on what you want to build and how much customization you need
<iqubic> Are there multiple different default build scripts?
<clever> usually you want to just use the one that the stdenv provides
<iqubic> Which is?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] cumber opened pull request #34277: syncthing-gtk: explicitly depend on gobjectIntrospection (master...fix/syncthing-gtk_namespace-gtk-not-available) https://git.io/vNPSx
NixOS_GitHub has left #nixos [#nixos]
<iqubic> What does that do?
<clever> builds everything in the world
<iqubic> What commands does that run?
<clever> tar, configure, make
<iqubic> Why do you need tar?
<clever> to unpack the source tarball
<iqubic> But my thing is already unpacked. It's on github.
<iqubic> can't I just tell nix to fetch the source from github?
<clever> it will detect that its a directory and just not unpack
<clever> src = fetchFromGitHub { ... };
<iqubic> Or better yet, just use a directory on disk?
<clever> src = ./path/to/source;
<iqubic> Cool.
<iqubic> Now, this particular project uses the ninja build system, and not make. So that's fun...
<clever> one minute
<clever> ninja includes a setup hook
<clever> just do buildInputs = [ ninja ]; and it will alter what the stdenv does for you
<iqubic> Oh, that's cool.
<clever> lines 29 and 49 replace the make commands with ninja commands
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vNP9u
<NixOS_GitHub> nixpkgs/master 8f0508e Tuomas Tynkkynen: go: Scale up test timeouts...
NixOS_GitHub has left #nixos [#nixos]
<clever> cmake and qmake do that as well
<iqubic> So I shouldn't write and use my own bash script?
<clever> correct
<iqubic> Why not? What is the reasoning behind that?
<clever> its just simpler and more stable to use the tools that already do everything for you
<TimePath> and more consistently handles special flags
<iqubic> Special flags???
silver has quit [Read error: Connection reset by peer]
<clever> the ninja setup hook handles passing the right value to -j
<TimePath> setup.sh handles a NIX_LOG_FD flag for debugging
<iqubic> Also, life is never easy, ever. Why the hell does this repo not put the ninjamake file in the top level directory, but instead put it 3 levels deep in the heirarchy?
<iqubic> GRRR>
<iqubic> That stinks to high hell.
<TimePath> and NIX_BUILD_CORES
<iqubic> So, now I have to deal with the ninjamake file not being in the place where nix expects it to be,
<clever> iqubic: try src = ./path/to/source/level1/level2/level3; ?
<iqubic> Oh, I can do that?
<clever> its just a path
<clever> nix doesnt care how deep you go
<iqubic> I see.
<clever> it just grabs all of level3, and uses that
<iqubic> and that's a path to the directory containing the build file?
<clever> yeah
<iqubic> What's the point of suppling my own buildPhase and installPhase args?
<clever> doing custom things that arent automated as well as ninja
<iqubic> Oh, I see.
Ross has quit [Quit: ZNC - http://znc.in]
Ross has joined #nixos
Supersonic112 has quit [Disconnected by services]
bulldog has joined #nixos
<iqubic> What does the buildInputs list specify?
<bulldog> question: how can I use overlays from my system configuration
<clever> iqubic: everything you depend on at build time
<iqubic> Alright then.
<bulldog> I likve having everything in my system config, since I am the only user of my system
<iqubic> How do I specify runtime dependencies?
Supersonic112_ has joined #nixos
<clever> iqubic: nix will scan $out to see what you reference, and those become runtime deps
nuncanada has quit [Ping timeout: 268 seconds]
<iqubic> So that happens automatically? Wow, that is advanced.
Supersonic112_ is now known as Supersonic112
notdaniel has joined #nixos
boomshroom has joined #nixos
<boomshroom> I'm back
bfrog has quit [Ping timeout: 240 seconds]
<TimePath> that would totally break if those references were inside some archive, right?
<boomshroom> Any word about building binutils for a specific target?
<clever> TimePath: if its compressed or encrypted, yes
<TimePath> didn't think it was that advanced :P
<TimePath> very few packages, if any, do that anyway
<iqubic> What does the first line of the derivation do?
<iqubic> { stdenv, fetchurl }:
<iqubic> is that just the dependecies needed to run the derivation?
<clever> iqubic: that defines a nix function, that expects 2 arguments, stdenv and fetchurl
<iqubic> Is that separate from the buildInputs?
<TimePath> the expression in that file is a function
<TimePath> nix will auto-call package functions with required arguments
<clever> that just brings the variables into scope, so the buildInputs can then refer to them
<iqubic> If I put something into my build inputs, I also need them in derivation function's inputs?
<bulldog> clever: so I want to use the overlay in nixpkgs-mozilla (https://github.com/mozilla/nixpkgs-mozilla) on my config. Does this mean I only have to somehow add the contents of firefox-overlay.nix into nixpkgs.overlay?
<clever> iqubic: in general, yes
<iqubic> Thanks for telling me that.
stepcut has joined #nixos
<iqubic> Is there a place I can look to see what stuff like "doCheck = true" does?
<clever> bulldog: nixpkgs.overlay = [ (import "${(import <nixpkgs> { config={}; overlays=[]; }).fetchFromGitHub { ... } }/firefox-overlay.nix}) ]; i think
<boomshroom> Where in binutils does it set the target of the assembler and linker?
<clever> iqubic: if doCheck is set to true, it runs the checkPhase
<iqubic> What does the checkPhase do?
<clever> iqubic: the default checkPhase is on line 994, but you can also replace it by doing checkPhase = '' .... ';
<bulldog> clever: ooo okay, was thinking something like that. Might use a local clone of the repo for security. Let me see if I can get it to work. Thanks!
<clever> bulldog: you can specify the sha256 in the fetchFromGitHub
<iqubic> I assume I don't need the checkPhase, because I have no idea what it does.
<clever> iqubic: the default checkPhase will basically just run `make check`
<bulldog> clever: but then it breaks if contents change!
<clever> but you can set checkTarget to change that
<clever> bulldog: also specify a specific revision
<bulldog> oooh, I see
<clever> bulldog: then the contents can only change if your being haxed
<iqubic> yeah, I don't need that for my ninja based build.
<clever> and you want it to fail then :P
stepcut has quit [Remote host closed the connection]
<iqubic> Will it fail if I don't have doCheck = true?
<clever> iqubic: it defaults to false
<iqubic> I know that.
<clever> so it just wont run the tests
<iqubic> Oh, I see.
<clever> bulldog: its also over https, so the attacker would have to break ssl first
<iqubic> I don't think there are any tests in this repo.
<bulldog> clever: I meant more for like avoiding having to trust the owners of the repo
<clever> ah yeah
<taohansen> so this is very strange, suddenly my $NIX_PATH is refusing to be recognized by nix-shell: `error: file ‘nixpkgs’ was not found in the Nix search path (add it using $NIX_PATH or -I)`
<clever> just rev alone is enough to lock that in
<clever> taohansen: what does `nix-instantiate --find-file nixpkgs` say?
<taohansen> same error as above
<clever> taohansen: and what is the value of $NIX_PATH?
<iqubic> So, is it possible to install FMOD on nixos?
<iqubic> Or at least use it as a library?
<taohansen> clever: it was correctly underneath /nix/ but now it's this horrific spaghetti output. hold on a minute, let me get my bearings
<iqubic> Can I use that as a library in a derivation?
<iqubic> I need fmod for my buildInputs.
<clever> iqubic: somebody hacked it in, and never added a top-level fmod, so its been in nixpkgs for over a year, but its just not visible
<clever> you need to callPackage it, like like 8 did
<clever> with the correct relative path
<bulldog> clever: question, still not very familiar with nix. Why is this part necessary: `(import "${(import <nixpkgs> { config={}; overlays=[]; })`? Isn't there a way to express something like `nixpkgs.overlay += (import fetchFromGithub{...}/firefox-overlay.nix)`?
<clever> callPackage <nixpkgs/pkgs/games/zandronum/fmod.nix> {} is one way
<iqubic> I see.
<clever> bulldog: the value of fetchFromGitHub relies on having pkgs loaded
<clever> bulldog: and pkgs relies on the value of overlays being loaded
<iqubic> So I shouldn't put fmod into the inputs to the derivation function, and instead retrieve it that way?
<clever> and now you have infinite recursion
<clever> iqubic: yeah, because the last guy to add it, did it wrong
<iqubic> Oh, I see.
<iqubic> Will that ever get fixed?
<taohansen> clever: `bash: /home/taohansen/.nix-defexpr/channels/nixpkgs:nixpkgs=/home/taohansen/.nix-defexpr/channels/nixpkgs: No such file or directory`
<clever> soembody can file an issue to fix it
<taohansen> yet i'm looking at it right in front of me
<iqubic> I think I might do that.
<taohansen> the path is correct
<clever> taohansen: ls -lh /home/taohansen/.nix-defexpr/channels/nixpkgs
<clever> taohansen: that is a list of several paths, you cant just ls $NIX_PATH
<iqubic> How do you know that the fmod derivation was added incorrectly?
<clever> iqubic: because its not in pkgs.fmod
<taohansen> clever: `/home/taohansen/.nix-defexpr/channels/nixpkgs -> /nix/store/4vyccksxkbn0kky1bh6g847yrz749cbk-nixpkgs-18.03pre126020.931a0b8be80/nixpkgs`
<clever> taohansen: thats normal
stepcut has joined #nixos
<clever> taohansen: and ls -lh /nix/store/4vyccksxkbn0kky1bh6g847yrz749cbk-nixpkgs-18.03pre126020.931a0b8be80/nixpkgs
<bulldog> clever: I see
quam6246 has joined #nixos
<iqubic> clever: How would one fix this?
swayf has joined #nixos
<iqubic> Just add the derivation to the right folder?
<clever> iqubic: add the proper callPackage to all-packages.nix, and maybe move fmod into its own directory
<taohansen> oops disregard
<iqubic> Oh, I see.
<taohansen> clever: wgetpaste isn't printing correct. it just gives me a list of folders and files related to the nixpkgs channel
<taohansen> which i assume is what we want
<clever> taohansen: yeah, thats right
<clever> taohansen: can you run nix-info?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #34278: pythonPackages.colorlog: 2.6.1 -> 3.1.0 (master...colorlog) https://git.io/vNPHy
NixOS_GitHub has left #nixos [#nixos]
quam6246 has quit [Ping timeout: 240 seconds]
stepcut has quit [Remote host closed the connection]
<bulldog> clever: dumb question: how do I get the hash for a specific revision?
<clever> taohansen: it seems to have found nix just fine, are you mixing different terminals?
<clever> bulldog: put in an obviously wrong hash and then look at the error, thats the simplest way
<bulldog> lmao, sounds good
<iqubic> So I see that the bot doesn't report out when new issues are opened.
<iqubic> TOFU is the best method. (Trust On First Use)
<taohansen> clever: well now it's returning correctly. i'm going to try a reboot and see if i get the same errors
swayf has quit [Ping timeout: 265 seconds]
<iqubic> clever: I should add "fmod = callPackage <nixpkgs/pkgs/games/zandronum/fmod.nix> {}" o the body of my derivation? And that should just work?
s33se_ has joined #nixos
<iqubic> Or rather let fmod = ... in ...
<clever> yeah
alexteves has quit [Ping timeout: 252 seconds]
s33se has quit [Ping timeout: 252 seconds]
__red__ has quit [Ping timeout: 256 seconds]
__red__ has joined #nixos
<iqubic> So once I build this derivation, how do I run the built program?
<clever> if you used nix-build, it will make a result symlink pointing to $out
<clever> so ./result/bin/something
bulldog has quit [Ping timeout: 260 seconds]
<iqubic> I'm planning to use nix-build.
aanderse has quit [Ping timeout: 240 seconds]
bulldog_ has joined #nixos
<bulldog_> clever: cool, that worked, I managed to get firefox-beta working. This seems outdated already tho, its not even 57
<bulldog_> actually, I think something is wrong, this overlay thinks I should get at least 58 without beta.
aanderse has joined #nixos
KingOfThePirates has joined #nixos
mbrgm has quit [Ping timeout: 240 seconds]
<KingOfThePirates> Does a bootable USB need to be formatted a certain way, and can nixos install on an unallocated partition?
<clever> kingofthepirates: the iso image already contains all the formating, just dd it directly to the root of the device and that will format everything
<KingOfThePirates> Oh, so no USB needed?
hyphon81 has quit [Quit: Konversation terminated!]
<clever> kingofthepirates: dd it to the root of the usb drive
<bulldog_> clever: do I only need to set nixpkgs.overlays, and then the packages in environment.systemPackages will be overlaid? or do I need something else?
<KingOfThePirates> Ah
<clever> bulldog_: the packages passed as the pkgs argument of the module should include those overlays
<KingOfThePirates> I'll try it thanks
mizu_no_oto has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mbrgm has joined #nixos
<bulldog_> clever: ugh Im somehow still getting the default versions
<bulldog_> hmmm... and tried cleaning my caches (nix-collect-garbage -d)
<clever> bulldog_: nix doesnt make mistakes like that
<bulldog_> clever: oh im sure I made the mistake :)
KingOfThePirates has quit [Ping timeout: 260 seconds]
ennui has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #34280: you-get: 0.4.390 -> 0.4.1011 (master...you-get) https://git.io/vNP7G
NixOS_GitHub has left #nixos [#nixos]
<bulldog_> clever: ah, saw my error. I have to prefix with latest. E.g. latest.firefox-bin
<FareTower> hi. I would like all the libraries for some user to include static libraries. What's a Good™ way to do that?
aanderse has quit [Remote host closed the connection]
<FareTower> in ~/.nix-profile using nix-env, as opposed to the main nixos installation with nixos-rebuild.
aanderse has joined #nixos
aanderse has quit [Ping timeout: 240 seconds]
brodul has quit [Ping timeout: 256 seconds]
aanderse has joined #nixos
<bulldog_> ugh, I cant get the latest firefox to install. It complains about the `gpg` command not being found. But I do seem to have one installed (as in I can run `gpg` from a terminal)
<FareTower> probably something that involves stdenv = makeStaticLibraries stdenv; somewhere
jb55 has quit [Ping timeout: 240 seconds]
<gchristensen> bulldog_: is this with the mozilla overlay?
<bulldog_> gchristensen: yep
<FareTower> how do I make makeStaticLibraries the default for a series of packages that I install with nix-env ?
<FareTower> and/or for the buildInputs of a given package?
<clever> FareTower: your not really supposed to install libraries, dynamic or static
<clever> FareTower: builtInputs = map makeStaticLibraries [ lib1 lib2 lib3 ];
<FareTower> clever: why not? Interactive development is fun
<clever> FareTower: thats what nix-shell is for
drakonis_ has quit [Read error: Connection reset by peer]
brodul has joined #nixos
randomstrangerb has quit [Ping timeout: 256 seconds]
<FareTower> not sure how it's supposed to work. I run my scheme process in an emacs buffer. Am I suppose to have emacs run within nix-shell, or the scheme run in the nix-shell ?
randomstrangerb has joined #nixos
<FareTower> what when I want to add a new library? Do I need to restart emacs? Restart the inferior scheme?
<catern> FareTower: nix-buffer!
<catern> the nix emacs integration :)
<catern> it's essentially nix-shell but for a single buffer
<grantwu> Hi catern
<catern> admittedly, if you do that you do need to restart the inferior scheme when you add new libraries
<catern> hi grantwu
<grantwu> If I complain about Nix's vim here, will you tell me to switch to emacs? :P
<catern> I will tell you to switch to emacs regardless of what you do :)
<grantwu> :(
<catern> So, "true" :)
srdqty has quit [Ping timeout: 240 seconds]
<catern> But, I might not do it immediately :)
<grantwu> The result of :helptags ALL is: E152: Cannot open /nix/store/n0acazjklircjbryw3p9mxqjrgszpg21-vim_configurable-8.0.1257/share/vim/vim80/doc/tags for writing
srdqty has joined #nixos
mk-fg has quit [Ping timeout: 240 seconds]
<FareTower> restarting the inferior scheme is not quite as disruptive as restarting emacs
mk-fg has joined #nixos
mk-fg has quit [Changing host]
mk-fg has joined #nixos
<FareTower> yay, nix-buffer is in package-refresh-menu
<catern> you may be able to hack something dynamic up, depending on how your scheme finds libraries
<FareTower> catern: uh, does nix-buffer work well with inferior modes?
<catern> I have never used it ¯\_(ツ)_/¯
<catern> sorry :(
<catern> (I myself have only been developing in C and in Python since getting on the Nix train; C isn't particulary dynamic and running 'nix-shell --run python' works fine for Python)
quam6246 has joined #nixos
<FareTower> maybe I should try nix-shell ... --run my-scheme-thing
<FareTower> as my inferior scheme
stepcut has joined #nixos
<catern> that would work
swayf has joined #nixos
quam6246 has quit [Ping timeout: 240 seconds]
<bulldog_> clever: ok I think I know what I have to change in this file. Is there a way I can just replace some substrings from the file downloaded with .fetchFromGithub? something like `blabla.fetchFromGithub.replace('gpg', 'gpg2')`?
<clever> bulldog_: one min
jb55 has joined #nixos
<FareTower> wait, where is makeStaticLibraries defined, and how do I access it from a default.nix file?
<clever> FareTower: its part of pkgs, so just add it to line 1 with all your other deps
<FareTower> ok
swayf has quit [Ping timeout: 265 seconds]
boomshroom has quit [Ping timeout: 260 seconds]
<FareTower> that's what grepping showed: one and only one package used it, that way, pkgs/development/compilers/halvm/2.4.0.nix
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
el_putin has quit [Read error: Connection reset by peer]
<bulldog_> clever: Thanks! Question: what is `$out` in your script?
<clever> bulldog_: nix sets $out to the path it wants the expression to output things to
<bulldog_> ohhh I see
stepcut has quit [Ping timeout: 256 seconds]
la_putin has joined #nixos
<iqubic> Does nixpkg have a derivation for metakit?
<clever> i dont see any
<bulldog_> clever: hmm undefined variable 'runCommand'. Can I not use runCommand at the top of the config?
<clever> bulldog_: pkgs.runCommand
<iqubic> clever: That really stinks to high hell.
<iqubic> I need metakit for the game I'm trying to compile.
plakband has joined #nixos
<bulldog_> clever: woah wtf. Yeah, pkgs did the trick. But now I have infinite recursion (I have the fetchFromGithub call at the top of the config now. Is that it?)
<clever> bulldog_: you may need to do pkgs2 = import <nixpkgs> { config = {}; overlays = {}; }; in a let block
<clever> bulldog_: then use pkgs2 for the fetch and runCommand
<clever> instead of pkgs
<plakband> Where can I find out more about vim_configurable? I tried looking for its source in the nixpkgs repo, but I can't find it's definition(?)
<clever> nix-repl> builtins.unsafeGetAttrPos "vim_configurable" pkgs
<clever> { column = 3; file = "/nix/store/7rk6ik1vxh2rvg3ny0rk6kkfdiqzbz5w-nixos-18.03pre125026.f607771d0f5/nixos/pkgs/top-level/all-packages.nix"; line = 17332; }
<clever> 17332 vim_configurable = vimUtils.makeCustomizable (callPackage ../applications/editors/vim/configurable.nix {
<clever> plakband: that region of all-packages.nix, and the path it refers to should have more context
<clever> nix-repl> vim_configurable.meta.position
<clever> "/nix/store/7rk6ik1vxh2rvg3ny0rk6kkfdiqzbz5w-nixos-18.03pre125026.f607771d0f5/nixos/pkgs/applications/editors/vim/common.nix:24"
<clever> plakband: this can also help some
<plakband> tyvm!
<grantwu> plakband: Hey, are you running into the same problem as me, possibly?
<grantwu> When trying to generate helptags, I get something like this: E152: Cannot open /nix/store/n0acazjklircjbryw3p9mxqjrgszpg21-vim_configurable-8.0.1257/share/vim/vim80/doc/tags for writing
justan0theruser has joined #nixos
mk-fg has quit [Ping timeout: 268 seconds]
<plakband> grantwu: no, I'm just trying to figure out how to add plugins from github :)
justan0theruser has quit [Client Quit]
justanotheruser has quit [Ping timeout: 248 seconds]
justanotheruser has joined #nixos
* clever heads off to bed
<bulldog_> wait!
<bulldog_> pl0x!
<bulldog_> clever: have a sec still?
yegortimoshenko has quit [Remote host closed the connection]
yegortimoshenko has joined #nixos
hamishmack has quit [Quit: hamishmack]
hamishmack has joined #nixos
plakband has quit [Quit: leaving]
mk-fg has joined #nixos
mk-fg has quit [Changing host]
mk-fg has joined #nixos
johnsonav has quit [Ping timeout: 240 seconds]
hamishmack has quit [Ping timeout: 240 seconds]
<iqubic> so there's no simple wat to get metakit on nixos?
<grantwu> I mean, it's just not packaged for NixOS yet, right?
<grantwu> You could package it for NixOS
mk-fg has quit [Ping timeout: 256 seconds]
<iqubic> I know I could, but that seems like a pain in the butt.
<grantwu> How simple it will be depends on how complicated/nonstandard metakit's build process is
johnsonav has joined #nixos
<bulldog_> clever: oh fuck yeah got it to work. Thanks so much! (hope you see this tomorrow)
<iqubic> grantwu: It looks like it's rather simple
<iqubic> Just run a search for unix on that page.
<iqubic> The only complecation is the configure script being a in different directory that the make file.
<iqubic> So I'm not sure how to get that to work with stdenv.mkDerivation.
<iqubic> Except that the readme is out of date. There no longer a build directory.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vNPFn
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 0a0f8d6 Benjamin Staffin: prometheus-alertmanager: 0.9.1 -> 0.13.0
<NixOS_GitHub> nixpkgs/master 1f1c8b7 adisbladis: Merge pull request #34272 from benley/alertmanager-0.13.0...
mk-fg has joined #nixos
mk-fg has quit [Changing host]
mk-fg has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] markuskowa opened pull request #34281: libxc: 2.2.3 -> 3.0.1 (master...libxc-pr) https://git.io/vNPFR
NixOS_GitHub has left #nixos [#nixos]
<iqubic> So I have no idea how to compile metakit on nixos.
<iqubic> Like none at all.
sigmundv_ has quit [Ping timeout: 240 seconds]
<iqubic> All I need are the C++ bindings.
<grantwu> iqubic: Well, here you go https://nixos.org/nixpkgs/manual/
<simpson> iqubic: What's your derivation currently look like, and how is it failing?
Myrl-saki has joined #nixos
<grantwu> I suggest starting from an existing derivation that uses a similar toolchain
<iqubic> simpson: I haven't even found the configure and make files in the metakit repo.
<iqubic> So I don't have a derivation yet.
swayf has joined #nixos
<iqubic> Although I suppose I could just try using the configure and make file in the /unix directory of the metakit repo.
freeman42x[NixOS has joined #nixos
<simpson> There's a configure.in, even, so you should be able to just use the standard autoconf hook.
<iqubic> I know.
<iqubic> But I have no idea how to do that.
athan has quit [Read error: Connection reset by peer]
<iqubic> Also, I don't know what the buildInputs should be.
<simpson> Hm, it might not need any. Try it and see.
<iqubic> How do I use the autoconf hook?
<simpson> Add `autoreconfHook` to both your imports and your buildInputs, IIRC. Grep nixpkgs for examples.
justanotheruser has quit [Ping timeout: 256 seconds]
<simpson> You'll also want to override sourceRoot to "unix", I think: https://nixos.org/nixpkgs/manual/#ssec-unpack-phase
<iqubic> Yeah, I think that'll be a good thing to do.
<iqubic> I was just going to tell nix that the source was at that github repo.
<simpson> Yes, using fetchFromGitHub, but you'll also need to set sourceRoot, I think.
justanotheruser has joined #nixos
<simpson> I'm not sure. I'm deliberately not writing your derivation for you.
<iqubic> Are those just options I set in the derivation attribute set?
swayf has quit [Ping timeout: 265 seconds]
<simpson> Yes.
<simpson> Again, if not sure, grep nixpkgs for examples of usage.
<iqubic> how do I grep a git repo that I haven't downloaded?
schoppenhauer has quit [Ping timeout: 240 seconds]
<simpson> Either brave Github search, or clone nixpkgs already.
<iqubic> Should everyone have a nixpkg clone?
<simpson> Everybody who's contributing to nixpkgs, probably. You could grep the nixpkgs that's already on your disk in the Nix store, but I don't remember offhand how to get to it.
schoppenhauer has joined #nixos
bulldog_ has quit [Ping timeout: 260 seconds]
aarvar has quit [Ping timeout: 240 seconds]
quam6246 has joined #nixos
hamishmack has joined #nixos
<fearlessKim[m]> iqubic: I believe the channels are copies of nixpkgs ?
quam6246 has quit [Ping timeout: 252 seconds]
<iqubic> I can grep the github repo, so I don't need that right now. But thanks for telling me about that.
<iqubic> How the heck does fetchFromGitHub work?
<iqubic> Actually I figured it out.
<iqubic> What does rev do in fetchFromGitHub?
reinzelmann has joined #nixos
glenn_ has quit [Ping timeout: 252 seconds]
srdqty has quit [Quit: WeeChat 1.9.1]
srdqty has joined #nixos
notdaniel has quit [Quit: Leaving]
randomstrangerb has quit [Ping timeout: 240 seconds]
iqubic has quit [Remote host closed the connection]
randomstrangerb has joined #nixos
Rusty1_ has quit [Quit: Konversation terminated!]
glenn_ has joined #nixos
rauno has quit [Remote host closed the connection]
<fearlessKim[m]> iqubic it stands for "revision" aka commit id
oborot has joined #nixos
<oborot> Hi there -- how can I upgrade from 17.03 to 17.09?
<oborot> Tried nixos-rebuild switch --upgrade after adding the unstable channel
<oborot> But no dice.
swayf has joined #nixos
swayf has quit [Ping timeout: 265 seconds]
oborot has quit [Ping timeout: 240 seconds]
justanotheruser has quit [Quit: WeeChat 1.9.1]
justanotheruser has joined #nixos
vidbina has joined #nixos
quam6246 has joined #nixos
quam6246 has quit [Ping timeout: 240 seconds]
jb55 has quit [Ping timeout: 240 seconds]
glenn_ has quit [Ping timeout: 240 seconds]
glenn_ has joined #nixos
rauno has joined #nixos
randomstrangerb has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gnidorah opened pull request #34282: mesa: add libglvnd variant (master...mesa-glvnd) https://git.io/vNPxX
NixOS_GitHub has left #nixos [#nixos]
ma27 has joined #nixos
randomstrangerb has joined #nixos
glenn_ has quit [Ping timeout: 252 seconds]
rauno has quit [Ping timeout: 264 seconds]
<fearlessKim[m]> Is there a way to automatically run commands with nix-repl ? like an .init file ?
dbe_ has joined #nixos
<fearlessKim[m]> for instance I would like to always run `:a builtins`
hyphon81 has joined #nixos
rauno has joined #nixos
<hyphon81> I sent pull request to the NixOps for Azure accessing.
knupfer has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis pushed 1 new commit to master: https://git.io/vNPpa
<NixOS_GitHub> nixpkgs/master fac586d adisbladis: nodePackages_8_x.pnpm: init at 1.31.0
NixOS_GitHub has left #nixos [#nixos]
randomstrangerb has quit [Ping timeout: 252 seconds]
randomstrangerb has joined #nixos
rogue_koder has quit [Quit: Konversation terminated!]
vidbina has quit [Ping timeout: 240 seconds]
dejanr has joined #nixos
ma27 has quit [Ping timeout: 256 seconds]
vidbina has joined #nixos
swayf has joined #nixos
leat has quit [Ping timeout: 240 seconds]
knupfer has quit [Ping timeout: 252 seconds]
fgaz has quit [Ping timeout: 256 seconds]
dbe_ has quit [Ping timeout: 240 seconds]
fgaz has joined #nixos
fgaz is now known as Guest11933
swayf has quit [Ping timeout: 265 seconds]
ambro718 has quit [Quit: Konversation terminated!]
endformationage has quit [Quit: WeeChat 1.9.1]
<fearlessKim[m]> btw with nix-repl 1.12pre5849_74f75c85., I have a derviation called mptcp-local (which fails to evaluate yet it appears in autocomplete suggestions), and when I type tab to autocomple `mptcp-lo`, nix repl completes to "mptcp-localtime" which doesn't exist
<fearlessKim[m]> in fact it seems like the dash throws the whole autocompletion off
gfixler has quit [Quit: WeeChat 1.4]
kreetx has joined #nixos
marusich has quit [Ping timeout: 252 seconds]
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
MercurialAlchemi has joined #nixos
asuryawanshi has joined #nixos
Itkovian has joined #nixos
reinzelmann has quit [Ping timeout: 276 seconds]
leat has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #34281: libxc: 2.2.3 -> 3.0.1 (master...libxc-pr) https://git.io/vNPFR
NixOS_GitHub has left #nixos [#nixos]
atrx has joined #nixos
vincent_vdk has joined #nixos
randomstrangerb has quit [Ping timeout: 240 seconds]
randomstrangerb has joined #nixos
reinzelmann has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
swayf has joined #nixos
CapsAdmin has joined #nixos
hyper_ch2 has joined #nixos
dejanr has quit [Ping timeout: 256 seconds]
alex`` has joined #nixos
Tucky has joined #nixos
<hyper_ch2> so, last 8TB drive is being resilvered with new zfs format
<grantwu> Er, do you mean to say that you just put ZFS on it
<grantwu> Or is there a new ZFS format I'm not aware of
swayf has quit [Ping timeout: 265 seconds]
glenn_ has joined #nixos
Guest11933 is now known as fgaz
asuryawanshi has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
Lisanna has quit [Quit: Lisanna]
<hyper_ch2> grantwu: it concerns native encryption on zfs
<hyper_ch2> that has a format change pending
asuryawanshi has quit [Remote host closed the connection]
reinzelmann has quit [Ping timeout: 252 seconds]
asuryawanshi has joined #nixos
civodul has joined #nixos
jensens has joined #nixos
hyphon81 has quit [Ping timeout: 252 seconds]
reinzelmann has joined #nixos
raynold has quit [Quit: Connection closed for inactivity]
quam6246 has joined #nixos
asuryawanshi has quit [Ping timeout: 246 seconds]
quam6246 has quit [Ping timeout: 240 seconds]
<CapsAdmin> how can i specify that i want SDL2 as buildInput while also compile SDL2 in a specific way?
<CapsAdmin> simply using SDL2 in buildInput won't build SDL2
grantwu has left #nixos ["WeeChat 2.0.1"]
<edef[m]> hyper_ch2: wait, what? i only had to turn on the feature flag
lonokhov has joined #nixos
<edef[m]> or are you converting your datasets to encrypted ones
ssmike has quit [Ping timeout: 252 seconds]
zzamboni has joined #nixos
MP2E has quit [Remote host closed the connection]
ssmike has joined #nixos
ssmike has quit [Remote host closed the connection]
swayf has joined #nixos
thc202 has joined #nixos
<joko> CapsAdmin: you don't have to specify how SDL2 needs to be built in the package you are developping; you just put it as an input and then you install the package with the overriden SDL2 as input
<hyper_ch2> edef[m]: I have encrypted datasets but there's a stability patch pending for inclusion into master. That stability patch changes the current format. Current encrypted DS can still be accessed and mounted but only in read-only mode
<hyper_ch2> so I'm testing the patch already and converted on my homeserver now the existing encrypted DSes to the new format
swayf has quit [Ping timeout: 265 seconds]
<edef[m]> Oh welp
<edef[m]> How's that work?
oida has joined #nixos
<hyper_ch2> well, since I followed Mic92 's instruction (in the wiki) I used encryption like this: tank/encZFS/[...] so basically I created an encrypted container (didn't store data in it) and created child datasets that are then also encrypted, e.g. tankServer/encZFS/Nixos and tankServer/encZFS/VMs and tankServer/encZFS/Media
atrx has quit [Ping timeout: 260 seconds]
vidbina has quit [Ping timeout: 240 seconds]
blym has joined #nixos
<hyper_ch2> what I did is apply stability patch and boot live is.... then I created a new encrypted containter tankServer/encNEW and just zfs send tankServer/encZFS/Nixos@now | zfs receive tankServer/encNEW -- once done, I just renamed encZFS to encOLD and encNEW to encZFS
arjen-jonathan has joined #nixos
<hyper_ch2> that only works if you have enough space though :)
vidbina has joined #nixos
<CapsAdmin> joko, i'm not using SDL2 directly, I only want its shared library
<CapsAdmin> should that matter?
glenn_ has quit [Remote host closed the connection]
<hyper_ch2> edef[m]: I'll test it more and then I probably will submit a PR so that people can already use the patch that want to use it
alex`` has quit [Ping timeout: 240 seconds]
pietranera has joined #nixos
glenn_ has joined #nixos
<pietranera> Hello, does anyone know whether there is a way to "pin" a specific nix package so when one runs `nix-env -u --leq` that package does not get updated?
fuyuuri has joined #nixos
<steveeJ> is it possible to pass arguments to b.nix when using 'imports = [ a.nix b.nix ]' ?
<manveru> steveeJ: not easily
<steveeJ> manveru: please elaborate, I'm curios :-)
<manveru> i think there was _module.args or something
<manveru> steveeJ: ok, actually, imports doesn't need to be paths
<manveru> imports = [ (import ./a.nix { y = 1; }) ];
<manveru> this should work in theory
<manveru> it uses a function in imports
<manveru> the issue is that you'd need to wrap your function in another one
<steveeJ> manveru: I see. I have tried that before, but now I don't have the usual magic of imports, specifically the inheritance of pkgs and config
<steveeJ> one probably can't have it all that easily :-)
<manveru> {a}: {pkgs, ...}: { x = a * 2 }
glenn_ has quit [Ping timeout: 256 seconds]
<manveru> that's why i say you nest them :)
<manveru> you call the outer function with your argument, and the inner is called by nix
<CapsAdmin> my generated nix script looks like this https://gist.github.com/CapsAdmin/a8772c48feea4a05a88531345460d071
<CapsAdmin> it's as if libsnd file isn't being built
glenn_ has joined #nixos
<CapsAdmin> ahh nevermind
alex`` has joined #nixos
<manveru> where do you speicfy libsndfile?
<manveru> s/speicfy/specify
<CapsAdmin> nevermind libsndfile, it works
<manveru> :)
<CapsAdmin> but i have this issue with sdl2 (although it seems more complicated)
<CapsAdmin> let me try sdl2 again
<CapsAdmin> ah okay, there was something else that was the problem. it works now
<CapsAdmin> but now i'm wondering how i can configure SDL2 to be more minimal
glenn_ has quit [Ping timeout: 240 seconds]
nschoe has joined #nixos
<CapsAdmin> for instance i want to set alsaSupport to false
glenn_ has joined #nixos
<manveru> buildInputs = [ gcc (SDL2.override { alsaSupport = false; }) ];
<CapsAdmin> thanks
quam6246 has joined #nixos
glenn_ has quit [Ping timeout: 246 seconds]
quam6246 has quit [Ping timeout: 256 seconds]
ckauhaus has joined #nixos
glenn_ has joined #nixos
asuryawanshi has joined #nixos
JosW has joined #nixos
<joko> CapsAdmin: sorry, I was afk for a while, hopefully you made it with manveru's reply
glenn_ has quit [Ping timeout: 252 seconds]
alex`` has quit [Ping timeout: 256 seconds]
FRidh has quit [Quit: Konversation terminated!]
ma27 has joined #nixos
ixxie has joined #nixos
glenn_ has joined #nixos
ixxie has quit [Client Quit]
<steveeJ> manveru: the outer function needs to pass through all arguments passed by nix
ixxie has joined #nixos
yegortimoshenko has quit [Ping timeout: 255 seconds]
<CapsAdmin> i'd also like to call --disable-audio --disable-render --disable-haptic --disable-filesystem --disable-file on ./configure when building SDL2
<CapsAdmin> is this possible without modifying the SDL2 package?
yegortimoshenko has joined #nixos
<CapsAdmin> or just, what's the best way of doing this?
<CapsAdmin> oh, is attrs something i can define? for instance SDL2.override {alsaSupport = false; attrs = {"--disable-haptic", "--disable-render"}}
CrazedProgrammer has joined #nixos
tmaekawa has joined #nixos
magnetophon has quit [Ping timeout: 240 seconds]
tmaekawa has quit [Client Quit]
pietranera has quit [Ping timeout: 240 seconds]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
tmaekawa has joined #nixos
quam6246 has joined #nixos
lsix has quit [Ping timeout: 240 seconds]
lsix has joined #nixos
yegortimoshenko has quit [Remote host closed the connection]
yegortimoshenko has joined #nixos
pietranera has joined #nixos
glenn_ has quit [Ping timeout: 268 seconds]
<CapsAdmin> not really sure, this syntax doesn't work { alsaSupport = false; attrs = { "--disable-audio"; "--disable-render"; "--disable-haptic"; "--disable-filesystem"; "--disable-file"; } }
<CapsAdmin> manveru
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
glenn_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andrewjss opened pull request #34283: google-chrome: add new dep on at_spi2_atk (release-17.09...release-17.09) https://git.io/vNXYz
NixOS_GitHub has left #nixos [#nixos]
FRidh has joined #nixos
lsix has quit [Ping timeout: 240 seconds]
lsix has joined #nixos
glenn_ has quit [Ping timeout: 240 seconds]
freeman42x[NixOS has quit [Ping timeout: 240 seconds]
glenn_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vNXO1
<NixOS_GitHub> nixpkgs/master 1aa3efb Robert Schütz: you-get: 0.4.390 -> 0.4.1011
<NixOS_GitHub> nixpkgs/master d5514b4 Jörg Thalheim: Merge pull request #34280 from dotlambda/you-get...
NixOS_GitHub has left #nixos [#nixos]
orivej has joined #nixos
Itkovian has quit [Quit: Textual IRC Client signing off]
Itkovian has joined #nixos
glenn_ has quit [Ping timeout: 240 seconds]
alex`` has joined #nixos
glenn_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #34238: Carnix: 0.5.0 -> 0.6.0 (master...carnix-0.5.3) https://git.io/vNKob
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vNX3E
<NixOS_GitHub> nixpkgs/master 6fbaa05 Pierre-Etienne Meunier: Carnix 0.6 (#34238)
NixOS_GitHub has left #nixos [#nixos]
tmaekawa has quit [Quit: tmaekawa]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] FRidh closed pull request #1814: Add git to source tarball buildInputs (master...addgit) https://git.io/vN6AZ
NixOS_GitHub has left #nixos [#nixos]
<tilpner> pietranera - You can pin against a nixpkgs revision
<tilpner> Oh, not sure if that will work with leq
<pietranera> tilpner thanks, but yes, I'm not sure that would work.
glenn_ has quit [Ping timeout: 252 seconds]
<tilpner> pietranera - Are you on NixOS, or does it have to work on other distros too?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 92e1c17 Frederik Rietdijk: Merge pull request #34268 from FrancescElies/cesc/aspell/turkish...
<NixOS_GitHub> nixpkgs/master 783acc9 Francesc Elies Henar: aspellDicts.tr: init at 0.50
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vNXsx
NixOS_GitHub has left #nixos [#nixos]
swayf has joined #nixos
swayf has quit [Remote host closed the connection]
swayf has joined #nixos
glenn_ has joined #nixos
swayf_ has joined #nixos
simukis has joined #nixos
glenn_ has quit [Ping timeout: 240 seconds]
`_ has joined #nixos
glenn_ has joined #nixos
swayf has quit [Ping timeout: 265 seconds]
quam6246 has quit [Quit: My computer has gone to sleep. ZZZzzz…]
sigmundv_ has joined #nixos
<vidbina> where in the docs can I find how Nix deals with the share and lib directories in a package's $out?
vincent_vdk has quit [Quit: leaving]
<CapsAdmin> is attrs a keyword in nix?
saf_spa has joined #nixos
saf_spa is now known as nixer
<tilpner> No
<CapsAdmin> i'm asking again but how can i override these flags from a package that depends on sdl2? https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/SDL2/default.nix#L20-L24
<CapsAdmin> i want to build SDL2 with --disable-audio, --disable-render etc
glenn_ has quit [Ping timeout: 256 seconds]
<CapsAdmin> i was guessing SDL2.configureFlagsFun = attrs: [ "--disable-audio" "--disable-render" "--disable-haptic" "--disable-filesystem" "--disable-file" ]; but that doesn't work
<CapsAdmin> or SDL2.attrs = [ ... ];
TweyII has joined #nixos
TweyII is now known as Guest73602
zzamboni has quit [Quit: Leaving.]
<tilpner> sdlSDL2.overrideAttrs (old: { configureFlags = old.configureFlags ++ [ "--disable-audio" ]; })
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to unstable-aarch64: https://git.io/vNXnl
<NixOS_GitHub> nixpkgs/unstable-aarch64 7f7f4f2 Tuomas Tynkkynen: nixos/tests: Fix statsd test evaluation...
<tilpner> Ignore the first three characters, bad paste
<CapsAdmin> ohh
<CapsAdmin> thanks
glenn_ has joined #nixos
<ixxie> vidbina: no idea
Ineff has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fgaz opened pull request #34285: duktape: init at 2.2.0 (master...duktape) https://git.io/vNXnd
NixOS_GitHub has left #nixos [#nixos]
`_ has quit [Quit: WeeChat 2.0]
lsix_ has joined #nixos
silver has joined #nixos
lsix has quit [Ping timeout: 256 seconds]
joncfoo has quit [Ping timeout: 246 seconds]
rcshm has joined #nixos
nixer has quit [Quit: Konversation terminated!]
glenn_ has quit [Ping timeout: 252 seconds]
joncfoo has joined #nixos
fuyuuri has quit [Ping timeout: 265 seconds]
Ineff has quit [Ping timeout: 260 seconds]
glenn_ has joined #nixos
<srhb> vidbina: In the nixpkgs manual, at least to some extent.
coot has joined #nixos
Ineff has joined #nixos
thblt has joined #nixos
<Ineff> hello I'm having trouble installing nix on an android device
<Ineff> can anybody help me?
<ixxie> ineff: hmmm the ones that come to mind might be clever and dezgeg but honestly I am not sure xD
<Ineff> ixxie what do you mean?
<Ineff> ah wait are those nicks?
glenn_ has quit [Ping timeout: 256 seconds]
<pietranera> tilpner: just NixOS > pietranera - Are you on NixOS, or does it have to work on other distros too?
<tilpner> pietranera - NixOS has other way to install packages, like environment.systemPackages and users.users.users.name.packages
<vidbina> ixxie: too bad. There are certain things I know about share and lib but I can't recall where I read them
<ixxie> ineff: dezgeg has focused on ARM / alternative architectures; clever has done all sorts of alternative installers for NixOS
<tilpner> pietranera - You can pin a package like this: (import (fetchFromGitHub { owner = "nixos"; repo = "nixpkgs"; rev = "something"; sha256 = "somethingelse"; }) {}).hello
<vidbina> srhb: filtered through the nix,nixos,nixpkgs docs but haven't found much. I guess I'll have to try to read some of the code to get to the bottom of this if I can't find sufficient docs.
<tilpner> pietranera - The sources for hello will now never change. This also means they'll never get an update
<pietranera> thanks tilpner, I'll try that with my user's packages :)
<infinisil> ineff: just describe what your problem is instead of trying to get someone specific to help you, if people know something useful to help you they will answer automatically
glenn_ has joined #nixos
<infinisil> (probably)
<Ineff> ixxie my problem is that nix-store cannot initialize the store, apparently because the internal glib library has an ill formatted header
_rvl has quit [Quit: ZNC 1.6.5 - http://znc.in]
<tilpner> pietranera - You should define the pinned nixpkgs outside your package list, I only did it like this because it's shorter in chat
_rvl has joined #nixos
<pietranera> tilpner - OK
<ixxie> ineff: no idea what to do about that
glenn_ has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master da7833e Peter Simons: cabal2spec: add myself as a maintainer
<NixOS_GitHub> [nixpkgs] peti pushed 14 new commits to master: https://git.io/vNXWu
<NixOS_GitHub> nixpkgs/master f9700df Peter Simons: lambdabot-core: add myself as a maintainer
<NixOS_GitHub> nixpkgs/master 291c368 Peter Simons: cabal-plan: fix build by applying https://github.com/haskell-hvr/cabal-plan/pull/16
NixOS_GitHub has left #nixos [#nixos]
Myrl-sak1 has joined #nixos
Myrl-saki has quit [Ping timeout: 240 seconds]
glenn_ has joined #nixos
agilo has joined #nixos
agilo has quit [Client Quit]
ssmike has joined #nixos
pietranera has quit [Ping timeout: 240 seconds]
asuryawanshi has quit [Ping timeout: 256 seconds]
xorkle_ has quit [Quit: ZNC 1.6.5 - http://znc.in]
Xorkle has joined #nixos
`_ has joined #nixos
glenn_ has quit [Ping timeout: 240 seconds]
nschoe has quit [Quit: Program. Terminated.]
<`_> Any idea why `services.hydra.port = 80;` makes Hydra want to just stop accepting connections?
glenn_ has joined #nixos
coot has quit [Quit: coot]
asuryawanshi has joined #nixos
toraritte has joined #nixos
<tilpner> If it runs as its own user, maybe it doesn't have the necessary permissions to bind to 80
<`_> It's enabled via systemd
<`_> Which, after a look, appears to have it running as its own users
<`_> Perhaps that is the problem.
fyuuri has joined #nixos
FRidh has quit [Remote host closed the connection]
thblt has quit [Ping timeout: 256 seconds]
pietranera has joined #nixos
aarvar has joined #nixos
mattyu has joined #nixos
<`_> tilpner: Looks like you're correct, it is running as its own user, which doesn't appear to have sufficient permissions. Thanks for pointing me in the right direction.
vidbina has quit [Quit: Lost terminal]
glenn_ has quit [Ping timeout: 252 seconds]
glenn_ has joined #nixos
<tilpner> `_ - You can try serviceConfig.CapabilityBoundingSet = "CAP_NET_BIND_SERVICE";, or similar
<`_> After a rudimentary search it seems like that's the best path to follow. If I manage to figure it out I'll update. Thanks again.
<gchristensen> whoa cool
<gchristensen> I think most people use a reverse proxy
orivej has quit [Ping timeout: 264 seconds]
a6a3uh has joined #nixos
ssmike has quit [Remote host closed the connection]
Thra11 has joined #nixos
Myrl-sak1 is now known as Myrl-saki
glenn_ has quit [Ping timeout: 256 seconds]
<sphalerite> Why is it even called a reverse proxy? It doesn't go in the opposite direction from a normal proxy
<samueldr> probably the location, instead of being on-premise for the client, it's on-premise for the server?
<lejonet> Yeah
<lejonet> Its reverse because its proxying for the destination instead of the source
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #34276: abcmidi: 2018.01.02 -> 2018.01.25 (master...abcmidi) https://git.io/vNPDN
NixOS_GitHub has left #nixos [#nixos]
<`_> Yep. That's how it's worked with any of my Jenkins boxes
iyzsong has joined #nixos
glenn_ has joined #nixos
<gchristensen> how do I get the man pages for `man proc`?
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] ericsagnes opened pull request #34286: styx: 0.7.0 -> 0.7.1 (master...pkg-update/styx) https://git.io/vNXRV
<lejonet> gchristensen: man 5 proc
<gchristensen> I get "No manual entry for proc in section 5"
<LnL> you might need the linux manpages
<LnL> pkgs.man-pages
<gchristensen> interesting, does that work inside nix-shell too
<gchristensen> ?
<tilpner> You may also want to install posix_man_pages. Doesn't appear to work in nix-shell
<LnL> usually manpages seem to work in nix-shell, but not in this case it seems
<gchristensen> interesting
<gchristensen> double interesting that my /proc/2290/net/tcp has more fields than any man page I can find says it should
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ericsagnes opened pull request #34287: j4-dmenu-desktop: 2.15 -> 2.16 (master...pkg-update/j4-dmenu-desktop) https://git.io/vNXRH
NixOS_GitHub has left #nixos [#nixos]
<LnL> eg. nix-shell -p hello --run 'man hello'
Ineff has quit [Ping timeout: 260 seconds]
<`_> `man 5 proc` seems to work for me after a `nix-env -i man-pages`
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] copumpkin pushed 2 new commits to release-17.09: https://git.io/vNX0U
<NixOS_GitHub> nixpkgs/release-17.09 4630156 Eelco Dolstra: aws-sdk-cpp: 1.1.18 -> 1.3.22...
<NixOS_GitHub> nixpkgs/release-17.09 08d1f13 Dan Peebles: nixUnstable: pre5788_e3013543 -> pre5873_b76e282d
NixOS_GitHub has left #nixos [#nixos]
zzamboni has quit [Quit: Leaving.]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ericsagnes opened pull request #34288: groonga: 7.0.8 -> 7.1.0 (master...pkg-update/groonga) https://git.io/vNX0w
NixOS_GitHub has left #nixos [#nixos]
coot has joined #nixos
vidbina has joined #nixos
winem_ has joined #nixos
jensens has quit [Ping timeout: 252 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] taku0 opened pull request #34289: thunderbird: 52.5.2 -> 52.6.0 [Critical security fixes] (master...thunderbird-bin-52.6.0) https://git.io/vNXEv
NixOS_GitHub has left #nixos [#nixos]
`_ has quit [Ping timeout: 252 seconds]
therp has joined #nixos
<sphalerite> gchristensen: double plus interesting!
<therp> am I blind or did nobody yet submit a gcc 7.3 PR?
<therp> (spectre-v2 mitigation aka retpoline support)
<gchristensen> sphalerite: oh?
<sphalerite> gchristensen: just being silly
<sphalerite> Is there a way currently to distribute the build of a single derivation across multiple machines?
<gchristensen> ah :)
genesis has joined #nixos
<genesis> hi, i'm using nix on gentoo (so not nixos) and i'd like to use https://github.com/NixOS/nixpkgs-channels/tree/nixos-unstable/pkgs/applications/misc/adobe-reader
<genesis> i've nixpkgs https://nixos.org/channels/nixpkgs-unstable in my channel
<genesis> but it hasn't adobe derivation, what's the best to do ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 4 new commits to master: https://git.io/vNXEM
<NixOS_GitHub> nixpkgs/master cb7fe51 Franz Pletz: nixos/postfix: separate list option elements with commas
<NixOS_GitHub> nixpkgs/master f646e90 Franz Pletz: release notes: mention the postfix config option fix...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 9bd7798 WilliButz: nixos/postfix: fix default postfix config...
<sphalerite> genesis: nix-env -f '<nixpkgs>' -iA adobe-reader
<LnL> dtz: ping
<genesis> $ nix-env -f '<nixpkgs>' -iA adobe-reader
<genesis> error: Package ‘adobe-reader-9.5.5-1’ in /nix/store/zmdmfykvrqiph09lw6lcnkrvm35pr1r8-nixpkgs-18.03pre122585.b212125b541/nixpkgs/pkgs/applications/misc/adobe-reader/default.nix:28 has an unfree license (‘unfree’), refusing to evaluate.
<genesis> great, thantks sphalerite , it's silent without your pretty cmd.
sigmundv__ has joined #nixos
<sphalerite> yeah, and it should be telling you how to allow unfree packages
<sphalerite> if you only want to allow it on a one-off basis you can also just set the NIXPKGS_ALLOW_UNFREE env var, so NIXPKGS_ALLOW_UNFREE=1 nix-env -f '<nixpkgs>' -iA adobe-reader
<sphalerite> !unfree
<{^_^}> You cannot install your unfree software? See https://nixos.wiki/wiki/FAQ/unfree
<sphalerite> see also ^
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 9536114 taku0: thunderbird-bin: 52.5.2 -> 52.6.0
<NixOS_GitHub> nixpkgs/master 4a2f7a7 Franz Pletz: Merge pull request #34289 from taku0/thunderbird-bin-52.6.0...
<NixOS_GitHub> [nixpkgs] fpletz pushed 3 new commits to master: https://git.io/vNXEx
<NixOS_GitHub> nixpkgs/master 965a434 taku0: thunderbird: 52.5.2 -> 52.6.0
NixOS_GitHub has left #nixos [#nixos]
<genesis> it's installing, thanks.
<genesis> need this to print booklet easily :)
<therp> is there any reason why nix isn't using gcc7 by default?
waleee has joined #nixos
dkao has joined #nixos
iMatejC has quit [Remote host closed the connection]
sigmundv__ has quit [Ping timeout: 264 seconds]
iMatejC has joined #nixos
iMatejC has quit [Remote host closed the connection]
iMatejC has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/e79033b572a (from 18 hours ago, history: https://channels.nix.gsc.io/nixos-17.09)
nix-gsc-io`bot has quit [Client Quit]
<clever> genesis: there is also the evince program, which is an open-source pdf reader
<genesis> clever : i try to avoid gtk software, i use qpdview, but booklet printing with both of them needs external tricks as pdfjam or else, and i prefer continue to have acroread.
mizu_no_oto has joined #nixos
<LnL> therp: there's a branch for gcc7, don't know if we're going to switch for 18.03
<therp> LnL: yes, stumbled across https://github.com/NixOS/nixpkgs/issues/31747
asuryawanshi has quit [Ping timeout: 252 seconds]
johnsona` has joined #nixos
johnsona` is now known as johnsonav`
fuyuuri has joined #nixos
<LnL> the list of failures looks reasonable, we'll probably switch before the next release then
johnsonav has quit [Disconnected by services]
johnsonav` is now known as johnsonav
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/46301566ec7 (from 38 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
nix-gsc-io`bot has quit [Client Quit]
<dtz> Has someone updated that (or elsewhere) for 7.3? Retpoline support
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] timokau opened pull request #34291: sage: 8.0 -> 8.1, fix sandbox build (master...sage-fix-shebangs) https://git.io/vNXzs
NixOS_GitHub has left #nixos [#nixos]
<dtz> LnL: pong
<therp> dtz: I haven't seen a PR for gcc 7.3, so probably not.
johnsonav has quit [Read error: Connection reset by peer]
<LnL> dtz: have you been using vim since that last update?
fyuuri has quit [Ping timeout: 240 seconds]
<therp> I am just trying gcc 7.3.0 locally, and I'll submit a simple version bump PR, if that succeeds
<dtz> Yeah, been using since it came out, by chance.. so used it for a week at least before submitting that PR
<dtz> Doesn't mean it works well for everyone though! :(
zzamboni has joined #nixos
<dtz> therp: great, thanks!
<LnL> I'm getting a lot of render lag, thought it was some plugin first but reverting the update fixed it
<tilpner> Baughn - Any success with nixops on hcloud yet?
blym has quit [Read error: Connection reset by peer]
<Baughn> Not yet.
<Baughn> I spent last night busy with this thing: https://github.com/NixOS/nixpkgs/issues/34262
<tilpner> Baughn - I have a stripped-down nixos-infect that seems to work against Ubuntu 16.04: https://gist.github.com/tilpner/c6c3b02e1ee32827ff533bd38435731b
<Baughn> Hetzner said they'll be supporting custom ISOs soon, though. :p
<tilpner> Not global though. Every user of nixops will still have to message support
johnsonav has joined #nixos
<Baughn> Ahh. Hm.
reinzelmann has quit [Quit: Leaving]
<Baughn> I would still rather take the install-image approach, but.. hm.
<Baughn> Nixos-infect might work on a rescue image.
<tilpner> Huh
<tilpner> Why would you use it on a rescue image?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] copumpkin opened pull request #34292: Undo aws sdk cpp bump (release-17.09...undo-aws-sdk-cpp-bump) https://git.io/vNXgv
NixOS_GitHub has left #nixos [#nixos]
<Baughn> To avoid needing to bounce off partitions on disk.
<Baughn> I'm not sure 2GB of memory is enough, though.
Thra11 has quit [Quit: IRC for Sailfish 0.9]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] edolstra closed pull request #34292: Undo aws sdk cpp bump (release-17.09...undo-aws-sdk-cpp-bump) https://git.io/vNXgv
<tilpner> I don't know what you mean by "bounce off partitions on disk"
<Baughn> So nixos-infect doesn't produce a clean installation
<Baughn> If I want one, I need to first run it and then use nixos-install on a separate partition
sigmundv__ has joined #nixos
<ixxie> what is unclean about nixos-infect
Thra11 has joined #nixos
<tilpner> ixxie - It does leave /old-root behind
<tilpner> ixxie - I'm not sure, possibly caused by NIXOS_LUSTRATE, which I can't find any docs for
<ixxie> can't that just be removed?
<tilpner> I think so
<Baughn> Didn't it use a bind-mount?
<ixxie> and I don't see that as a problem for its designed usecase in particular - which is overwriting cloud instances to allow nixos to run there
<tilpner> Baughn - No, mount | grep root is empty
<Baughn> And extra code in configuration.nix...
<tilpner> Baughn - You're confusing it with nixos-in-place
<Baughn> Possible.
erictapen has quit [Remote host closed the connection]
ma27 has quit [Ping timeout: 256 seconds]
erictapen has joined #nixos
<sphalerite> Baughn: I installed nixos from the rescue system manually, i.e. install nix and then obtain nixos-install etc
<tilpner> We could modify stage-1-init to throw /old-root away
<therp> gcc 7.3.0 seems to build cleanly with my local build
<tilpner> :/
<tilpner> sphalerite - But how do you automate that? :s
<dtz> LnL: hmm that's lame! On Darwin? (if so do you happen to know if "same" on Linux occurs?)
<clever> sphalerite, Baughn: also maybe of use: https://github.com/cleverca22/nixos-configs/blob/master/rescue_boot.nix
lsix has joined #nixos
<dtz> regardless sounds worth investigating, maybe it no longer detects support for relevant libs or whatever
lsix_ has quit [Ping timeout: 248 seconds]
<LnL> dtz: yeah on darwin, didn't check linux yet was just wondering if you also noticed something
Rusty1_ has joined #nixos
<sphalerite> clever: no I mean the hetzner rescue system
<clever> ah
<clever> kexec might work better there, but ive not tried it on hetzner
<tilpner> ... How would one sanely maintain patches ontop of stage-1-init?
glenn_ has quit [Ping timeout: 252 seconds]
<azazel> sphalerite: recently I've installed nixos on OVH starting on a debian-based OVH rescue image, if it can help
spear2 has quit [Remote host closed the connection]
<sphalerite> azazel: yeah no I've done the same
<azazel> with kexec?
<sphalerite> clever: as I said, I successfully installed from the heztner rescue image
lsix has quit [Ping timeout: 256 seconds]
lsix_ has joined #nixos
<sphalerite> azazel: no, installing nix in the rescue system
ma27 has joined #nixos
glenn_ has joined #nixos
<azazel> and worked like a charm
<azazel> It replaces the current rescue's kernel with that of the nixos install system
<azazel> very neat
<hyper_ch2> clever's kexec works like a charm
<tilpner> Would it be a good idea to add a way to configure stage-1-init to discard the old root? Probably something simple like checking for the existence of /etc/NIXOS_LUSTRATE_DISCARD_ROOT
<clever> tilpner: that could be done by a systemd one-shot unit as well, after booting
yegortimoshenko has quit [Read error: Connection reset by peer]
<tilpner> I thought of that too, but why keep it in the first place? This option could also help people whose filesystem isn't large enough to hold both NixOS and whatever came before. Though I suppose that's not a common enough usecase...
rprospero has joined #nixos
yegortimoshenko has joined #nixos
* tilpner is convinced, let's not do that
<clever> tilpner: and if you use my kexec trick instead, you can just format the entire drive, rather then keeping the original FS
stepcut has joined #nixos
alexteves has joined #nixos
lsix has joined #nixos
lsix_ has quit [Ping timeout: 256 seconds]
<tilpner> Would a oneshot service run every boot, or only on the first one?
<clever> every boot
<clever> but it could create a file that disables future runs
<tilpner> I haven't looked into how your kexec trick works, so I don't understand the problems it might bring. Is it in use somewhere?
<clever> tilpner: basically, you compile a tarball with nix-build, upload it to any linux machine with scp, unpack it to /, and run /kexec_nixos, and now nixos is running from ram
<clever> you are free to format whatever you want
coot has quit [Ping timeout: 256 seconds]
<hyper_ch2> "The trick to making this work is by building a kexec compatible ramdisk NixOS system locally, transfering it to the server and use the kexec command to boot into it. Afterwards, you can install NixOS like you usually do."
a6a3uh has quit [Quit: Bye]
<tilpner> Hmm, I don't know how to automate that well
ssmike has joined #nixos
<clever> tilpner: the justdoit script helps automate it further
therp has quit [Quit: Leaving]
<clever> tilpner: this bash script is pre-installed in that kexec image, you literally run "justdoit" over ssh, and it nukes the hdd and installs nixos
<tilpner> I'll give it a try
* tilpner nukes the poor server again
mrkgnao has joined #nixos
infinisil has quit [Quit: Configuring ZNC, sorry for the join/quits!]
infinisil has joined #nixos
glenn_ has quit [Ping timeout: 256 seconds]
<hyper_ch2> tilpner is now on the NSA's radar :)
<azazel> :-)
glenn_ has joined #nixos
la_putin has quit [Remote host closed the connection]
<rprospero> Any guidance on what I'm doing wrong with my override here?
danbst has joined #nixos
<danbst> hello there
<danbst> is it possible to SSH into one of nixos-test-driver VMs?
sigmundv__ has quit [Ping timeout: 246 seconds]
szicari has joined #nixos
<rprospero> I'm trying to create a symlink with the en_GB name that hunspell is looking for, but the postInstall script doesn't seem to be running.
<rprospero> i.e. the en_GB.aff and en_GB.dic files aren't being created
glenn_ has quit [Ping timeout: 240 seconds]
lsix_ has joined #nixos
lsix has quit [Ping timeout: 256 seconds]
d6-actual has joined #nixos
a6a3uh has joined #nixos
glenn_ has joined #nixos
danbst has quit [Ping timeout: 260 seconds]
therp has joined #nixos
sigmundv__ has joined #nixos
<clever> rprospero: was installPhase specified in the derivation in nixpkgs?
Ivanych has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] symphorien opened pull request #34293: Bombono gcc7 (master...bombono-gcc7) https://git.io/vNXod
NixOS_GitHub has left #nixos [#nixos]
<rprospero> clever: Yes, from what I can tell.
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/46301566ec7 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [Client Quit]
owickstrom has joined #nixos
<rprospero> hunspellDics.en-gb-ise calls mkDictFromWordlist, which, in turn, calls mkDict, which sets in installPhase
<clever> rprospero: that breaks pre/post install
knupfer has joined #nixos
<rprospero> clever: That would be my problem!
<clever> rprospero: so you either have to append to the old installPhase in overrideDerivation, or cheat with another later phase
<tilpner> clever - Is justdoit supposed to schedule a reboot before the user has set a password?
<clever> tilpner: nope
<clever> tilpner: it currently asks for a password on stdin, but thats just normal nixos-install logic
<clever> tilpner: so if you toggle the mutable users setting, it wont ask for a password
<clever> just make sure to provide a password hash in the input config
<tilpner> Sure, it's not a problem. Just seemed weird ptpb.pw/CNKc.png
<clever> rprospero: lines 1015 and 1035 are responsible for running the pre/post hooks, and are often lost when you override the installPhase
<clever> rprospero: but you can use preFixup if the fixup phase is still active, it runs after install
<clever> tilpner: oh, thats the safety
<clever> tilpner: your supposed to `systemctl stop autoreboot.timer` once you get in, i need to document that better
<clever> its to recover the hardware if you find yourself unable to control it, and the hoster doesnt have a force reboot button
<tilpner> Ah, I see. You might also want to extract your kexec config out of "nix-tests" :)
<clever> thats just a place where i have been throwing a lot of random experimental things
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] clefru opened pull request #34294: gcc: 7.2.0 -> 7.3.0 (master...gcc7-bump) https://git.io/vNX6v
NixOS_GitHub has left #nixos [#nixos]
<tilpner> Of course. Oh, and maybe add a license when/if you extract it
<clever> one option is to properly put it into nixpkgs
leapingfrogs has joined #nixos
<tilpner> That would be nice
rogue_koder has joined #nixos
erasmas has joined #nixos
justanotheruser has quit [Quit: WeeChat 1.9.1]
<rprospero> clever: mkDictFromWordlist turned off the fixup phase, but I've turned it back on again and things seem to be working. Thanks for your help.
leapingfrogs has quit [Client Quit]
<clever> rprospero: yep
erasmas has quit [Client Quit]
erasmas has joined #nixos
rprospero has quit [Quit: reboot]
justanotheruser has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 2 new commits to gcc-7: https://git.io/vNX6A
<NixOS_GitHub> nixpkgs/gcc-7 99fc949 Tuomas Tynkkynen: gcc7: Drop flex again...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/gcc-7 6a11ebf Tuomas Tynkkynen: Merge remote-tracking branch 'upstream/master' into gcc-7...
glenn_ has quit [Read error: Connection timed out]
knupfer has quit [Ping timeout: 240 seconds]
rauno has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vNXiH
<NixOS_GitHub> nixpkgs/master cb142ae Franz Pletz: clamav: 0.99.2 -> 0.99.3
NixOS_GitHub has left #nixos [#nixos]
glenn_ has joined #nixos
jb55 has joined #nixos
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master d0717d5 adisbladis: Merge pull request #34286 from ericsagnes/pkg-update/styx...
<NixOS_GitHub> [nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vNXPm
<NixOS_GitHub> nixpkgs/master a4fba8d Eric Sagnes: styx: 0.7.0 -> 0.7.1
endformationage has joined #nixos
MercurialAlchemi has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #34287: j4-dmenu-desktop: 2.15 -> 2.16 (master...pkg-update/j4-dmenu-desktop) https://git.io/vNXRH
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vNXPl
<NixOS_GitHub> nixpkgs/master 0b76640 adisbladis: Merge pull request #34288 from ericsagnes/pkg-update/groonga...
<NixOS_GitHub> nixpkgs/master 828d19a Eric Sagnes: groonga: 7.0.8 -> 7.1.0
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fgaz opened pull request #34296: Isso: init at 0.10.6 (plus dependencies) (master...isso) https://git.io/vNXPi
NixOS_GitHub has left #nixos [#nixos]
glenn_ has quit [Ping timeout: 246 seconds]
fuyuuri has quit [Ping timeout: 256 seconds]
dkao has quit [Ping timeout: 252 seconds]
hyper_ch2 has quit [Quit: Page closed]
knupfer has joined #nixos
glenn_ has joined #nixos
lsix_ has quit [Ping timeout: 240 seconds]
lsix_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 2f83f52 Clemens Fruhwirth: gcc: 7.2.0 -> 7.3.0
<NixOS_GitHub> nixpkgs/master e3df936 Eelco Dolstra: Merge pull request #34294 from clefru/gcc7-bump...
<NixOS_GitHub> [nixpkgs] edolstra pushed 2 new commits to master: https://git.io/vNXX9
NixOS_GitHub has left #nixos [#nixos]
knupfer has quit [Ping timeout: 246 seconds]
Drakonis has joined #nixos
freusque has joined #nixos
leat has quit [Ping timeout: 260 seconds]
<freusque> nix-info output:
<freusque> system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 1.11.15, channels(root): "nixos-17.09.2138.48bf1f43cd", channels(fre): "nixos-17.09.2862.dab46ac5e2f", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
Ivanych has joined #nixos
coot has joined #nixos
<freusque> Is there a way to escape ${ in strings?
<ckauhaus> yes, use ''${ ... }
<ckauhaus> double single quote
<freusque> thank you ckauhaus
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] magnetophon opened pull request #34298: distrho: 2017-10-10 -> 2018-01-01 (master...distrho) https://git.io/vNX1Q
NixOS_GitHub has left #nixos [#nixos]
henk has quit [Ping timeout: 255 seconds]
oida has quit [Quit: WeeChat 1.6]
randomstrangerb has quit [Ping timeout: 260 seconds]
a6a3uh has quit [Quit: Bye]
glenn_ has quit [Ping timeout: 265 seconds]
randomstrangerb has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fgaz opened pull request #34299: meme: init at 2017-09-10 (master...meme) https://git.io/vNXMz
NixOS_GitHub has left #nixos [#nixos]
mizu_no_oto has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
glenn_ has joined #nixos
sigmundv__ has quit [Ping timeout: 240 seconds]
lsix_ has quit [Quit: Konversation terminated!]
chreekat has quit [Ping timeout: 268 seconds]
freusque has quit [Quit: WeeChat 1.9.1]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] magnetophon opened pull request #34300: magnetophonDSP: remove workarounds for: (master...magnetophonDSP) https://git.io/vNXyt
NixOS_GitHub has left #nixos [#nixos]
ma27 has quit [Ping timeout: 252 seconds]
Sonarpulse has joined #nixos
asuryawanshi has joined #nixos
glenn_ has quit [Ping timeout: 252 seconds]
ryanartecona has joined #nixos
ma27 has joined #nixos
<typetetris> hmm haskell.packages.ghc822.hdevtools fails to build ...
slack1256 has joined #nixos
glenn_ has joined #nixos
randomstrangerb has quit [Ping timeout: 256 seconds]
Thra11 has quit [Ping timeout: 256 seconds]
randomstrangerb has joined #nixos
henk has joined #nixos
glenn_ has quit [Ping timeout: 240 seconds]
bfrog has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 1 new commit to master: https://git.io/vNX9k
<NixOS_GitHub> nix/master e09161d Eelco Dolstra: Remove signed-binary-caches as the default for require-sigs...
NixOS_GitHub has left #nixos [#nixos]
a6a3uh has joined #nixos
rogue_koder has quit [Read error: Connection reset by peer]
Drakonis has quit [Read error: Connection reset by peer]
a6a3uh has quit [Client Quit]
glenn_ has joined #nixos
Itkovian has quit [Read error: Connection reset by peer]
Itkovian has joined #nixos
a6a3uh has joined #nixos
ixxie has quit [Quit: Lost terminal]
zzamboni has quit [Quit: Leaving.]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bendlas pushed 1 new commit to master: https://git.io/vNXQR
<NixOS_GitHub> nixpkgs/master 4e8cd90 Herwig Hochleitner: wineStaging: remove evaluation warning...
NixOS_GitHub has left #nixos [#nixos]
waleee has quit [Quit: WeeChat 2.0]
jb55 has quit [Ping timeout: 246 seconds]
ottidmes has joined #nixos
rogue_koder has joined #nixos
i-am-the-slime has joined #nixos
<i-am-the-slime> How can I use packages from nixpkgs in configuration file?
<ottidmes> What is run first, the script that handles createHome = true, or the activation scripts? In other words, can I be sure the home directory is already created when my activation script is run? I could just make the home folder in question (not a regular home folder) via my activation script to be sure, but I find it neater to use createHome
<tilpner> i-am-the-slime - Just pkgs.foo, usually
BlessJah has quit [Ping timeout: 276 seconds]
ficl has joined #nixos
<i-am-the-slime> It doesn't like it
<tilpner> i-am-the-slime - pkgs is an argument supplied to modules. At the top of your module, you should have something like { pkgs, ... }: { ... }
<i-am-the-slime> ah
<i-am-the-slime> not nixpkgs
<i-am-the-slime> but pkgs
<i-am-the-slime> great
<tilpner> ottidmes - You should use the deps option of your activationScript to specify that it should run after the home has been created
<tilpner> ottidmes - You can inspect the current activation sequence with "less /run/current-system/activate". I didn't find the home creation part though, perhaps because I didn't set createHome
leat has joined #nixos
gg has joined #nixos
slack1256 has quit [Remote host closed the connection]
<winem_> https://www.apaste.info/Rmxd can anyone help me to get rid of the "relocation error" when I enter nix-shell? I just installed the development tools, haskellstack + nix and run nix-shell
<ottidmes> tilpner: I now have: deps = [ "users" ]; since users calls update-users-groups.pl and it is apparently responsible for creating the home directory. Thanks!
coot has quit [Quit: coot]
asuryawanshi has quit [Remote host closed the connection]
ssmike has quit [Remote host closed the connection]
<winem_> I'm struggling with that a long time now. any help or hint is highly appreciated
ssmike has joined #nixos
orivej has joined #nixos
asuryawanshi has joined #nixos
coot has joined #nixos
<i-am-the-slime> It doesn't like this: nixpkgs.nodejs-9_x
sphalerite_ has quit [Ping timeout: 255 seconds]
<i-am-the-slime> because of the _ I think
<tilpner> winem_ - Don't install libraries with nix-env
sphalerite_ has joined #nixos
texasmynsted has joined #nixos
BlessJah has joined #nixos
<tilpner> i-am-the-slime - It? Paste error
<i-am-the-slime> can I quote it?
<texasmynsted> is it fine to ask nix questions here, as compared with nixos quesitons?
swayf_ has quit [Remote host closed the connection]
<i-am-the-slime> So I put pkgs.nodejs-9_x
<tilpner> texasmynsted - Yes
<texasmynsted> Is anybody using nix locally to create project templates?
swayf has joined #nixos
<texasmynsted> I would like a better way to create generic project templates.
stepcut has quit [Remote host closed the connection]
<tilpner> Never heard of anyone doing that
<texasmynsted> though not sure nix is really the best solution
<i-am-the-slime> Do I have to quote it?
<maurer> texasmynsted: I'll drop a templated shell.nix in my projects so that I can easily pull in dependencies, but I don't think that's quite what you're getting at
<tilpner> i-am-the-slime - No, probably not. I could tell for sure if you answered the questions. Where did you put it, and what's the error?
stepcut has joined #nixos
<texasmynsted> no something like a haskell version of giter8 that targets "any" templated directory structure and set of files.
<i-am-the-slime> I put it into environment.systemPackages
<i-am-the-slime> error: attribute ‘nodejs-9_x’ missing, at /etc/nixos/configuration.nix:72:5
erasmas has quit [Quit: leaving]
<gg> I can't install on macOS: "Something went wrong, and I didn't find Nix installed at /nix/store/hwpp7kia2f0in5ns2hiw41q38k30jpj2-nix-1.11.16." - should I report to github?
erasmas has joined #nixos
<texasmynsted> hmm. I suppose that nix is not the right solution.
<tilpner> i-am-the-slime - Ah, you're not on nixos-unstable. That package is not available in your channel yet
swayf has quit [Ping timeout: 265 seconds]
glenn_ has quit [Ping timeout: 256 seconds]
glenn_ has joined #nixos
lonokhov has quit [Quit: Lost terminal]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/239bdbd702a (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [Client Quit]
pyed has joined #nixos
digitus has joined #nixos
gg has quit [Quit: Page closed]
glenn_ has quit [Ping timeout: 252 seconds]
<pyed> znc hits Segmentation fault, spent some time looking at it and turns out it only happens when I install ZNC via nix
jb55 has joined #nixos
<pyed> After I installed ZNC via 'apt-get' it worked fine
<pyed> the Segmentation fault happens at the first run of ZNC and choosing to use SSL, when ZNC tries to write the certificate it will hit the fault
<winem_> tilpner: I did not do anythign with nix-env before I got this error
<i-am-the-slime> tilpner: I'm fine going to nixos-unstable if you tell me how
<winem_> let me read your link
<i-am-the-slime> Or maybe I should install it with nix-env?
glenn_ has joined #nixos
texasmynsted has left #nixos ["WeeChat 1.9.1"]
<tilpner> winem_ - The link you posted shows you running "nix-env -i glibc"
<winem_> ah right, but I got that error even before. I'm following the advice in your link and testing it now
jedai has joined #nixos
<winem_> looks like nix-shell gcc and pkgconfig did the trick already
<tilpner> You will want to uninstall that glibc from your user profile
rcshm has quit [Ping timeout: 240 seconds]
jedai42 has quit [Ping timeout: 240 seconds]
ertes-w has quit [Ping timeout: 248 seconds]
<winem_> ok, let me do that. and I have to read why I want to do that :)
jedai42 has joined #nixos
jedai|3 has joined #nixos
Tucky has quit [Quit: WeeChat 2.0.1]
jedai has quit [Ping timeout: 268 seconds]
coot has quit [Quit: coot]
<winem_> tilpner: actually, it's my first day compiling haskell code and building nix derivations. we plan to use a nix-serve server as repository for all our packages. therefore my colleagues did some research and they recommend to use nix-env to setup the env on the repo server and run use nix-build to build our software. is that wrong, too?
jedai42 has quit [Ping timeout: 268 seconds]
patrl has joined #nixos
glenn_ has quit [Ping timeout: 265 seconds]
<tilpner> Not necessarily. nix-env can be used to install binaries just fine (though declarative installation of that env is preferable). Just don't use it to install libraries
iyzsong has quit [Ping timeout: 268 seconds]
chisui has joined #nixos
<winem_> tilpner: ah ok, that's a good point. so, let me ask a last question because we have a single remaining issue with our nix-server. we have to run the command nix-env -i /nix/store/<long-hash>/bin/ourapplication --option extra-binary-caches http://nix.cache.srv.ip:9050 to install ourapplication. the nix-repo server does a lookup to the public nix repos if we just say nix-env -i ourapplication
glenn_ has joined #nixos
jedai has joined #nixos
<winem_> I guess there is a way to get rid of the absolute path in the -i command?! would love to see something like "versioning". let's say ourapplication 2.0 uses path xyz and we can install it by nix-env ourapplication-2.0 or somethine like that
jedai|3 has quit [Ping timeout: 260 seconds]
<winem_> (yes I got the thing with the profiles, hashes and why nix is so cool. actually I'm a bit disappointed that our customers would never allow us to use nixOS because it seems like a dream from the ops perspective :) )
zastif has joined #nixos
ficl has quit [Ping timeout: 240 seconds]
<tilpner> Let's say you build your application with "nix-build release.nix -A ourapplication". You could then install it via "nix-env -f ./release.nix -iA ourApplication"
pyed has quit [Quit: Textual IRC Client: www.textualapp.com]
<zastif> Hello and sorry for the trouble, i'm a bit inexperienced with such issues. Just installed nixos the second time and some terminals (anything but xterm) seems to not make the correct backspace character when i use it
<tilpner> You could even use packageOverrides or an overlay, so that "nix-env -iA ourapplication" becomes possible
<zastif> How do i start troubleshooting? Its not locale
<chisui> zastif: same issue here
zzamboni has joined #nixos
<zastif> could you do anything? i just use xterm for now but its a bit annoying
<chisui> I'm running a fresh NixOS installation (for the first time, wuhuu!). Unfortunately the terminal seems to be broken to the point where I can't edit files with nano. Which is kind of a showstopper. Whenever I run something like clear of reset I get the message "'linux': unkown terminal type". The reason seems to be that in the terminfo database there are entries for lowercase letters there are "*~nix~case~hack~1" entries which seem too n
<chisui> setting TERM to dumb fixes the backspace issue but nano is still broken (no content, only controlls on the bottom)
arjen-jonathan has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis pushed 4 new commits to master: https://git.io/vN1J0
<NixOS_GitHub> nixpkgs/master bb1a326 adisbladis: whois: 5.2.20 -> 5.3.0
<NixOS_GitHub> nixpkgs/master c903694 adisbladis: vbindiff: 3.0_beta4 -> 3.0_beta5
<NixOS_GitHub> nixpkgs/master 6b91bee adisbladis: yubikey-personalization: 1.18.0 -> 1.18.1
NixOS_GitHub has left #nixos [#nixos]
<joepie91> chisui: your message got cut off in the middle; "entries which seem too n[...]setting TERM to"
pietranera has quit [Quit: Leaving.]
<joepie91> (the web client incorrectly cuts off messages)
<chisui> ... entries for lowercase letters there are "*~nix~case~hack~1" entries which seem too not work at all.
notdaniel has joined #nixos
<winem_> tilpner: that sounds very good. thanks, will try that!
knupfer has joined #nixos
Arcaelyx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<chisui> zastif: can you share whats in your terminfo database? The contents of the first existing directory specified in the TERMINFO_DIRS variable. Are there also these ~nix~os~case~hack~1 entries?
<FareTower> Hi. So I use makeStaticLibraries... but how do I locate the .a files to give them as arguments?
i-am-the-slime has quit [Ping timeout: 264 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vN1kd
<NixOS_GitHub> nixpkgs/master 15ce244 Robin Gloster: clamav: fix fd leakage
NixOS_GitHub has left #nixos [#nixos]
<FareTower> the paths for where the .a's reside isn't in NIX_LDFLAGS for instance
lambda-11235 has joined #nixos
a6a3uh has quit [Quit: Bye]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/release-17.09 a5fc6e8 Franz Pletz: clamav: 0.99.2 -> 0.99.3...
<NixOS_GitHub> [nixpkgs] globin pushed 2 new commits to release-17.09: https://git.io/vN1LJ
<NixOS_GitHub> nixpkgs/release-17.09 ffea68a Robin Gloster: clamav: fix fd leakage...
NixOS_GitHub has left #nixos [#nixos]
glenn_ has quit [Ping timeout: 252 seconds]
glenn_ has joined #nixos
a6a3uh has joined #nixos
<zastif> chisui: https://pastebin.com/raw/G9fTkQGc like this?
lounge-user36 has joined #nixos
<zastif> I have some nix~case~hack entries
<lambda-11235> I running in virtualbox and my terminals are acting wierd. I can fix it by setting TERM=vt100 instead of xterm. how would I globally set this variable?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 opened pull request #34302: doc: Two cleanups to the cross compilation chapter (master...cross-doc) https://git.io/vN1q7
NixOS_GitHub has left #nixos [#nixos]
<winem_> tilpner: another question where I'm looking for an advice in the right direction. I get this error when building our app in the nix-shell. https://www.apaste.info/iNGP is this an error in the aeson dependency management or an error on our end?
ma27 has quit [Ping timeout: 252 seconds]
<chisui> zastif: yes, that looks exactly like my setup
<zastif> I wonder whats up
<chisui> om my arch machine i have entries for both upper and lower case without these suffixes
steshaw has quit [Quit: Connection closed for inactivity]
<tilpner> winem_ - Hmm, I think that's your end, but I haven't done much Haskell with Nix yet. Did you put glibc into the users or build environment here?
<chisui> but since this is NixOS I am afraid to edit these files just like that
<winem_> yes
<tilpner> lambda-11235 - environment.variables.TERM = "vt100";
<tilpner> winem_ - Try not doing that :)
lounge-user36 has quit [Quit: The Lounge - https://thelounge.github.io]
<winem_> tilpner: let me double-check :D
<winem_> tilpner: how to check that? I had it for some tests in the shell nix but I saw that I already removed it a while ago.
<winem_> tilpner nix-env -qa glibc?
zastif_ has joined #nixos
<tilpner> nix-env -q to check your user env. It shouldn't mention glibc at all
<winem_> ok, it's still running
<winem_> it lists glibc.. will remove that
stepcut has quit [Remote host closed the connection]
zastif has quit [Ping timeout: 260 seconds]
patrl has quit [Ping timeout: 256 seconds]
<winem_> tilpner: I ran nix-env -e glibc before. glibc shouldn't be in the output of nix-env qa if it's no longer referenced by the active nix profile (=not in use), right?
<winem_> runniing the garbage collection now
<tilpner> You don't want -qa. Just -q
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<tilpner> -a will search available packages, but you only care for installed packages right now
<winem_> ah damn, of course. being in the office for already 13hours is not very helpful I guess
stepcut has joined #nixos
zastif_ has quit [Ping timeout: 260 seconds]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/239bdbd702a (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
nix-gsc-io`bot has quit [Client Quit]
macslayer has joined #nixos
<macslayer> Good afternoon, all!
stepcut has quit [Remote host closed the connection]
<macslayer> I'm having `flash_player_npapi_linux` 404 on me
<macslayer> When trying to install Adobe Flashplayer in Firefox
<tilpner> That sounds familiar
stepcut has joined #nixos
<macslayer> If it were me, I would have responded with
<macslayer> > Using flash player
<macslayer> > ever
<macslayer> But alas, I have to use it for some proprietary webinar things that I'm trying to watch
<tilpner> Yeah, I think I just disabled flash when I hit that error :/
<macslayer> Hrrrmmm okay
a6a3uh has quit [Quit: Bye]
<tilpner> Is standalone flashplayer enough for what you're doing?
stepcut_ has joined #nixos
stepcut has quit [Read error: Connection reset by peer]
stepcut_ has quit [Remote host closed the connection]
<macslayer> Hmmmm
<macslayer> Okay, so I guess I can do a temporary change on that URL
<macslayer> What a pain
<tilpner> No!
<tilpner> What's your error exactly?
<macslayer> No?
<macslayer> Here's the full output-- it's just 404ing on the URL that should contain flash player.
<coconnor> Is there a guide for setting up an npm package?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 closed pull request #34269: lib: Allow parsing platform configs with arch of `{riscv,wasm}{32,64}` (master...lib-riscv-wasm) https://git.io/vNP8T
NixOS_GitHub has left #nixos [#nixos]
<tilpner> Ah, it's an older version. What channel are you on?
zastif has joined #nixos
<macslayer> 17.09
Guest73602 has quit [Ping timeout: 268 seconds]
<macslayer> That's the newest release, right?
<tilpner> Try updating that channel
<macslayer> Hm okay
<tilpner> I just built flashplayer on nixos-17.09, and it doesn't use your URL
<coconnor> Ah. I see a "node2nix" tool.
<macslayer> Oh, good
<macslayer> I haven't updated in a while, that's probably the issue. Just a minute...
<macslayer> Looks like every single package on my system is getting updated.
<zastif> chisui: did i miss anything
macslayer has quit [Quit: Konversation terminated!]
macslayer has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 pushed 3 new commits to master: https://git.io/vN1n6
<NixOS_GitHub> nixpkgs/master e316ba1 John Ericson: doc: chap cross: Make example command stick out more...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master bc3c3b8 John Ericson: Merge pull request #34302 from obsidiansystems/cross-doc...
<NixOS_GitHub> nixpkgs/master 94a2af9 John Ericson: doc: Cross chapter: Add note on why use example platforms
judson has joined #nixos
<macslayer> tilpner: Got it working! Updating was the fix.
<macslayer> Thanks!
<tilpner> :)
coot has joined #nixos
knupfer has quit [Ping timeout: 252 seconds]
<winem_> tilpner: I still run into the same error. glibc is uninstalled. Do you have any other idea? would it help if I share the stack.yaml, xxx.cabal or shell.nix?
Turion has joined #nixos
zastif has quit [Ping timeout: 260 seconds]
<tilpner> winem_ - More information is usually good. I'll look at it, but no promises. You might have to wait for someone more familiar with Nix+Haskell
<winem_> tilpner, any help is really appreciated. so I'm already very thankful for the shared insights :) what do you want me to share?
<tilpner> Put all of them into a gist, along with the compiler output and the command you used
coot has quit [Ping timeout: 260 seconds]
glenn_ has quit [Ping timeout: 276 seconds]
taktoa has quit [Read error: Connection reset by peer]
<winem_> the compiler output is a lot.. it takes about ~20 minutes with 4 CPU to get to the error
<lambda-11235> tilpner: Setting environment.variables.TERM doesn't seem to work.
<tilpner> lambda-11235 - You'll have to nixos-rebuild switch, and then login again
glenn_ has joined #nixos
sigmundv_ has quit [Ping timeout: 256 seconds]
dbe_ has joined #nixos
<lambda-11235> tilpner: I did that and it didn't change TERM. I tried it with another variable and it worked. I assume TERM must be overwritten later.
macslayer has quit [Quit: Konversation terminated!]
freeman42x[NixOS has joined #nixos
<tilpner> lambda-11235 - You can also try environment.sessionVariables or services.xserver.displayManager.sessionCommands
<winem_> tilpner: prepared a gist with those 3 files and the compiler output (skipping the copy/register, download, confgiure,build output for most of the modules that work fine). anything else you want to see?
<tilpner> winem_ - Should be enough. Does this error only happen from nix-shell or also with nix-build?
jb55 has quit [Ping timeout: 268 seconds]
<winem_> both
goodwill has quit [Quit: ...]
<lambda-11235> tilpner: No good. I think I'll just set it in my bashrc and not worry about global configs.
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
<Biappi> i would like to try and package a program and maybe send it upstream... is this the guide to follow? https://nixos.org/nixpkgs/manual/#chap-submitting-changes
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti pushed 2 new commits to master: https://git.io/vN1WH
<NixOS_GitHub> nixpkgs/master b7e6ac1 Peter Simons: hledger: install man pages and info files...
<NixOS_GitHub> nixpkgs/master 2ef2447 Peter Simons: hledger-ui: create a top-level name for this Haskell executable
NixOS_GitHub has left #nixos [#nixos]
ryanartecona has quit [Quit: ryanartecona]
<winem_> have to join a call. will be back soon and keep my iirc client open
glenn_ has quit [Remote host closed the connection]
glenn_ has joined #nixos
sigmundv__ has joined #nixos
<coconnor> infinisil: thanks! Looks like node2nix is the tool to generate those packages. https://github.com/svanderburg/node2nix
zzamboni has quit [Quit: Leaving.]
<chisui> zastif: sorry was afk, doesn't seem so
raynold has joined #nixos
<tilpner> winem_ - I don't see any obvious mistakes, and I can't reproduce that locally. It's a different symbol, but https://github.com/NixOS/nixpkgs/issues/31846 looks quite similar to your problem
mrkgnao has quit [Ping timeout: 256 seconds]
<tilpner> winem_ - You should look at LD_PRELOAD, and try with sandboxing if it's not already enabled
<tilpner> winem_ - It could also be https://github.com/NixOS/nixpkgs/issues/31846#issuecomment-346435364 , so try that too
reinzelmann has joined #nixos
sigmundv__ has quit [Ping timeout: 256 seconds]
<winem_> tilpner, many thanks. will check both of them. Already followed some recommendations on github like unset LD_LIBRARY_PATH and check LD_PRELOAD.
<FareTower> how do I use static libraries in nixos ??? I can build them with makeStaticLibraries but how am I supposed to use them? use manually ${makeStaticLibraries zlib}/lib/libz.a and such?
swayf has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 opened pull request #34303: lib, glibc: Get rid of withTLS (master...glibc-always-tls) https://git.io/vN1Bt
NixOS_GitHub has left #nixos [#nixos]
magnetophon has joined #nixos
stephenjudkins has joined #nixos
<winem_> tilpner: do you think that the operating system is relevant? actually, it should be totally independent, but I don't trust myself any longer
<tilpner> winem_ - Without sandboxing, the OS can affect the build
ndrei has joined #nixos
<ndrei> Hello
<chisui> zastif: the issue is definitely caused by these weired ~nix~os~case~hack~1 suffixes. I just created a new terminfo dir with fixed names and everything works like a charm. I think ncurses-6.0 is broken
<winem_> tilpner: isn't sandboxing the default? thought so because I saw that I can disable it with --pure
<ndrei> I'm having a very weird issue that's to me stumped: when I try to run some programs (eg. watchman, I'm getting this error: /nix.store/.../libstdc++.so.6: version `GLIBCXX_3.4.22' not found)
<tilpner> winem_ - Does your /etc/nix/nix.conf have "build-use-sandbox = true"?
<ndrei> This is happening for a few packages, watchman is just the last one I've tried
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] WilliButz opened pull request #34304: add prometheus-{postfix,dovecot}-exporter (master...add-postfix-dovecot-exporters) https://git.io/vN1Bx
NixOS_GitHub has left #nixos [#nixos]
<tilpner> ndrei - Did you do anything involving libstdc++ recently? Like... try to install it?
<winem_> /etc/nix/nix.conf does not exist. we install nix via `curl https://nixos.org/nix/install | sh`
<ndrei> well.. I don't remember.. I mean, /nix/store is read-only anyway, so I couldn't of messed with that
<ndrei> I'm guessing it's something that's mutable in the system that got corrupted somehow.. but what could that be? and how could that involve libstdc++?
<ndrei> I've tried switching channels from unstable to stable, system version from 18.03 to 17.09.. nothing
<tilpner> winem_ - I forgot the other way to check nix config. You could try locate or find / -name nix.conf 2>/dev/null
<tilpner> :/
<winem_> did that with just one result: /nix/store/gy4yv67gv3j6in0lalw37j353zdmfcwm-nix-1.11.16/share/man/man5/nix.conf.5.gz
alex`` has quit [Quit: WeeChat 1.9]
<winem_> that's not what we're looking for, right?
<tilpner> It's not
<winem_> ok, let me google
<ndrei> Also, perhaps related, some binaries I've tried running, like Mancy (a Node REPL), give me a "file not found error" when I try to run them
<winem_> tilpner: I guess it's just nix-build ... --option build-use-sandbox true to make sure that sandboxing is used. is that correct?
<tilpner> winem_ - Anyway, IIRC non-NixOS builds don't sandbox by default. You could try enabling it for just one build, but it'd be a good thing to have permanently
<winem_> totally agree regarding the permanent solution
<ndrei> tilpner: :X ... nevermind... I found it.. I had LD_LIBRARY_PATH set in a shell init file... :/... Thank you :)..
<tilpner> ndrei - That's not related. Most foreign (not compiled/patched for NixOS) binaries use the wrong interpreter
coot has joined #nixos
<tilpner> ndrei - You can use patchelf to set the interpreter, or steam-run for a quick escape-hatch to run them in an FHS-compliant environment
<tilpner> ndrei - (The "file not found" is not related. LD_LIBRARY_PATH of course is)
<ndrei> tilpner: yeah, I was expecting that.. but since the issue started manifesting about the same time and I was getting desparate... and now I remember, it was because of that problem that I've tried setting LD_LIBRARY_PATH :/
<ndrei> I'm so happy I found it! I was almost going to reinstall the whole thing (well, since this is Nix, not such a big deal) :)
<ndrei> thanks for the info, I'll try the steam-run approach since that seems to need less maintenance, just a wrapper right
MichaelRaskin has joined #nixos
glenn_ has quit [Ping timeout: 252 seconds]
<tilpner> Sort of. It does more than just set a few variables
alex`` has joined #nixos
<ndrei> okay, just thinking that with patchelf I would have to run it again whenever I upgrade something and the nix store paths change
<tilpner> Yeah, manual patchelf-ing isn't very practical
tmaekawa has joined #nixos
tmaekawa has quit [Client Quit]
jb55 has joined #nixos
<ndrei> Thanks for your help, I'm out..
ndrei has quit [Quit: WeeChat 1.9.1]
<chisui> Where do I report bugs in the default install iso
<chisui> ?
lambda-11235 has quit [Quit: WeeChat 2.0.1]
ottidmes has quit [Ping timeout: 260 seconds]
alexteves has quit [Remote host closed the connection]
glenn_ has joined #nixos
<hyper_ch> there are bugs in the default install iso?
Thra11 has joined #nixos
<nixy> chisui: What kind of bugs are you reporting?
ryanartecona has joined #nixos
reinzelmann has quit [Quit: Leaving]
chisui has quit [Ping timeout: 260 seconds]
gilligan_ has joined #nixos
<gilligan_> evening
chisui has joined #nixos
<winem_> tilpner: sorry to bother you again. now I tried the nix-build account with build use sandbox true but I get "can not change ownership of /nix/store/sha-ourApp.env, permission denied". but that file is writable for my user and I couldn't find an option to change or set the build use
zzamboni has joined #nixos
ryanartecona has quit [Ping timeout: 240 seconds]
<tilpner> winem_ - Oh, I didn't know that. https://github.com/NixOS/nix/issues/1613#issuecomment-350292569
<tilpner> winem_ - If you run nix-shell -p nix-info --run nix-info , does it say single-user?
nallar has joined #nixos
<sphalerite> I've submitted a PR for a new package where I used a way of specifying the version which isn't used widely in nixpkgs AFAIK and which I suspected might raise some eyebrows but I think it has some concrete advantages and would like some more input on the idea in general.
<nixy> I was experiencing similar terminfo issues when running the vagrant NixOS box (which was freshly minted)
<sphalerite> The idea is that rather than having a let binding or passing a rec set to stdenv.mkDerivation, we make the version string and source hash arguments to the function to make overriding the version a lot simpler. See https://github.com/NixOS/nixpkgs/pull/34275#discussion_r164206558
<sphalerite> Any feedback would be very welcome!
Ross has quit [Ping timeout: 240 seconds]
<winem_> yep, I guess multi-user?: no implies single-user mode. but I ran all the nix commands (even the setup) with the current user
chisui has quit [Ping timeout: 260 seconds]
arst has joined #nixos
Ross has joined #nixos
<tilpner> winem_ - So... you can try getting a multi-user install (I can not help with that), running nix-build as root, or using nixUnstable (although the next comment implies that doesn't quite work either)
<winem_> tilpner, ok, I'll read all the comments from the last link. many thanks anyway :)
nallar has quit [Ping timeout: 256 seconds]
<tilpner> sphalerite - I'm generally against putting non-dependency arguments there, it can cause hard-to-debug issues with callPackage. And it should probably be sourceSha256
<winem_> tilpner: now I'm confused. do you think stack setup in the nix-shell followed by removing the ~/,stack folder could help?
<winem_> tilpner: until now, I got from the github issues and comments that you should not run stack setup or have to remove the .stack folder if you did it to "undo" the stack setup command
<gilligan_> I am trying to build a rust package using `rustPlatform.buildRustPackage` but I get `error: the lock file needs to be updated but --frozen was passed to prevent this` -- does anyone konw what this is about?
<tilpner> winem_ - I'm getting really uncertain here. I interpret that comment as "The presence of ~/.stack will leak glibc", so you should probably get rid of it
rogue_koder has quit [Quit: Konversation terminated!]
<winem_> ok, I already dropped that before and it would just get recreated with stack setup now
<tilpner> winem_ - I don't think you're supposed to execute stack setup again
<winem_> ok, thanks
<sphalerite> tilpner: hard-to-debug issues with callPackage? Can you elaborate on that? And yes I suppose you're right with the name, that's of course just a minor detail independent of the concept.
<sphalerite> tilpner: do you have an idea for how the redundancy might be avoided more nicely?
<arst> Why do I get incorrect results here?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vN12z
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 314fb3d Francesco Gazzetta: twemoji-color-font: init at 1.3
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] symphorien opened pull request #34305: nixos/tests: add predictable-interface-names.nix (master...predictableifacetest) https://git.io/vN12g
NixOS_GitHub has left #nixos [#nixos]
<arst> $ nix-env -qaP --system .*qt.*
<arst> ...
<arst> $ nix-env -qaP --system .*qt.*
<arst> ...
<arst> nixpkgs.qt5.full qt-5.10.0 x86_64-linux
<tilpner> sphalerite - It's fairly innocuous in your case, but it's dangerous if it becomes convention. ncurses takes an argument "unicdoe", and if you happen to overlay that onto your local nixpkgs, it will break with unhelpful errors. It will supply whatever you overlayed as unicode to ncurses, which expects a bool there
<sphalerite_> also -- does anyone have a nice way of finding the "dead leaves" in the dependency tree? I have while read path ; do n=$(nix-store -q --referrers $path | wc -l) ; [[ $n == 0 ]] && echo $path ; done < <(nix-store --gc --print-dead)
<arst> but when I do $ nix-env -qaP .*qt5.*, I don't get qt5.full
<tilpner> sphalerite_ - The same happens when you overlay "vanilla", though I forgot which package caused that
<sphalerite> tilpner: right, fair enough. And do you have a potential better idea for how to do this?
<symphorien> sphalerite: what do you mean by dead leaves ?
<tilpner> sphalerite - A while ago I proposed fixing this issue gradually, converting every package into two stages of loading, one for dependencies, the next set for configuration. It's a lot of effort though, and nobody wanted to discuss it further
<sphalerite> symphorien: those dead paths that aren't depended on by anything else. They're a fairly useful indication of what I might want to keep around or upload to my binary cache before GCing on my slow machine that doesn't have much space
<tilpner> sphalerite - A workaround would be to clearly mark them as configuration arguments. unicode -> supportUnicode, vanilla -> useVanilla
<arst> If I knew anything about it I'd discuss it further sphalerite <3
<arst> Oh I mea tilpner
<tilpner> sphalerite - In your case, srcVersion and srcSha256 maybe? Kind of ugly, yes...
<sphalerite> tilpner: that's a shame. Seems like something that might fit with nbp's SOS as well
<sphalerite> I think
<sphalerite> tilpner: so you think the idea is ok in general, just the names need to be specific enough to avoid a collision?
<tilpner> arst - What do you mean?
<tilpner> sphalerite - I'm not sold on it. I think I'd rather have otter-browser.overrideAttrs (o: { src = o.src.override { rev = ...; sha256 = ...; }; }) (requires makeOverridable fetchFromGitHub)
dejanr has joined #nixos
ssmike has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] copumpkin opened pull request #1821: Turn sandbox on by default on Darwin (master...omg-so-brave) https://git.io/vN1Vv
NixOS_GitHub has left #nixos [#nixos]
<gchristensen> "omg-so-brave"
<sphalerite> tilpner: but then the version bit is still redundant and you're likely to get a derivation with the wrong name resulting from it — because you forget to include it in the override like you did right there
<arst> Does anyone know why $ nix-env -qaP --system .*qt.* can output nixpkgs.qt5.full, but $ nix-env -qaP .*qt5.* can't?
Arcaelyx has joined #nixos
zzamboni has quit [Quit: Leaving.]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to release-17.09: https://git.io/vN1w1
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/release-17.09 4c3c0e8 Franz Pletz: Merge #34289: thunderbird: 52.5.2 -> 52.6.0 [security]...
glenn_ has quit [Ping timeout: 256 seconds]
knupfer has joined #nixos
Mateon3 has joined #nixos
<tilpner> sphalerite - Good point :/
Mateon1 has quit [Ping timeout: 240 seconds]
Mateon3 is now known as Mateon1
<sphalerite> gchristensen: ??
<gchristensen> what??
<gchristensen> "[nix] copumpkin opened pull request #1821: Turn sandbox on by default on Darwin (master...omg-so-brave)"
<sphalerite> gchristensen: the "omg-so-brave"
<sphalerite> ooooh just saw
<sphalerite> hahaha
<sphalerite> !m copumpkin
<[0__0]> You're doing good work, copumpkin!
<copumpkin> :)
nuncanada has joined #nixos
Turion has quit [Ping timeout: 260 seconds]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/ffea68a09ce (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [Client Quit]
arjen-jonathan has joined #nixos
<sphalerite> tilpner: I find that a lot of the time there are `let`s in nixpkgs which introduce abstractions that can't be used from outside. Arguably allowing them to be used from the outside encourages more tight coupling, but at the same time I don't think there's much in nixpkgs that isn't tightly coupled. Between tight coupling and better potential for reuse (=> less code) and tight coupling and lots of copying and pasting…
<sphalerite> `let`s and `rec`s even
<tilpner> Why is fmod not a global package there?
<clever> tilpner: exactly
<tilpner> I guess it's fine if they require custom (old) or patched versions of their libs
<tilpner> Don't really want those in global scope
bpa has joined #nixos
<clever> tilpner: there is no other version of fmod available in nixpkgs
arst has quit [Quit: Page closed]
<sphalerite_> oh great, matrix is playing up again
stephenjudkins has quit [Remote host closed the connection]
<tilpner> clever - That's a mistake then :/
<clever> yeah
<tilpner> sphalerite_ - Most of the time, I think it's okay. Using callPackage to supply args instead of pkgs.foo already decouples
<tilpner> sphalerite_ - Of course nixpkgs is still pretty messy, but big overhauls are probably unrealistic
JosW has quit [Quit: Konversation terminated!]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/46301566ec7 (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-17.09)
nix-gsc-io`bot has quit [Client Quit]
ssmike has joined #nixos
digitus has quit [Quit: digitus]
digitus has joined #nixos
ma27 has joined #nixos
orivej_ has joined #nixos
orivej__ has joined #nixos
zzamboni has joined #nixos
orivej has quit [Read error: Connection reset by peer]
KABA has joined #nixos
orivej_ has quit [Ping timeout: 240 seconds]
knupfer1 has joined #nixos
digitus has quit [Quit: digitus]
knupfer has quit [Ping timeout: 246 seconds]
knupfer1 is now known as knupfer
civodul has joined #nixos
ssmike has quit [Ping timeout: 256 seconds]
jedai42 has joined #nixos
ssmike has joined #nixos
orivej__ has quit [Ping timeout: 240 seconds]
jedai|2 has joined #nixos
jedai|3 has joined #nixos
digitus has joined #nixos
jedai has quit [Ping timeout: 252 seconds]
coot has quit [Quit: coot]
jedai42 has quit [Ping timeout: 252 seconds]
Drakonis has joined #nixos
KABA has quit [Ping timeout: 260 seconds]
jedai|2 has quit [Ping timeout: 256 seconds]
MinceR_ has joined #nixos
MinceR has quit [Ping timeout: 260 seconds]
MinceR_ is now known as MinceR
<eacameron> Anyone using DigitalOcean with nixos? DO is doing some updates and reboots for spectre and will use a GrubLoader. Is there a chance nixos VMs will be in bad shape after this reboot?
lonokhov has joined #nixos
jedai has joined #nixos
<clever> eacameron: as long as it has a grub config file in /boot, i would expect it to survive
jedai42 has joined #nixos
zzamboni has quit [Quit: Leaving.]
<eacameron> clever: that's comforting
<sphalerite> Holy crap, Linux built in 2 hours rather than 5 with /tmp on the eMMC in my Chromebook rather than on the root filesystem (which is on a USB stick)
jedai42 has quit [Read error: Connection reset by peer]
jedai|3 has quit [Ping timeout: 252 seconds]
jedai42 has joined #nixos
jedai|3 has joined #nixos
jedai has quit [Ping timeout: 268 seconds]
jedai42 has quit [Ping timeout: 256 seconds]
glenn_ has joined #nixos
knupfer has quit [Ping timeout: 240 seconds]
jedai|3 has quit [Ping timeout: 268 seconds]
asuryawanshi has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 71f814a John Ericson: lib, glibc: Get rid of withTLS...
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vN1Xd
NixOS_GitHub has left #nixos [#nixos]
jb55 has quit [Ping timeout: 256 seconds]
winem_ has quit [Ping timeout: 240 seconds]
jedai has joined #nixos
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master d085af7 Tuomas Tynkkynen: nixos/tests: Fix statsd test evaluation...
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vN1Xx
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/4e8cd90b67e (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [Client Quit]
mizu_no__ has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/4c3c0e824aa (from 89 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
nix-gsc-io`bot has quit [Client Quit]
dan_b has joined #nixos
deets has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] garbas closed pull request #33256: sambaMaster: init at 4.8_2017-12-25 (master...samba-48) https://git.io/vbxYN
NixOS_GitHub has left #nixos [#nixos]
<deets> hi everybody. bloody noob here. I've got a question regarding isolated build environments.
jedai42 has joined #nixos
<deets> looked very promising. I created my own default.nix, and at first glance, it seems to work. But I have troubles getting the right gcc (5, not 6) to work.
iqubic has joined #nixos
jedai has quit [Ping timeout: 252 seconds]
<deets> the gcc in the path is 6.4, probably pulled in through some dependency.
dbe_ has quit [Ping timeout: 240 seconds]
<deets> but I would like to "set-alternative" the gcc5
<tilpner> Try let stdenv = gcc5.stdenv; in ...
<sphalerite> ^
<iqubic> What does the "rev = ..." do in a fetchFromGitHub do?
<sphalerite> stdenv includes GCC, so that'll be where it comes from
<tilpner> iqubic - Sets the revision/commit/tag
jedai42 has quit [Ping timeout: 252 seconds]
<sphalerite> iqubic: specifies the revision to fetch. That can be a branch name (bad, since it changes over time), a tag name (good because it's fixed and meaningful) or a commit hash (OK because it's fixed but not meaningful)
djahandarie has joined #nixos
jb55 has joined #nixos
<sphalerite> tilpner: you're too fast x)
lstanley has quit [Quit: uwotm8 -- https://liam.sh]
<deets> that's my default.nix
<tilpner> My answer was less detailed though :)
<deets> pardon my ignorance, first day with this
<deets> where does that let expression go?
<iqubic> sphalerite: What happens if I omit it?
<tilpner> deets - Try using gcc5.stdenv instead of stdenv
<sphalerite> deets: as tilpner said, use gcc5.stdenv either with a let or just replace stdenv with gcc5.stdenv in your expression
<sphalerite> Argh, just too slow
<sphalerite> iqubic: I think it fails
<djahandarie> Does anyone have a pointer to what the latest thinking is on how to integrate .nix files from projects repositories into nixpkgs?
<sphalerite> iqubic: why don't you try? :)
<deets> holy cow.
<iqubic> sphalerite: I will try.
CapsAdmin has quit [Ping timeout: 240 seconds]
<deets> me got gcc-5.5. now here is to hoping that it fixes my cross-tool-bug, but that's not nix problem. thanks a million!
<tilpner> djahandarie - IIRC some people add the repos to nix-channel, then import <name-of-repo>
<iqubic> How do I change the source directory of a derivation?
<sphalerite> djahandarie: I think the typical approach is "don't". I think it's preferred to maintain the "canonical" expression in nixpkgs and refer to that from the in-project expression. Not sure though
<iqubic> I'm fetching a thing from GitHub, and the makefiles aren't in the top level directory, but in ./unix
<tilpner> sphalerite - I pin repos like nixdiff or riot-electron, it works okay
shabius has quit [Quit: Leaving]
<tilpner> sphalerite - Importing them is easier than syncing their default.nix to local pkgs
<djahandarie> tilpner, sorry, question was unclear. If we expect nix to get really popular, and for developers to use it while actually developing their project, what are the latest thoughts on how to integrate those expressions into nixpkgs?
<sphalerite> iqubic: I'd do something like preConfigure = "cd unix"; I think
<taohansen> so i made a ridiculously simple derivation in nix-repl that just runs a shell script that calls typescript to compile a typescript file into javascript. i get a `<<lamba>>` return. how do i test that it runs successfully? here's a gist: https://gist.github.com/d7f791ef6c50a1a5fdbce2b5b3855b1a
<iqubic> sphalerite: I thought there was a way to do "sourceDir = /unix" or something like that.
<taohansen> is this correct practice for building up Nix things? using the REPL? i don't like that it makes me start over from bottom-up when i type something incorrectly. also there's no colorized output, linting or pretty-printing of any kind.
<sphalerite> Tao Hansen: callPackage it. Note that this won't work since you don't have tsc available in the build environment
<tilpner> djahandarie - I don't have statistics, I was only mentioning one option. I'm not aware of a popular/preferred way, currently
<sphalerite> Tao Hansen: you may want to have a look at the nix pills for an in-depth introduction to writing expressions
<sphalerite> !pills
hiratara has quit [Ping timeout: 256 seconds]
<djahandarie> sphalerite, but the nix expression is often in-lock with a given code revision. I'm using a function from a new dependecy, so I add that dependency to my nix expression. I and the rest of the team develop with nix, so we naturally keep the nix expression in source control. Since it's basically the canonical nix expression, it seems odd to ignore it entirely in nixpkgs.
shabius has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] markuskowa opened pull request #34306: libxc: set platform to x86_64-linux only (master...libxc-noarm-pr) https://git.io/vN1D2
NixOS_GitHub has left #nixos [#nixos]
<iqubic> That's a cute bot.
<sphalerite> Tao Hansen: you can write your expressions into files and nix-instantiate/nix-instantiate --eval/nix-build them
<iqubic> Is there a way to see all the options that I could possibly pass into stdenv.mkDerivation?
<gilligan_> Can anyone here help me out with building a nixos base image? I have written a REST service in Haskell but I need to provide some stuff like cacert and /etc/protocols for it to work. I have found examples using alpine images as base but the examples don't work anymore
<gilligan_> sorry - *docker* image
<sphalerite> djahandarie: I think I've misunderstood your question too. Maybe the answer is "overlays"
<sphalerite> iqubic: ikr? All thanks to gchristensen
orivej has joined #nixos
<tilpner> sphalerite - The question is how to get the overlay to the local machine
duckwho has joined #nixos
<iqubic> sphalerite: What does that mean?
<sphalerite> iqubic: you can pass in whatever you want and unless it has special handling in stdenv it becomes an environment variable for the builder
hiratara has joined #nixos
<tilpner> gilligan_ - Do you want to build a Docker with Nix, or do you actually need to run NixOS in Docker?
<taohansen> Linus: thank you. solutions for pretty-printing, linting that you might know of?
<tilpner> *build a Docker image
<sphalerite> iqubic: ikr = "I know, right?"; in response to your " cute bot " comment :)
<gilligan_> tilpner, i just want to dockerize a haskell service. I wouldn't mind using alpine or anything else as a base. But I didn't get that to work
<sphalerite> Tao Hansen: not sure. I think hnix might have a pretty-printer
<clever> gilligan_: the docker expression i just linked does pretty much exactly that, it runs a haskell program in a docker image
<taohansen> Linus: how would i callPackage it from the nix-repl? by name?
<clever> taohansen: nix-repl '<nixpkgs>' and then callPackage ./foo.nix {}
zzamboni has joined #nixos
<gilligan_> clever, well that would be super trivial then..
<taohansen> clever: thank you.
<tilpner> gilligan_ - Yeah, try what clever linked (thanks clever!)
<gilligan_> clever, tilpner I got rather confused after reading through https://github.com/NixOS/nixpkgs/issues/18038
<taohansen> okay, Nix-pill reading time. i wish the English in these articles was a little more proofed. some of the language he uses doesn't make any sense.
<clever> gilligan_: you need to add iana-etc to the contents of the docker image, line 29 of my example
<gilligan_> clever, right - i just didn't expect it to be that trivial because in the issue puffnfresh seems to make things rather complicated ;}
<clever> maybe they just never stumbled upon that solution
<puffnfresh> what did I do?
<sphalerite> Tao Hansen: yeah, it's not perfect language-wise but it's pretty much the best in-depth introductory material we have. If you want to help improve it it's on github
<clever> puffnfresh: https://github.com/NixOS/nixpkgs/issues/18038 is solved by adding iana-etc to the contents of the docker image
<clever> puffnfresh: no need to bring in the nixos module framework
nix-gsc-io`bot has joined #nixos
<puffnfresh> yeah iana-etc is enough
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/4c3c0e824aa (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [Client Quit]
<puffnfresh> sorry if I made it seem like it wasn't
<taohansen> Linus: that's about the best i can do to contribute back. thanks.
fyuuri has joined #nixos
<iqubic> So I'd like to be able to find a list of all the possible options one can pass into mkDerivation.
<iqubic> Is that around somewhere?
djahandarie has left #nixos [#nixos]
lstanley has joined #nixos
<gilligan_> yay - now it is working
<clever> iqubic: part of the issue there, is that every attribute you give to it, just becomes an env variable during the build
<gilligan_> thanks puffnfresh , clever , tilpner
<iqubic> clever: What does that mean?
<clever> iqubic: so you need to know what variables have an effect on every program being ran at build time
<iqubic> Oh, I see.
magnetophon has quit [Ping timeout: 246 seconds]
<joko> Hey, I am trying to get a list of attribute names from an attribute set. I've tried with "mapAttrsToList (n: _: n) myAttrSet", but I think I am getting a list of strings, not the actual attributes
<iqubic> So is there such a thing as a sourceDir env variable?
<sphalerite_> taohansen: thank *you*. We're always glad for people willing to contribute to docs :)
i-am-the-slime has joined #nixos
<sphalerite_> joko: builtins.attrNames ?
<clever> joko: try both lib.attrValues and lib.attrNames
<iqubic> I want to know how I can tell nix that my source code has its makefile in a place that isn't the top level directory.
<gilligan_> puffnfresh, are you still using alpine as base image in some scenarios? because i tried some example that i found from you that was pulling an alpine image but that one actually failed with some error that i couldn't make sense of (and luckily now i don't have to use alpine anyway..)
<puffnfresh> gilligan_: yeah at work all of our Nix built images are on Alpine
<sphalerite_> iqubic: is there a problem with what I suggested earlier (preConfigure = "cd unix";)?
<iqubic> I did't try that.
<joko> sphalerite_: builtins.attrNames would also return list of strings, right?
<puffnfresh> gilligan_: no big reason why, we could do it wihout Alpine
<sphalerite_> joko: yes. Attribute names are strings.
<sphalerite_> joko: you said you're trying to get a list of attribute names from an attribute set. So what's the issue?
magnetophon has joined #nixos
winem_ has joined #nixos
arjen-jonathan has quit [Ping timeout: 246 seconds]
Thra11 has quit [Quit: IRC for Sailfish 0.9]
bfrog has quit [Ping timeout: 248 seconds]
<iqubic> So I have a derivation. It probably doesn't work. I know what to test it.
<iqubic> How do I do that?
<clever> iqubic: run nix-build against it
<joko> iqubic: You could use nix-build
<iqubic> I'll try that.
<joko> sphalerite_: Now that I think about it, maybe I need the values, as clever said
KABA has joined #nixos
jb55 has quit [Read error: Connection reset by peer]
<KABA> Hi, I'm trying to package pulseeffects, but without much luck.. Recently I got a strange error, could you please help me where should I look to correct it? wrapping `/nix/store/wv42vvgb0q15za8wxy5xsbmnknrpq923-pulseeffects-master/bin/pulseeffects'... Traceback (most recent call last): File "/nix/store/lvg31h3na663n390jysm22q3z4lsbc3b-catch_conflicts/catch_conflicts.py", line 1, in <module> import pkg_resources ModuleNotFoundError
<joko> https://git.joko.gr/joko/etc-nixos/src/8ccb394e3dd67e5760e19f0c26f1af37afff3f69/jobs.nix <- I am trying to set an "aggregated" job and I need to put "machines" in the constituents.
<KABA> Sorry, I should have deleted the nix hash..
<iqubic> error: cannot auto-call a function that has an argument without a default value (‘stdenv’)
<iqubic> Er... what??
<joko> iqubic: your nix file is as if it was in nixpkgs?
<iqubic> I'm not sure.
<joko> Does it have input arguments?
<iqubic> No.
<iqubic> I don't think so.
<joko> Could you link it?
<KABA> The strange thing is that it does build without gst-python, it only fails at runtime. But with gst-python as a propogated buildinput it writes this last message which doesn't really make sense
<iqubic> I forgot to add autoreconf to the build inputs. DOh
<joko> Well, { stdenv, fetchFromGitHub, autoreconfhook } is a attribute set used as an input argument
<gilligan_> puffnfresh, as for using alpine base image - can you have a look at https://gist.github.com/gilligan/dcb188bc93d1131c610443d3947bffe5 ? That *should* work shouldn't it? I don't know what that error is all about
<KABA> And including setuptools doesn't help either
<magnetophon> I'm trying to debug a pkg, so I put "separateDebugInfo = true;" in it and "enableDebugInfo = true;" in my config. The pkg still doesn't have the debug symbols. Any ideas? (note: I have 0 experience with this, and am just following the instructions of the upstream author of the pkg, who is not a nixos user)
<joko> iqubic: in that case use something like "nix-build -E 'with import <nixpkgs> { }; callPackage /path/to/default.nix { }'"
<iqubic> Oh, I can't just use plain nix-build?
<puffnfresh> gilligan_: oh the pullImage stuff changed at some point :(
<puffnfresh> gilligan_: we use an old version of <nixpkgs> because of this reason, I think
<joko> iqubic: no, nix-build knows nothing about stdenv, fetchFromGitHub etc.
<iqubic> Oh. What is nix-build good for then?
<gilligan_> puffnfresh, oh.. has the documentation been updated for that?
<iqubic> Also, how should I build this thing?
<tilpner> magnetophon - Try dontStrip = true;
<puffnfresh> gilligan_: not sure, I haven't used the recent stuff after I looked at it
nallar has joined #nixos
<magnetophon> tilpner: in the pkg, you mean?
<joko> iqubic: try the command I gave yuou
<tilpner> magnetophon - In the call to mkDerivation, yes
<magnetophon> tilpner: thanks
Ross has quit [Ping timeout: 256 seconds]
nallar is now known as Ross
<iqubic> error: anonymous function at /home/avi/metakit.nix:1:1 called without required argument ‘autoreconfhook’, at /nix/store/xn6bv3kid8d6jw3zhgqpsam641k84bkc-nixos-17.09.2853.b222a0713f4/nixos/lib/customisation.nix:74:12
<iqubic> Err... What now?
<clever> iqubic: autoreconfHook
<iqubic> Writing a simple derivation is confusing.
<clever> its case sensitive
<iqubic> Alright, so I do need rev for fetchFromGitHub to work.
szicari has quit [Quit: szicari]
<iqubic> How do I determine the correct rev to use?
<clever> look at the branch history on github
<joko> iqubic: You could use a tag, too
CapsAdmin has joined #nixos
ottidmes has joined #nixos
<Biappi> i am trying to see why a package is failing... i am doing `nix-shell $MY_NIXPKGS_TREE_DIR -A $PROGAM_I_WANT_TO_HACK_ON`, according the manual "You’re then dropped into a shell where you can edit, build and test the package:", but instead the shell that opens in my case doesn't change directory at all... what i am missing?
<iqubic> I can't tell if I have the right rev, but it looks good.
lopsided98 has quit [Remote host closed the connection]
<clever> Biappi: you have to run unpackPhase to unpack the source of the program, then cd into the directory it made
lopsided98 has joined #nixos
winem_ has quit [Ping timeout: 240 seconds]
hiratara has quit [Quit: ZNC - http://znc.in]
gilligan_ has quit [Ping timeout: 256 seconds]
<Biappi> clever: thank you! is there a command that tries to run the entire compilation, or i have to invoke each phase?
<clever> Biappi: genericBuild
<clever> Biappi: try to avoid running that one as root
<catern> github question: how, once I've updated something to address a comment, do I indicate that to the user who made the comment?
<Biappi> thanks! it's now going =)
<Biappi> oh, i run things only with my user account, i'm using nix on osx, thanks for the advice!
lonokhov has quit [Quit: Lost terminal]
hiratara has joined #nixos
<iqubic> How do I find the right hash?
<clever> iqubic: give it a wrong hash, then read the error message
<ottidmes> What NixOS option should I use to run cryptsetup calls that need a key file located somewhere on the root file system and that import the zpools afterwards? I expected postMountCommands, but I get the error that the key files cannot be found and that ZFS is not loaded yet
henk has quit [Ping timeout: 240 seconds]
<magnetophon> catern: should be automatic if the user is in the thread. otherwise add @user to the comment
<clever> ottidmes: the rootfs is mounted at /mnt during the postMountCommands
<catern> magnetophon: okay thanks
freeman42x[NixOS has quit [Quit: Leaving]
winem_ has joined #nixos
jb55 has joined #nixos
<iqubic> so preConfigure = "cd unix"; doesn't work
dkao has joined #nixos
<clever> iqubic: what error does it fail with?
<iqubic> It's not finding the makefiles, even when they exist in that directory.
<clever> iqubic: what does preConfigure = "ls -l" say?
<clever> iqubic: what about preConfigure = "cd unix ; ls -l"; ?
<iqubic> autoreconf: 'configure.ac' or 'configure.in' is required
<iqubic> That's the error
<clever> iqubic: try postUnpack instead of preConfigure
<ottidmes> clever: Right, I forgot, and the ZFS modules are probably just not loaded yet, so I will have to add those add the initrd kernel modules, or just do that command with another option (systemd is always an option)
<clever> ottidmes: boot.initrd.supportedFilesystems = [ "zfs" ]; will add zfs support to the initrd
<iqubic> clever: yeah, it looks like preConfigure is not being run.
<clever> iqubic: or preConfigure runs after the autoreconfHook
<clever> iqubic: which is too late
i-am-the-slime has quit [Ping timeout: 256 seconds]
<clever> iqubic: autoreconfHook adds itself to the preConfigurePhases
<clever> iqubic: preConfigurePhases is ran before preConfigure i believe
<magnetophon> tilpner: still get (no debugging symbols found). any other ideas?
<iqubic> Alright, well this is annoying.
<iqubic> /nix/store/qqv45akr154xxgmra5lnp873njcxkp98-stdenv/setup: line 95: cd: unix: No such file or directory
<clever> iqubic: put an ls in there instead
<tilpner> magnetophon - What package is it?
<ottidmes> clever: Oeh, nice, did not know about it, and it actually showed on the options search page under postMountCommands, but I somehow missed it, thank you very much!
<magnetophon> tilpner: http://ssj71.github.io/infamousPlugins ran via jalv.gtk. I put those 2 lines in both pkgs
<iqubic> Yeah, that doesn't look like it fetched anything from github.
<clever> iqubic: what do you see?
<iqubic> env-vars
<iqubic> metakit-b253b4cffa8437322354ff95be4f222375a623f6-src
<clever> thats your source
<clever> try it in prePatch now
<clever> also try putting a pwd in there
<tilpner> magnetophon - Oh, it's not packaged? Just to be sure, objdump --syms your_binary returns nothing useful?
<magnetophon> tilpner: here's the plugin pkg: https://hastebin.com/oduladavar.m
* tilpner builds
<iqubic> putting it into prePatch works.
<iqubic> thank you clever.
ma27 has quit [Ping timeout: 240 seconds]
<clever> iqubic: because https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L1213 does a cd between unpack and patch
<iqubic> I have now written myself a derivation for the metakit library.
<iqubic> How do I check if it worked properly?
<clever> iqubic: look inside the result symlink
jb55 has quit [Ping timeout: 256 seconds]
<iqubic> Alright then, that seems to have worked exactly as I wanted it too.
<magnetophon> tilpner: that command ran on the host outputs a lot. not sure how to run it on the plugin; lemme try
ssmike has quit [Ping timeout: 252 seconds]
<iqubic> Now, the reason I wanted this, is because metakit is a dependecy for a different for derivation I'm writting.
<iqubic> So now I want to know if there is a way to get one derivation to depend on onther.
<clever> iqubic: create a 2nd nix file, that does something like this
mizu_no__ has quit [Quit: Computer has gone to sleep.]
<clever> with import <nixpkgs> {}; rec { metakit = callPackage ./metakit.nix {}; other = callPackage ./other.nix { inherit metakit; }; }
<clever> then nix-build thatfile.nix -A other
<tilpner> magnetophon - I think they do have debug symbols
<iqubic> Sorry, I don't understand what you are telling me to do.
<clever> iqubic: rename the file for metakit, to metakit.nix
<iqubic> I have.
<clever> iqubic: then create a default.nix with the above expression
<clever> and make a new other.nix, for whatever is depending on metakit
<iqubic> Why does everyone call it default.nix?
<iqubic> What does that name mean?
<clever> because you can then run nix-build -A other
<clever> and it will load the default nix file
<iqubic> I see.
<magnetophon> tilpner: that command ran with the .so file aso outputs a lot. yet when I run "gdb --args /nix/store/7frd708yr3ycpa87xfcg3d840mrfgkpg-jalv-1.6.0/bin/jalv.gtk "http://ssj71.github.io/infamousPlugins/plugs.html#lushlife" " I get (no debugging symbols found)
MP2E has joined #nixos
<tilpner> magnetophon - Make sure that you breakpoint inside the plugins
<iqubic> this goes into default.nix:
<iqubic> with import <nixpkgs> {}; rec { metakit =
<iqubic> callPackage ./metakit.nix {}; other = callPackage
<iqubic> ./other.nix { inherit metakit; }; }
<iqubic> Or no?
<tilpner> magnetophon - There will not be debug info for everything, only the plugins
ssmike has joined #nixos
<iqubic> And other.nix is whatever depends on metakit?
<clever> iqubic: yeah
<iqubic> Cool. Thank you to all for helping me work on this.
ixxie has joined #nixos
<iqubic> If people want I can make my metakit derivation public, because that's not in nixpkgs yet.
<magnetophon> tilpner: OK, thanks. Currently discussing our findings with the upstream author
<iqubic> But I'm not sure what the demand is for that.
glenn_ has quit [Ping timeout: 265 seconds]
<iqubic> I don't feel like contributing right now.
ckauhaus has quit [Quit: Leaving.]
<iqubic> Because it seems like a lot of work for a small gain.
<iqubic> Also, do I need to list metakit in as an input to the other.nix derivation?
<iqubic> if anyone needs a metakit derivation, I have one laying around is all I'm saying.
<ottidmes> clever: I tried with /mnt, but it was /mnt-root apparently, so that fixed my issue, but I then quickly ran into others related to file paths, so I will try and run these commands elsewhere. I was wondering, do you know the recommended way to run stuff at stage 2? Should I just write a systemd service?
yegle has quit [Quit: WeeChat 2.0]
<clever> ottidmes: one-shot systemd service is the simplest
yegle has joined #nixos
<ottidmes> clever: Alright, thanks, then I will just try that instead
vidbina has quit [Ping timeout: 240 seconds]
lopsided98 has quit [Remote host closed the connection]
alex`` has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 256 seconds]
lopsided98 has joined #nixos
henk has joined #nixos
stepcut has joined #nixos
steshaw has joined #nixos
kreetx has quit [Ping timeout: 240 seconds]
astsmtl has quit [Ping timeout: 240 seconds]
<sphalerite_> any embedded wizards here know why the first 8192kB of the eMMC in my chromebook would be write-protected and how I could remove said write protection, or work around it and get a partition table the kernel can recognise on it in a different position?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #34309: nettools: 1.60_p20161110235919 -> 1.60_p20170221182432 (staging...update/nettools-1.60_p20170221182432) https://git.io/vN1bs
NixOS_GitHub has left #nixos [#nixos]
* sphalerite_ furtively glances at clever
<Dezgeg> maybe the mmc-utils program can do it?
ssj71 has joined #nixos
freeman42x[NixOS has joined #nixos
<ssj71> yo
<sphalerite_> Dezgeg: good shout, I'll try it
Ross has quit [Quit: ZNC - http://znc.in]
<wavewave> hello. i have a question on drvPath.
<ssj71> dev of the plugins magnetophon is having issues with here :) What do we need to get debug symbols in his build?
Ross has joined #nixos
<MichaelRaskin> sphalerite_: do you want to boot form there?
<wavewave> Obtaining drvPath from a derivation will always trigger the realization of the derivation?
<magnetophon> tilpner: see the remark of ssj71 ^^
<sphalerite_> MichaelRaskin: yep
<tilpner> ssj71 - I think there already are debug symbols in there
parenthetical has quit [Quit: WeeChat 1.4]
detran has quit [Remote host closed the connection]
<MichaelRaskin> And you want a relatively sane initramfs, I guess
<magnetophon> tilpner, ssj71: though I'm not sure that's the right question, since objdump sees them.
<MichaelRaskin> Because it is a problem that is easy to solve using device-mapper…
<dtz> LnL: LMK if you have any more info on vim update badness. If you know what version worked before that would help, and might be good to compare (or share) build logs to see if any obvious discrepancies. Anyway just keep me in the loop, don't wanna be the guy that made vim bad for folks :). Maybe file an issue (on nixpkgs) for tracking?
<MichaelRaskin> Or mdadm with v0.90 end-of-device metadata
<dtz> LnL: just today they started making updates again (after 24 days off!) so if it's a bug maybe it'll be found/fixed soon :)
<tilpner> ssj71, magnetophon - To be sure, I tested with https://gist.github.com/b688f1eb0504bb5b7ae162d5ce62d445
<sphalerite_> MichaelRaskin: idk I haven't managed to get booting with an initramfs working at all
<KABA> from gi.repository import Gio, GstInsertBin, Gtk
<ssj71> tilpner: all I know is that in gdb none of the local variables are available to print and the filenames and line no.s aren't showing in the backtrace
<KABA> ImportError: cannot import name GstInsertBin, introspection typelib not found any idea how can I resolve it?
quam6246 has joined #nixos
<sphalerite_> hm, there's a lot of scary "NOTE! This is a one-time programmable (unreversible) change." warnings in the help for mmc
<tilpner> ssj71 - Are you sure the breakpoint is in the plugin code? There may not be debug information for other parts
<ssj71> tilpner: yes I wrote the code I recognize the function its calling
CapsAdmin has quit [Ping timeout: 268 seconds]
<ssj71> tilpner: or that it segfaults on rather
samae has quit [Remote host closed the connection]
<KABA> The package I try to write can't find GstInsertBin even though I have gst_all_1.gst-plugins-bad as propogatedBuildInput
MrCoffee has joined #nixos
winem_ has quit [Ping timeout: 252 seconds]
<wavewave> i would like to use hash of a derivation without realizing a package from it.
<tilpner> magnetophon - Hmm, remind me, did you set
<wavewave> inside nix expression, not using nix-instantiate.
<tilpner> magnetophon - Oops: environment.enableDebugInfo
<sphalerite_> MichaelRaskin: only managed to boot with the root directly, embedding all the necessary drivers in the kernel and passing root= on the kernel cmdline
<magnetophon> tilpner: yes I did
<wavewave> so I hope that drv.drvPath would work. but it didn't
<LnL> dtz: I'll do some testing tomorrow
<MichaelRaskin> sphalerite_: did you try hand-writing initramfs boot script?
<dtz> s'all good just wanna help, no good to have your editor in subpar condition :)
quam6246 has quit [Ping timeout: 256 seconds]
<LnL> dtz: if you also noticed something that would be more concerning
dbe_ has joined #nixos
<magnetophon> tilpner: what do you get when you run "gdb --args jalv.gtk "http://ssj71.github.io/infamousPlugins/plugs.html#lushlife"" ? Can you get a good bt from that?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vN1Nk
<NixOS_GitHub> nixpkgs/master 5bb712d Markus Kowalewski: libxc: set platform to x86_64-linux only
NixOS_GitHub has left #nixos [#nixos]
<tilpner> magnetophon - I don't know what jalv.gtk is
<sphalerite_> MichaelRaskin: no, it just didn't even load. I got no messages from the kernel at all on the screen
__monty__ has joined #nixos
<__monty__> Is there a way to see which commit of hoogle is installed by ghcWithHoogle?
<magnetophon> tilpner: nix-env -f $NIXPKGS -iA jalv then export LV2_PATH="$HOME/.lv2:$HOME/.nix-profile/lib/lv2:/run/current-system/sw/lib/lv2"
<MichaelRaskin> We-ell, with UEFI and early graphics mode switches «no messages» is not everything…
<magnetophon> tilpner, ssj71 thanks a lot to the both of you!
rcshm has joined #nixos
<dtz> LnL: not yet! but I primarily use vim built .. from my research branch. Similar but some deps may be a bit older than what is in latest nixpkgs. So it quite possibly is slightly different :).
tertleeltret has joined #nixos
KABA has quit [Ping timeout: 260 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/vN1NR
<NixOS_GitHub> nixpkgs/master bfc4d04 Michael Raskin: Merge pull request #34291 from timokau/sage-fix-shebangs...
<NixOS_GitHub> nixpkgs/master b223662 Timo Kaufmann: sage: 8.0 -> 8.1, fix sandbox build...
NixOS_GitHub has left #nixos [#nixos]
dbe_ has quit [Ping timeout: 240 seconds]
rcshm has quit [Read error: Connection reset by peer]
<MichaelRaskin> I think I get messages on the screen relatively late into boot.
<sphalerite_> MichaelRaskin: but it does work fine with the same kernel without an initramfs. I don't know what's going on exactly in here but somehow something along the boot chain (AFAIU it's u-boot -> depthcharge -> linux) isn't liking the initramfs
<MichaelRaskin> Hm.
leat has quit [Ping timeout: 256 seconds]
<sphalerite_> there's certainly no EFI involved :)
<tilpner> magnetophon - Running jalv.gtk "http://ssj71.github.io/infamousPlugins/plugs.html#lushlife" does not crash
<tilpner> magnetophon - Wasn't it supposed to?
<ssj71> magnetophon: does that mean you've got something?
<sphalerite_> err no I think it's coreboot (libreboot) -> depthcharge -> linux
ssmike has quit [Ping timeout: 268 seconds]
<tilpner> magnetophon, ssj71 - This is wrong, right? ptpb.pw/6iFw
<magnetophon> tilpner: yeah, here it crashes. what version are you on?
<magnetophon> ssj71: I don't understand the question. what are you referring to?
<ssj71> magnetophon: oh you thanked us, but AFAICT I haven't actually helped you at all yet :)
<clever> tilpner: is jack running?
<tilpner> Of course not
<tilpner> :/
<magnetophon> tilpner, clever: you can test if a plugin runs without having jack running. you won't hear anything, but it'll show the gui at least
<tilpner> No, it doesn't show anything
<magnetophon> tilpner: do you see a gui?
<tilpner> No
<magnetophon> ssj71: I was thanking you for trying! :)
<ssj71> oh
<tilpner> I think you'll have to find someone with jack running
<ssj71> magnetophon: you can delete the lushlife_ui.so to try it without the gui
oida has joined #nixos
<ssj71> tilpner: well here on my ubuntu system it doesn't crash with jack running either
<tilpner> I don't get a crash, or a GUI
<magnetophon> tilpner: no need for that. when you run jalv.gtk 'http://ssj71.github.io/infamousPlugins/plugs.html#powercut' you'll see a gui.
<ssj71> GUI wouldn't build if you didn't have the GUI dep (cmake script allows either configuration)
<tilpner> Nope, I don't
<ssj71> NTK is the dep
<tilpner> ptpb.pw/tsar
<magnetophon> ssj71: I can't just delete the .so, since packages are on a read-only file-system in nixos. I can try building without ntk though.
<ssj71> oh ok
<wavewave> found a similar issue to mine: https://github.com/NixOS/nix/issues/1245
<magnetophon> ssj71: I can run powercut without having jack running. any idea why tilpner can't?
iqubic has quit [Remote host closed the connection]
saf_spa has joined #nixos
saf_spa is now known as nixer
* tilpner used jalv 1.6.0
<Drakeson> [General question about upstread->nixos updates...] When a nixpkg in git shows a new version has become available, does that usually mean a nix-channel --update && nixos-rebuild <proper verb> would pick it up? Or there is an extra step happening that I am missing here?
* magnetophon too
<ssj71> magnetophon: could he not run it or did it just not have a GUI?
<magnetophon> tilpner: https://ptpb.pw/tsar
<nixer> Hello, where does "nix-env -i" store the added package names? They don't seem to go into ~/.nixpkgs/config.nix...
<tilpner> Drakeson - This is the repo you want to check for availability in a channel: https://github.com/nixos/nixpkgs-channels
<magnetophon> oops that was at ssj71: https://ptpb.pw/tsar
<ssj71> sorry work firewall is blocking that page
<tilpner> Drakeson - Look at the branches and compare them with your channel
leat has joined #nixos
puckipedia has quit [Quit: *eh*]
* tilpner .oO( Why would anyone block a pastebin... )
<ssj71> tilpner: our MIS department is pretty obtuse, they just block most IPs from outside of US
<tilpner> That sounds annoying
<nixer> try pastebin.com
<Drakeson> There has been "hacks" and "leaks" published only in pastebin
CapsAdmin has joined #nixos
<ssj71> but yeah that message looks like no jack binary is found
<nixer> Does anyone know where "nix-env -i" store the added package names? They don't seem to go into ~/.nixpkgs/config.nix...
<Drakeson> So, I can see why some IT person might have been requested to block pastebin.
<Drakeson> tilpner: what is the relationship between nixos/nixpkgs and nixos/nixpkgs-channels? Is the former the pre-branch of the latter?
<ssj71> pastebin.com loads fine
<ssj71> but anyway, fighting with MIS is always a loosing battle
<ssj71> losing
<tilpner> Drakeson - Yes, nixpkgs is what Hydra tests and greenlights for distribution as a channel. They are then mirrored to nixpkgs-channels
<Drakeson> haha, a loosing battle sounds disgusting
<ssj71> lol
<magnetophon> nixer: you know about nix-env -q, right?
<sphalerite_> nixer: in the manifest in the resulting profile
<Drakeson> And the process is fully automatic, right? So, say, if I don't see Firefox 58.0 in the nixos-unstable channel, that would mean some tests are stuck at red? Any idea where I can look at the tests?
<nixer> magnetophon & sphalerite_: thank you!, checking...
<ssj71> magnetophon: well I thank you for your patience. I'm afraid its going to require a fair bit more still before we figure this out. I'll work toward getting a debian install over the weekend and see if I can reproduce it there, but it may not happen yet
<sphalerite_> Drakeson: hydra.nixos.org
<magnetophon> ssj71: thank you too!!! and tilpner too
puckipedia has joined #nixos
<Drakeson> Thanks
<ssj71> yeah thanks tilpner
<tilpner> Good luck with that. You could still wait around and see if someone with jack will test your thing :)
<Drakeson> What is the relationship between the following channels: nixos-unstable and nix-unstable ?
<tilpner> Drakeson - There is no channel nix-unstable
<magnetophon> tilpner: I'll be here
<Drakeson> nixpkg-unstable then?
<Drakeson> or nixpkgs-unstable perhaps?
<tilpner> Drakeson - If you mean nixpkgs-unstable, that's a channel without NixOS-specific tests, so it advances quicker
<Drakeson> I see
<tilpner> https://howoldis.herokuapp.com/ is a useful site to check the age of channels quickly
<nixer> magnetophon: nix-env --query does not seem to display this info
<tilpner> (And get the entrypoint to tests because I can't navigate Hydra)
<nixer> magnetophon: its possible to retrieve derivations associated with current user/profile, however it does not deduct to where they are stored as configuration entries.
<magnetophon> goibhniu: as a person with jack installed, could you try building https://gist.github.com/b688f1eb0504bb5b7ae162d5ce62d445 and running jalv.gtk 'http://ssj71.github.io/infamousPlugins/plugs.html#lushlife' ???
<Drakeson> hmm -- not related to the particular pkg I was interested in, but still interesting: --
<Drakeson> mac7 Aborted: creating directory '/tmp/nix-1761-767366': No space left on device
<Drakeson> Wondering if there are trivial ways to speed up hydra(s)' tests...
<magnetophon> nixer: no, it just tells you what's installed in your profile. I thought maybe that is what you wanted to know.
<nixer> sphalerite_: thank you, got a nixexpression in ~/.nix-profile/manifest.nix with that added entries.
<sphalerite_> !which channel
<sphalerite_> Drakeson: ^
<nixer> magnetophon: thank you, I wanted to get more physical location of where they are stored/associated with current profile.
<nixer> magnetophon: it looks like they are added into profile manifest. I assumed nix-env automatically adds them into ~/.nixpkgs/config.nix, but it looks now that that file is reserved only for manual user input.
dkao has quit [Quit: WeeChat 2.0]
<Drakeson> What kind of testing goes from nixpkgs-unstable -> nixos-unstable?
<Drakeson> Or rather, are any kind of tests run on nixpkgs-unstable at all?
<tilpner> You do not want to run NixOS from nixpkgs-unstable, it may garbage-collect your collect or make your system unbootable
<tilpner> Uhh, typing
* tilpner sleeps
<Drakeson> oh, I most certainly don't want to "switch" to nixpkgs-unstable
__monty__ has left #nixos [#nixos]