<user3485>
super close to breaking out of my nixos vm (and onto my laptop!) I have 2-ish things to figure out: it appears having a single partition, /dev/sda1, and using luks... I need to enter my password twice because of how /boot works. Is there a way to keep everything on 1 partition and encrypted... but only enter it once?
slack1256 has joined #nixos
<qknight>
user3485: you can store the key for the second partition on the first and chainload it
Wizek_ has quit [(Ping timeout: 276 seconds)]
<user3485>
qknight: I'm pretty new to this... is there a post about that somewhere? also security risks I should be aware of?
<user3485>
I saw a couple of posts (maybe old irc logs) about nixos secret options
<qknight>
user3485: you encrypted your /system and your /home partition, right?
<user3485>
and about initrd
<qknight>
user3485: if in doubt, review the code
<user3485>
I'll have to do it again to get the order right... but I think I: made a partition table, luks-ified it (formatted /dev/sda1 with cryptsetup), then set a few configuration.nix options
<user3485>
so it _all_ (including /boot, /system, /whatever) should be in /dev/sda1
<user3485>
and encrypted
Rotaerk has joined #nixos
ison111 has joined #nixos
radvendii has joined #nixos
acowley_away is now known as acowley
adeohluwa has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] GRBurst opened pull request #27345: Xcwd: init at 2016-09-30, add me as maintainer (master...xcwd-init) https://git.io/vQ9L2
NixOS_GitHub has left #nixos []
danl1240 has quit [(Quit: My iMac has gone to sleep. ZZZzzz…)]
Neo-- has quit [(Remote host closed the connection)]
radvendii has quit [(Ping timeout: 276 seconds)]
LnL has joined #nixos
zeus_ has quit [(Remote host closed the connection)]
zeus_ has joined #nixos
newhoggy has joined #nixos
zeus_ has quit [(Ping timeout: 246 seconds)]
vaibhavsagar has joined #nixos
erlandsona has joined #nixos
<erlandsona>
Hey all, so I've got nix-unstable as my nix-channel with nixos but it seems like nix-env is behind on versions? I'm trying to install bitwig-studio-2.0 which I had installed previously with environment.systemPackages. Does nix-env use a different channel / package set from nixos?
hellrazor has joined #nixos
vaibhavsagar has quit [(Ping timeout: 255 seconds)]
Wizek_ has joined #nixos
<pie_>
anyone know how to fix this cmake configure error?: CMake Error at /nix/store/d5njnrw4kr980gldc98q80ldg0y249am-cmake-cursesUI-qt4UI-3.7.2/share/cmake-3.7/Modules/FindX11.cmake:429 (message):
<pie_>
Could not find X11
phinxy has quit [(Read error: Connection reset by peer)]
hellrazo1 has quit [(Ping timeout: 276 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] cstrahan opened pull request #27347: Osquery new (master...osquery-new) https://git.io/vQ9mn
NixOS_GitHub has left #nixos []
erlandsona has quit [(Remote host closed the connection)]
<pie_>
well nix-shell -p cmake xorg.libX11 worked so...
<pie_>
im doing stuff wrong in my cannibalized default.nix
<cstrahan>
If anyone is interested in using osquery, check out my PR: https://git.io/vQ9mn
vaibhavsagar has joined #nixos
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
lambdael has quit [(Quit: WeeChat 1.7.1)]
erlandsona has joined #nixos
mattzer has joined #nixos
<mattzer>
I'm trying to deploy nixos to google compute engine. I see there are AMIs for amazon on the website, but no GCE images. Still I see that there are some files related to GCE in the nixos repository. How do I get or build an image?
<pie_>
ok now im stuck on fatal error: GL/glu.h: No such file or directory
<erlandsona>
Anyone know if nixos & nix-env get packages from different nix-channels or environments? If so how do I sync them up or what's the proper way to manage them separately? I'm trying to install bitwig-studio-2.0 but nix-env is only installing bitwig-studio-1.3.12?
ison111 has quit [(Quit: WeeChat 1.7.1)]
ison111 has joined #nixos
<pie_>
huh neverming...what the heck it should be using the local repo version
<pie_>
or nto
zeus_ has joined #nixos
<cmcdragonkai>
erlandsona: Nix be default comes with a nixos or nixpkgs channel
<cmcdragonkai>
that's where stuff will be downloaded from
lambdamu_ has joined #nixos
<cmcdragonkai>
you can change to a different channel and hope your desired version is there
<cmcdragonkai>
or skip channels, and use a local repository
<cmcdragonkai>
or write your own nix expression
lambdamu has quit [(Ping timeout: 268 seconds)]
<erlandsona>
cmcdragonkai: hey thanks, so I realized there's a different nix-channel for sudo vs my regular user... that said, nix-channel --add unstable for my user env didn't fix the issue? I know the version is part of master because I've installed it before. But since moving the declaration of the package from environment.systemPackages to packageOverrides in .config/nixpkgs/config.nix it pulled in an older version?
<pie_>
am i doing it wrong? im using nix-shell -p *stuff* and the app im trying to build says Bonzomatic/external/glew/GL/glew.h:1202:24: fatal error: GL/glu.h: No such file or directory
<pie_>
this is my commandline right now due to failing to find the right package nix-shell -p cmake stdenv glfw xorg.libX11 xorg.libXrandr xorg.libXinerama xorg.libXcursor SDL2 x11 mesa_glu mesa_noglu mesa glew xorg.libXext
user3485 has quit [(Ping timeout: 260 seconds)]
slack1256 has quit [(Remote host closed the connection)]
<mattzer>
anybody know about GCE images?
<erlandsona>
cmcdragonkai: Thank you for your post. Right at the end it mentioned having to run nix-channel --update after --add'ing a channel and also nix-env -irA channel_name.expression. How does '<nixpkgs>' tie into the whole channel thing?
<pie_>
ok i managed to get default.nix working
<cmcdragonkai>
the post also explains what <nixpkgs> is near the end
<cmcdragonkai>
it's an environment variable inside the nix language
<cmcdragonkai>
but how it works is also explained in the post
darlan has joined #nixos
<erlandsona>
Haha I felt dumb soon as I kept scrolling! Thanks so much for that post cmcdragonkai!
s33se has joined #nixos
darlan has quit [(Client Quit)]
s33se_ has quit [(Ping timeout: 240 seconds)]
mbrgm has quit [(Ping timeout: 240 seconds)]
mbrgm has joined #nixos
erlandsona has left #nixos []
acowley is now known as acowley_away
romildo has joined #nixos
<Infinisil>
cmcdragonkai: Is matrix.ai your blogsite? Just to give some feedback, I find it really hard to read the font with such little contrast, it's way too bright imo
<cmcdragonkai>
Infinisil: Thanks for the feedback, it's on the list of stuff todo
eacameron has quit [(Remote host closed the connection)]
thc202 has quit [(Ping timeout: 276 seconds)]
zeus_ has quit [(Remote host closed the connection)]
<mpcsh>
hey nixers, got a quick question. I'm trying to use keybase on nixos, which involves installing the keybase, keybase-gui, and kbfs packages. I have them installed, and I have services.{keybase,kbfs}.enable = true set in my configuration.nix. but after sudo nixos-switch rebuild and even a reboot, neither service starts! can anyone help me debug?
eacameron has quit [(Remote host closed the connection)]
spinus has quit [(Ping timeout: 248 seconds)]
zeus_ has quit [(Ping timeout: 276 seconds)]
<disasm>
mpcsh: do systemctl status keybase.service or journalctl -f give any guidance?
<mpcsh>
disasm: nothing
<mpcsh>
disasm: ah ha, they're apparently run as user services, and when I run systemctl status --user keybase it just says inactive (dead)
<mpcsh>
if I run systemctl --user start keybase, it starts the keybase service. but systemctl --user start kbfs fails with "Job kbfs.service/start failed with result 'dependency'"
<disasm>
mpcsh: have you done keybase login yet?
<mpcsh>
disasm: yeah
<disasm>
mpcsh: it started right up for me... but I'm also on unstable.
<tsmeets>
Hello, I want to package the android-studio preview branch (canary 6). Only am i not sure under what attrubute to put that package.
Neo-- has quit [(Ping timeout: 240 seconds)]
<tsmeets>
I could just name it 'android-studio-preview', or is 'android-studio.preview' better?
<tsmeets>
only would that conflict with existing installations using 'android-studio'
<srhb>
tsmeets: chromium packages like chromiumBeta, chromiumDev, chromium
<srhb>
tsmeets: firefox like firefozx-beta, firefox
<srhb>
I tend to prefer the dash version
<niksnut>
the nixos-unstable channel update is barfing on:
<niksnut>
Jul 13 08:31:26 webserver update-nixos-unstable-start[7036]: error: path ‘/nix/store/042yklr7p47rqcq56yr5s6qh0xslhlbp-llvm-4.0.1-man’ is not valid
mal_ has joined #nixos
<niksnut>
Jul 13 08:31:26 webserver update-nixos-unstable-start[7036]: Died at /nix/store/rliwwbr2nnszan9nxp76lmx7js3kriq8-nixos-channel-scripts/bin/.mirror-nixos-branch-wrapped line 159.
<tsmeets>
srhb: ok, thanks
<srhb>
niksnut: How do you tell?
<mal_>
hi, running nixos 17.03 i get error: cannot download google-chrome-stable_57.0.2987.133-1_amd64.deb from any mirror. How can i update this version? Only by changing the channel to unstable?
<niksnut>
it makes hydra think the derivation has a "man" output, but it doesn't
arianvp2 has quit [(Quit: arianvp2)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] adisbladis opened pull request #27352: vulnix: use zope.interface from pythonPackages (master...vulnix-py36) https://git.io/vQ9K6
NixOS_GitHub has left #nixos []
hyphon81 has joined #nixos
newhoggy has joined #nixos
newhoggy has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
<LnL>
oh really?
spinus has quit [(Ping timeout: 276 seconds)]
<LnL>
I specifically didn't build it locally to see if hydra didn't get confused
<domenkozar>
:D
<domenkozar>
so this change overcomes the check if man output exists?
arianvp2 has joined #nixos
newhoggy has quit [(Ping timeout: 255 seconds)]
eacameron has joined #nixos
<LnL>
its should work mostly the same way without adding "man" to the outputs if it's not enabled
<LnL>
maybe it's something specific to the store_uri option, don't think I have that enabled
eacameron has quit [(Ping timeout: 255 seconds)]
<joepie91>
my nixops configuration is starting to look nicer and nicer...
nschoe has quit [(Quit: Program. Terminated.)]
tsmeets has quit [(Quit: leaving)]
mudri has joined #nixos
tsmeets has joined #nixos
<gchristensen>
domenkozar: I think it is ready to merge, IMO :)
<domenkozar>
niksnut: can we then do 1.11.12? :)
<domenkozar>
!m gchristensen
<[0__0]>
You're doing good work, gchristensen!
<gchristensen>
!m domenkozar
<[0__0]>
You're doing good work, domenkozar!
arianvp2 has quit [(Read error: Connection reset by peer)]
arianvp2 has joined #nixos
<gchristensen>
I think my PR is 11 months in the making, as 11mo ago I groaned (privately) that the mac installer didn't setup the daemon :P
IITaudio_ has quit [(Remote host closed the connection)]
<domenkozar>
well I did nothing in this case :/
<gchristensen>
don't sell yourself shortt
IITaudio_ has joined #nixos
<domenkozar>
gchristensen: so the plan is to release 1.11.12 first then merge your PR?
<gchristensen>
no, merge then release
<gchristensen>
fixing libsodium removed the need to be a 2-step release
<chominist[m]>
Where are the x11 definitions in configuration files?
<chominist[m]>
E.g. xfree86
<gchristensen>
domenkozar: hmmm maybe I should build an up to date installer for you
<domenkozar>
niksnut can prepare the release but not bump the nixos.org/nix/install script
<domenkozar>
and then we can test it
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] TomSmeets opened pull request #27354: android-studio-preview: init at 3.0.0.5 canary 6 (master...androidstudio-3.0) https://git.io/vQ91m
NixOS_GitHub has left #nixos []
<gchristensen>
domenkozar: I've got a new build on its way, it is tricky with one mac laptop available for oss work
<gchristensen>
my build-test loop is 1. instsall nix 2. build the new nix. 3. uninstall nix 4. install my new nix 5. find a problem and uninstall nix, goto 1
<joepie91>
I don't know why that isn't a thing yet
erictapen has quit [(Ping timeout: 240 seconds)]
<joepie91>
anyway, I'm finally starting to feel comfortable enough with Nix as a language to do major code refactoring without testing inbetween and without losing track of what goes where
<joepie91>
so,
<joepie91>
so, ]o/ *
<joepie91>
....
<joepie91>
so, \o/ *
<joepie91>
today is not my best keyboarding day
<joepie91>
turns out, no better way to learn a language than to try and write a parser for it? :P
tmaekawa has joined #nixos
arianvp2 has quit [(Ping timeout: 260 seconds)]
arianvp2 has joined #nixos
<pstn>
joepie91: Can confirm. I only understood C after writing a parser for it in University.
mudri has quit [(Ping timeout: 260 seconds)]
arianvp2 has quit [(Ping timeout: 240 seconds)]
<joepie91>
I guess this approach becomes rapidly unscalable once you start looking at the more complex languages
<joepie91>
(looking at you, Python, C++, ...)
<gchristensen>
you'd be mental to do it for C++
<joepie91>
gchristensen: or just very, very bored
vaibhavsagar has quit [(Ping timeout: 268 seconds)]
justan0theruser has joined #nixos
justanotheruser has quit [(Ping timeout: 248 seconds)]
arjen-jonathan has quit [(Ping timeout: 268 seconds)]
mudri has joined #nixos
chakerbenhamed has joined #nixos
seanparsons has quit [(Read error: Connection reset by peer)]
<gchristensen>
domenkozar: have you tried that one?
seanparsons has joined #nixos
<pstn>
Indeed. Writing a C parser is pretty fun though and not to much work if you don't want to catch every syntactic sugar but just get a decent undersanding of how the language works.
<pstn>
(I wrote C and syntactic sugar in the same sentence)
joelpet has quit [(Remote host closed the connection)]
erictapen has joined #nixos
bkchr has quit [(Remote host closed the connection)]
arianvp2 has quit [(Read error: Connection reset by peer)]
bkchr has joined #nixos
arianvp2 has joined #nixos
<LnL>
niksnut: forcing a build of llvm-manpages/clang-manpages might help
<LnL>
I didn't add it toplevel because only llvmPackages_4 has manpages and that wasn't the default on linux yet
<niksnut>
yes, but that's a risky thing to rely on
<LnL>
I just mean to get a channel update out if it's important
<gchristensen>
is the channel nixpkgs-unstable? nixos-unstable seems ok from here
arjen-jonathan has joined #nixos
<gchristensen>
oh, no, it breaks after it pushes to the github channels repo
<gchristensen>
niksnut: I think we should be good to merge the installer change & release the next 1.11 when you're available *poorly contains excitement*
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra closed pull request #1453: Multi user darwin installer (1.11-maintenance...multi-user-darwin) https://git.io/vQiRS
<NixOS_GitHub>
nixpkgs/master 3637119 Joachim F: Merge pull request #27315 from taku0/flashplayer-26.0.0.137...
NixOS_GitHub has left #nixos []
<mal_>
hi, running nixos 17.03 i get 'error: cannot download google-chrome-stable_57.0.2987.133-1_amd64.deb from any mirror'. How can i update this version? Only by changing the channel to unstable?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] domenkozar pushed 1 new commit to 1.11-maintenance: https://git.io/vQ9bB
<NixOS_GitHub>
nix/1.11-maintenance 44f51a5 Domen Kožar: Fix rpm build
<tilpner>
mal_ - Don't worry about it saying chromium, the google-chrome part apparently reuses this file to get the versions
<tilpner>
mal_ - Your channel did not update correctly. You don't need nixos-unstable, you just need an up-to-date nixos-17.03
<mal_>
tilpner: how? :)
<tilpner>
mal_ - I don't really know. As I said, I don't use channels anymore. I'll just tell you to repeat the same steps you probably already took. What does $ nix-channel --list (as root) say?
<mal_>
nothing
CrazedProgrammer has joined #nixos
<gchristensen>
domenkozar: nice!
<tilpner>
mal_ - What's the content of /root/.nix-channels?
<tilpner>
(Can someone who uses channels please help out?)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vQ9Ak
<NixOS_GitHub>
nixpkgs/master 6da2229 Tim Steinbach: linux: 4.9.36 -> 4.9.37
ThatDocsLady has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra pushed 1 new commit to 1.11-maintenance: https://git.io/vQHeQ
<NixOS_GitHub>
nix/1.11-maintenance 04e071a Eelco Dolstra: Bump version
NixOS_GitHub has left #nixos []
earldouglas has joined #nixos
erictapen has joined #nixos
<copumpkin>
niksnut: can we try to squeeze the 10.13 support into the 1.11.12 release?
newhoggy has joined #nixos
<copumpkin>
or did you want to get 1.11.12 out quickly?
<niksnut>
copumpkin: what's involved in that?
<domenkozar>
bumping nixpkgs I guess
<copumpkin>
I have an open PR against nixpkgs that can probably be merged
<copumpkin>
and then nix would need to be built against that
<domenkozar>
but nix builds again release-17.03
<copumpkin>
yeah I know
<niksnut>
is it safe for cherry-picking to 17.03?
<domenkozar>
against*
<copumpkin>
it's not a huge deal, but it'll get annoying once 10.13 is released
chakerbenhamed has quit [(Ping timeout: 260 seconds)]
<copumpkin>
eh, it's a mass rebuild for darwin. I guess there's no real spec on what nixos releases mean for darwin :)
<copumpkin>
but yeah, all of nixpkgs will break on 10.13 without it
<domenkozar>
not yet :)
<copumpkin>
so if we want 17.03 to work on darwin, we should probably backport
<domenkozar>
we'll start using 17.03 in a week for darwin
<gchristensen>
speaking from my extremely biased position, what if we held it for a 1.11.13? that way we can get the fetchTarball fixes out, the daemon support out, and give a bit more time to sort out the nixpkgs changes?
<copumpkin>
also, 10.13 is coming out fairly soon
<copumpkin>
yeah I'm not in a rush
<domenkozar>
copumpkin: when is 10.13 coming?
<copumpkin>
I already uploaded a test installer so I don't need to rely on the official installer for folks who want 10.13
<niksnut>
btw I forgot to bump the version number so a new eval is necessary
<copumpkin>
they said "autumn"
<copumpkin>
niksnut: also did you see that aws-sdk-cpp question? I couldn't figure out why you added the rpath
<domenkozar>
if it comes in autumn, I think we can wait for 1.11.3
<domenkozar>
13*
<copumpkin>
fair enough :)
<copumpkin>
perhaps we'll have 1.12 by then :D
<domenkozar>
ha ha
<copumpkin>
my test installer for 10.13 is a 1.12 build
<niksnut>
don't remember
<niksnut>
probably to fix the RPATH
<copumpkin>
does the aws-sdk-cpp part of nix get tested in the unit tests?
newhoggy has quit [(Ping timeout: 276 seconds)]
<copumpkin>
i.e., if I do something that makes it unhappy, will I notice easily?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vQHv9
<gchristensen>
last hack day at work is when I built the nix integration testing for jetpants (http://github.com/tumblr/jetpants) this hack day I'm trying to wedge nixos-install in to our existing hardware provisioning system, to be able to deploy NixOS proper. the provisioning system assumes `yum` at its core. wish me luck everyone >.>
<gchristensen>
I also _love_ to: export HISTFILE="$(pwd)/.bash_history" so your shell env has its own bash history
<gchristensen>
I also usually output a little "man page" about what special functions and tools exist in the shell, and how to do things that I usually do
mudri has joined #nixos
<domenkozar>
niksnut: hydra is ready
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vQHTe
<NixOS_GitHub>
nixpkgs/master 9937f13 florianjacob: resolved: use resolved's static resolv.conf (#27144)...
NixOS_GitHub has left #nixos []
nckx has quit [(Quit: I'm probably just restarting my server.)]
vaibhavsagar has quit [(Ping timeout: 255 seconds)]
<roberth>
tilpner: it is in the first part of a let binding, so it is equivalent to let stdenv = pkgs.stdenv in ... but, indeed, stdenv does not appear in ..., so it is unnecessary
<tilpner>
roberth - Oh, so it's like with pkgs;, but restricted to stdenv?
newhoggy has quit [(Ping timeout: 268 seconds)]
zraexy has joined #nixos
newhoggy has joined #nixos
<roberth>
tilpner: that's right. I usually avoid with, because it makes it hard to determine where your names are bound
<tilpner>
roberth - Thank you! :)
<roberth>
tilpner: you're welcome
newhoggy has quit [(Ping timeout: 260 seconds)]
newhoggy has joined #nixos
ThatDocsLady has quit [(Ping timeout: 248 seconds)]
<domenkozar>
gchristensen: it works!
newhoggy has quit [(Ping timeout: 276 seconds)]
<gchristensen>
woot!!
bennofs has joined #nixos
<domenkozar>
some feedback from me: there's so much text that important actions are not emphaised
mkoenig_ has joined #nixos
<gchristensen>
oh?
<domenkozar>
I think those should stand out with the rest of the information
<gchristensen>
like which ones?
<domenkozar>
like closing and entering shell after install
<gchristensen>
good point
<domenkozar>
that's a prerequisite for using nix but it's in middle of senstance in wall of text
mkoenig has quit [(Ping timeout: 260 seconds)]
<domenkozar>
the second one is that linux and darwin installs are different, but that's just matter of time :)
<domenkozar>
good work!
simukis has quit [(Quit: simukis)]
newhoggy has joined #nixos
<ixxie>
hmmm
<gchristensen>
domenkozar: there is a `bold` helper and other UI helpers that might help
<bennofs>
what's this too much text about? about the tests nixos manual section?
\\\\\\\\\\\\\\\\ is now known as \n
\n is now known as \r\n
<ixxie>
Is there some kind of explanation for how things like JAVA_HOME work in NixOS? echo $JAVA_HOME yields nothing (as mentioned here https://github.com/NixOS/nixpkgs/issues/13653) but is it even meant to?
<gchristensen>
\r\n: please stop
<\\\\\\\\\\\>
What have you done to my nick?
\r\n is now known as Guest61764
Guest61764 is now known as Gravious
<Gravious>
who got me to be Guest?
<bennofs>
ixxie: this is an issue that I have been thinking about a lot
<ixxie>
bennofs, I wonder if this wonks up certain things
<bennofs>
ixxie: Nix(OS) IMO lacks a uniform policy about how to deal with environments (such as JAVA_HOME, but also about whether you should use fooWithPackages or just set environment variables etc)
<ixxie>
I tried to help my brother set up a Scala project on Intellij on NixOS the other day and it had a hard time finding stuff like JDK
freusque has quit [(Ping timeout: 240 seconds)]
mudri has quit [(Ping timeout: 255 seconds)]
<\\\\\\\\\\\>
At any rate, I'm new to NixOS, coming from Arch, and now none of my scripts work since they complain about the shebang. Is there a solution other than removing the line?
<ixxie>
I thought at first it had to do with the way stuff goes in the nix store but I suppose this is also an environment variable issue
<bennofs>
ixxie: the problem is, what do you do if there are multiple java versions?
<gchristensen>
\\\\\\\\\\\: you can change the line to be #!/usr/bin/env <program>
<ixxie>
isn't there something that automatically swaps out the shebang line normally?
<\\\\\\\\\\\>
gchristensen: Thanks, I wasn't sure if that was even in the smae place.
<gchristensen>
\\\\\\\\\\\: /bin/bash and /usr/bin/env are our two concessions :)
<\\\\\\\\\\\>
`bash: type: /bin/bash: not found`
<bennofs>
gchristensen: /bin/bash won't work on NixOS
<gchristensen>
I meant /bin/sh
<gchristensen>
ixxie: if you use stdenv.mkDerivation to build it, yes, the patchup phase repairs shebangs
mudri has joined #nixos
<ixxie>
bennofs: no clue honestly, but I suppose if package X references Java version Y, it's JAVA_HOME would point to that; but I suppose there should be a sensible default for the system? Say the java version I explictly install in my systemPackages or the most up to date stable version if I have none explicitly installed
<domenkozar>
gchristensen: also, is the new daemon launched on boot?
<ixxie>
bennofs: but I have this feeling like theres a reason for the way it is done now
<ixxie>
there usually is xD
<bennofs>
ixxie: the reason is that there is no uniform policy. There is an argument that there should not be any "magical" defaults and that if you want JAVA_HOME to be set to some java version, you should have to do so explictly
erasmas has joined #nixos
<gchristensen>
domenkozar: I just rebooted, and it seems to
<gchristensen>
if they have an important file called install-nix-1.11.12 and it _isn't_ the nix 1.11.12 installer, well, oh well I guess
<copumpkin>
niksnut: have you thought about putting out a roadmap for what's left to do in 1.12, to solicit help on the mailing list for things that people can help with? I'm sure lots of people would love to see it released
arjen-jonathan has quit [(Ping timeout: 240 seconds)]
vaibhavsagar has joined #nixos
<copumpkin>
might help stem the infinite stream of 1.11.x releases :)
<ixxie>
bennofs: it seems some things have changed a tad, but I guess it would be /run/current-system/sw/bin/?
endformationage has joined #nixos
<bennofs>
ixxie: that would just another adhoc solution to the problem of managing user environments with nix :/ then we've got: for Haskell packages, you need to use ghcWithPackages (also for python, and others i may not know about). For aspell dictionaries, they get detected automatically in your profile path. For java, you need to use java-env.sh. ...
<bennofs>
Even if we documented all these solutions, it would still be complicated
<domenkozar>
copumpkin: if .pkg is not signed, then there's no benefit
<copumpkin>
I'm not saying people are being rational
<copumpkin>
they want to be able to grab something, sha256 check it, and then run it
newhoggy has quit [(Ping timeout: 258 seconds)]
<domenkozar>
mkay :)
<gchristensen>
security teams want people to not _just_ pipe curl to bash
<gchristensen>
one reason is so you actually keep what you ran, for example
<copumpkin>
yeah, but if you ran something malicious it can just overwrite what you kept
<copumpkin>
:P
<gchristensen>
-> sha256sum
<gchristensen>
"is this what I ran?"
radvendii has joined #nixos
<gchristensen>
this one is cross-platform: curl -o install-nix-1.11.12 https://nixos.org/nix/install && echo "aa37b53577c96ad745c0d84a871de3e398a1cd9c32987d0e662d92c56cdcc4ef install-nix-1.11.12" | (if type sha256sum > /dev/null; then sha256sum -c; else shasum -c; fi) && ./install-nix-1.11.12
<copumpkin>
only if you do so before and after, and if it covers its tracks you might find that the sha256 is different but you have no way of knowing what changed
<copumpkin>
also, if it's malicious enough it'll just overwrite the sha256 tool to spit out a valid hash :P
<copumpkin>
once you've run untrusted code, you're in the matrix :O
<copumpkin>
the point is that you can inspect that install script and see "oh yes, it'll download this tarball from the internet and run arbitrary code from inside it"
<joepie91>
and broken!
<gchristensen>
copumpkin: sure but you have the file and the shasum you ran it with before hand, and can copy it off to a safe system and check
<bennofs>
ixxie: for some practical advice, what I've been doing in the past for these kind of packages is to use:
<LnL>
gchristensen: why not builtins.fetchUrl ;)
<gchristensen>
copumpkin: and if you're trying to triage the situation of "was this bad?" then it is a pretty obvious "yes" if it changes the file you downloaded
<copumpkin>
but the point is that nobody actually does that, and you're just shifting the boundary untrusted code one level down a sec
<bennofs>
ixxie: a) write a software.nix that symlinks all packages that I need absolute paths to (like a jdk for JAVA_HOME) into $out
<gchristensen>
LnL: what do you mean?
<bennofs>
ixxie: b) run nix-build software.nix --out-link software in my home directorxy
<bennofs>
ixxie: c) point JAVA_HOME to $HOME/software/jdk
<gchristensen>
copumpkin: I'm not saying it makes sense, I'm saying people think it does
<ixxie>
bennofs: sounds reasonable :)
<bennofs>
ixxie: i believe that managed to fool IDEA enough so that it doesn't keep an absolute path to somewhere in the nix store, so that I it works properly even if the java version changes
newhoggy has joined #nixos
hellrazor has quit [(Quit: WeeChat 1.9)]
<copumpkin>
so I curl nixos.org/nix/install and glance over it, see that it downloads a tarball and runs a script from in there. 99% of the anti-curl|shers will stop here and feel good about themselves, but some will download that tarball and check the script inside there. That script will run a binary from the tarball. Now what? Fire up IDA and disassemble it? If the threat model is against the transport, then https covers it. If the
<copumpkin>
threat model is against malicious deployed installers, you're completely screwed, so you can avoid software on the internet or go with what everyone does implicitly, which is evaluate trustworthiness of community, size of site, their security practices, etc.
<ixxie>
bennofs, do you have that file up somewhere? I would love to have a look
<gchristensen>
copumpkin: we're talking marketing not down-the-rabbit-hole security
<copumpkin>
yeah I know :(
<copumpkin>
sigh
vaibhavsagar has quit [(Ping timeout: 258 seconds)]
<copumpkin>
anyway, I'd probably put up a signed .pkg, and still recommend curl|sh with an asterisk explaining why we think it's okay, but if you don't feel comfortable, by all means use the .pkg
<copumpkin>
or some shit like that
<barrucadu>
The appearence of security is more important than how effective it actually is, in many cases :(
<copumpkin>
if we want the apperance of security, we should stick a password on the installer ;)
<copumpkin>
and tell people the password on the install site
<gchristensen>
^ and I'd happily extend our current copy-paste code by 200 characters to make it appear that way
<copumpkin>
pw: t0tallyn0tw4r3z
<bennofs>
and of course, let it download rar instead of nar
<barrucadu>
"When prompted, type 'hunter2' and hit enter. The installer will then ..."
<slabity>
What's the recommended way of compiling a program that requires a header in /usr/include?
<copumpkin>
make it not require a header in /usr/include
<copumpkin>
that's what we usually do, via combination of command-line arguments, environment variables, or local patches
<LnL>
substituteInPlace :)
iyzsong has quit [(Quit: bye.)]
newhoggy has quit [(Ping timeout: 255 seconds)]
mudri has quit [(Ping timeout: 240 seconds)]
<slabity>
So if I want to compile something I need to generate a .nix file?
newhoggy has joined #nixos
apeyroux has quit [(Quit: Lost terminal)]
<copumpkin>
yeah, generally
<copumpkin>
it usually won't be very big if the project structure is reasonably conventional
<copumpkin>
the weirder the build is, the more stuff you'll probably have in the .nix file
<copumpkin>
joepie91: you should generate an address on the fly per connection so nobody can keep an eye on your monies
<joepie91>
copumpkin: I'm not particularly concerned about that, all stuff I do is public anyway :P and it requires a lot of extra infra to make that happen reliably
<barrucadu>
That's a neat idea
newhoggy has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] mnacamura opened pull request #27358: r-pbdZMQ: fix Darwin install (master...r_pbdZMQ_darwin_fix) https://git.io/vQHWT
NixOS_GitHub has left #nixos []
roberth has quit [(Remote host closed the connection)]
<joepie91>
error reporter is screaming at me, seems I need an error handler for closed websockets
<bennofs>
ixxie: didn't even set JAVA_HOME, just told IDEA to use the JDK installed in ~/software/oraclejdk8
<ixxie>
bennofs, I dig: once you have sane addresses for stuff its a simple matter to point software to it :)
<ixxie>
thanks!
reinzelmann has quit [(Quit: Leaving)]
endformationage has quit [(Read error: Connection reset by peer)]
<mpickering>
has anyone recently used ghcjsHEAD? I am getting errors such as "/nix/store/gzh9cahbq4h921xdilgn9r7abala75n6-ghcjs-0.2.020170323/bin/ghcjs-run-0.2.1-8.0.2.jsexe/node: openFile: does not exist (No such file or directory)"
<mpickering>
I don't see how that is similar sorry
<bennofs>
mpickering: well, "broken pipe" sounds a lot like the nodejs process failed
<bennofs>
mpickering: (especially the " resource vanished " part)
<mpickering>
It looks a bug in the ghcjs external process template haskell
<mpickering>
This error is because the "node" executable can't be found at all
<bennofs>
mpickering: yeah but external TH uses node i believe
<bennofs>
mpickering: so perhaps GHCJS messed up the node path somehow?
<mpickering>
I can using "cabal run" which should invoke node to run the generated javascript
newhoggy has quit [(Ping timeout: 240 seconds)]
<bennofs>
hmm, was just a guess. may very well be unrelated
ison111 has joined #nixos
FRidh has quit [(Quit: Konversation terminated!)]
chakerbenhamed has quit [(Ping timeout: 255 seconds)]
<bennofs>
mpickering: well, the path looks wrong, doesn't it?
<bennofs>
mpickering: not sure where exactly the node executable should be taken from, but probably not from subdirectory of a .jsexe
<mpickering>
Is there a different people usually use ghcjs? I am using it with cabal, cabal configure --ghcjs , cabal build, cabal run etc
mal_ has left #nixos ["WeeChat 1.8"]
<earldouglas>
Are there any tricks to getting tomcat to redeploy an updated webapp? NixOS updates the symlink, but Tomcat doesn't care, and keeps running the old version.
<bennofs>
earldouglas: restart tomcat?
<earldouglas>
Tried that, but didn't work. Symlink points to version2's war file, but version1 is still deployed as /var/tomcat/webapps/foo
<earldouglas>
I think if I manually delete /var/tomcat/webapps/foo after updating the symlink, it should work.
<mpickering>
bennofs: hmm, there is a version of node in that directory so the problem is somewhere else
<earldouglas>
Yep, that did it. Seems ugly, though.
<bennofs>
mpickering: have you tried strace'ing it to see the syscall that fails?
greglearns has joined #nixos
newhoggy has joined #nixos
<slabity>
So there's no proper way of getting the includes necessary just in the shell?
<bennofs>
slabity: nix-shell doesn't change your filesystem (it is not a chroot)
<bennofs>
slabity: so it cannot write anything to /usr/include
zraexy has quit [(Quit: Leaving.)]
<slabity>
bennofs: I'm not asking to write to /usr/include, but rather getting the path to ${libdrm}/include/drm or however it works
<slabity>
My impression right now is that I need to write a full derivation for development, which seems very unnecessary
<bennofs>
slabity: getting that path is easy: nix-build --no-out-link '<nixpkgs>' -A libdrm should print it
newhoggy has quit [(Ping timeout: 268 seconds)]
<bennofs>
slabity: but you shouldn't need to supply that path manually, nix-shell -p libdrm pkgconfig gcc autoconf automake should normally work for C/C++ programs
zraexy has joined #nixos
<slabity>
Oh my god I'm dumb
<slabity>
How did I forget pkgconfig exists
chakerbenhamed has joined #nixos
<slabity>
I'm making the same mistakes I've made 10 years ago.
<gchristensen>
slabity: mistakes are cyclical
<gchristensen>
we can't learn from them
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<slabity>
I guess I'll patch my project to use pkgconfig
<slabity>
gchristensen: Yea, but I kind of wish I would remember the basics of making a proper build script
ixxie has quit [(Ping timeout: 260 seconds)]
sary has quit [(Ping timeout: 255 seconds)]
sary has joined #nixos
justelex_ has joined #nixos
newhoggy has joined #nixos
<dtzWill>
slabity: for dev I often create a dummy deriv with the dependencies as buildInputs and nix-shell into that...
<gchristensen>
copumpkin: I just shared the installer code w/ the sha checking and was lauded by 3 informed people "also, nice hash checking"
<dtzWill>
slabity: but for one-off you should just be able to use nix-shell -p and it'll be on the cc's include path
<dtzWill>
it's how Nix can have include directories all over the place and programs still work (programs that don't use pkgconfig or cmake or something)
<dtzWill>
without having to specify a bajillion --with-openssl-include=${openssl.dev}/include arguments or something xD
chakerbenhamed has quit [(Quit: WeeChat 0.4.2)]
newhoggy has quit [(Ping timeout: 260 seconds)]
<dtzWill>
other languages have setup-hooks that do similar things, IIRC
newhoggy has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 2 new commits to release-17.03: https://git.io/vQHEN
<NixOS_GitHub>
nixpkgs/release-17.03 5e082ae Joachim Fasting: runit: replace hardcoded /sbin/runit with in-store runit binary...
cpennington has quit [(Ping timeout: 260 seconds)]
newhoggy has quit [(Ping timeout: 246 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 1 new commit to master: https://git.io/vQHu8
<NixOS_GitHub>
nixpkgs/master f90d7b2 Joachim Fasting: alienfx: do not attempt to install suid executables
NixOS_GitHub has left #nixos []
bennofs has quit [(Ping timeout: 255 seconds)]
ennui` has joined #nixos
newhoggy has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 1 new commit to release-17.03: https://git.io/vQHuE
<NixOS_GitHub>
nixpkgs/release-17.03 849b5a5 Joachim Fasting: alienfx: do not attempt to install suid executables...
NixOS_GitHub has left #nixos []
<slabity>
So I can run 'nix-shell -p libdrm pkgconfig' and then run `pkg-config libdrm --cflags` successfully, but I can't run it outside of the nix-shell. Any explanation?
<slabity>
I have libdrm and pkgconfig installed
<spacefrogg>
slabity: That is not, how nix works. What do you want to achieve? A build environment for some package you develop?
<slabity>
spacefrogg: Yea, that's what I'm trying to do.
<gchristensen>
a real head-desk moment, speaking of which *furiously tests a way I didn't test it before*
newhoggy has quit [(Ping timeout: 240 seconds)]
newhoggy has joined #nixos
<gchristensen>
crap!
<domenkozar>
now you can't use travis? :D
<gchristensen>
curl | sh doesn't work, because `stdin` is EOF'd due to curl being out of output
<gchristensen>
so our install instructions are broken by this
<gchristensen>
I can get a fix in tonight, but not for the next 5 hours
<domenkozar>
huh, I think it worked for me
<domenkozar>
let me try again
<gchristensen>
did you curl -o install ...; sh ./install ?
<domenkozar>
aha it breaks
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #27359: opensmtpd: Fix attempt to set unsupported permissions during install (master...fix/opensmtpd-unsupported-perms) https://git.io/vQHrH
NixOS_GitHub has left #nixos []
<domenkozar>
we'll need to use the getatty approach
<domenkozar>
isatty*
<gchristensen>
another quick option is to update the installation instructions
<gchristensen>
curl -o install-nix <url>; sh ./install-nix
<bennofs>
plot twist: that was the plan all along :)
<gchristensen>
it was definitely not :(
<domenkozar>
:D
<gchristensen>
I'm not that devious :(
<domenkozar>
!m gchristensen
<[0__0]>
You're doing good work, gchristensen!
newhoggy has quit [(Ping timeout: 240 seconds)]
<gchristensen>
heh
<domenkozar>
well we did break our installation "api"
<gchristensen>
yeah
<domenkozar>
I think it's going to make a lot of people unhappy if curl pipe won't work
<jophish>
shlevy: Hail's pretty cool, someone just set it up here at work for us
<jophish>
Thanks!
<gchristensen>
it is a bit weird though to be prompting for stuff when our instructions won't make use of it
ison111 has joined #nixos
<domenkozar>
yeah the logic should then be different
<domenkozar>
just say what's going on (as before)
zeus_ has joined #nixos
<gchristensen>
that said, maybe a quick line at the top that says "looks like you're passing curl to bash, so we'll assume yes to all the answers"
<ToxicFrog>
Depending on how long the script is, `bash -c "$(curl ...)"`?
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
<bennofs>
or bash -c 'source <(curl ...)' ?
<gchristensen>
or, and this might seem radical
<LnL>
bash <(curl ...) also works
<gchristensen>
but curl -o foo ... sh foo
<bennofs>
LnL: only if the user is already running bash
<bennofs>
LnL: not all shells support <()
<LnL>
huh?
<LnL>
ah
newhoggy has joined #nixos
erictapen has joined #nixos
newhoggy has quit [(Ping timeout: 248 seconds)]
Infinisil has quit [(Ping timeout: 248 seconds)]
ryanartecona has joined #nixos
newhoggy has joined #nixos
m0rphism has quit [(Quit: WeeChat 1.8)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vQHis
<NixOS_GitHub>
nixpkgs/master 42395a1 Tuomas Tynkkynen: kernel-config: Disable Xen on non-x86...
NixOS_GitHub has left #nixos []
newhoggy has quit [(Ping timeout: 260 seconds)]
jonte has joined #nixos
cpennington has quit [(Ping timeout: 246 seconds)]
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQH1P
<NixOS_GitHub>
nixpkgs/master 8bafd3a Vincent Laporte: ginac: 1.6.2 -> 1.7.2
NixOS_GitHub has left #nixos []
newhoggy has joined #nixos
radvendii has quit [(Ping timeout: 240 seconds)]
ixxie has joined #nixos
newhoggy has quit [(Ping timeout: 246 seconds)]
jonte has quit [(Ping timeout: 255 seconds)]
Thra11 has quit [(Ping timeout: 248 seconds)]
<sphalerite>
copumpkin: nixos-prepare-root says # This script's goal is to perform all "static" setup of a filesystem structure from pre-built store paths. Everything
<sphalerite>
# in here should run in a non-root context and inside a Nix builder. It's designed primarily to be called from image-
<sphalerite>
but nixos-install calls it
<sphalerite>
I'm guessing just the comment is wrong?
<copumpkin>
yeah
<copumpkin>
yeah out of date, sorry
<copumpkin>
it was designed to be called from both and to factor out commonalities from both
newhoggy has joined #nixos
<sphalerite>
right
<Filystyn>
need to change root password
<Filystyn>
hue
<Filystyn>
i can't belive this but i actualy forgot root :O
<Filystyn>
pass
<Filystyn>
!
<Filystyn>
GEEE
<Filystyn>
might remember but maybe it's not that hard to chaneg it
<LnL>
I don't even have a root password
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 3 new commits to master: https://git.io/vQHyn
<NixOS_GitHub>
nixpkgs/master 058f46c Vincent Laporte: libraw: set meta.platforms to unix
<NixOS_GitHub>
nixpkgs/master 247e772 Vincent Laporte: libspectre: set meta.platforms to unix
<NixOS_GitHub>
nixpkgs/master 68ee2c6 Vincent Laporte: gst-plugins-good: fix build on darwin
NixOS_GitHub has left #nixos []
newhoggy has quit [(Ping timeout: 258 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQHSt
<NixOS_GitHub>
nixpkgs/master bd7bf33 Vincent Laporte: ocaml: init at 4.05.0
NixOS_GitHub has left #nixos []
tmaekawa has joined #nixos
zarel has joined #nixos
<greglearns>
bennofs copumpkin I *think* that I solved the nixos / Rust issues related to using Nightly Rust (via the Mozilla overlay) AND being able to select a specific date for the rustRegistry to avoid "cannot find correct version" problems, here: https://gist.github.com/greglearns/192a4cc31aef8acdf3190fefa4f124ee However, when I "nix-collect-garbage && nix-build" this, I get an error ```error: failed to open: /tmp/nix-build-thingname-0.
<greglearns>
3.drv-0/deps/registry/index/-ba82b75dd6681d6f/.cargo-index-lock. Caused by: Permission denied (os error 13)``` Any ideas on how to fix this cargo-index-lock permission issue, or ideas about who to ask?
<Sonarpulse>
(I do feel like you are the proper person to look at deep stdenv changes, but feel free to deputize others too)
newhoggy has joined #nixos
arianvp2 has joined #nixos
<Sonarpulse>
niksnut: in general, I have a number of commits changing cc-wrapper and stdenv/generic/setup.sh in hash-breaking ways
<Sonarpulse>
I certainly want to build locally before merging into stable
<Sonarpulse>
but if you like I can open all the chained PRs simultaneously for review, and then you/others can "+1 pending successful test" or something
newhoggy has quit [(Ping timeout: 260 seconds)]
watersoul has quit [(Read error: Connection reset by peer)]
watersoul has joined #nixos
<niksnut>
Sonarpulse: well, this is why we have staging...
<Sonarpulse>
niksnut: you mean mean many PRs in a row? :)
<Sonarpulse>
yes, it would be unreviewable as one big one
<Sonarpulse>
niksnut: I'm checking, but I thought quoting in [[ ]] affects glob expansion?
<manveru>
maybe you're running it in daemon mode? make sure it doesn't go into the background after starting
<manveru>
in either case you'll have to kill it first
m0rphism has joined #nixos
<manveru>
because systemd lost control of it
<mpcsh>
manveru: yeah, I see that. But the problem is that that instance was an instance of me explicitly running "systemctl --user start keybase" - when I run sudo nixos-rebuild switch, the service doesn't even attempt to start
<manveru>
hmm
<mpcsh>
Like I ran a sudo nixos-rebuild switch at 15:21, and there's just nothing in the logs
<manveru>
sounds like the module was built a bit shitty :(
<WinchellsM>
I am doing some amateur VR development in Linux, currently on Arch. Thinking of switching to NixOS. Is everything fairly straightforward for getting bleeding edge Nvidia 381+ drivers from nixpkgs?
<greglearns_>
Can I get help with Rust + Nix and "failed to open: /tmp/nix-build-namehere-api-0.7.drv-0/deps/registry/index/-ba82b75dd6681d6f/.cargo-index-lock caused by Permission denied (os error 13)", on Ubuntu running Nix-build
newhoggy has joined #nixos
<Sonarpulse>
Dezgeg: wanna helper function for the printf thing?
<tilpner>
greglearns_ - Could you please try passing rustRegistry = pkgs.rustRegistry.overrideAttrs (old: { src = ...; }); to buildRustPackage and removing the inline rustRegistry overlay?
sary has quit [(Remote host closed the connection)]
<tilpner>
(Or tell me how to test this locally)
Guest81096 is now known as johnw`
johnw` is now known as johnw
johnw has quit [(Changing host)]
johnw has joined #nixos
takle has joined #nixos
takle has quit [(Remote host closed the connection)]
ison111 has joined #nixos
takle has joined #nixos
newhoggy has joined #nixos
<greglearns_>
tilpner You should be able to test it locally with a simple nix-build. As to your suggestion, I'm new to nix, so I'm not exactly sure where I should put what you suggested (with rustRegistry = ...), what to put for the "..."
<tilpner>
greglearns_ - I was asking about the project you're building, but I guess a simple Rust hello-world will do too
<greglearns_>
oh, sure. Let me make a simple hello-world (unless you have one?)
<greglearns_>
tilpner, just so I'm clear, you said that you will generate your own rust hello world file (using cargo to generate one), right?
cmcdragonkai has quit [(Ping timeout: 248 seconds)]
Mateon1 has joined #nixos
<tilpner>
greglearns_ - I tried that, it throws curious errors. I'll try your rocket example now
<greglearns_>
tilpner I think I figured out what you were requesting before... basically, move line #17 down to after line #42 so that rustRegistry is being passed directly to the buildRustPackage as a normal argument. (right?) I tried that just now, and still get the same error.
<gchristensen>
!m butterflya, whoever they are,
<[0__0]>
You're doing good work, butterflya, whoever they are,!
<tilpner>
greglearns_ - Did you have problems with parseToml too?
<greglearns_>
no
newhoggy has joined #nixos
jonte has quit [(Ping timeout: 248 seconds)]
<gchristensen>
domenkozar: around?
apeyroux has quit [(Quit: leaving)]
schoppenhauer has quit [(Quit: Adé)]
<tilpner>
greglearns_ - I currently can't reproduce your error. Did you try it with the same Rocket example?
<greglearns_>
no, I'll try that now
[0x4A6F] has quit [(Remote host closed the connection)]
<tilpner>
greglearns_ - No, that file looks fine, but the Rocket pastebin Cargo.toml might bring problems, it being in a workspace and having relative path dependencies, and all
<tilpner>
(I edited those out, but I still get a 8000 line regex error from parseTOML)
<greglearns_>
oh. how about we try a simple cargo hello world example then. i can create one. give me a few minutes...
<tilpner>
No, I tried that too, with the same error
<tilpner>
I've had more success using rustNightlyBin instead of the overlay
schoppenhauer has joined #nixos
<schoppenhauer>
hi. I am a bit confused about ruby packages. I want to create a nix-shell with some packages for ruby. specifically, I currently need http://sequel.jeremyevans.net/documentation.html which is a fairly common package but does not seem to be packaged.
<schoppenhauer>
but not sure whether this is what I want to do
newhoggy has joined #nixos
<greglearns_>
tilpner what date is rustNightlyBin running? Rocket.rs is really particular about using THE newest rust nightly (or, as close to the newest as can be)
<tilpner>
greglearns_ - Yeah, it's probably not going to be enough for you :/
<greglearns_>
unless, I did the same thing I'm doing with rustRegistry, and just override that (via an overlay, I'm guessing i'd still need to use0
<greglearns_>
unless, I did the same thing I'm doing with rustRegistry, and just override that (via an overlay, I'm guessing i'd still need to use)
<schoppenhauer>
radvendii: could you send me a code snippet?
<gchristensen>
E_TOO_MANY_BUGS
<dtzWill>
since AFAICT "nix copy" doesn't handle that quite right (and AFAICT "--all" on nix-copy is taken not from "--from" but from "--store" which is ... interesting.. if true)
<gchristensen>
schoppenhauer: did you want to use it like I described?
<symphorien>
the store is not read only so this statement is incorerectly skipped
* dtzWill
will try to file issues after this infra change and some more investigation xD
<radvendii>
schoppenhauer: not sure if I was in the same situation as you though. I was packaging a separate application and didn't want to put it in the nix store
<schoppenhauer>
gchristensen: ah yes, sorry, my raspi broke and this irc-webinterface is confusing, didn't see your post.
<gchristensen>
schoppenhauer: then yes, just do that
<symphorien>
I want to fix this, so should I 1/ remove the check that the bind mount is ro 2/ read /proc/1/mountinfo instead of /proc/self/mountinfo 3/ wait for the rw store inside nix-shell issue to be solved ?
<dtzWill>
everything goes into the nix store muahaha
<schoppenhauer>
gchristensen: and I can use fetchurl and stuff too?
<gchristensen>
symphorien: you'd probably do it inside a let / in block
<gchristensen>
erm .. schoppenhauer ^
<dtzWill>
and soon maybe we can use IPFS or similar so everyone's nix store is in everyone's nix store
<gchristensen>
schoppenhauer: of course! :) stdenv.mkDerivation is no different than a pkgs.fetchurl, really
cmcdragonkai has joined #nixos
<schoppenhauer>
gchristensen: ok thx, I'll try that
cmcdragonkai is now known as Guest70706
cpennington has quit [(Remote host closed the connection)]
ertes-w has quit [(Read error: Connection reset by peer)]
ertesx-w has joined #nixos
<roberth>
nix-repl> /foo + "/bar/" + "baz.qux"
<roberth>
/foo/barbaz.qux
<WinchellsM>
When seeing syntax like `$ nix-repl '<nixpkgs/nixos>'` in the nix manuals, is the `<nixpkgs/nixos>` literal? Like do you literally put < and > there? Or is it a stand-in variable?
ertesx-w is now known as ertes-w
greglearns has joined #nixos
<tilpner>
WinchellsM - Those are actual syntax
<tilpner>
WinchellsM - <foo> refers to the NIX_PATH entry "foo"
<roberth>
do I spoil it for anyone if I tell what happened on my repl?
<tilpner>
Not sure what you would spoil
<gchristensen>
roberth: let's hear it :)
newhoggy has joined #nixos
<roberth>
ahem yeah, so the path type can be a bit surprising, but this is the behavior you get when it always normalizes away the trailing /
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 1 new commit to master: https://git.io/vQQ3K
<NixOS_GitHub>
nixpkgs/master b9e404d Joachim Fasting: dash: 0.5.8 -> 0.5.9.1...
NixOS_GitHub has left #nixos []
greglearns__ has joined #nixos
<greglearns__>
tilpner did you get this same error: warning: custom registry support via the `registry.index` configuration is being removed, this functionality will not work in the future ... mv: missing destination file operand after '/nix/store/isq22v3g0q0ahrph2w1pa3gxpspgz45l-smallexample-0.7-fetch/registry/cache/HASH'
<greglearns__>
when you ran nix-build on the result of "cargo new --bin smallexample" ?
<roberth>
The expression /foo + ("/bar/" + "baz.qux") does evaluate like anyone would expect
erictapen has quit [(Ping timeout: 240 seconds)]
newhoggy has quit [(Ping timeout: 240 seconds)]
<greglearns__>
tilpner oh, interesting, that error occurs when there are no "[dependencies]" in the cargo file...
<greglearns__>
tilpner if you modify your smallexample Cargo.toml and add a section: [dependencies]
<greglearns__>
serde = "0.9"
<greglearns__>
then you will see the .cargo-lock error
newhoggy has quit [(Ping timeout: 248 seconds)]
WinchellsM has quit [(Ping timeout: 268 seconds)]
[0x4A6F]1 has joined #nixos
[0x4A6F] has quit [(Ping timeout: 248 seconds)]
[0x4A6F]1 is now known as [0x4A6F]
danl1240 has joined #nixos
newhoggy has joined #nixos
[0x4A6F] has quit [(Ping timeout: 240 seconds)]
jsgrant_ has joined #nixos
<tilpner>
greglearns__ - Do you mean .cargo-index-lock, or is that actually the error?
<greglearns__>
tilpner error: failed to open: /tmp/nix-build-smallexample-0.7.drv-0/deps/registry/index/-ba82b75dd6681d6f/.cargo-index-lock
<greglearns__>
but, I think I'm onto something...
<greglearns__>
Using the smallexample file, I've been narrowing it down... it is the mozilla overlay that is causing the problem. I'm still figuring it out, but I can produce the problem now.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] srhb opened pull request #27363: tarsum: Fix source path in docker.src (master...fix-tarsum) https://git.io/vQQCT
NixOS_GitHub has left #nixos []
<mpcsh>
hey all, how can I test a module?
<mpcsh>
I updated keybase.nix in <nixpkgs/modules/services/networking> and I want to make sure it works before submitting a PR
spinus has joined #nixos
simukis has quit [(Ping timeout: 260 seconds)]
tmaekawa has quit [(Quit: tmaekawa)]
mudri has joined #nixos
newhoggy has quit [(Remote host closed the connection)]
<copumpkin>
I'd love to work through solutions to this there
greglearns has quit [(Read error: Connection reset by peer)]
greglearns___ has joined #nixos
<catern>
copumpkin: hmm, I wasn't sure I would be
greglearns____ has joined #nixos
<catern>
copumpkin: just curious, where do you work?
<copumpkin>
a financial company that doesn't put its name out there much :)
<schoppenhauer>
hm. can I run a "package-local" apache server without using nixOps?
<copumpkin>
catern: I gave a tiny spiel about our tentative nix use back at the last nixcon, but it's grown since then
greglearns____ has left #nixos []
<catern>
copumpkin: have you successfully persuaded people at your corp? :)
<copumpkin>
I wouldn't say it's pervasive but it's grown a fair amount
<catern>
nice
<mpcsh>
symphorien: so it's working now, but is there any way to test the module without building *everything* from my nixpkgs checkout? it takes foreeeeever
<copumpkin>
catern: how about yours?
<catern>
(if you work in finance, are you in NYC? I'm in NYC and feel that there should be an NYC Nix meetup group :))
<symphorien>
usually, I test on channels/nixos-unstable
<gchristensen>
catern: want to meet up next week? I'll be in town, might have time
<symphorien>
then I do git rebase --onto master channels/nixos-unstable mybranch
<symphorien>
and hope it doesn't break anything
<copumpkin>
catern: I'm in the NYC area for a few days a month, and yes I'd love that :) my next visit is all booked up but I'd definitely try to make it to a nix nyc meetup
<symphorien>
if you are on unstable there is a way to test one module but I hae never used it
<symphorien>
I am on stable
<gchristensen>
copumpkin: hmmm I'm there a week a quarter ...
<catern>
copumpkin: ah, well, I've only really been at it for a month and a half... I have an advantage that some internal tools can be quite accurately described as "just proprietary version of Nix", and those tools are slated to replaced ASAP, so I think I've persuaded a decent number of people that Nix is the natural move forward
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 2 new commits to master: https://git.io/vQQEU
<NixOS_GitHub>
nixpkgs/master 627260d Daniel Fullmer: gnupg agent module: Only set tty for interactive shells
NixOS_GitHub has left #nixos []
<symphorien>
if I remember correctly, put your new module in the import section of your configuration.nix and then, add a new list just like imports = called disabledModules = [ "modules/sdfsdfsdfs.nix" ];
dbmikus_ has quit [(Quit: WeeChat 1.9)]
<symphorien>
never tested, it is in a comment in my configuration.nix for when 17.09 is released
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz closed pull request #27359: opensmtpd: Fix attempt to set unsupported permissions during install (master...fix/opensmtpd-unsupported-perms) https://git.io/vQHrH
NixOS_GitHub has left #nixos []
georges-duperon has joined #nixos
wak-work has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 2 new commits to master: https://git.io/vQQud
<NixOS_GitHub>
nixpkgs/master 5c336fc Roger Qiu: phpPackages.phpcbf: init at 2.6.0
<NixOS_GitHub>
nixpkgs/master 672171b Franz Pletz: Merge pull request #27303 from MatrixAI/phpcbf...
magnetophon1 has quit [(Ping timeout: 240 seconds)]
newhoggy has joined #nixos
yegortimoshenko has joined #nixos
newhoggy has quit [(Ping timeout: 276 seconds)]
dbmikus has quit [(Quit: WeeChat 1.9)]
ebzzry has joined #nixos
python47` has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] veprbl opened pull request #27364: slurm: add alias attribute for backward compatibility (master...slurm2) https://git.io/vQQav
NixOS_GitHub has left #nixos []
ertes-w has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to release-17.03: https://git.io/vQQaW
<NixOS_GitHub>
nixpkgs/release-17.03 911d8e7 Franz Pletz: nginx: add patch to fix CVE-2017-7529
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #27365: stdenv: Move some logic from cross adapter to stdenv proper (staging...smaller-stdenv-cross-adaptor) https://git.io/vQQa0
NixOS_GitHub has left #nixos []
indi_ has joined #nixos
endformationage has quit [(Quit: WeeChat 1.7)]
yegortimoshenko has quit [(Ping timeout: 248 seconds)]
newhoggy has joined #nixos
uwap is now known as TrueUnixUser
ebzzry has quit [(Ping timeout: 240 seconds)]
TrueUnixUser is now known as uwap
ebzzry has joined #nixos
ng0 has quit [(Quit: Alexa, when is the end of world?)]
ennui` has quit [(Read error: Connection reset by peer)]
cwre has quit [(Read error: Connection reset by peer)]
greglearns_ has quit [(Ping timeout: 268 seconds)]
cwre has joined #nixos
ison111 has quit [(Quit: WeeChat 1.7.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 2 new commits to staging: https://git.io/vQQw4
<NixOS_GitHub>
nixpkgs/staging e826a6a John Ericson: stdenv: Move some logic from cross adapter to stdenv proper...
<NixOS_GitHub>
nixpkgs/staging 1ebb059 John Ericson: Merge pull request #27365 from obsidiansystems/smaller-stdenv-cross-adaptor...
NixOS_GitHub has left #nixos []
markus1199 has joined #nixos
erasmas has quit [(Quit: leaving)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] veprbl opened pull request #27366: Version bumps (master...version_bumps) https://git.io/vQQwF
NixOS_GitHub has left #nixos []
markus1189 has quit [(Ping timeout: 255 seconds)]
sigmundv_ has joined #nixos
cwre has quit [(Quit: Aliens ate me. I'm not good for them.)]
cwre has joined #nixos
yegortimoshenko has joined #nixos
cwre has quit [(Client Quit)]
cwre has joined #nixos
yegortimoshenko has quit [(Ping timeout: 240 seconds)]
greglearns___ has joined #nixos
greglearns_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] symphorien opened pull request #27367: grub module: assume /nix/store is a bind mount even if it is not read only (master...fix-grub-rw-store) https://git.io/vQQr5
NixOS_GitHub has left #nixos []
eacameron has quit [(Remote host closed the connection)]
takle has quit [(Remote host closed the connection)]
davidak has joined #nixos
eacameron has joined #nixos
ebzzry has quit [(Ping timeout: 260 seconds)]
ebzzry has joined #nixos
<greglearns___>
tilpner so, I'm still getting my butt kicked. I'm thinking of giving up on trying to get Rocket.rs and Nix to work together, and instead just use another Rust web framework so that I don't have to be on the cutting edge of Rust compilers and cargo indexes. you mentioned that you've been using the nightly compiler through another means... how?