<> changed the topic of #nixos to: Topic set by gchristensen!~ident@unaffiliated/grahamc on 2016-10-31 13:49:14 UTC
<> changed the topic of #nixos to: Channel #nixos created on 2008-04-25 12:32:07 UTC
<clever> LnL: the -ff makes the logs easyer to read, and the -s3000 stops it from truncating strings
<clever> and -ff only withs with -o logfile
roundhouse has quit [(Ping timeout: 265 seconds)]
<clever> crud, both the v7 and v8 lack RCA composite video!
<clever> and they take micro SD!
ebzzry has joined #nixos
<clever> LnL: lines 29 and 32 of your gist appear to imply it has a nixbld user at the correct UID, which feels odd
Fare has joined #nixos
<LnL> I created a nixbld group and users if that's what you mean
<clever> LnL: what are the permissions on perl, and the directories above it?
<clever> LnL: for example, what happens if you su nixbld1 and then ls -lh /nix/store/x9pkm0d2fbc4kq89v7wzf64ccphnpybc-perl-5.22.2/bin/perl
<LnL> clever: drwxr-xr-x
hiratara has quit [(Ping timeout: 258 seconds)]
<clever> and the command above?
arjen-jonathan has quit [(Ping timeout: 256 seconds)]
ckauhaus has quit [(Quit: Leaving.)]
ilja_kuklic has joined #nixos
ugjka has joined #nixos
<ronny> grub fails to install, wrt crypto disk env vars :(
hiratara has joined #nixos
<LnL> clever: /nix is a bindmount could that matter?
filterfish has quit [(Ping timeout: 252 seconds)]
ilja_kuklic has quit [(Remote host closed the connection)]
<clever> LnL: shouldnt in this case
ilja_kuklic has joined #nixos
plumps has joined #nixos
<LnL> clever: ls -l /nix -> d????????? ? ? ? ? ? store
<clever> LnL: what FS is store on?
ugjka has quit [(Ping timeout: 258 seconds)]
<LnL> just ext4
andymandias has joined #nixos
<LnL> and lvm apparently
<clever> LnL: what about "stat /nix" ?
<clever> LnL: can you gist /proc/mounts also?
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #20634: youtube-dl: 2016.11.14.1 -> 2016.11.22 (master...youtube-dl) https://git.io/vXhN2
asymmetric has quit [(Ping timeout: 245 seconds)]
andymandias has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
cpennington has quit [(Remote host closed the connection)]
Shou has quit [(Ping timeout: 250 seconds)]
<clever> LnL: no weird mount options that would get in the way
<clever> LnL: can you redo the strace with -s3000 ?
<LnL> I updated it
justbeingglad has joined #nixos
justbeingglad has left #nixos []
fdisk_pls has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<gchristensen> domenkozar: are you available?
<clever> LnL: and you already tried to run perl after switching to the nixbld1 user?
<LnL> clever: that does give a permission denied, can't access /nix/store
<clever> ah, so something weird is going on with the filesystem stuff
<clever> LnL: what if you just make /nix a symlink?
Sonarpulse-Work has quit [(Remote host closed the connection)]
athan has joined #nixos
arjen-jonathan has joined #nixos
<NixOS_GitHub> [nixpkgs] moretea opened pull request #20635: yarn: init at 0.17.8 (master...add-yarn) https://git.io/vXjCC
Shou has joined #nixos
alx741_ has quit [(Quit: alx741_)]
alx741 has joined #nixos
Itkovian has joined #nixos
<Baughn> I'd like to run a shell script which uses nix-shell as an interpreter inside a build rule..
<Baughn> Am I in a state of sin?
<clever> Baughn: if sandboxes are off, you can set NIX_REMOTE=remote and i think it can talk to the nix-daemon on the host
<Baughn> Sandboxes are on.
<clever> then it has no way to reach the unix socket nix-daemon is on
<clever> Baughn: one sec
<LnL> clever: I got it working
<Baughn> I can probably just move the dependencies into default.nix.
<LnL> clever: /nix/store was 744 instead of 755
<clever> Baughn: that would be better
<clever> LnL: ah, that would do it
<LnL> not sure why that matters tho
<clever> LnL: i think 1 is +x?
<clever> it is
<clever> LnL: you need +x on a directory to traverse it, +r only allows you to read it
<LnL> yes, but it's a directory. or does that propagate to all the subfolders/files
<LnL> oh
<clever> cd and ls are seperate operations
<clever> and you can do interesting security stuff if you have +x and -r
<clever> you can read files, if you know the names, but you cant list the names
<tikhon> How do I build Haskell packages that depend on having a JVM? I keep on getting "* Missing C library: jvm". I tried calling them with { jvm = openjdk7 }, but that didn't work—what should jvm be set to?
<LnL> clever: I did not know that, thanks for the help
NEo4v8 has joined #nixos
mizu_no_oto has joined #nixos
hiratara has quit [(Quit: ZNC - http://znc.in)]
hiratara has joined #nixos
NEo4v8 has quit [(Ping timeout: 260 seconds)]
jgertm has quit [(Ping timeout: 252 seconds)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<clever> LnL: hmmm, i could try doing v6 builds also, lets see
<clever> that would allow testing on my older pi's
<Baughn> clever: Do you know some way to opt out of sandboxing on a per-derivation basis?
<clever> Baughn: it has to be made optional in nix.conf, and a special flag has to be set in the derivation
<Baughn> Hm. Actually, I might not need that.
<NixOS_GitHub> [nixpkgs] edwtjo pushed 1 new commit to master: https://git.io/vXj80
<NixOS_GitHub> nixpkgs/master 38d77bc Edward Tjörnhammar: idea.idea-{community,ultimate}: 2016.2.5 -> 2016.3
<clever> Baughn: nix.conf build-use-chroot = relaxed, and __noChroot = 1; i believe
seku has joined #nixos
<Baughn> Ok. Hopefully I won't need it, but good to know.
<clever> another option is to just nix-build --option build-use-sandbox false
<clever> then it just wont use the sandbox for the entire set of jobs
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<seku> evenings
<seku> been trying out nixos in virtualbox the last few days. thoroughly impressed.
<seku> everything seems so smooth and well thought-out... so i was wondering if theres an easy way to do wayland?
<seku> not that i need it, just wondering if there is.
<clever> seku: i havent seen any option to enable it, but i did recently notice wayland was in the closure of kde
<clever> LnL: and the build is already poisoned, bash is doing -DCONF_HOSTTYPE='"armv7l"' in a v6 build
NEo4v8 has joined #nixos
<seku> poisoned as in not pure?
<seku> trying to understand a bit :)
<clever> seku: yeah, it detected an armv7 cpu, so its doing a v7 arm build
<clever> even though i asked for v6
<clever> seku: the code i just linked from github solves similar 64/32 bit problems, it makes linux lie to the builder, and claim its a 32bit only kernel
<seku> oh
supremacsy has quit [(Quit: Leaving)]
<clever> which gives me an idea
<clever> its setting a PER_LINUX32 flag
<clever> the kernel lacks flags to set v6 / v7 thru that personality api
<seku> .. /* Impersonate a Linux 2.6 machine to get some determinism
<seku> i dont like the sound of that
<clever> not sure what that option is for either
<seku> people way more clever than me did that tho, so i presume it has some meaning
<seku> frankly, im just 3 days into nixos. and i get a similar feeling i get when i am trying out haskell
<seku> that everyone around me is too damn clever
<seku> no pun intended on nickname :)
<clever> haskell still gives me trouble sometimes
<seku> i havent put in enough time to wrap my head around it
<NixOS_GitHub> [nixpkgs] basvandijk opened pull request #20636: postgresql: add 9.6.1 (master...postgresql96) https://git.io/vXjBd
<greymalkin> How do I deal with binary (proprietary) packages that really want to write to the filesystem, even when just extracting (microchip's xc16 compiler in this case)
Shou has quit [(Ping timeout: 240 seconds)]
<greymalkin> Is there a nix equivalent to Arch's `fakeroot` or an expression that I can use as an example?
indi_ has joined #nixos
<simpson> greymalkin: There's buildFHSEnv. Lemme see if it's documented in the manual.
<clever> buildFHSEnv will create a tree of symlinks that simulate /usr and /lib, and chroot automaticaly when you run it
<clever> but /usr and /lib are still read-only
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
evangeline has quit [(Ping timeout: 246 seconds)]
stepcut_ has joined #nixos
arjen-jonathan has quit [(Ping timeout: 240 seconds)]
stepcut has quit [(Ping timeout: 260 seconds)]
<mpickering> Is it safe to delete everything in the store?
<mpickering> I don't really use nix but don't want to destroy my installation
<greymalkin> clever: Hmm.. really the only time it's doing it is during the install phase; it wants to write into the /opt directory, and I'd like to force it to write to the "$out/opt" directory instead.
<NixOS_GitHub> [nixpkgs] basvandijk opened pull request #20638: postgresql: bug fix updates for all versions (master...postgresql-updates) https://git.io/vXj0Z
<greymalkin> So I think having the FHS environment *may* be overkill?
AllanEspinosa has quit [(Ping timeout: 256 seconds)]
<clever> greymalkin: and it wouldnt work
<simpson> mpickering: No. In particular, Nix itself is in your store.
<clever> greymalkin: i would try patching the program, but runInLinuxVM can also be used
<mpickering> How can I reclaim the 10gb of space taken up by it?
<clever> mpickering: there is nix-collect-garbage to let it clean up unused things automaticaly
<simpson> mpickering: Remove stuff from your environment that you don't use, and then nix-collect-garbage.
<mpickering> I am on OSX
<mpickering> The executables are not located in the store which is at /nix/store
civodul has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
<simpson> Ah. No idea about Darwin, sorry.
evangeline has joined #nixos
<clever> mpickering: you should still have a nix-collect-garbage program in $PATH
<mpickering> I do but I still have 10gb left in this folder
<clever> mpickering: can you pastebin the output of "du --max=1 -h /nix/store | sort -h" ?
<mpickering> Lots of Haskell libraries and some executables
<mpickering> so I think I should just delete everything in the folder
<clever> mpickering: thats still the wrong answer, nix will get very upset if you do
<clever> mpickering: there are tools you must use when deleting things
<clever> mpickering: what does this output? nix-store --query --roots /nix/store/9swwjjdxgs47858m7ry031lbpw58mqk7-ghcjs-0.2.0
<mpickering> /Users/matt/Documents/haskell/reflex-platform/gc-roots/shell.out
<clever> mpickering: so it cant delete ghcjs until you remove shell.out, then nix-collect-garbage will do its job
<mpickering> There's this file in that folder :) https://www.irccloud.com/pastebin/g4yQkD2t/
<mpickering> Thanks for the right answer
AllanEspinosa has joined #nixos
kampfschlaefer has quit [(Ping timeout: 248 seconds)]
ambro718 has quit [(Ping timeout: 250 seconds)]
evangeline has quit [(Ping timeout: 256 seconds)]
evangeline has joined #nixos
erasmas has quit [(Quit: leaving)]
estewei has quit [(Quit: Quit)]
leothrix has quit [(Ping timeout: 260 seconds)]
leothrix has joined #nixos
<Baughn> Where is buildPythonPackage defined, nowadays? It seems to have moved.
<Baughn> That looks considerably more useful than github's search.
<gchristensen> it is
<gchristensen> it is why I have it :)
<gchristensen> also it has editor integratiow with vim and emacs at least
goibhniu has quit [(Ping timeout: 245 seconds)]
<Baughn> Hm. I guess I'll need to use callPackage for my out-of-tree build.
<Baughn> "(import <nixpkgs> {}).callPackage ({" looks kinda ugly.
<clever> with import <nixpkgs> {}; callPackage ./foo.nix {}
<Baughn> I suppose.
<clever> i either type that into nix-build -E, or i have a second nix file with that in it
Acou_Bass has quit [(Quit: ZNC - http://znc.in)]
Acou_Bass has joined #nixos
<Baughn> buildPythonPackage no longer defines 'self'?
<gchristensen> Baughn: use python3Packages.buildPythonPackage
<gchristensen> or 2 or ...
<Baughn> It's a python 2 package..
<gchristensen> python2Packages.buildPythonPackage
<Baughn> Sorry, that doesn't actually help. :P
<gchristensen> it doesn't? _I'm_ sorry!