<Biappi>
i am trying nix for the first time but it's a bit overwhelming. i have this http://hastebin.com/xezezateya.js that "mostly works". i have it outside nixpkgs and i can build it, however now i would like to add some derivations as dependencies for this package but i don't understand how
<gchristensen>
Biappi: what do you mean by add some derivations as dependencies? you have many dependencies there already.
<Biappi>
yes, but those come from nixpkg. i would like to specify additional derivations rules for stuff that's not in nixpkgs
<gchristensen>
ah, do you have expressions for those?
<Biappi>
no, i would like to specify those in the same default.nix
<gchristensen>
can you write an example expression for one of them, and then, do: let foo = <yourexpression> in stdenv.mkDerivation ... buildInputs = [ ... foo ];
<Biappi>
oh i think i get it. stdenv.mkDerivation will evaluate in a function, that the let binds to foo, that will be in scope of the "with"
<gchristensen>
well so let FOO in BAR puts things set in FOO in scope for BAR
<Biappi>
thanks
<gchristensen>
the "with BAZ" statement takes everything in BAZ and puts it in scope
<pikajude>
with { a = 1; }; a
<gchristensen>
a set in the { ... } makes `a` in scope of the subsequent statements
<Biappi>
oh i see. now that boilerplate first line makes more sense as well
<mog>
im trying to do an upgrade and the download cant seem to find google-chrome-stable package
<mog>
i found it and downloaded it by hand manually
<mog>
how do i add it to the store
<gchristensen>
mog: can you paste the error you're seeing for google-chrome-stable?
<mog>
error: cannot download google-chrome-stable_54.0.2840.90-1_amd64.deb from any mirror
<gchristensen>
Biappi: that could be rewritten as follows:
<mog>
so i just googled for that exact version and found it on an archive site
newhoggy_ has quit [(Remote host closed the connection)]
newhoggy_ has joined #nixos
newhogg__ has joined #nixos
<gchristensen>
mog: you can do nix-store --add ./foo.deb
<Biappi>
gchristensen: thank you. really appreciate that
newhoggy has quit [(Ping timeout: 258 seconds)]
<gchristensen>
Biappi: do you see how the with is different in those cases? it took me a while to get it.
CrashOverride has joined #nixos
<mog>
gchristensen, thank you i couldnt remember the command that seemeed to work
<gchristensen>
great
rardiol has quit [(Remote host closed the connection)]
<mog>
spoke to soon
<Biappi>
gchristensen: yes, it's slightly akin to the python `from module import *`, vs. `import module`
<mog>
it still tried to curl it and failed
eacameron has joined #nixos
<gchristensen>
ah yes
<gchristensen>
mog: sounds like its hash isn't matching
<gchristensen>
mog: are you on 16.09
<gchristensen>
?
newhoggy_ has quit [(Ping timeout: 240 seconds)]
<mog>
thats what im trying to upgrade to
<gchristensen>
ahh
<mog>
i did nix-channel --add to 16.09
<mog>
and then nix-switch rebuild --upgrade
* gchristensen
is looking
seppellll has joined #nixos
rardiol has joined #nixos
eacameron has quit [(Ping timeout: 258 seconds)]
<gchristensen>
mog: can you paste the output from the failed rebuild?
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 3 new commits to master: https://git.io/v1IO4
<NixOS_GitHub>
nixpkgs/master 02e1846 Tuomas Tynkkynen: U-Boot: 2016.05 -> 2016.11
<NixOS_GitHub>
nixpkgs/master 25d6bfa Tuomas Tynkkynen: raspberrypifw: 1.20160620 -> 1.20161020
<NixOS_GitHub>
nixpkgs/master 86ea312 Tuomas Tynkkynen: linux_rpi: 1.20160620 -> 1.20161020
<gchristensen>
mog: and can you paste the contents of /nix/var/nix/profiles/per-user/root/channels/manifest.nix?
markus1189 has joined #nixos
<Biappi>
having this works: http://hastebin.com/anigemiluy.js, however, anyone knows a way i can nix-shell onto that "libjack" to debug build issues? i tried using `nix-shell default.nix -p libjack` to no avail
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/v1IOD
<NixOS_GitHub>
nixpkgs/master eecf76e Tim Steinbach: linux: 4.9-rc6 -> 4.9-rc7
griff_ has quit [(Quit: griff_)]
markus1199 has quit [(Ping timeout: 252 seconds)]
<mog>
gchristensen, [ { meta = { }; name = "nixos-16.09.1119.ece0cea"; out = { outPath = "/nix/store/7v2wgk8vlfciwd1q66hrsn6fapl03007-nixos-16.09.1119.ece0cea"; }; outPath = "/nix/store/7v2wgk8vlfciwd1q66hrsn6fapl03007-nixos-16.09.1119.ece0cea"; outputs = [ "out" ]; system = "x86_64-linux"; type = "derivation"; } ]
griff_ has joined #nixos
CrashOverride has quit [(Ping timeout: 260 seconds)]
<clever>
Biappi: -p and passing files in dont work together
<gchristensen>
ahh interesting, this is building chromium with widevine which is failing.
saintromuald has quit [(Ping timeout: 250 seconds)]
saintromuald has joined #nixos
<gchristensen>
mog: I'm having a hard time replicating this problem. can you open an issue, and tag aszlig?
<mog>
sure im gonna try disabling the plugi n
<gchristensen>
you may also try using google-chrome isntead of chromium
shanemikel has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos []
matthewbauer has quit [(Ping timeout: 256 seconds)]
<saintromuald>
is there a gui package manager for nixos by any chance?
<gchristensen>
saintromuald: I think there are a few, but not really
<samueldr>
google-chrome (stable) does not currently download on 16.09.1119.ece0cea
<Biappi>
clever: oh, i see... so how can i specify it? it is possible at all?
<shanemikel>
How can I get it so that nix-shell for a given derivation has dependencies that the derivation itself does not? like completion, some utils like hostname, whatever else
<NixOS_GitHub>
[nixpkgs] grahamc pushed 1 new commit to release-16.09: https://git.io/v1Ist
<clever>
Biappi: if its already in buildInputs, then you dont need -p libjack
<shanemikel>
like `which` would be nice to have in all my shells. nix-shell looks like it pulls in completion by default, but I'm trying to override my --rcfile (to set a custom prompt and get lscolors and such, but I lose the completion when I do it
<clever>
nix-shell will load everything in buildInputs for you
<Biappi>
clever: the problem is that it fails compilation, so i wanted to examine the environment and fix it. the build failure prevents nix-shell to continue and exits
<clever>
Biappi: after the failure, you can re-run nix-shell and it will restore the env
newhogg__ has quit [(Remote host closed the connection)]
<Biappi>
clever: i am running on osx, the nixpkg version defines compatibility for linux only, and i don't know enough of the nix infrastructure to do a proper override... i was kind of cheating with what i know about building software in general and with the least knowledge of nix i could get by
<clever>
ahh
<clever>
checking one of your pastebins i see this: no configure script, doing nothing
<clever>
so the tar.bz2 you pointed it at lacks a configure script
<clever>
Biappi: if its using autoconf, you can do buildInputs = [ autoreconfHook ]; to generate one
<Biappi>
yeah i think i can handle the build failure, but having an environment i can examine would be excellent
<shanemikel>
clever: are buildInputs loaded by nix-build?
<clever>
shanemikel: buildInputs are loaded by setup.sh, which ran by nix
<NixOS_GitHub>
[nixpkgs] spacekitteh closed pull request #20513: [wip] nodejs: Flag to disable building with openSSL (master...patch-14) https://git.io/vX7K2
<fpletz>
much healthier than energy drinks and as effective :)
<gchristensen>
thank you, goodwill
<fpletz>
that's why I'm still awake at 4:30am
acertainkind has joined #nixos
<shanemikel>
this one works just fine: nix_eval --expr '(import <nixpkgs> {}).hello.buildInputs'
<gchristensen>
well you should go to bed, too, fpletz
<spacekitteh>
gchristensen: *nodnods*
<gchristensen>
being involved with #nixos and all these europeans pushed me to add a "time in Europe/Berlin" to my desktop.
sdothum has joined #nixos
<roxma>
Hi, I'm trying to install nixos into a portable usb flash drive. I just noticed the boot.loader.grub option. I use '/dev/sdc' for installation currently.
<spacekitteh>
gchristensen: hah
<roxma>
But the flast drive will not always be recognized as '/dev/sdc', on other computer, isn't it?
<shanemikel>
oh... elipses
<roxma>
So if I change the configuration elsewhere, Do I have to keep this option changed properly before the build swith?
<gchristensen>
goodwill: I'm in a quarterly on-site right now, in NYC... can never sleep well in NYC.
CMCDragonkai has quit [(Remote host closed the connection)]
<roxma>
Maybe I should just comment out those grub options after first installation.
<NixOS_GitHub>
[nixpkgs] sh01 opened pull request #20761: rogue: Add alternative source archive URLs. (release-16.09...cp_rogue_mirror) https://git.io/v1IWK
edvorg has joined #nixos
NEo4v8_ has joined #nixos
proteus-guy has joined #nixos
irctc256 has joined #nixos
<irctc256>
Hey all, are there best practices for putting configuration.nix under version control?
athan has quit [(Ping timeout: 260 seconds)]
<MichaelRaskin>
roxma: maybe /dev/disk/by-uuid would help you
derjohn_mob has quit [(Ping timeout: 246 seconds)]
bfrog has quit [(Quit: WeeChat 1.6)]
systemfault has joined #nixos
lverns has quit [(Ping timeout: 256 seconds)]
glines has quit [(Ping timeout: 268 seconds)]
athan has joined #nixos
edvorg has quit [(Ping timeout: 256 seconds)]
Wizek_ has joined #nixos
<shanemikel>
I'm trying to add paths `toPath (getEnv "PWD") + /shell.nix' and getting an error that /shell.nix doesn't exist.. (I know, you can use ./, but I'm using a symlink to this script so that doesn't work right)
<roxma>
MichaelRaskin: Thanks, I'm using /dev/disk/by-id now
<shanemikel>
shouldn't it add regardless of wether the file exists (so I can check it afterwards)?
ebzzry_ has quit [(Ping timeout: 250 seconds)]
yodeler has quit [(Remote host closed the connection)]
sdothum has quit [(Quit: ZNC - 1.6.0 - http://znc.in)]
<MichaelRaskin>
shanemikel: put /shell.nix into quotes, so it is a string
<shanemikel>
so when does writing a path require the file to exist?
<MichaelRaskin>
By the way, I think ./ works relative to truename in Nix
<MichaelRaskin>
More or less always
<MichaelRaskin>
The point is that if the file is outside the Nix store, it gets copied and then the path points inside store
<shanemikel>
oh.. somehow I missed that
<shanemikel>
thanks
<shanemikel>
so what's pathExists for? It does take a path and not a string, right?
<MichaelRaskin>
I think it should work with strings, too
<shanemikel>
somehow I have ./pkgs.nix in my expression for shell.nix which is symlinked into my directory (with ./pkgs.nix), and there is an error that the file doesn't exist in the directory in which the shell.nix file resides (even though I'm calling nix-shell from the dir with the symlink)
<MichaelRaskin>
Are right, Nix always follows the symlink
<shanemikel>
or is that what you mean by truename
matthewbauer has quit [(Ping timeout: 265 seconds)]
<MichaelRaskin>
Yes
<MichaelRaskin>
Then the PWD code makes sense…
rui has joined #nixos
<rui>
Anyone knows how to fix Julia packages that have binary dependencies, to work on NixOS? Such as IJulia, BenchmarkTools and others?
<manveru>
not sure how it does the store, but it's good enough for playing around
spacekitteh has joined #nixos
<FRidh>
manveru: good idea, I'll check it out
<FRidh>
domenkozar: from the discussion on pipfile and stack, I thought it would be a good idea if we there would be a periodically released curated index with python packages as well
<rsa>
hmm... was running octave (nixos 16.09), after using it a while and then leaving it idle I got something about ld inconsistency and the program broke
Guest2999 has quit [(Ping timeout: 245 seconds)]
matthewbauer has joined #nixos
takle_ has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
matthewbauer has quit [(Ping timeout: 246 seconds)]
johann__ has joined #nixos
takle_ has quit [(Ping timeout: 244 seconds)]
<rly>
Is hiera packaged as some kind of independent binary in NixOS?
<NixOS_GitHub>
[nixpkgs] the-kenny pushed 2 new commits to master: https://git.io/v1ID1
<NixOS_GitHub>
nixpkgs/master e36d243 Moritz Ulrich: rustc: Don't fail if deleting of breaking tests fails.
<NixOS_GitHub>
nixpkgs/master bfc187f Moritz Ulrich: rustc: Loosen bootstrapping restrictions....
athan has quit [(Ping timeout: 245 seconds)]
takle_ has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
ThatDocsLady has joined #nixos
takle_ has quit [(Ping timeout: 258 seconds)]
Wizek_ has quit [(Ping timeout: 246 seconds)]
Wizek has quit [(Ping timeout: 256 seconds)]
takle has joined #nixos
kier has quit [(Ping timeout: 240 seconds)]
<joncfoo>
Is there anything special I need to do in order to have some kernel modules loaded besides specifying them in boot.kernelModules?
proteus-guy has quit [(Ping timeout: 260 seconds)]
rly has quit [(Ping timeout: 245 seconds)]
<kmicu>
Not really. Sometimes you need to use ‘boot.initrd.*Modules’ to load them sooner. Sometimes you need to configure kernel to enable ‘exotic’ modules.
<joncfoo>
I specified: boot.kernelModules = [ "virtio" "virtio-net" "virtio-blk" ]; in /etc/nixos/configuration.nix and after a `nixos-rebuild switch` and a reboot, `lsmod` did not show the module being loaded
<NixOS_GitHub>
[nixpkgs] joachifm pushed 4 new commits to master: https://git.io/v1ISP
<NixOS_GitHub>
nixpkgs/master 4c73235 Joachim Fasting: Revert "grsecurity: work around for #20490"...
<NixOS_GitHub>
nixpkgs/master 1915f69 Joachim Fasting: linux_grsec_nixos: use the "modinst arg list too long" patch...
<NixOS_GitHub>
nixpkgs/master b90ed0c Joachim Fasting: grsecurity: 4.8.10-201611232213 -> 4.8.11-201611271225
<joncfoo>
I can load the modules via `modprobe` just fine
takle has quit [(Ping timeout: 265 seconds)]
kier has joined #nixos
<joncfoo>
kmicu: do you know if there are any logs I can check to see what's going on?
<joncfoo>
dmesg doesn't give me any information
Guest2999 has joined #nixos
iyzsong has joined #nixos
kragniz has quit [(Quit: WeeChat 1.5)]
kragniz has joined #nixos
<clever>
Dezgeg: i think i found my boot problems, ARM_APPENDED_DTB is enabled when it shouldnt be
matthewbauer has joined #nixos
<joncfoo>
kmicu: I tried specifying the modules in boot.initrd.kernelModules but no luck there either
<clever>
joncfoo: i think a systemd unit called systemd-modules-load handles loading boot.kernelModules
takle has joined #nixos
<clever>
joncfoo: and its configured via /etc/modules-load.d/nixos.conf which nixos should generate
<clever>
joncfoo: is virtio in that file?
Guest2999 has quit [(Ping timeout: 258 seconds)]
matthewbauer has quit [(Ping timeout: 244 seconds)]
<joncfoo>
clever: thanks, the logs for that don't show virtio to be in there and /etc/modules-load.d/nixos.conf does not contain it either
<clever>
joncfoo: one sec
<clever>
ls -l /run/current-system /nix/var/nix/profiles/system*
<clever>
joncfoo: can you pastebin the output of this?
<NixOS_GitHub>
[nixpkgs] joachifm pushed 1 new commit to master: https://git.io/v1IQq
<NixOS_GitHub>
nixpkgs/master e99228d Joachim Fasting: grsecurity module: force a known good kernel package set...
<joncfoo>
sda1 - windows recovery, sda2 - efi system, sda3 - windows reserved, sda4 - windows
<clever>
can you mount sda2 to /mnt and run "find /mnt" and pastebin that output?
echo-area has quit [(Remote host closed the connection)]
frankpf has joined #nixos
<joncfoo>
clever: so it seems that I must have selected 42 since the output of /mnt only contains entries up to 42 - http://sprunge.us/LaIE
<joncfoo>
not 43 or 44
<clever>
yeah, so you need to mount sda2 to /boot
<clever>
you have been updating the entries file on the rootfs, not the one the bootloader used
<joncfoo>
oh, I wonder what happened there
<clever>
this happens every now and then with nixos users, /boot gets removed from configuration.nix by mistake
<clever>
and from then on, it always rolls back to the last config that made it into /boot, on every restart
<joncfoo>
hooo boy
<joncfoo>
I would not have figured that out easily
<clever>
one person garbage-collected that generation, and then it lost the ability to boot :P
<joncfoo>
thanks for your help!
<joncfoo>
is there a bug filed for this issue?
<clever>
its more of a user config problem then a bug in nixos
<joncfoo>
oh, I think I see what might have caused the issue
<joncfoo>
I had enabled kvm which is what re-wrote /etc/nixos/hardware-configuration.nix
<joncfoo>
^I'm guessing since I don't remember seeing the kvm-intel module in that file before
<clever>
normaly, you can re-run nixos-generate-config on a running machine, and it will update hardware-configuration.nix to match whatever you currently have mounted
<clever>
i tend to just delete the file and manage that manualy in configuration.nix, so i know exactly what is changing
asymmetric has quit [(Ping timeout: 240 seconds)]
<joncfoo>
got it
<joncfoo>
thanks a lot for your help clever. really - I doubt I would have figured this out on my own
<joncfoo>
brb, reboot to test =]
frankpf has quit [(Quit: Leaving)]
dgn has quit [(Ping timeout: 265 seconds)]
<avn>
Folks, do we have some common rules to handle stuff like bash completions? (some "standard" path for example)
<joncfoo>
happy to report that it works now - the kernel modules are properly loaded, /boot is mounted, and the generations are correct
johann__ has quit [(Quit: Leaving.)]
frankpf_ has joined #nixos
frankpf_ has quit [(Client Quit)]
ixxie has joined #nixos
madbub has joined #nixos
newhoggy has joined #nixos
akaWolf has quit [(Ping timeout: 258 seconds)]
<NixOS_GitHub>
[nixpkgs] grahamc pushed 2 new commits to release-16.09: https://git.io/v1I5b
<NixOS_GitHub>
nixpkgs/release-16.09 6034390 Sebastian Hagen: rogue: Add alternative source archive URLs....
<NixOS_GitHub>
nixpkgs/release-16.09 721f2b9 Graham Christensen: Merge pull request #20761 from sh01/cp_rogue_mirror...
newhoggy_ has joined #nixos
spacekitteh has quit [(Ping timeout: 250 seconds)]
herzmeisterderw has quit [(Quit: Leaving)]
spacekitteh has joined #nixos
newhoggy has quit [()]
newhoggy_ is now known as newhoggy
pi3r has quit [(Ping timeout: 248 seconds)]
newhoggy_ has joined #nixos
newhoggy_ is now known as newhoggy2
newhoggy2 has quit [(Client Quit)]
newhoggy_ has joined #nixos
newhoggy_ has quit [(Client Quit)]
newhoggy2 has joined #nixos
<NixOS_GitHub>
[nixpkgs] grahamc pushed 1 new commit to master: https://git.io/v1Id8
<NixOS_GitHub>
nixpkgs/master 41ed3a8 Vincent Demeester: lnav: fix compilation...
newhoggy2 has quit [(Remote host closed the connection)]
Guest2999 has joined #nixos
newhoggy2 has joined #nixos
matthewbauer has joined #nixos
newhoggy2 has quit [(Remote host closed the connection)]
newhoggy2 has joined #nixos
newhoggy2 has quit [(Remote host closed the connection)]
newhoggy2 has joined #nixos
newhoggy2 has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] abbradar opened pull request #20767: releaseTools.debBuild: split checkinstall into separate phase (master...debbuild) https://git.io/v1IFc
pi3r has joined #nixos
spacekit1eh has joined #nixos
spacekitteh has quit [(Ping timeout: 268 seconds)]
ixxie has quit [(Ping timeout: 245 seconds)]
matthewbauer has quit [(Ping timeout: 260 seconds)]
ixxie has joined #nixos
ebzzry has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub>
[nix] abbradar opened pull request #1141: Improve RPM and DEB packages for multi-user Nix (master...stable) https://git.io/v1IFb
spacekitteh has joined #nixos
spacekit1eh has quit [(Ping timeout: 252 seconds)]
ebzzry has joined #nixos
<ToxicFrog>
Hrm
<ToxicFrog>
patchelf has --set-rpath but doesn't seem to have --set-runpath
<ToxicFrog>
Aggravating
Shou has joined #nixos
herzmeister has quit [(Quit: Leaving)]
spacekitteh has quit [(Ping timeout: 252 seconds)]
spacekitteh has joined #nixos
angerman has quit [(Quit: Gone)]
griff_ has quit [(Quit: griff_)]
madbub has quit [(Ping timeout: 258 seconds)]
<__Sander__>
hmm so fetchgit's behaviour has changed again
<NixOS_GitHub>
[nixpkgs] DamienCassou closed pull request #19152: Emacs all the icons fonts (release-16.09...emacs-all-the-icons-fonts) https://git.io/vPqzU
<__Sander__>
with regards to the default branch name
<__Sander__>
guess I again have to modify node2nix for that
<rui>
MichaelRaskin I am trying setting LD_LIBRARY_PATH but something is not that straightforward
<rui>
For example, I added nettle../lib to the LD_LIBRARY_PATH but when installing Pkg.build("IJulia"), which needs Pkg.build("nettle"), it seems it still tries to install itself and fails
spacekitteh has quit [(Ping timeout: 245 seconds)]
spacekitteh has joined #nixos
matthewbauer has joined #nixos
ixxie has quit [(Remote host closed the connection)]
matthewbauer has quit [(Ping timeout: 252 seconds)]
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 1 new commit to master: https://git.io/v1IhG
<NixOS_GitHub>
nixpkgs/master c93ec7b Michael Raskin: bftpd: init at 4.4
ebzzry has quit [(Ping timeout: 265 seconds)]
stepcut has quit [(Remote host closed the connection)]
stepcut has joined #nixos
cpennington has joined #nixos
spacekitteh has quit [(Ping timeout: 244 seconds)]
stepcut has quit [(Ping timeout: 244 seconds)]
msd has joined #nixos
civodul has joined #nixos
spacekitteh has joined #nixos
<msd>
viric_: could you please merge this: https://github.com/NixOS/nixpkgs/pull/20631 <- I don't have write access, but FRidh seems to concur that this patch seems suitable to fix the current state of OpenCV 3 GPU support
<viric_>
can't FRidh merge it?
<viric_>
bjornfor can merge it too
<viric_>
I merge it - it doesn't look harmful
<NixOS_GitHub>
[nixpkgs] viric closed pull request #20631: opencv3: added CUDA 8.0 specific patches (master...opencv_upgrade) https://git.io/vXhYv
<gchristensen>
woohoo! we're below 280 PRs!
<msd>
viric_: okay, I'll reach out to bjornfor. Just tried messaging FRidh over GitHub requesting he (or anyone with write access) merge it. I was just trying to contact someone with write access to merge this in after FRidh's signoff.
<msd>
viric_: thanks so much!
<msd>
viric_: also, would you approve of me co-maintaining the OpenCV 3 package with you and flosse?
<gchristensen>
fpletz: ping me when you're around :)
<viric_>
let me handle you the Oath of NixOS...
derjohn_mob has joined #nixos
<NixOS_GitHub>
[nixpkgs] viric pushed 2 new commits to master: https://git.io/v1LvY
<NixOS_GitHub>
nixpkgs/master 448d605 Matthew Daiter: opencv3: adding myself as co-maintainer
<NixOS_GitHub>
nixpkgs/master 1f7a23c viric: Merge pull request #20768 from mdaiter/opencv_maintainer...
<gchristensen>
"I will sometimes faithfully and promptly reply to PR comments that tag me"
yegods has joined #nixos
Shou has quit [(Ping timeout: 250 seconds)]
<viric_>
I swear.
angerman has joined #nixos
<msd>
I swear.
<msd>
Lol
<msd>
Thanks viric_
<viric_>
Now You are one of Us
<taktoa>
does texdoc work with the new(ish) nix texlive infrastructure
dgn has joined #nixos
<kmicu>
Yes.
<rly>
gchristensen: do you use Terraform?
<NixOS_GitHub>
[nixpkgs] grahamc closed pull request #20749: genymotion: 2.7.2 -> 2.8.0 and add menu item (master...master3) https://git.io/v1kwT
<gchristensen>
I used to, rly
<taktoa>
kmicu: when I run, e.g.: `texdoc amsmath` it complains even though I have `texlive.combine { inherit (pkgs.texlive) scheme-full lm tipa; }` installed to my user profile
<rly>
gchristensen: can I ask you a few short questions about it via a private message?
<gchristensen>
peti: will you be merging and backporting the lxc patch?
<taktoa>
I was looking at that earlier but that was before I saw the issue
<taktoa>
okay, this makes sense now. maybe I should cook up a PR adding direct instructions to those docs, describing why texdoc doesn't work out of the box and how to fix it
katyucha has quit [(Quit: Lost terminal)]
lonokhov has quit [(Quit: leaving)]
<kmicu>
Anything that makes “By default you only get executables and files needed during runtime, and a little documentation for the core packages. To change that, you need to add pkgFilter function to combine.” more clear is welcome.
matthewbauer has joined #nixos
takle has quit [(Remote host closed the connection)]
<FRidh>
kmicu: ah latex docs. Yes, those are brief.
matthewbauer has quit [(Ping timeout: 250 seconds)]
<taktoa>
kmicu: weird, I'm getting "stack overflow (possible infinite recursion)" any time I refer to `pkg.tlType` in the `pkgFilter` predicate (where `pkg` is the variable name)
<taktoa>
referring to `pkg.pname` does not have the same effect, interestingly
<vdemeester>
hum something is weird on nixpkgs master : error: assertion failed at /home/vincent/src/nix/nixpkgs/pkgs/top-level/all-packages.nix:5908:19
<kmicu>
taktoa: Did you define ‘pkgFilter’ as a lambda inside combine function? ‘pkgFilter = pkg: …’
<vdemeester>
is it only happening to me ? (when I try to build manually a package)
<NixOS_GitHub>
[nixpkgs] aycanirican opened pull request #20769: hydra-module: add cfg.package to hydra-evaluator path (master...master) https://git.io/v1LUS
<taktoa>
kmicu: yes
<taktoa>
and I tried varying the lambda parameter name just in case Nix has weird name shadowing rules (IIRC `with`, for instance, has weird rules)
<kmicu>
taktoa: the same issue with ‘nix-shell --pure -p '(texlive.combine { inherit (texlive) scheme-basic pdftex; pkgFilter = pkg: pkg.tlType == "run" || pkg.tlType == "bin" || pkg.pname == "cm-super"; })'’?
katyucha has joined #nixos
<taktoa>
nope, that evaluates successfully
<taktoa>
very strange
* kmicu
peepers for “‘with’ considered harmful joke”.
<taktoa>
:^)
newhoggy2 has joined #nixos
<taktoa>
I actually kind of like `with` (or at least the concept of `with`; I do think the scoping should be fixed to be more intuitive)
<taktoa>
in particular I often use `with rec { ... };` instead of `let` because it reads a bit nicer
<taktoa>
the `let` syntax is a bit heavyweight in comparison
<gchristensen>
vdemeester: are you trying to do cross-compilation?
cfricke has joined #nixos
<taktoa>
kmicu: so, it seems that if I ever let `pkgFilter x == true` when `x.tlType == "doc"`, the infinite recursion is triggered
<taktoa>
this is also true of "source"
<taktoa>
but not of "run" or "bin"
sdothum has joined #nixos
asymmetric has joined #nixos
nh2_ has joined #nixos
proteus-guy has joined #nixos
Ivanych has quit [(Ping timeout: 246 seconds)]
<vdemeester>
gchristensen: nope
<vdemeester>
just nix-build default.nix -A google-chrome
<vdemeester>
(more or less)
<vdemeester>
might be something wrong in my setup maybe ?
<kmicu>
vdemeester: iirc you Nix is too old. What’s your nix-env --version?
<peti>
gchristensen: Yes, I'll merge lxc in a minute. I just want to build it locally, too, to make sure the patch works.
<vdemeester>
oohh
<vdemeester>
my nixos system is 16.09
fritschy has quit [(Quit: Leaving.)]
<kmicu>
Sometimes, by mistake, you can have an old Nix version on NixOS. Check ‘nix-env --version’ or ‘nix-shell --version’.
<kmicu>
vdemeester: I’m sorry. I can reproduce your issue (even with Nix 1.12pre).
<vdemeester>
kmicu: ok so it's not just me :)
<vdemeester>
kmicu: don't be sorry :P
Shou has joined #nixos
<kmicu>
‘NIXPKGS_ALLOW_BROKEN=1 NIXPKGS_ALLOW_UNFREE=1 nix-build default.nix -A google-chrome’ on master gives the same message ‘error: assertion failed at …/pkgs/top-level/all-packages.nix:5900:19’.
<NixOS_GitHub>
[nixpkgs] peti pushed 2 new commits to release-16.09: https://git.io/v1LIl
<NixOS_GitHub>
nixpkgs/release-16.09 d35e2de Alexander V. Nikolaev: lxc: 2.0.4 -> 2.0.6 (security)...
<NixOS_GitHub>
nixpkgs/release-16.09 3e8dc13 Alexander V. Nikolaev: lxc: fix sandbox builds...
<gchristensen>
!m peti
<[0__0]>
You're doing good work, peti!
<gchristensen>
thank you
cfricke has quit [(Quit: WeeChat 1.6)]
<vdemeester>
kmicu: yep that's the one
<vdemeester>
(but it's for any package really)
Guest19059 has quit [(Remote host closed the connection)]
<kmicu>
Oh my…
tomb has joined #nixos
FRidh has quit [(Remote host closed the connection)]
<kmicu>
You have the NON-BREAKING SPACE between ‘-A’ and a package name. It results in the error message, b/c as we all know, unityped Nix expression language gives very helpful error messages⸮ ( ͡~ ͜ʖ ͡°)
lverns has joined #nixos
takle has joined #nixos
<kmicu>
vdemeester: try ‘NIXPKGS_ALLOW_UNFREE=1 nix-build default.nix -A google-chrome’ 😺
<vdemeester>
error: Package ‘Agda-Sheaves-8a06162a8f0f7df308458db91d720cf8f7345d69’ in ‘/home/vincent/src/nix/nixpkgs/pkgs/development/libraries/agda/Agda-Sheaves/default.nix:18’ is marked as broken, refusing to evaluate.
<vdemeester>
kmicu: ^^
<kmicu>
NIXPKGS_ALLOW_BROKEN=1
<vdemeester>
oh it's working
<kmicu>
:)
<vdemeester>
hum.. why wouldn't it work just before… that's weird :[
<vdemeester>
I messed something up ?
estewei has joined #nixos
<kmicu>
NON-BREAKING SPACE issue ‘NIXPKGS_ALLOW_BROKEN=1 NIXPKGS_ALLOW_UNFREE=1 nix-build default.nix -A google-chrome’
<kmicu>
Here is SPACE → ‘ ‘ and here is NON-BREAKING SPACE → ‘ ‘
<vdemeester>
oh crap
<vdemeester>
ok I see :'D
<kmicu>
If you put the latter one between ‘-A’ and ‘google-chrome’ then it results in ‘useful’ error message.
<vdemeester>
I tend to… insert non-breaking space easily :D
<vdemeester>
damn me :P
matthewbauer has joined #nixos
* kmicu
sees them in his Emacs buffer. He sees dead peopl… unicode symbols.
<NixOS_GitHub>
[nixpkgs] mguentner opened pull request #20770: services: IPFS: add test and more config parameters (master...more_ipfs) https://git.io/v1Lmn
<gchristensen>
kmicu++
<vdemeester>
kmicu: yep I see them in my emacs too, but not in my terminal.. should really use eshell for everything :D
<vdemeester>
ok I have another weird question I guess
<kmicu>
There is that ‘Replace a semicolon (;) with a greek question mark (;) in your friend's JavaScript and watch them pull their hair out over the syntax error. this might be more evil than using the Ukrainian lowercase і in 'thіs'’ now we have Nix flavor.
<gchristensen>
30 PRs closed since yesterday night
<vdemeester>
nice :)
<avn>
gchristensen: do you have opition about qt' setup-hook.sh, and mktemp in it?
mkoenig has joined #nixos
<gchristensen>
`mktemp` isn't impure, but it isn't reproducible
<avn>
correct.
<avn>
but anyway it wrong here I think
<avn>
something like __nix_qt5__ should works here I think.
<gchristensen>
(well it is impure in that it isn't reproducible, but I'm using "impure" to mean "doesn't refer to thing nix usually doesn't let you refer to") that SGTM but I don't know any of the implications of that
<kmicu>
taktoa: did you solve the mystery? FWIW ‘nix-shell --pure -p '(texlive.combine {inherit (texlive) scheme-minimal texdoc luatex amsmath; pkgFilter = pkg: pkg.tlType == "run" || pkg.tlType == "bin" || pkg.tlType == "doc";})' --command 'texdoc amsmath'’ gives me amsmath’s documentation. You can also replace ‘pkg.tlType == "doc"’ with ‘pkg.pname == "amsmath"’ if you only want docs for that one
<kmicu>
package.
<taktoa>
the issue is scheme-full
<taktoa>
it seems to be too big for nix to handle, somehow
<kmicu>
Ahh, I always avoid scheme-full so I did not test it. :)
<avn>
gchristensen: I would like to make PR ;)
<gchristensen>
avn: please do, I can't merge it (I don't know that stuff) but I would like to see that
<avn>
gchristensen: to master or to staging? (idk if this rebuild considered "mass" or not)
<gchristensen>
put the PR in to master, ttuegel will have opinions on that
<clever>
taktoa: this one is just the ansii color code escape, but it probably allows all of unicode
<taktoa>
yeah
stepcut has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm closed pull request #19900: xen service: fix wrong netmask handed out by xen-bridge.service (master...xen-fix-xen-bridge2) https://git.io/vXv80
<taktoa>
unless nix uses UTF-16 strings, which have some issues
<taktoa>
but probably nix uses plain old std::string which is UTF-8 afaik
kbwt has joined #nixos
systemfault has joined #nixos
angerman has quit [(Quit: Gone)]
JonReed has joined #nixos
<kbwt>
I come from a distro (gentoo) that requires users to manually resolve feature dependencies (in the form of use flags), where the package manager often takes 5-10 minutes to resolve basic version dependencies for an upgrade, and everything is generally a mess. I have some questions...
<kbwt>
does nix have "conflicts" between packages (or versions of packages?), or can everything in theory be installed at once?
katyucha has quit [(Quit: leaving)]
<kbwt>
does the nix package manager attempt to solve NP-complete problems?
proteus-guy has joined #nixos
matthewbauer has quit [(Ping timeout: 256 seconds)]
<clever>
kbwt: nix solves most issues, by not really installing things in the traditional way, every version of every package gets a unique --prefix
<clever>
and different versions with different build config also get unique prefixes
derjohn_mob has quit [(Ping timeout: 248 seconds)]
<kbwt>
clever: do you know if the dependency resolution done by nix is "polynomial time"?
systemfault has quit [(Quit: Bye!)]
<clever>
kbwt: all dependencies are resolved by evaluating the nix expressions, which is much faster on nix then on gentoo
<kbwt>
clever: afaik if multiple versions of any package can be installed side-by-side and there is no concept of "conflicts" that the package manager has to solve, it would simply be a matter of doing a topological sort/BFS.
<NixOS_GitHub>
[nixpkgs] edolstra pushed 1 new commit to master: https://git.io/v1LC8
<Phlogistique>
kbwt: there is no dependency resolution in the traditional sense
<kbwt>
Phlogistique: Awesome. That sounds great, I'll definitely give NixOS a try then. :)
<Phlogistique>
The best way to "get" Nix is to read "Lethalman"'s Nix pills
<kbwt>
Phlogistique: Do you happen to know if this is unique to nix or are there other distros/package managers that work this way?
<Phlogistique>
there is Guix, which is inspired by Nix
<JonReed>
kbwt: There are no conflicts. You can have as many versions as you like. You can think of dependencies as a lazy immutable list. packageDeps = [dep a, dep b]. When you install package then "dep a" and "dep b" will be evaluated. If they are already installed, then evaluation means just returning the value, i.e., location of already installed depende
<JonReed>
ncy.
mkoenig has quit [(Read error: Connection reset by peer)]
<JonReed>
dep a and dep b can have their own dependency, forming a dependency tree.
<kbwt>
JonReed: yeah, okay, that sounds essentially like a simple BFS (for the procedural/mutable/non-functional people like me :))
<clever>
kbwt: and unlike other distros, you can depend on a&b, without a&b being "installed" globaly, so nothing else will be able to use a&b, enless they also depend on it directly
<clever>
kbwt: and they will always get the version the ask for
stepcut_ has joined #nixos
danharaj has joined #nixos
stepcut has quit [(Ping timeout: 244 seconds)]
jmeredith has joined #nixos
mkoenig has joined #nixos
stepcut_ has quit [(Remote host closed the connection)]
stepcut has joined #nixos
<JonReed>
So, I want to install a script should be run with python2 the script has the shebang "#!/usr/bin/env python". What would be the easiest way to do it? Do I need to somehow replace the shebang for nix/store location of python2?
<gchristensen>
vdemeester: I think what I'd somewhat prefer is upgrading master to the latest, and backporting all the interim patches from master to 16.09
<JonReed>
Do I just wrap it and call "python2 ${myscript}"?
zagy has joined #nixos
<clever>
JonReed: use #!${pkgs.python2}/bin/python
<JonReed>
It seems to be something that there would be helper for
<clever>
JonReed: if it already has #!/usr/bin/python, you can use patchShebangs
<clever>
JonReed: which will search $PATH at build time (put python2 into buildInputs)
<JonReed>
clever: Yeah, but script getting downloaded.
<clever>
JonReed: make a nix package for it that will download and patch it
<JonReed>
clever: Ok. patchShebangs sounds like it
<magnetophon>
There seems to be a bug in the memtest of NixOS: when I run it (either from usb or from grub), it starts giving errors once it arrives at 53%, on 3 different PC,s with 5 different ram sticks. When I run memtest86+ 5.01 (same version as nixos) from an arch install usb, all is fine.
Wizek has quit [(Ping timeout: 256 seconds)]
ragge has joined #nixos
sdemos has joined #nixos
zagy has quit [(Quit: Leaving.)]
pi3r has quit [(Ping timeout: 258 seconds)]
gilligan_ has quit [(Quit: Leaving)]
glines has joined #nixos
mkoenig has quit [(Ping timeout: 248 seconds)]
mkoenig has joined #nixos
<vdemeester>
gchristensen: right, but on master the package is already up-to-date but a new (major/minor version kinda — jetbrains versionning)
<gchristensen>
ahh I see
<gchristensen>
got it
<LnL>
ikwildrpepper: niksnut: I think the macs are still down
rardiol has quit [(Ping timeout: 256 seconds)]
matthewbauer has joined #nixos
mkoenig has quit [(Read error: Connection reset by peer)]
mkoenig has joined #nixos
matthewbauer has quit [(Ping timeout: 260 seconds)]
<clever>
JonReed: ah, it does specialy handle env correctly
<clever>
JonReed: can you pastebin the resulting output after it built?
Sonarpulse-Work has joined #nixos
<JonReed>
clever: It's just the same script, unaltered
<JonReed>
clever: directory also does not work
<nh2_>
my nix-collect-garbage --help claims there's a --print-live option, but when I try that it says "unrecognised option". Does this option (still) exist?
<clever>
JonReed: and you ran it on $out/bin ?
<clever>
nh2_: its an option on nix-store, the man page is wrong
<JonReed>
clever: Yes
<JonReed>
clever: It did not echo anything though, so that's a bit worrisome.
<LnL>
nh2_: nix-store --gc --print-live
<LnL>
is this something that recently got into the manpage?
<clever>
JonReed: try it with runCommandCC maybe?
<nh2_>
clever LnL: thanks
Wizek_ has joined #nixos
Wizek has joined #nixos
<nh2_>
is there a way of running sandboxed builds without running nix as root?
<clever>
nh2_: run nix-daemon as root, and export NIX_REMOTE=daemon
greymalkin has joined #nixos
<clever>
then the daemon will do all the root tasks for your non-root users
<nh2_>
clever: sorry, I meant "without running any part of nix as root"
<nh2_>
e.g. when you don't have root
<clever>
dont think there is any way
<clever>
it needs root to do a lot of the sandbox stuff
<FRidh>
my kde application launcher hasn't updated the entry for google-chrome-stable. Any clue why it hasn't happened?
<clever>
nh2_: you can see the expected output in the txt file by the same name
glines has quit [(Ping timeout: 260 seconds)]
matthewbauer has joined #nixos
mkoenig has quit [(Read error: Connection reset by peer)]
<nh2_>
clever: cool, seems to work, I get such output
<clever>
nh2_: even without root?
amarsman has quit [(Quit: amarsman)]
rly has quit [(Ping timeout: 250 seconds)]
<clever>
nh2_: i have heard that chrome uses the same path to lock its threads down, but i didnt think it could do that much without root
Shell has joined #nixos
matthewbauer has quit [(Ping timeout: 260 seconds)]
rly has joined #nixos
mkoenig has joined #nixos
<nh2_>
clever: I'm trying on a machine where I have root where it seems to work, but without root would be better for me if I want reproducibility everywhere
<Shell>
hey, does anyone know if qt5.qtwebengine actually works? for me it seems to result in an empty derivation...
<nh2_>
clever: I think chrome can do it without root -- at least on my system, I never gave chromium root access at any time
<Shell>
same with qt57.qtwebengine
<clever>
nh2_: i generaly feel that sandboxes can be used to force impure stuff to break, as an alarm, but once you have make the expression pure, it will build the same with or without
<clever>
nh2_: though i have run across an impurity in snmpd, that was tricky to track down
<nh2_>
clever: I think it depends on what features are used for sandboxing though; I think that cgroups only work with root (or when systemd does that root-proxying for you), but I've head that seccomp can be used without root
<clever>
nh2_: it tries to detect the name of /etc/mtab at compile time, (it varies from distro to distro)
<clever>
nh2_: the nix sandboxes lack all variants
<clever>
so, it compiles itself to open "unknown" at runtime
zagy has joined #nixos
<gchristensen>
clever: that just isn't true, since pure and impure can have different behavior depending on what it can find
zagy has quit [(Client Quit)]
<nh2_>
clever: I have a build that fails with --pure but succeeds with sandboxes, it's a haskell based build that builds my Haskell code inside nix-shell; it fails even with pure because the files that are compiled do have state (the environment is pure, but the build itself isn't) and it "remembers" paths in /nix/store that it shouldn't be allowed to access - so my build succeeds only after nix-collect-garbage or with sandboxes
<clever>
nh2_: sounds like you need a "make clean" rule to delete the state
NEo4v8_ has joined #nixos
rly has quit [(Ping timeout: 252 seconds)]
<nh2_>
clever: that would work, but also destroy incremental compilation
<clever>
ah
__Sander__ has quit [(Quit: Konversation terminated!)]
bencevans has joined #nixos
newhoggy_ has joined #nixos
newhoggy2 has quit [(Ping timeout: 250 seconds)]
NEo4v8_ has quit [(Ping timeout: 260 seconds)]
<nh2_>
clever gchristensen: Can you explain me what methods nix uses for sandboxing currently, and which of them require root? Or is it just a historical artifact that it's needed?
<gchristensen>
fpletz: thinking about using `git-notes` for storing information about commits: 1. they travel with the repository, 2. you can sign / verify them, 3. they maintain the same history and cryptographic promise of regular git branches, 4. they show up in `git-log`. would you like to read up on `git-notes`, play around a bit with it, and let me know what you think?
<clever>
nh2_: ah
<gchristensen>
5. they can be amended without altering the commit, so we could add a security notice to a commit and then take it away, or add a list of CVEs and then add more later if we learn of more
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to release-16.09: https://git.io/v1LPZ
<NixOS_GitHub>
nixpkgs/release-16.09 4626857 Frederik Rietdijk: matplotlib: fix tk backend on python3
Guest78382 has quit [(Ping timeout: 245 seconds)]
<fpletz>
gchristensen: sounds interesting! unfortunately I've to wrap up some things at work this week to take the december off… so next week maybe :)
ambro718 has joined #nixos
jensens has quit [(Ping timeout: 250 seconds)]
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/v1LXe
<NixOS_GitHub>
nixpkgs/master b67ae8b Vladimír Čunát: llvmPackages*.lldb: fixup input by disabling libedit...
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to release-16.09: https://git.io/v1LXU
<NixOS_GitHub>
nixpkgs/release-16.09 539356f Vladimír Čunát: llvmPackages*.lldb: fixup input by disabling libedit...
[0x4A6F]1 has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/v1LXO
<NixOS_GitHub>
nixpkgs/master 5d80456 Franz Pletz: lxc: 2.0.4 -> 2.0.6...
rui2 has joined #nixos
amir has quit [(Ping timeout: 264 seconds)]
rui has quit [(Ping timeout: 250 seconds)]
iyzsong has quit [(Quit: bye.)]
FRidh has quit [(Quit: Konversation terminated!)]
redmq has joined #nixos
dgn has quit [(Ping timeout: 256 seconds)]
<gilligan_>
hi fpletz
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to release-16.09: https://git.io/v1L1q
<NixOS_GitHub>
nixpkgs/release-16.09 5f79536 Franz Pletz: lxc: 2.0.4 -> 2.0.6...
<kmicu>
taktoa: it’s not ‘scheme-full’ problem ‘nix-shell --pure -p '(texlive.combine {inherit (texlive) scheme-full amsmath; pkgFilter = pkg: pkg.tlType == "run" || pkg.tlType == "bin" || pkg.pname == "amsmath";})' --command 'texdoc amsmath'’ also works ( ͡~ ͜ʖ ͡°)
glines has joined #nixos
<fpletz>
gilligan_: moin :)
goibhniu has quit [(Ping timeout: 268 seconds)]
<gilligan_>
hm.. { pkgs ? import <nixpkgs> {}, configFoo ? '../configsFoo', configBar ? '../configBar' }: pkgs.stdenv.mkDerivation { ... } // if configsFoo and configBar are *directories* how will this work, will it work at all ? it seems like it will rebuild each time I run `nix-build` now so maybe this really doesn't work ..
amarsman has quit [(Ping timeout: 246 seconds)]
kampfschlaefer has joined #nixos
<gilligan_>
i mean, what I want is that this derivation should depend on all files in the respective directory. The `src` in my derivation is actually a jenkins war file but I am using those directories during my build phase
takle has quit [(Remote host closed the connection)]
<Biappi>
do you know if there is a nix syntax-file for vim?
<LnL>
Biappi: there's also some basic support built in, but it's not as good
<Biappi>
oh, i don't run the nix vim version, i haven't noticed
pstn_ has joined #nixos
zagy has joined #nixos
<savanni>
Hey, everyone. I wrote an article detailing how to build the devops nix-shell that I was using at work. Includes stuff about making derivations of downloadable executables. Beginner-level, but wasn't easy to figure out and so possibly helpful: http://savanni.luminescent-dreams.com/page/nix-developer-environments
magnetophon has quit [(Ping timeout: 240 seconds)]
<Leo`>
The manual says “Currently, NixOS containers are not perfectly isolated from the host system. This means that a user with root access to the container can do things that affect the host. So you should not give container root access to untrusted users.”
<Leo`>
In which ways can the container affect the host system?
Itkovian has joined #nixos
gilligan_ has quit [(Quit: This computer has gone to sleep)]
Itkovian has quit [(Client Quit)]
Itkovian has joined #nixos
<Biappi>
savanni: many thanks for taking the time to write it out. i'm doing something similar, will take a look.
<savanni>
Glad to help, @Biappi! I've got one for Haskell environments coming up next.
<savanni>
Except it looks like the documentation in the manual may already be complete, so I'm only going to write it if I find something that's not covered in the manual.
<Biappi>
"The process is non-obvious until it is done." heh, i can relate =D
<savanni>
Heh. So many things in nix and nixos seem that way.
<savanni>
Though I was really pleased to discover last night how easy it was for me to configure nginx to proxy to one of my app.s
glines has quit [(Ping timeout: 248 seconds)]
<savanni>
Easier than writing an actual nginx configuration file.
glines has joined #nixos
<orbekk>
Finding a nixos service that does exactly what I want is one of the best feelings ever.
Shou has quit [(Ping timeout: 252 seconds)]
<Biappi>
not complaining. i think i'm using this in a corner case, yet it's pretty clear what i should do. sometimes discoverability is, yeah, frustrating like orbekk says. however any headscratch is definitely worth the pain, and from what i see the community *is* fixing those problems so, yay!
<savanni>
I had a question about the nginx thing, though. I didn't find any instructions on nginx. What I found were instructions on getting gitlab to work, and that required an nginx config. Where would dedicated nginx confguration instructions belong?
Shados has quit [(Remote host closed the connection)]
Itkovian_ has joined #nixos
Itkovian has quit [(Ping timeout: 260 seconds)]
<greymalkin>
Is there a way to use `emacsWithPackages` as part of config.nix? When I do, it's saying there is no derivation matching the name I gave it.
<greymalkin>
But every time, the result is `selector 'emacsForGreymalkin' matches no derivations
<greymalkin>
I've tried rewriting the name I'm giving it several times, just to make sure there was no typo and I just wasn't creating it.
<kmicu>
What’s the command? Maybe you need to use ‘nixos.emacsForGreymalkin’.
magnetophon has joined #nixos
redmq has joined #nixos
<steveeJ>
I'm currently wondering if I can use the hardware encryption feature of a capable SSD with nixos. I'm also wondering if I even need OS support here, or if the drive runtime decryption can be handled by the BIOS
zagy has quit [(Quit: Leaving.)]
<greymalkin>
No love. `selector 'nixos.emacsForGreymalkin' matches no derivations`
zagy has joined #nixos
zagy has quit [(Client Quit)]
<greymalkin>
I'm defining it in ~/.nixpkgs/config.nix; btw.
<greymalkin>
This is a non-nixos installion (I've been calling it Arch/Nix)
<kmicu>
greymalkin: if you could share relevant parts of you ~/.nixpkgs/config.nix it would be easier to help. Using ‘emacsWithPackages’ is as simple as ‘nix-shell --pure -p "emacsWithPackages (p: [p.ivy])"’.
<kmicu>
(If ‘emacsForGreymalkin’ is not available, then it must by something in config.nix and nix-env/nix-shell invocation.)
jacob_ has joined #nixos
jacob_ is now known as Guest6781
<greymalkin>
kmicu: P.S. running `nix-shell -p emacsForGreymalkin` is giving me a valid shell with the right packages, but nix-env -i still tells me there's no derivation matching.
<greymalkin>
ugh... "Wide character in die at ..."
<greymalkin>
Hmm.. collision.
<greymalkin>
kmicu: That did it.
<greymalkin>
Thanks!
<kmicu>
You’re welcome.
<qknight>
is there something in nixos which i can use to create /var/lib/foo without having a 'foo' service also?
takle has joined #nixos
<steveeJ>
qknight: you could use systemd.tmpfiles.rules
<greymalkin>
That would explain why setting emacs= self.emacsWithPackages... seemed to work, but didn't, too.
newhoggy_ has quit [(Ping timeout: 240 seconds)]
pi3r has quit [(Ping timeout: 260 seconds)]
<qknight>
steveeJ: cool!
redmq has quit [(Ping timeout: 256 seconds)]
redmq has joined #nixos
Wizek__ has quit [(Ping timeout: 256 seconds)]
Wizek_ has quit [(Ping timeout: 258 seconds)]
seku has joined #nixos
<qknight>
steveeJ: using this requires a reboot which is probably a problem
<NixOS_GitHub>
[nixpkgs] grahamc pushed 1 new commit to master: https://git.io/v1Lp5
<NixOS_GitHub>
nixpkgs/master 076e3ae Graham Christensen: gitRepo: 1.22 -> 1.23
<gchristensen>
<3 repo
<steveeJ>
qknight: it would be enough to restart the tmpfile service, woulnd't it?
<steveeJ>
qknight: I assume it's systemd-tmpfiles-setup.service
asymmetric has quit [(Ping timeout: 260 seconds)]
<steveeJ>
and probably needs "switch" as nixos-rebuild argument
pi3r has joined #nixos
ugjka has joined #nixos
cfricke has joined #nixos
mkoenig has quit [(Read error: Connection reset by peer)]
mkoenig has joined #nixos
civodul has joined #nixos
zagy has joined #nixos
Itkovian_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
redmq has quit [(Ping timeout: 246 seconds)]
newhoggy2 has joined #nixos
zagy has quit [(Client Quit)]
earldouglas has left #nixos []
<NixOS_GitHub>
[nixpkgs] rbvermaa pushed 1 new commit to release-16.09: https://git.io/v1te5
<NixOS_GitHub>
nixpkgs/release-16.09 f27c78f Rob Vermaas: Add us-east-2 region to AMI creation script
newhoggy2 has quit [(Read error: No route to host)]
newhoggy2 has joined #nixos
<qknight>
steveeJ: nixos-rebuild switch is what i call but systemd.tmpfiles.rules requires a reboot
Guest6781 has quit [(Quit: leaving)]
<qknight>
steveeJ: the tmpfile service said this: systemctl restart systemd-tmpfiles-setup
<qknight>
Failed to restart systemd-tmpfiles-setup.service: Operation refused, unit systemd-tmpfiles-setup.service may be requested by dependency only.
<steveeJ>
qknight: this surpasses my systemd knowledge, sorry
<steveeJ>
qknight: you could have a look at `systemctl cat systemd-tmpfiles-setup.service` and run the execute line
goibhniu has joined #nixos
<qknight>
steveeJ: ok, i'll look into that
<qknight>
thanks a lot!
mkoenig has quit [(Ping timeout: 260 seconds)]
mkoenig has joined #nixos
zagy has joined #nixos
mkoenig has quit [(Read error: Connection reset by peer)]
glines has joined #nixos
JonReed has joined #nixos
newhoggy2 has quit [(Remote host closed the connection)]
m0rphism has quit [(Quit: WeeChat 1.4)]
mkoenig has joined #nixos
zagy has quit [(Quit: Leaving.)]
mkoenig has quit [(Ping timeout: 260 seconds)]
z_ has joined #nixos
z_ is now known as Guest22621
z__ has joined #nixos
mkoenig has joined #nixos
mguentner has joined #nixos
rly has quit [(Ping timeout: 240 seconds)]
zsoc has quit [(Ping timeout: 265 seconds)]
Guest22621 has quit [(Ping timeout: 258 seconds)]
Itkovian has joined #nixos
redmq has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/v1tIc
<NixOS_GitHub>
nixpkgs/staging 2587611 Vladimír Čunát: mesa: maintenance 13.0.1 -> 13.0.2
seanz has quit [(Quit: Leaving.)]
alx741_ has joined #nixos
alx741_ has quit [(Client Quit)]
alx741_ has joined #nixos
matthewbauer has joined #nixos
alx741 has quit [(Ping timeout: 256 seconds)]
alx741_ has quit [(Client Quit)]
AllanEspinosa has joined #nixos
RchrdB has quit [(Ping timeout: 248 seconds)]
<NixOS_GitHub>
[nixpkgs] pSub pushed 1 new commit to release-16.09: https://git.io/v1tLR
<NixOS_GitHub>
nixpkgs/release-16.09 b833b10 Pascal Wittmann: haskellPackages.ReadArgs: jailbreak to fix build...
z__ is now known as zsoc
zsoc has quit [(Changing host)]
zsoc has joined #nixos
alx741 has joined #nixos
newhoggy2 has joined #nixos
mkoenig has quit [(Ping timeout: 260 seconds)]
griff_ has joined #nixos
glines has quit [(Ping timeout: 248 seconds)]
<steveeJ>
why is boot.loader.grub.device needed in EFI mode?
<slack1256>
Can anybody upgrade pass X11 and a rtkit.service file without the correct permisions?
takle has joined #nixos
hiratara has joined #nixos
fadenb has quit [(Client Quit)]
fadenb has joined #nixos
ambro718 has quit [(Ping timeout: 260 seconds)]
herzmeister has joined #nixos
<gchristensen>
has anyone considered periodically merging the stable release in to master?
newhoggy2 has joined #nixos
redmq has joined #nixos
slack1256 has quit [(Remote host closed the connection)]
<JonReed>
Hm, let's say I have a dependency "python27Packages.readline" and I need to call a script with python that has this module. What do I need to "substituteInPlace"? Currently, I have "buildInputs = [python27Packages.readline python27]" and "substituteInPlace --replace "/usr/bin/env python" "${pythonPackages.python}/bin/python}". However, it can't fi
<JonReed>
nd readline module when the package is called, the module is only present during the build.
<gchristensen>
problem solved until it grows unwieldy
<garbas>
if this script generates something that only matching expression can "read" then it only makes sense to put it in the same place
<gchristensen>
I'm coming at this from the perspective of what is the quickest way to make progress on the issue, since I do a lot of package updates and some of them are quite annoying.
<garbas>
have you checked the code i linked to?
<gchristensen>
yeah, I read your post
<gchristensen>
it is very interesting and I like
<gchristensen>
it is very interesting and I like it
<garbas>
whole implementation is "3 lines"
ebzzry has joined #nixos
<garbas>
it is just a convention how to find update scripts. it helps a lot.
<gchristensen>
aye
<gchristensen>
fair enough
glines has quit [(Ping timeout: 260 seconds)]
<garbas>
if you want i can move my update scripts to nixpkgs
matthewbauer has quit [(Ping timeout: 240 seconds)]
lverns has joined #nixos
danharaj has quit [(Quit: Leaving.)]
<gchristensen>
that would be fine with me
<gchristensen>
my growing understanding is nixpkgs is very flexible to improvement as long as someone is doing it
<JonReed>
To answer my own question for the sake of the log, you need to also wrapProgram --set PYTHONPATH "$PYTHONPATH", so that the python script sees the right modules while it executes.
hiratara has joined #nixos
Bolix has joined #nixos
<Bolix>
Hello
redmq has joined #nixos
yegods has joined #nixos
<Bolix>
I'm trying to play with the torbrowser.nix expression to figure out why in some websites <video> is not played.
<Bolix>
In the meanwhile I'm trying to "nix-build .../torbrowser.nix" but I'm getting the stdenv "cannot autocall function..." error
<Bolix>
I checked the wiki and faq and found a reference to --arg and --argstr
matthewbauer has joined #nixos
<Bolix>
but I don't actually know which arguments I need to pass/define
<Bolix>
Is there any easy way to know what needs to be defined and which options are available?
yegods has quit [(Read error: Connection reset by peer)]
yegods has joined #nixos
matthewbauer has quit [(Remote host closed the connection)]
matthewbauer has joined #nixos
mkoenig has joined #nixos
<savanni>
@Bolix I'd need to look at your torbrowser.nix, but the "autocall function" error usually happens because the beginning of torbrowser.nix declares the file to be a function. At which point you can't actually call nix-build directly on it.
mkoenig has quit [(Read error: Connection reset by peer)]
<savanni>
I have some other files that fall into the same category, and examples of how to call them.
<gchristensen>
!m savanni
<[0__0]>
You're doing good work, savanni!
<savanni>
*blink*
<savanni>
Thanks, gchristensen
<savanni>
@Bolix Short answer, though, is that if it's packages that you need to have defined, you can get a hint by looking at the first couple lines of torbrowser.nix.
<savanni>
And my example is in https://github.com/savannidgerinel/mead . Take a look at mead.nix, then look at default.nix, which calls it when I'm building the package.
mkoenig has joined #nixos
<Bolix>
savanni: it currently is identical to the torbrowser included in nixpkgs but I added openh264 to the list of dependencies
matthewbauer has quit [(Ping timeout: 244 seconds)]
<Bolix>
to see if it would help with the mp4 support
<kmicu>
Ugh, tor browser is a binary, not a source build :/ It’s need a similar wrapper as with Firefox to make GStreamer/FFmpeg available and play with it all videos on http://www.quirksmode.org/html5/tests/video.html
<savanni>
I can't speak at all to that part. I'm just going to take a look at the .nix file to see if what I know is relevant to the autocall problem.
<Bolix>
kmicu: well... the thing is on my non-nixos system I can play video, only on nixos I can't. So something else is affecting the package. I don't know what.
<Bolix>
and it seems not all video formats are affected. youtube plays fine.
<kmicu>
Are you able to play it on NixOS with a regular Firefofx?
<savanni>
Okay, it is an autocall problem. You probably need a nixos file that just defines all of the dependencies that are in the first three lines of torbrowser.nix. and I think they're all in nixpkgs or nixpkgs.stdenv.
<savanni>
However... I don't know the syntax well enough to tell you how to import them all.
<Bolix>
kmicu: seems like I was heading the right direction. firefox plays h264 torbrowser doesn't
<Bolix>
in fact this is the only format from that page that doesn't play
<savanni>
But, once you have them imported, you would then `callPackage torbrowser.nix {};`. Or maybe `import torbrowser.nix {};`.
<savanni>
I'm... not actually sure.
<Bolix>
savanni: thanks, I'll give that a try
<kmicu>
Yes, and Firefox plays it, b/c it’s properly wrapped and can find GStreamer/FFmpeg.
<savanni>
@Bolix shell.nix in the link that I shared will help. default.nix is actually a bit too Haskell specific.
<kmicu>
‘nix-build default.nix -A torbrowser’
<Bolix>
kmicu: that gives "error: cannot auto-call a function that has an argument without a default value (‘stdenv’)"
<JonReed>
have you tried: nix-repl "<nixpkgs>" and then in repl ":b ./default.nix".
<kmicu>
Did you execute it in the top level of Nixpkgs?
Lowl3v3l has joined #nixos
<JonReed>
then in repl ":b callPackage ./default.nix" *
<JonReed>
then in repl ":b callPackage ./default.nix {}" **
<JonReed>
:D
<Bolix>
I'm not sure what that means, I have the default.nix file in a custom folder and I'm chdir'ed to that folder
<JonReed>
nix-repl should work from any folder
athan has quit [(Remote host closed the connection)]
<Bolix>
JonReed: don't have nix-repl
<kmicu>
If <nixpkgs> does not point to his/her Nixpkgs repo it will not help.
<JonReed>
Bolix: nix-env -iA nixos.nix-relp
<JonReed>
Bolix: Repl is the easiest way to navigate around nix
<Bolix>
I'm still new to this. Lots to learn
<Bolix>
JonReed: "error: expression does not evaluation to a derivation, so I can't build "
Itkovian has joined #nixos
<Bolix>
seems like there's a typo in that message too :)
<JonReed>
Bolix: It allows to evaluate and see expressions. Also tab completion is very useful to explore there like "nixpkgs.<TAB>" will show all attributes
asymmetric has quit [(Ping timeout: 248 seconds)]
<JonReed>
Bolix: which file you're trying to evaluate
<Bolix>
JonReed: nevermind, used the wrong instruction
<Bolix>
seems to be working now, waiting for it to finish
derjohn_mob has joined #nixos
<JonReed>
Bolix: If you want to then add the result to the environment you can do "nix-env -iA /nix/store/blabla". The store path will be after "this derivation produced the following output:"
<kmicu>
Oh no! gchristensen was a victim of the nirvana fallacy :/ gchristensen, please, try to ignore false dichotomies! You are doing amazing job and improved Nix world a lot ʕノ•ᴥ•ʔノ ︵ ♥❤❣💞
<gchristensen>
kmicu: I simultaneously tried to encourage (though I'm not sure it came off that way) garbas to just move forward with his project in nixpkgs
NEo4v8_ has joined #nixos
matthewbauer has quit [(Ping timeout: 246 seconds)]
<NixOS_GitHub>
[nixpkgs] TikhonJelvis opened pull request #20779: hadoop-2.2.0: Added a check to not run patchelf on MacOS. (master...hadoop-darwin) https://git.io/v1t2P
<gchristensen>
ToxicFrog: "The nirvana fallacy is a name given to the informal fallacy of comparing actual things with unrealistic, idealized alternatives.[1] It can also refer to the tendency to assume that there is a perfect solution to a particular problem. A closely related concept is the perfect solution fallacy.By creating a false dichotomy that presents one option which is obviously advantageous—while at the same
<gchristensen>
time being completely implausible—a person using the nirvana fallacy can attack any opposing idea because it is imperfect. Under this fallacy, the choice is not between real world solutions; it is, rather, a choice between one realistic achievable possibility and another unrealistic solution that could in some way be "better"."
<ToxicFrog>
Aah. A type of "making the perfect the enemy of the good".