<copumpkin>
$ nix-instantiate --argstr stystem x86_64-linux --eval -A system
<copumpkin>
"x86_64-darwin"
zeus_ has quit [(Read error: Connection reset by peer)]
<copumpkin>
I'm stupid
<copumpkin>
I should learn to type :)
<copumpkin>
unfortunately that doesn't fix my actual bug
<Sonarpulse>
:)
zeus_ has joined #nixos
<Sonarpulse>
nix-instantiate --argstr system x86_64-darwin --eval -A buildPlatform
<Sonarpulse>
looks good to me
<copumpkin>
yeah, my attempts to reduce the issue are failing miserably :)
<fresheyeball>
clever: so I bought a thunderbolt to ethernet cable and plugged it into my router
<fresheyeball>
same error
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus opened pull request #28664: ply: Allow building for git-fetched kernels (master...ply_folder_kernel) https://git.io/v5Z03
NixOS_GitHub has left #nixos []
<copumpkin>
oh, I was using pkgs.path somewhere
ris has quit [(Ping timeout: 240 seconds)]
<copumpkin>
if I have a nixpkgs imported and want to apply an overlay
<gchristensen>
fresheyeball: try shutting down the computer, plugging in, then booting
<copumpkin>
is there a way to do that that magically preserves all the other args?
<fresheyeball>
gchristensen: ok
<copumpkin>
like pkgs.withOverlays [ ... ] ?
<copumpkin>
I don't want to import pkgs.path { overlays = [ ... ]; }
<copumpkin>
because then I lose overrides
<copumpkin>
I mean things like a custom system =
<fresheyeball>
now it hangs on IPv6 ADDCONF(DEV_CHANGE): ens9: link becomes ready
sary has quit [(Remote host closed the connection)]
<gchristensen>
wow looks like magic
<nh2>
gchristensen: I've extracted the shake cmd functions into a standalone package https://hackage.haskell.org/package/command in the past but it is better to just depend on shake directly now because now one can use `cmd` directly on top-level (before it only worked in shake's context) and the shake library is almost as minimal as my extracted parts (no dependencies)
<copumpkin>
lol that looks pretty magical
<nh2>
Neil did a good job there, it's easy and well-documented
<gchristensen>
yeah I am preferential to System.Cmd's version here
<simpson>
On one hand, yes, I feel like a dork when I type `["gcc", "-c", filePath]` but it is so much better than the alternative.
<gchristensen>
I agree
<nh2>
I'm not sure I understand; `cmd` can do that
<simpson>
It can? I thought it just took a String.
<nh2>
no, it can even do it mixed-fashion for convenience and safety: cmd "gcc -c" ["myfile.c"]
<simpson>
Hilarious, nice.
Supersonic112 has quit [(Ping timeout: 248 seconds)]
<nh2>
so you can use auto-splitting for string literals (which cannot be injected) so that those read-nicely, and explicit argv when you pass in variables
<gchristensen>
is there a tutorial for a first time haskell developer using the nixos tooling?
<dash>
yargh. I haven't had to fight setuptools in a while, anybody remember the cure for the "ZIP does not support timestamps before 1980" issue? apparently "setup.py install" is trying to run bdist_egg in this package
<dash>
I am not using mkPythonDerivation and friends because this is a package with some executables written in C and some Python too
<dash>
I guess I might handle them in separate derivations and see if that helps
slack1256 has quit [(Remote host closed the connection)]
hamishmack has quit [(Quit: hamishmack)]
botnet1337 has quit [(Ping timeout: 260 seconds)]
vaibhavsagar has joined #nixos
ylwghst has joined #nixos
ylwghst has quit [(Ping timeout: 240 seconds)]
hexadecimal-1540 has joined #nixos
Mateon3 has joined #nixos
odi has joined #nixos
Mateon3 is now known as Mateon1
proteusguy has joined #nixos
vaibhavsagar has quit [(Ping timeout: 260 seconds)]
slyfox has quit [(Ping timeout: 246 seconds)]
oida_ has quit [(Ping timeout: 240 seconds)]
slyfox has joined #nixos
edef has quit [(Ping timeout: 246 seconds)]
edef has joined #nixos
oida_ has joined #nixos
slack1256 has joined #nixos
pie_ has quit [(Ping timeout: 248 seconds)]
pie_ has joined #nixos
phinxy has quit [(Read error: Connection reset by peer)]
hamishmack has joined #nixos
hamishmack has quit [(Client Quit)]
odi has quit [(Ping timeout: 246 seconds)]
Mercuria1Alchemi has joined #nixos
odi has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 closed pull request #28664: ply: Allow building for git-fetched kernels (master...ply_folder_kernel) https://git.io/v5Z03
roundhouse has quit [(Remote host closed the connection)]
takle_ has quit [(Remote host closed the connection)]
elurin has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
<hyper_ch>
wow, it's really a pain to publish a .nix file for installation with the source code... it always requires like 2 push.... 1 push with modified source to get the revision id... once you have that you have to rebuild and then you get the actual expected sha256 hash
<hyper_ch>
is there no way around this?
oida_ has quit [(Ping timeout: 240 seconds)]
lukego has joined #nixos
<makefu>
hyper_ch: nix-prefetch-url
<makefu>
but yes, it sucks big time
<hyper_ch>
what does that do?
<makefu>
you can prefetch files (like a tarball from github)
<makefu>
it will return the sha256sum
<hyper_ch>
still you can't get around 2 commits
<hyper_ch>
because first you'd need to know what revision to get stuff from
<hyper_ch>
and then you need to supply the sha sum of that revision
<makefu>
yes, this is true
<goibhniu>
hyper_ch: you want to include a nix file alongside the source code? I presume that's for development, so why pin it to the revision?
<makefu>
for default.nix in your source-code you could use src = ./.
<hyper_ch>
goibhniu: who else would you do it?
<hyper_ch>
well, when I reinstall things then I want to download the stuff from github
Ivanych has joined #nixos
<hyper_ch>
since I might not have restored the local version yet
<goibhniu>
hyper_ch: well, you wouldn't need to specify a hash for src if it's set to ./.
takle_ has joined #nixos
<hyper_ch>
goibhniu: oh well :)
<FRidh>
you will need nix 1.12 though
<hyper_ch>
FRidh: phd? oO
<hyper_ch>
something about aircraft and noise it seems
<goibhniu>
FRidh: nice! would blind people be able to use that to navigate?
takle has quit [(Ping timeout: 240 seconds)]
<hyper_ch>
who has time anyway to write a phd thesis :)
<hyper_ch>
so, where to put the .desktop file so it will show up in kde now
proteusguy has quit [(Remote host closed the connection)]
<freusque>
oh FRidh this is so nice
<FRidh>
goibhniu: auralisation is the audible part of virtual reality, so in my cause I simulated aircraft sound, spatially.
takle_ has quit [(Ping timeout: 240 seconds)]
<goibhniu>
ahh, amazing!
<FRidh>
in any case, the nix expressions demonstrate how to fetch expressions and sources from a bunch of different places and use them
MoreTea has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] gebner pushed 2 new commits to master: https://git.io/v5Z5a
<NixOS_GitHub>
nixpkgs/master c387c54 Gabriel Ebner: ibus-engines.anthy: 1.5.8 -> 1.5.9
<NixOS_GitHub>
nixpkgs/master 9252334 Gabriel Ebner: tokei: 6.0.0 -> 6.0.1
NixOS_GitHub has left #nixos []
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
<freusque>
what is the state of haskell packages in nix? nix-shell -p haskellPackages.yi fails on my machine, does anyone have an idea/can replicate the issue?
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
takle has joined #nixos
<srhb>
freusque: Check out the manual on how to use the Haskell infrastructure :)
<srhb>
freusque: generally you want to use something like nix-shell -p "haskell.packages.ghc821.ghcWithPackages (pkgs: with pkgs; [ lens conduit ])"
<srhb>
Or rather than haskell.packages, use haskellPackages (the current primary set)
<srhb>
haskellPackages.ghcWithPackages, that is
<freusque>
thank you srhb , I assumed this would be more straightforward. my bad
<freusque>
I know nothing about haskell packaging anyways
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/v5Zd6
<NixOS_GitHub>
nixpkgs/staging 2858c41 Vladimír Čunát: Merge branch 'master' into staging...
NixOS_GitHub has left #nixos []
jellowj has quit [(Ping timeout: 240 seconds)]
jellowj has joined #nixos
nwuensche has joined #nixos
<nwuensche>
Hi! Can anyone explain to me, why there is no teamviewer package for NixOS?
MoreTea has joined #nixos
freeman42x[m] has joined #nixos
<ikwildrpepper>
nwuensche: there seems to be, but it is not available by default: license = licenses.unfree;
freeman42x[m] has quit [(Read error: Connection reset by peer)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/v5ZFX
<NixOS_GitHub>
nixpkgs/master 15bac19 Vladimír Čunát: libbass: evaluation nitpicks...
NixOS_GitHub has left #nixos []
<ikwildrpepper>
you'd need to explicitly allow unfree packages to be installed
freeman42x[m] has joined #nixos
<ikwildrpepper>
something like nixpkgs.config.allowUnfree = true;
freeman42y[m] has quit [(Ping timeout: 240 seconds)]
<nwuensche>
ikwildrpepper: Thank you, I already did this for steam. :) However, why do you know why steam is in the package list at the NixOS Website, but teamviewer isn't? I mean, they're both unfree.
<nwuensche>
ikwildrpepper: Ok, thank you. However, when I add teamviewer in my config, it tries to curl a link that doesn't exist anymore. I want use the nixpkgs/pkgs/applications/networking/remote/teamviewer from the nix packages. How can I add this package in my config?
<ikwildrpepper>
nwuensche: don't know about teamviewer really
<ikwildrpepper>
(don't even know what it is :D)
<nwuensche>
ikwildrpepper: I think it's not a teamviewer question, more a NixOS question. I tried adding applications.networking.remote.teamviewer to my environment.systemPackages = with pkgs; [...] list, but that doesn't work
deltasquared has joined #nixos
<nwuensche>
ikwildrpepper: So the question is: How do I get the name of a package from the default.nix in the nixpkgs repo?
<ikwildrpepper>
check out nixpkgs/pkgs/top-level/all-packages.nix
<ikwildrpepper>
that is the top level attribute set
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rbvermaa pushed 1 new commit to release-17.03: https://git.io/v5ZNk
<NixOS_GitHub>
nixpkgs/release-17.03 56da88a Nick Hu: teamviewer: 12.0.71510 -> 12.0.76279...
NixOS_GitHub has left #nixos []
jluttine has quit [(Quit: WeeChat 1.7.1)]
<ikwildrpepper>
nwuensche: btw, I see nixpkgs master has newer link for teamviewer, I've pushed that to 17.03
<ikwildrpepper>
will take a while to get into channel
jellowj has quit [(Ping timeout: 276 seconds)]
jluttine has joined #nixos
<nwuensche>
Wow, the update from 5 lines above solves my problem ^^
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/v5ZNP
<NixOS_GitHub>
nixpkgs/master 52b56bf Tim Steinbach: containerd: 0.2.5 -> 0.2.9
<ikwildrpepper>
hate it when people remove stuff from the web
<deltasquared>
ikwildrpepper: mind if I ask what was taken down in this context
<ikwildrpepper>
deltasquared: some .deb
<ikwildrpepper>
from teamviewer
<deltasquared>
ikwildrpepper: I don't suppose you were trying to package it for nix by any chance
<ikwildrpepper>
deltasquared: I wasn't trying anything, nwuensche was trying to install it. I just noticed the link/version was fixed in nixpkgs-master, and backported it to 17.03 ;)
<nwuensche>
ikwildrpepper: How can I get this? rebuild switch --upgrade didn't worked.
<ikwildrpepper>
nwuensche: wait for channel update, or use a nixpkgs clone/checkout and point to that, e.g. with -I nixpkgs=/path/to/my/nixpkgs
freusque has quit [(Quit: WeeChat 1.7.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/v5ZAE
<NixOS_GitHub>
nixpkgs/master b65e2e6 zraexy: redshift-plasma-applet: add kwindowsystem to buildInputs
<deltasquared>
clever: interesting thing about your container generator btw. shame I couldn't use it on my android device, the kernel doesn't even have namespaces :/
jellowj has joined #nixos
<ikwildrpepper>
container generator?
<nwuensche>
ikwildrpepper: Ok, I will wait. :)
freusque has joined #nixos
ylwghst has joined #nixos
freusque has quit [(Client Quit)]
<deltasquared>
ikwildrpepper: it was in my backlog from yesterday. me, pxc and clever were sorta having a discussion about running distros in chroots and containers,
<ikwildrpepper>
deltasquared: ah, thnx :)
freusque has joined #nixos
freusque has quit [(Client Quit)]
<nwuensche>
ikwildrpepper: Could you help me with a package I'm trying to create? It's a driver for my Brother printer
<ikwildrpepper>
nope
* ikwildrpepper
needs to work ;)
<deltasquared>
eww, brother printer drivers are only just behind broadcom wireless drivers and nvidia gpu drivers in my book
<goibhniu>
nwuensche: if you describe the issues you're struggling with, others may be able to help you out
<nwuensche>
Sure :)
<nwuensche>
I have a problem with my printer driver. When I cd /nix/store/...-cups-progs and then echo "test" | sh lib/cups/filter/brlpdwrapperDCP145C, I get: /nix/store/...-mfc2j47dd0dw-cupswrapper-3.0.0-1/usr/local/Brother/Printer/dcp145c/lpd/.brdcp145cfilter-wrapped: line 3: /nix/store/...-mfc2j47dd0dw-cupswrapper-3.0.0-1/usr/local/Brother/Printer/dcp145c/lpd/.brdcp145cfilter-wrapped: No such file or directory. The files are here: :
<nwuensche>
tokudan[m]: So I tried this, but it didn't worked. However, I found out that brdcp145cfilter is a binary file, and the stuff that I can read is: libm.so.6, libc.so.6, strcpy, stdout, and some other C functions. Is there a wrapProgram argument for stuff like this
<tokudan[m]>
nwuensche: what does ldd show on the file? any libraries missing? maybe you need to use patchelf there?
Mercuria1Alchemi has quit [(Ping timeout: 240 seconds)]
<nwuensche>
tokudan[m]: not a dynamic executable
<nwuensche>
tokudan[m]: In which package can I find libc.so.6?
nh2 has joined #nixos
<tokudan[m]>
nwuensche: glibc
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] zimbatm opened pull request #1538: libexpr: add sha256 noop argument to fetch (1.11-maintenance...1.11-fetchurl-sha256) https://git.io/v5ZjB
NixOS_GitHub has left #nixos []
freeman42y[m] has joined #nixos
<nwuensche>
tokudan[m]: Progress! Thank you!
freeman42z[m] has joined #nixos
<nwuensche>
Now it says: /nix/store/wzfw0rmp35da829cq1291ardgs8vf7f6-mfc2j47dd0dw-cupswrapper-3.0.0-1/usr/local/Brother/Printer/dcp145c/lpd/.filterdcp145c-wrapped: line 43: 13331 Done eval cat $INPUT_TEMP
<bkchr>
Hi, if I specify the overlay path in my configuration.nix, can I install packages from these overlays globally via my configuration.nix?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti pushed 1 new commit to master: https://git.io/v5nUX
<NixOS_GitHub>
nixpkgs/master 2510256 Peter Simons: mini-httpd: update to version 1.7
NixOS_GitHub has left #nixos []
<spacefrogg>
bkchr: Yes
<spacefrogg>
bkchr: Add the packages in the overlay and they appear in the pkgs attribute set available in configuration.nix.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti pushed 1 new commit to master: https://git.io/v5nTe
<NixOS_GitHub>
nixpkgs/master 045c707 Peter Simons: ikiwiki: mark build broken...
NixOS_GitHub has left #nixos []
<bkchr>
spacefrogg: I added the https://github.com/mozilla/nixpkgs-mozilla overlay and added latest.firefox-nightly-bin to my systemPackages, but it complains with error: undefined variable ‘latest’
pakettiale has quit [(Read error: Connection reset by peer)]
freeman42x[m] has joined #nixos
pakettiale has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] oxij opened pull request #28679: memtest86+: use debian patches, use default gcc (master...pkg/memtestplus-default) https://git.io/v5nTB
NixOS_GitHub has left #nixos []
freeman42z[m] has quit [(Ping timeout: 240 seconds)]
<spacefrogg>
bkchr: How did you add the overlay?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v5nTE
<NixOS_GitHub>
nixpkgs/master 13360f0 Jörg Thalheim: gdbGuile: guile bindings are broken for quite some time
NixOS_GitHub has left #nixos []
<spacefrogg>
bkchr: And did you add the package as pkgs.latest.firefox-nightly-bin ?
<bkchr>
spacefrogg: Now my NIX_PATH looks good: nixpkgs=/home/bastian/projects/nixos/nixos-config/nixpkgs:nixos=/home/bastian/projects/nixos/nixos-config/nixpkgs/nixos:nixos-config=/etc/nixos/configuration.nix:nixpkgs-overlays=/home/bastian/projects/nixos/nixos-config/overlays
<spacefrogg>
bkchr: Try again, now.
<bkchr>
already tried
<bkchr>
spacefrogg: it does not work :(
<spacefrogg>
bkchr: In the overlays directory, do you have a default.nix there loading the subsequent overlays?
<spacefrogg>
It might be easier to put 'nixpkgs.overlays = [ (import /path/to/mozilla/overlay) ]' into configuration.nix
<spacefrogg>
This avoids the dependency on NIX_PATH env but you loose the ability to use overlays via nix-env
<NixOS_GitHub>
[nixpkgs] jtojnar opened pull request #28683: gnome-disk-utility: fix missing schemas for gnome-disk-image-mounter (staging...fix-gnome-disk-utility) https://git.io/v5nIu
NixOS_GitHub has left #nixos []
Ivanych has quit [(Ping timeout: 240 seconds)]
ertes-w has joined #nixos
<bkchr>
spacefrogg: First thanks for the tip with the missing default.nix to include all subsequent overlays. I thought that the path isworking as for nix-env
<bkchr>
The problem is, that the package is still not found
<pstn>
I'm trying to test some stuff from my local repo. How do I tell nixos-container to build a imperative container and use the config of my local repo?
<bkchr>
spacefrogg: with nix-env -iA I can install the package
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v5nIN
<bkchr>
spacefrogg: yeah, you were right. nixpkgs.overlays works. Thanks for your help. I just don't wanted to specify the overlay twice (because I also need the rust stuff for nix-env), but okay :)
<NixOS_GitHub>
[nixpkgs] bkchr opened pull request #28686: Kdeframeworks prison: Require at least Qt 5.7 (master...fix_prison) https://git.io/v5nGF
NixOS_GitHub has left #nixos []
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
aanderse has quit [(Ping timeout: 260 seconds)]
ertes has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] gebner pushed 2 new commits to master: https://git.io/v5nZS
<NixOS_GitHub>
nixpkgs/master 1ee49e1 Eric Sagnes: fcitx-unikey: fix build
<NixOS_GitHub>
nixpkgs/master 9aaa6cd Gabriel Ebner: Merge pull request #28685 from ericsagnes/pkg-fix/fcitx-unikey...
NixOS_GitHub has left #nixos []
pie_ has joined #nixos
<gchristensen>
anyone here from Mumbai?
odi has quit [(Ping timeout: 246 seconds)]
ShalokShalom has quit [(Remote host closed the connection)]
<vegai>
how do you guys change gtk themes?
<cmcdragonkai1>
I'm wondering do you guys use nix-shell and shell.nix while pinning the nixpkgs version inside the shell.nix or do you just use `<nixpkgs>`?
<vegai>
lxappearance seems quite broken
<vegai>
that's what I usually use
bennofs has joined #nixos
griff_ has joined #nixos
vaibhavsagar has joined #nixos
erictapen has quit [(Ping timeout: 260 seconds)]
<sphalerite>
vegai: I don't really change it personally but you can modify the files in ~/.config/gtk* using an editor if all else fails :p
<vegai>
sphalerite: mm
<joepie91>
gchristensen: that's an unusual question :)
<joepie91>
now I'm curious heh
<dash>
cmcdragonkai1: I haven't needed to pin nixpkgs version
<gchristensen>
joepie91: just keeping tabs on the safety of the community: economictimes.indiatimes.com/news/politics-and-nation/heavy-rains-lash-mumbai-city-staring-at-2005-like-flood/articleshow/60273437.cms :/
vaibhavsagar has quit [(Ping timeout: 248 seconds)]
<joepie91>
ah damn, I'd missed that
<cmcdragonkai1>
dash: I haven't pinned nixpkgs version inside my shell.nix, but I wonder if it would be a good idea to make sure that my shell.nix always fixes the exact dependencies I need
<joepie91>
I don't think that's made it into Dutch news at all?
griff__ has joined #nixos
<gchristensen>
joepie91: developing now, it hasn't made the US news either, but my coworker's home is flooding :/
<dash>
cmcdragonkai1: maybe! depends on what you're doing, no doubt
<joepie91>
damn
<vegai>
sphalerite: yeah, that seems to work :) thanks for pointing out the obvious
<joepie91>
gchristensen: are they otherwise fine?
<vegai>
although a GUI would make it a tad easier to see which themes are available
<vegai>
but oh well
betaboon has joined #nixos
griff_ has quit [(Ping timeout: 276 seconds)]
griff__ is now known as griff_
<gchristensen>
seem to be, but my novice interpretation seems to show a lot more rain to come
erictapen has joined #nixos
MercurialAlchemi has joined #nixos
mizu_no_oto has joined #nixos
sellout- has quit [(Quit: Leaving.)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra pushed 6 new commits to master: https://git.io/v5nW9
<NixOS_GitHub>
nix/master 05c45f3 Eelco Dolstra: readLink(): Handle symlinks in /proc...
<NixOS_GitHub>
nix/master 1c58e13 Eelco Dolstra: Hide commands that don't have a description...
<gchristensen>
disasm: really nice! I picked teeny nits and you can disregard some of them :)
jb55 has joined #nixos
odi has joined #nixos
<gchristensen>
disasm: also if you found them discouraging, please let me know so I can do better next time
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 1 new commit to master: https://git.io/v5n0B
<NixOS_GitHub>
nixpkgs/master e3f4de8 Michael Raskin: asc: 2.4.0.0 -> 2.6.0.0; maintain
NixOS_GitHub has left #nixos []
<disasm>
not at all :) That part I pretty much copy/pasted from the wiki with Mic92's permission, I don't even fully understand it myself.
<gchristensen>
oh cool
<gchristensen>
should get an update backported to the wiki :)
<gchristensen>
I don't want to propagate the idea we don't do it because it is hard
ona has quit [(Quit: ...)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<disasm>
gchristensen: addressed :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 1 new commit to master: https://git.io/v5n0j
<NixOS_GitHub>
nixpkgs/master 10f5aad Michael Raskin: acpi_call: mark as broken on ChromiumOS kernels
NixOS_GitHub has left #nixos []
<gchristensen>
ah, the `npm install` example isn't a valid example, it is a literal performance hit, not an issue of how long it takes to create the .nix files to package it
Rotaerk has quit [(Quit: Leaving)]
<gchristensen>
disasm: ^
<disasm>
gchristensen: remove that or you have a better example?
freeman42y[m] has joined #nixos
<hyper_ch>
finally, my nix expressions for my pdfForts tool seems fine
<gchristensen>
hmm how about "Sandboxing is not enabled by default in Nix due to a small performance hit on each build. In pull requests..."
<NixOS_GitHub>
nix/master e9c07a3 Eelco Dolstra: nix edit / log: Operate on a single Installable
NixOS_GitHub has left #nixos []
<gchristensen>
nice!
<gchristensen>
thank you Mic92! :) thank you disasm! :)
<Mic92>
gchristensen: I could imagine, there is a cheaper way to speedup sandboxed builds. By forking from a sandboxed parent.
<disasm>
Thanks Mic92 and gchristensen!
<gchristensen>
oh!
<disasm>
gchristensen: do you keep sandboxing enabled on your system?
<gchristensen>
definitely :)
<gchristensen>
IMO what am I using nix for if I'm going to go easy-mode
<disasm>
gchristensen: maybe I should do that too. Then I could check the sandboxing box on my PR's :)
<gchristensen>
:) certainly gives me peace of mind
<niksnut>
Mic92: if you fork from a sandboxed parent, then you're not isolated from the parent (and its other children)
<Mic92>
niksnut: one parent per nixbld user
ylwghst has quit [(Ping timeout: 248 seconds)]
<niksnut>
well, running the parents as nixbld users makes it hard to do killUser() (i.e. get rid of all remaining processes from a build)
<gchristensen>
I could think of optimizations here but they're not good :P like pre-create a sandbox while another build is running, ready to be used for the next one
<disasm>
haha, I should have known it was in git somewhere :)
leat has quit [(Ping timeout: 248 seconds)]
<gchristensen>
erm, is there a way to use a directory with an "@" in it as a source? :/
bkchr has quit [(Ping timeout: 240 seconds)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
iyzsong has quit [(Ping timeout: 252 seconds)]
<gchristensen>
I've got a funny scenario where my code is checked out to "foo@xyz/", I can't change this, and nix doesn't like me using ./. as a source because "@" can't be in the store name
ShalokShalom has joined #nixos
Coyin has joined #nixos
digitus has joined #nixos
ylwghst has joined #nixos
eacameron has quit [(Remote host closed the connection)]
<aminechikhaoui>
Hi, in nixos tests, what's the right way to set env vars during the testScript in the vms, as looks like doing $node->execute("export foo=bar") doesn't seem to persist ?
<aminechikhaoui>
but I might be wrong
<gchristensen>
not sure you can set a "global" env var. what exactly are you trying to do?
<gchristensen>
maybe there is another way
<aminechikhaoui>
gchristensen: well trying to use minio to emulate an s3 bucket in the local filesystem, so one easy way to setup the credentials is using the env vars
<cocreature>
Hey, nixpkgs-unstable hasn’t updated for 20 days. looking at hydra https://hydra.nixos.org/job/nixpkgs/trunk/unstable#tabs-constituents it seems like the only problem is nix-repl on darwin. is there anything I can do to help getting it to update again without having access to a darwing machine?
<ekleog>
Hey! Anyone got gwenview working without all of kde? I'm hitting a “WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded” when trying to open a video, even with phonon{,-backend-{vlc,gstreamer}} installed in systemPackages :/
scribbler has quit [(Remote host closed the connection)]
<disasm>
fresheyeball: yeah, you define all the networks using that. I'm not actually using it anymore... Had to switch to network manager for support for WPA enterprise radius networks for work.
goibhniu has quit [(Ping timeout: 240 seconds)]
scribbler has quit [(Ping timeout: 248 seconds)]
eacameron has quit [(Remote host closed the connection)]
njd_ has quit [(Quit: Page closed)]
aloiscochard has quit [(Quit: Connection closed for inactivity)]
eacameron has joined #nixos
proteusguy has joined #nixos
ShalokShalom has quit [(Remote host closed the connection)]
<cocreature>
mpickering: are you on different versions of nixpkgs? I have seen similar permissions to nh2’s after I updated recently specifically for Haskell packages.
Lisanna_ has joined #nixos
<mpickering>
We shouldn't be as I baked the package set into the shell.nix file
<gchristensen>
mpickering: is nh2 on nixos or just nix?
<Lisanna_>
Hey, is there anyone online who understands the dockerTools? I haven't been able to get anything interesting to work with it, and I don't know how much if it is me being an idiot and how much of it is that dockerTools is broken
<gchristensen>
Lisanna_: do try and ask a full question, I'll help if I can, otherwise someone else might! :)
<Lisanna_>
Okay :)
ShalokShalom has joined #nixos
<Lisanna_>
Well let's start with this: I try to build the first example here: https://gist.github.com/rvl/c1ca657882a883195f49 and when I load it, docker load doesn't give me any kind of image name or anything that I can "run".
<gchristensen>
Lisanna_: ok so one problem is you're creating several things there, not just one
<disasm>
I'm confused what the output would be from nix-build in that case, that's interesting.
<gchristensen>
it outputs /nix/store/796yba6j17x5lfw1g4483l7dd7wggc0z-docker-image-bash.tar.gz
<gchristensen>
(for example)
<Lisanna_>
gchristensen: no, I'm building just the first one
<gchristensen>
`nix-build --option extra-binary-caches http://hydra.nixos.org/ test-docker.nix | xargs -n1 docker load -i` doesn't do that
<Lisanna_>
I copied it into its own little file
<gchristensen>
oh
<Lisanna_>
derivation I'm building is the first buildImage
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rushmorem pushed 2 new commits to master: https://git.io/v5cki
takle has quit [(Remote host closed the connection)]
<gchristensen>
when you nix-build just the one, what do you get?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #28707: cvc3: Add gcc6 patch from Gentoo. (master...fix/cvc3) https://git.io/v5ckQ
NixOS_GitHub has left #nixos []
scribbler has quit [(Remote host closed the connection)]
<gchristensen>
what is the output?
takle has joined #nixos
jb55 has quit [(Quit: WeeChat 1.9)]
ris has joined #nixos
scribbler has joined #nixos
<Lisanna_>
Okay, I see an image named bash has shown up in my docker images list
<disasm>
gchristensen: you must have a faster network connection than I do :)
<gchristensen>
Lisanna_: ah :) there you go! :)
<gchristensen>
disasm: I have a nice datacenter to run it in ... :) (packet.net)
<Lisanna_>
Okay, so that part is fine... argh I hate the docker command line tools
<gchristensen>
Lisanna_: you. and. me. both.
<gchristensen>
Lisanna_: may I PM?
ixxie has joined #nixos
<Lisanna_>
I'm on a web chat right now, my company blocks IRC ports so I can't use a client, not sure if it would work
scribbler has quit [(Read error: No route to host)]
scribble_ has joined #nixos
<gchristensen>
Lisanna_: ok, ping me when you can :)
eacameron has quit [(Remote host closed the connection)]
<Lisanna_>
gchristensen: I could chat later today, I've got a busy day today so I have to stay in the office for awhile
<gchristensen>
sounds good -- any time
rodgort has quit [(Quit: Leaving)]
<Lisanna_>
thanks a ton :) I'd like to be able to start contributing a little to Nix/OS in general, I'm just working on bootstrapping myself through a bunch of useful project
scribble_ has quit [(Ping timeout: 248 seconds)]
<gchristensen>
sure! dip a few toes in, maybe you'll jump all the way in sometime :)
<bennofs>
maybe you need to set sourceRoot to something?
<disasm>
Lisanna_: this worked for me to load them all in one command: for i in `nix-build --option extra-binary-caches http://hydra.nixos.org/`; do docker load -i $i; done
<Profpatsch>
variable $src or $srcs should point to the source
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/v5cGG
<NixOS_GitHub>
nixpkgs/staging 8f713e8 Vladimír Čunát: wyrd: fixup by using older ncurses
NixOS_GitHub has left #nixos []
phinxy has joined #nixos
ison111 has quit [(Ping timeout: 252 seconds)]
<gchristensen>
how cool would it be if you could connect to a rabbitmq server that sent down nixos-related events
<gchristensen>
an immediate message when channels bumped, or PRs merged, hydra builds, etc. that sort of thing.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 4 new commits to staging: https://git.io/v5cZj
<NixOS_GitHub>
nixpkgs/staging 92652b4 Daiderd Jordan: darwin-CF: use @rpath for library id and add an rpath entry for CF based on NIX_COREFOUNDATION_RPATH
<NixOS_GitHub>
nixpkgs/staging cc1bfbd Daiderd Jordan: darwin-frameworks: use the system CF when frameworks are used...
<aanderse>
so if i wanted to hack on an options file for nixos is there a good tutorial on how to set that up on my machine? ie. i want to add a new option to my nixos, not a new package
<gchristensen>
you can add it to your imports = [ ..here.. ] in your configuration.nix
Sonarpulse has quit [(Ping timeout: 255 seconds)]
<aanderse>
and that will allow me to put stuff like my.option.value = "something"; in configuration.nix?
<Infinisil>
Is r-raymond on github here by any chance?
<remexre>
Hi, I'm having a hash mismatch installing named.root
scribbler has joined #nixos
<remexre>
output path ‘/home/ugrad00/ringo025/.nix/store/1hxvqbg619fn5ijn5pgdvk5iqkq5cf3h-named.root’ has sha256 hash ‘01n4bqf95kbvig1hahqzmmdkpn4v7mzfc1p944gq922i5j3fjr92’ when ‘1zf3ydn44z70gq1kd95lvk9cp68xlbl8vqpswqlhd30qafx6v6d1’ was expected
<remexre>
Did one of the root DNS servers change hands or something? Or get a new IP? Because that'd definitely change the hash
<dtzWill>
no clue! unfortunate that we use a URL that changes over time as a source
<dtzWill>
i guess unless it's unavoidable but :(
alx741_ has joined #nixos
<maurer>
I mean, we should have the old version on some machine yeah
<maurer>
so we can diff it?
<maurer>
(it's not on my machine)
<dtzWill>
lmao
<maurer>
In any case, detecting you're being served a different named.root seems like exactly the reason we want url fetches to be hashed >_>
<dtzWill>
"12,13c12,13
<dtzWill>
< ; last update: August 29, 2017
<dtzWill>
< ; related version of root zone: 2017082901
<dtzWill>
---
<dtzWill>
> ; last update: July 26, 2017
<dtzWill>
> ; related version of root zone: 2017072601
<dtzWill>
"
<maurer>
B|||||||
<maurer>
dangit
<dtzWill>
eep i thought it was fewer lines, but I was too busy rofl'ing
alx741 has quit [(Ping timeout: 276 seconds)]
thblt has quit [(Ping timeout: 240 seconds)]
jellowj has quit [(Ping timeout: 240 seconds)]
jellowj has joined #nixos
aswanson has joined #nixos
ktf_ has joined #nixos
<aswanson>
whats the best practice for building a python application that only works for a given version of python?
<ktf_>
hi, any recommendation about running nixos on EC2?
<JosW>
Is there a specific way to change programme configuraiton settings?
<dash>
aswanson: build it with that version
<aswanson>
dash: I'
<disasm>
aswanson: nixpkgs has multiple python versions available to specify in your nix file.
freeman42x has joined #nixos
freeman42x has quit [(Read error: Connection reset by peer)]
<aswanson>
dash: I've added a nix expression to build the package under nixpkgs/pkgs/top-level/python-packages.nix, what is the syntax to specify the python interpreter?
<aswanson>
because all I've seen is a generic 'buildPythonPackage' function
<dash>
you'd use python27Packages.buildPythonApplication or such
<aswanson>
I see. I'll give that a shot
jellowj has quit [(Ping timeout: 240 seconds)]
justan0theruser has joined #nixos
justanotheruser has quit [(Ping timeout: 255 seconds)]
colescott has joined #nixos
vaibhavsagar has quit [(Remote host closed the connection)]
justan0theruser has quit [(Client Quit)]
jellowj has joined #nixos
justanotheruser has joined #nixos
<colescott>
Does anyone here have any experience building binutils?
<elvishjerricco>
What's the best way to work on Nix expressions for a fork of GHC? The main problem I'm having is that you can't just change one of the GHC derivations with `src = fetchgit { <myfork> };` because GHC uses relative paths for submodules, so `git.haskell.org` has to be a remote. I guess I could just change `fetchgit` to allow you to add more remotes?
a6a3uh has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
joelpet has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] fpletz pushed 2 new commits to master: https://git.io/v5coU
<NixOS_GitHub>
nixpkgs/master 82f835d =: enchive: init at 3.3
<NixOS_GitHub>
nixpkgs/master 24d113a Franz Pletz: Merge pull request #28713 from nico202/enchive...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] grahamc opened pull request #1540: 1.11: Replace stat / uid comparison with test -O (1.11-maintenance...test-o) https://git.io/v5coE
NixOS_GitHub has left #nixos []
sary has joined #nixos
ison111 has quit [(Quit: WeeChat 1.7.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/v5coD
<NixOS_GitHub>
nixpkgs/master 5172dfd Piotr Bogdan: swc: remove setuid from install script
NixOS_GitHub has left #nixos []
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
<Infinisil>
Right, pkgs depends on the overlays used, which is defined in nixpkgs.overlays
<Infinisil>
and some other things like nix.package
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] kampfschlaefer closed pull request #12940: Firewall: Add support for arbitrary rules for input, output and forward (master...feature/improve_firewalling) https://git.io/vgKFp
NixOS_GitHub has left #nixos []
<viaken>
I have somehow broken my nix-build. It keeps using the sources for the last package I was working on, rather than the package I'm trying to build. nix-build ~/my-nixpkgs -A newpackage
<viaken>
Can someone explain to me what I broke? :)
erasmas has quit [(Quit: leaving)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/v5c6a
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/v5ciF
<NixOS_GitHub>
nixpkgs/master 5cf4562 Steven Conaway: plex: 1.5.7.4016 -> 1.7.5.4035 (#28514)
NixOS_GitHub has left #nixos []
Neo-- has joined #nixos
<copumpkin>
can anyone help me interpret this regex to make sure I get an equivalent one that isn't GNU-specific? `builtins.match "^((|\..*)\.sw[a-z]|.*~)$"`
<gchristensen>
can you provide info on what you're matching / not matching?