<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vHqAG
<NixOS_GitHub>
nixpkgs/staging 8004e79 Vladimír Čunát: Merge branch 'master' into staging
NixOS_GitHub has left #nixos []
Supersonic112 has quit [(Ping timeout: 268 seconds)]
eacameron has quit [(Remote host closed the connection)]
johnsonav has quit [(Ping timeout: 272 seconds)]
lambdamu_ has joined #nixos
takle has joined #nixos
Supersonic112 has joined #nixos
lambdamu has quit [(Ping timeout: 260 seconds)]
takle has quit [(Ping timeout: 240 seconds)]
s33se_ has joined #nixos
hamishmack has quit [(Ping timeout: 240 seconds)]
hamishmack has joined #nixos
johnsonav has joined #nixos
s33se has quit [(Ping timeout: 246 seconds)]
seantparsons has joined #nixos
seanparsons has quit [(Ping timeout: 255 seconds)]
takle has joined #nixos
justelex_ has joined #nixos
takle has quit [(Ping timeout: 268 seconds)]
justelex has quit [(Ping timeout: 240 seconds)]
Raimondii has joined #nixos
mbrgm has quit [(Ping timeout: 240 seconds)]
koserge has quit [(Ping timeout: 260 seconds)]
Raimondi has quit [(Ping timeout: 268 seconds)]
Raimondii is now known as Raimondi
derjohn_mob has quit [(Ping timeout: 240 seconds)]
mbrgm has joined #nixos
smw has quit [(Ping timeout: 258 seconds)]
mkoenig has quit [(Read error: Connection reset by peer)]
jonas_ has joined #nixos
sellout- has joined #nixos
jonas_ has quit [(Client Quit)]
jonas_ has joined #nixos
jonas_ has quit [(Client Quit)]
jonas_ has joined #nixos
mkoenig has joined #nixos
jonas_ is now known as joniWoni
takle has joined #nixos
acarrico has quit [(Read error: Connection reset by peer)]
bhipple has joined #nixos
joniWoni has quit [(Quit: leaving)]
jonas_ has joined #nixos
jonas_ has quit [(Client Quit)]
smw has joined #nixos
derjohn_mob has joined #nixos
justelex_ has quit [(Ping timeout: 260 seconds)]
takle has quit [(Ping timeout: 240 seconds)]
<bhipple>
hi, has anyone managed to get Ethereum mining working on NixOS with AMD graphics cards?
<bhipple>
I see AmdAppSDK 2.8 is packaged and some old ethereum stuff as well, so I assume someone had it working at some point
<bhipple>
wondering if there are any docs/blogs/hints floating around
jonas_ has joined #nixos
jonas_ has quit [(Client Quit)]
<bhipple>
or more generally I'm wondering about how NixPkg works for interfacing with OS/hardware dependencies like kernel versions, gfx/audio drivers, x11 stack, etc.; I don't know much about this and would like to learn more, if anyone has any good references
jonas_ has joined #nixos
systemfault has joined #nixos
jonas_ is now known as joniWoni
joniWoni has quit [(Client Quit)]
fifo23 has quit [(Remote host closed the connection)]
fifo23 has joined #nixos
simukis has quit [(Ping timeout: 258 seconds)]
takle has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] copumpkin pushed 1 new commit to master: https://git.io/vHqjE
<NixOS_GitHub>
nixpkgs/master b0adb09 Dan Peebles: pants13-pre: pre-download the native engine...
NixOS_GitHub has left #nixos []
fifo23 has quit [(Ping timeout: 246 seconds)]
takle has quit [(Ping timeout: 260 seconds)]
joniWoni has joined #nixos
joniWoni has quit [(Client Quit)]
hexagoxel has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
darlan has joined #nixos
darlan has quit [(Client Quit)]
hexagoxel has joined #nixos
takle has quit [(Ping timeout: 268 seconds)]
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
indi_ has quit [(Remote host closed the connection)]
jgertm has quit [(Ping timeout: 260 seconds)]
indi_ has joined #nixos
phinxy has quit [(Quit: Leaving)]
takle has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
Mateon3 has joined #nixos
Mateon1 has quit [(Ping timeout: 260 seconds)]
Mateon3 is now known as Mateon1
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] copumpkin pushed 6 new commits to master: https://git.io/vHmvh
<NixOS_GitHub>
nixpkgs/master e845495 Joachim Fasting: lkl: add meta.homepage
<NixOS_GitHub>
nixpkgs/master e983d43 Joachim Fasting: lkl: bc & python are native build inputs
<NixOS_GitHub>
nixpkgs/master 8c8f40a Joachim Fasting: lkl: d747073 -> 2017-03-24...
NixOS_GitHub has left #nixos []
justelex_ has joined #nixos
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
indi_ has quit [(Remote host closed the connection)]
ertesx has joined #nixos
yegods has joined #nixos
ertes has quit [(Ping timeout: 260 seconds)]
ertesx is now known as ertes
indi_ has joined #nixos
bhipple has quit [(Quit: WeeChat 1.8)]
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
takle has joined #nixos
takle has quit [(Ping timeout: 246 seconds)]
calvertvl has joined #nixos
rcschm has joined #nixos
vaibhavsagar has quit [(Ping timeout: 246 seconds)]
rcschm has quit [(Client Quit)]
<calvertvl>
looks like the hash on the recent ffmpeg update (on unstable) is not correct; it fails to build for me
vaibhavsagar has joined #nixos
fifo23 has joined #nixos
<calvertvl>
MP2E: it looks like that was your commit
<MP2E>
strange, it built on my end. will gc and try again
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej opened pull request #26043: cyrus_sasl: fix version (master...sasl) https://git.io/vHmJR
NixOS_GitHub has left #nixos []
<MP2E>
oh I see the issue. ffmpeg-full uses the .xz archive while ffmpeg uses the bz2 archive, and I used the same hash for both
<MP2E>
thanks for letting me know
<calvertvl>
you're welcome
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] MP2E pushed 1 new commit to master: https://git.io/vHmJP
<srhb>
manveru: Thank you. Couldn't find it for the life of me :)
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
k0001 has joined #nixos
derjohn_mob has joined #nixos
goibhniu has joined #nixos
indi_ has quit [(Ping timeout: 240 seconds)]
JagaJaga has joined #nixos
takle has joined #nixos
jensens has joined #nixos
tommyangelo[m] has joined #nixos
ambro718 has quit [(Ping timeout: 260 seconds)]
<tommyangelo[m]>
Hi all, currently trying to figure out why docker-compose build cannot connect to the docker daemon. Any help mucho appreciado! https://github.com/NixOS/nixpkgs/issues/26023
takle has quit [(Ping timeout: 240 seconds)]
arianvp2 has joined #nixos
<arianvp2>
Hey, is it possible to set up a nixos build cache with GPG signing instead of with Nix's own-rolled crypto?
<arianvp2>
I need control over what ecnryption to use due to regulatory constraints :(
<dalaing>
The default.nix bit looks like it might work
takle has quit [(Ping timeout: 258 seconds)]
proteusguy has quit [(Remote host closed the connection)]
<dalaing>
tomjaguarpaw: I think it can be simpler than that though
<dalaing>
If you Google for: python nix
<dalaing>
There is a pdf on readthedocs that looks pretty good
<avn>
tomjaguarpaw: custom shell.nix be easier
<avn>
(although I not figure out, how to use `setup.py develop` with custom shell.nix)
phreedom has joined #nixos
ertes has joined #nixos
stranger__ has joined #nixos
betaboon has joined #nixos
<FRidh>
dalaing: I was hoping that pdf would have disappeared after I removed the readthedocs config. Those docs have been merged into the Nixpkgs manual.
<stranger__>
hi. anyone uses nixos on ssd with periodic trim? how do you run fstrim (anacron, systemd unit etc). show please :-)
<stranger__>
ikwildrpepper: thanks. no interest to add something similar to mainstream nixos?
Piece_Maker has joined #nixos
Piece_Maker is now known as Acou_Bass
<ikwildrpepper>
stranger__: not sure if that is so useful, it's a pretty trivial config, and people might want to have different usages
takle has joined #nixos
<betaboon>
hello, is it possible to pass an expression to an import via config.imports ? like imports = [ ./foo.nix {bar="baz";}]; where {bar="baz} gets passed to foo.nix ?
<shlevy>
niksnut: Getting hydra-queue-runner.cc:201:102: error: 'std::__cxx11::string {aka class std::__cxx11::basic_string<char>}' has no member named 'get' building hydra... Do I need some special nixpkgs checkout?
<TimePath>
betaboon: parentheses are your friend: `imports = [ (./foo.nix {bar="baz";})];`
<TimePath>
gchristensen: not 100% sure for that use case, but you do need the parentheses in lists if you're invoking functions
<stranger__>
niksnut: no. these distros (fedora, debian etc) only ship that by default, not enable it afaik :-) so i proposed the similar. actually, unit files should be in util-linux
<gchristensen>
yeah, its just that a file isn't a function
<nixy>
How do you do a packageOverride, but for a NixOS module?
<niksnut>
stranger__: ah great
<nixy>
So that I could for example mix the module from unstable with the rest of the system
dhess` has quit [(Remote host closed the connection)]
<shlevy>
niksnut: Is hydra meant to work without an s3 backed store still?
<gchristensen>
betaboon: what are you wanting to pass in, specifically?
<shlevy>
niksnut: seeing this in hydra-queue-runner logs after upgrading hydra: queue monitor: AWS error fetching ‘m2rd5r7qlxhg8lbrc7jjqkcil040v1d0.narinfo’: Unable to parse ExceptionName: PermanentRedirect Message <etc>
<betaboon>
TimePath: the paranthesis option runs into "attempt to call something which is not a function but a path"
<betaboon>
gchristensen: i have 'imports = [ (./foo.nix { bar = true; }) ]' where head -n1 foo.nix => '{ config, lib, bar ? false, ... }:'
darlan has joined #nixos
<betaboon>
so later in foo.nix i want to do "config.someoption = bar;"
<TimePath>
betaboon: sorry I missed the part where you had a path: `imports = [ (import ./foo.nix {bar="baz";})];`
<betaboon>
TimePath: no worries :D
takle has joined #nixos
orivej has joined #nixos
<betaboon>
TimePath: for my shown use-case i would have to do '(import ./foo.nix {inherit config lib; bar="baz";})' ?
darlan has quit [(Client Quit)]
<TimePath>
Assuming that `imports` can deal with the result, yes (that part I do not know)
Bradyn2000 has joined #nixos
TweyII has joined #nixos
takle has quit [(Ping timeout: 255 seconds)]
<betaboon>
seems to work atleast:D
TweyII is now known as Guest95708
<niksnut>
shlevy: yes
<gchristensen>
betaboon: can you describe what you're actually passing to the file? there might be a better way
<betaboon>
gchristensen: for now it realy just is bools, integers or strings
<gchristensen>
...
<betaboon>
am I missing the point for your question ?
<gchristensen>
yeah. what are you _actually_ passing? what is the data? where is it coming from?
Ross has quit [(Ping timeout: 246 seconds)]
<betaboon>
you mean (for the example) where the actual value of bar is defined? if so: directly in the import as shown in the example.
<gchristensen>
_sigh_ ok good luuck
<betaboon>
is that a bad idea?
<gchristensen>
no, what you're doing is fine
<betaboon>
I'm still getting acquainted with nix. still have to learn alot about doing things the nix-way. So I'm very happy about critical pointers :)
<TimePath>
betaboon: I think gchristensen is trying to understand your use case
<TimePath>
but if it works it's fine
<sphalerite>
What would be the best way to get a disk image of a NixOS installation with a given configuration? I want something I can dd to a USB stick and boot off like a live system, but with persistence
<gchristensen>
sphalerite: you can build the "live cd" images with extra config
<sphalerite>
gchristensen: I realise that, but those don't have persistent data
<sphalerite>
I want the result of creating a partition table and partitions like for a normal installation
<gchristensen>
not sure what else is required, but I think this should get you most of the way there
mudri has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
koserge has joined #nixos
<sphalerite>
But I don't want an ISO, I want an ext4 root partition so everything is writable
Isorkin has quit [(Ping timeout: 260 seconds)]
takle has quit [(Ping timeout: 260 seconds)]
<gchristensen>
hmm fair
<gchristensen>
sphalerite: what if you just did a regular install, mounting the USB disk to /mnt ?
<gchristensen>
not dd-able but maybe worth exploring? alternatively, maybe check out how the AWS AMIs get built
<betaboon>
TimePath: If thats the case: I am just moving common service configuration into seperate files (eg default nginx with ssl, acme etc). i want to use the discussed expressions to override some of these 'defaults' (eg disable all SSL support by passing a boolean).
<sphalerite>
gchristensen: oh yeah, I could create an image using dd, make a partition table on it using fdisk then loop-mount it to /mnt and use nixos-install
alex__ is now known as apeyroux
<gchristensen>
sphalerite: sounds great :D
<sphalerite>
But that's not using nix for the process :/
<gchristensen>
then I'd look more in to how the amis do it
<symphorien>
betaboon: you may use an option for that
<makefu>
gchristensen: btw you had a chance to look into hound to support filtered search? i'd love to add a link to the front page of the wiki - github search is `the worst`
<gchristensen>
that probably isn't something I'm going to do, unfortunately
<gchristensen>
but if you do it, I'd apply the patch :)
<makefu>
oh noes! i have no idea from front-end dev :\
<makefu>
but i will give it a try as the service module in nixpkgs awesome
<nixy>
What does the hound page actually search through? Isn't it just a frontend to the git repo?
<nixy>
At this point I just use grep on my local copy of nixpkgs to find stuff
seanparsons has joined #nixos
seantparsons has quit [(Read error: Connection reset by peer)]
proteusguy has quit [(Ping timeout: 240 seconds)]
<makefu>
gchristensen: btw in the docu for hound '"dbpath" : "${services.hound.home}/data",' should be ${config.services.hound.home} right?
<bkchr>
gchristensen: I share the configuration with multiple computers and on other pcs, where the local repo does not exist, I don't want to get an error^^
<bkchr>
At least that is my idea
<Infinisil>
Good day! What's the discussion about, bkchr?
ertes has joined #nixos
<bkchr>
Infinisil: Hi, talking about using a local package checkout and if that does not exist, it should use the "normal" packages
<clever>
bkchr: may need a tryEval then
<shlevy>
niksnut: For declarative projects, when we get a cached eval of .jobsets that's *not* the latest successful eval we want to switch back. Any idea how to do that off the top of your head?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] mt-caret opened pull request #26059: top-level/python-packages: add zip support to fetchPypi (master...fetchpypi-zip-support) https://git.io/vHmdD
NixOS_GitHub has left #nixos []
ertes has quit [(Ping timeout: 240 seconds)]
ThatDocsLady has quit [(Quit: Arma-geddin-outta-here!)]
python476 has joined #nixos
<Infinisil>
bkchr: I think this might work: let pkgs = import (if builtins.pathExists /nixpkgspath then /nixpkgspath else <nixpkgs>) {}; in { ... }
jgertm has joined #nixos
<Infinisil>
I'm trying to use a broken package.. For some reason I'm surprised it doesn't work..
ertes has joined #nixos
anton__ has quit [(Remote host closed the connection)]
peacememories has joined #nixos
anton__ has joined #nixos
ertes has quit [(Ping timeout: 246 seconds)]
<aloiscochard>
hi there, did anyone ever had to use the cloudfoundry cli tools in Nix? I tried thru docker but it does seems to keep the context... would be great to run it natively.
indi_ has joined #nixos
<evangeline>
hi, does anybody know what to use in buildInputs in order to solve the "fatal error: gnu/stubs-32.h: No such file or directory" error. The glibc doesn't do the trick.
<bkchr>
Currently I'm trying to rebuild lxd for my pull request (https://github.com/NixOS/nixpkgs/pull/25685) with the sandbox enabled, but If I disable lxd in my packages and call nix-collect-garbage -d, the lxd files are not deleted
<bkchr>
Anyone has an idea why?
<Infinisil>
evangeline: There's also stdenv_32bit which is supposed to do this
<Infinisil>
(instead of normal stdenv)
<evangeline>
Infinisil: that solves the issue but I'm getting the following error now: http://dpaste.com/0HC58C4
Raimondi has quit [(Read error: Connection reset by peer)]
stranger__ has quit [(Quit: Connection closed for inactivity)]
Raimondi has joined #nixos
<tomjaguarpaw>
I made python-modules/dlib/default.nix based on python-modules/pandas/default.nix but nix-shell doesn't see it. Do I need to "register" this package anywhere?
<clever>
tomjaguarpaw: yeah, i think its python-packages.nix
Bradyn2000 has quit [(Ping timeout: 246 seconds)]
<lewo>
tomjaguarpaw, yes, in nixpkgs/top-level/python-packages.nix
<clever>
pkgs/top-level/python-packages.nix
<tomjaguarpaw>
clever: Thanks!
<makefu>
gchristensen: regarding the filter, i just gave up trying to fix hound. ui code is too spaghetti for me to wrap my head around: https://github.com/etsy/hound/issues/251
<gchristensen>
nice
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vHmpY
<NixOS_GitHub>
nixpkgs/master 65477dc Masayuki Takeda: Python fetchPypi: support an extension...
NixOS_GitHub has left #nixos []
<tomjaguarpaw>
Now it complains about not being able to find 'lib/python2.7/site-packages/distro.py' and indeed that package is not there
<tomjaguarpaw>
* distro.py is not there
dbmikus has joined #nixos
odi has quit [(Ping timeout: 260 seconds)]
<evangeline>
Hey, is it possible to get 32-bit glibc in one of the packages, which is x86 only ?
<tomjaguarpaw>
Anyone know about packaging python things?
dbmikus has quit [(Client Quit)]
<dash>
tomjaguarpaw: i saw somebody do it once
<tomjaguarpaw>
haha
<dash>
tomjaguarpaw: you wanting to contribute a package to nixpkgs?
<Infinisil>
Well just look through pkgs/top-level/pythonPackages.nix
Infinisil has quit [(Quit: gotta go)]
DrWaste has quit [(Quit: Run away!)]
jgertm has quit [(Ping timeout: 258 seconds)]
dbmikus has joined #nixos
MercurialAlchemi has quit [(Ping timeout: 240 seconds)]
erasmas has joined #nixos
kthnnlg has quit [(Remote host closed the connection)]
<FRidh>
Getting curious to the amount of life years that are lost due to Python packaging.
<clever>
bkchr: i think you need to install both the unwrapped and the auto-start'd versions
<FRidh>
bkchr: no, it will refer to the unwrapped program then. You might want to look instead at the code that creates the wrapper for Yakuake and find out why it doesn't link to the *.desktop file.
Rotaerk has quit [(Quit: Leaving)]
<bdimcheff>
does anyone have a sierra wireless EM7455 (from lenovo) working properly? mine works in windows and ubuntu fine, but it just fails pretty early in the process in nix, perhaps because of this FCC flag thing https://bugs.freedesktop.org/show_bug.cgi?id=96623
<bkchr>
FRidh: isn' t that line 61 in the file I linked?
sitwon has joined #nixos
<sudoreboot[m]>
If I wanted to try my hand at creating a nixpkg as someone who still has trouble understanding basic nix syntax but learns quickly-ish, how long should I expect to spend on it?
<FRidh>
bkchr: you'll want to know what kdeWrapper does.
<gchristensen>
depends on how tricky the package is, sudoreboot[m] :)
<bkchr>
FRidh: I fixed it in the package
mizu_no_oto has joined #nixos
<gchristensen>
sudoreboot[m]: some packages I can get done in 5 minutes, some take a long time, some ... well, some I just give up on :P
<sudoreboot[m]>
gchristensen: I just made an issue about it (https://github.com/NixOS/nixpkgs/issues/26060). Certain dependencies are already packaged but not sure how much is not. On the surface it looks like there are some nice helper functions for deploying dotnet stuff.. but I always regret it when I say something seems straight forward
<gchristensen>
dotnet ... hmm
<betaboon>
is something like a combination of mkIf and mkAfter ?
<sudoreboot[m]>
dotnet is slowly killing me from the inside
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bkchr opened pull request #26063: Updates Yakuake to version 3.0.3 and exposes the .desktop (master...update_yakuake_fix_dot_desktop) https://git.io/vHYfK
NixOS_GitHub has left #nixos []
zraexy has joined #nixos
MercurialAlchemi has quit [(Ping timeout: 260 seconds)]
<bkchr>
And there is the pull request :)
<gchristensen>
sudoreboot[m]: I have _no_ idea
MercurialAlchemi has joined #nixos
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
edoput has joined #nixos
ertes has quit [(Ping timeout: 258 seconds)]
justelex_ has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<gchristensen>
jophish: ping?
edoput has quit [(Client Quit)]
<tomjaguarpaw>
dash: I want to manage a package using nixpkgs and I'm happy to contribute it in a PR
<jophish>
hey gchristensen
<gchristensen>
may I PM?
<jophish>
hey tomjaguarpaw
<jophish>
sure
<tomjaguarpaw>
Hey jophish. Glad you found your plane :)
MercurialAlchemi has quit [(Ping timeout: 268 seconds)]
<jophish>
tomjaguarpaw: me too, I was very surprised at how far it had gone
<tomjaguarpaw>
Perhaps it was trying to get home
mizu_no_oto has joined #nixos
<tomjaguarpaw>
I'm very confused about what nix is doing to try to build my python package
<tomjaguarpaw>
Can I get debug output somehow?
<jophish>
you could set NIX_DEBUG, but I'm not sure it will be helpful here
<goibhniu1>
tomjaguarpaw: you can use the -k flag to keep the failed build, and cause it to fail earlier so you can step through it ... you can also step through the phases with nix-shell
goibhniu1 is now known as goibhniu
<tomjaguarpaw>
It's not even a failed build really. It's just looking for distro.py and not finding it.
<FRidh>
tomjaguarpaw: i think distro.py is provided by pip, try adding it as `buildInput`. What a horrible setup.py file by the way.
boxofrox has quit [(Ping timeout: 260 seconds)]
<tomjaguarpaw>
goibhniu: I guess it's trying to run apt get for distro detection?
Mercuria1Alchemi has joined #nixos
<FRidh>
oh and it needs cmake, right.
<tomjaguarpaw>
FRidh: What's the difference between build input and the stuff that's at the top of the file inside {}?
<goibhniu>
maybe you can keep it happy by telling it where to find cmake
<tomjaguarpaw>
Well I've added cmake inside the {}
<tomjaguarpaw>
But should I put it somewhere else?
<dash>
yeah, this is all just for a cmake error message
<dash>
tomjaguarpaw: it needs to go in buildInputs
<tomjaguarpaw>
buildInputs = [ cmake ];
<tomjaguarpaw>
?
<tomjaguarpaw>
Oh, the {} just imports stuff
<tomjaguarpaw>
Ah, so that gets further.
<FRidh>
tomjaguarpaw: what's in the top are your function parameters. You are writing a function that calls the buildPythonPackage function with a set of arguments ( like src and buildInputs)
<goibhniu>
you probably need to pass it to setup.py too
<tomjaguarpaw>
setup.py is fine with cmake in buildInputs
<tomjaguarpaw>
But it stops somewhere else
<tomjaguarpaw>
Boost, it looks like
<tomjaguarpaw>
Oh wow it's building :D
<goibhniu>
"This file basically just uses CMake to compile the dlib python bindings project located in the tools/python folder and then puts the outputs into standard python packages." ... I'd consider doing that in a nix expression instead
<goibhniu>
oh!
<FRidh>
I agree
<tomjaguarpaw>
OK, so it wanted distro just to write an error message?
<FRidh>
I suggest you use `format = "other";`
<tomjaguarpaw>
Well thanks for helping me avoid that rabbit hole
<FRidh>
it will then use the cmake installation
<tomjaguarpaw>
It's happily using cmake with format = "setuptools"
<tomjaguarpaw>
unless you mean I won't need to use buildInputs
ToxicFrog has quit [(Ping timeout: 260 seconds)]
nallar has joined #nixos
jensens has quit [(Ping timeout: 258 seconds)]
Ross has quit [(Ping timeout: 245 seconds)]
nallar is now known as Ross
<tomjaguarpaw>
Oh my gosh it works :D :D :D
<tomjaguarpaw>
Thanks for all your help dash, goibhniu, FRidh
<goibhniu>
yay!
<goibhniu>
yw!
<tomjaguarpaw>
That's actually very painless now I know what to do.
justelex_ has quit [(Ping timeout: 240 seconds)]
edoput has joined #nixos
<jophish>
Glad to see you getting into nix, tomjaguarpaw
justelex_ has joined #nixos
tommyangelo has quit [(Ping timeout: 240 seconds)]
nallar has joined #nixos
Ross has quit [(Ping timeout: 260 seconds)]
nallar is now known as Ross
calvertvl has joined #nixos
mbrock has joined #nixos
<mbrock>
what's the frequency of the nixos-unstable channel? and is it blocked because of some issue?
<mbrock>
ahh, it seems that nixpkgs-unstable is fresher
<goibhniu>
nixpkgs-unstable doesn't run as many tests ... it can be a bit dangerous if you're using nixos
<goibhniu>
... stuff like grub can break in nixpkgs-unstable
<mbrock>
okay, I'm mostly recommending it to people who installed standalone Nix in order to download dependencies for my team's software. We don't have many NixOS users
<goibhniu>
perfect
<mbrock>
(though I use NixOS myself and somewhat regularly `nixos-rebuild switch' from master...)
edoput has quit [(Quit: edoput)]
Mercuria1Alchemi has quit [(Remote host closed the connection)]
<mbrock>
what's the standard way for non-NixOSers to change and update their channel?
digitus has joined #nixos
<mbrock>
oh, probably just the same `nix-channel' commands
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti pushed 3 new commits to release-17.03: https://git.io/vHY35
<NixOS_GitHub>
nixpkgs/release-17.03 df96ad0 Peter Simons: multi-ghc-travis: update to latest git version and install both scripts...
<NixOS_GitHub>
nixpkgs/release-17.03 43b42b6 Peter Simons: libqmi: update to version 1.18.0...
<NixOS_GitHub>
nixpkgs/release-17.03 d82736a Peter Simons: libqmi: enable MBIM support...
NixOS_GitHub has left #nixos []
<goibhniu>
yup
Itkovian has quit [(Read error: Connection reset by peer)]
<stallion>
has anyone needed to install a certificate to cacert for a package before?
<stallion>
not seeing a good way to deal with this
hke has quit [(Quit: bye)]
boxofrox has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] matthiasbeyer opened pull request #26068: vimer: init at 0.2.0 (master...add-vimer) https://git.io/vHYGf
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti pushed 2 new commits to master: https://git.io/vHYGL
<NixOS_GitHub>
nixpkgs/master 47fa2a1 Peter Simons: LTS Haskell 8.15
<NixOS_GitHub>
nixpkgs/master 503ec21 Peter Simons: hackage-packages.nix: automatic Haskell package set update...
NixOS_GitHub has left #nixos []
hke has joined #nixos
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
indi_ has joined #nixos
<tomjaguarpaw>
jophish: It seems a saner way to build Docker images than Dockefiles
derjohn_mob has quit [(Ping timeout: 240 seconds)]
edoput has joined #nixos
<BlessJah>
I'm writing expression for package/module that requires generating ~400 lines config, how should I handle this? embedd those lines in expression?
indi_ has quit [(Ping timeout: 240 seconds)]
derjohn_mob has joined #nixos
Itkovian has joined #nixos
<BlessJah>
also, where things like pkgs.writeText are described?
<FRidh>
that doesn't work because there's no setupHook
peacememories has joined #nixos
peacememories has quit [(Client Quit)]
<tomjaguarpaw>
So are Lua packages just broken at the moment?
markus1199 has quit [(Ping timeout: 240 seconds)]
markus1189 has quit [(Ping timeout: 260 seconds)]
ertes has quit [(Ping timeout: 245 seconds)]
indi_ has quit [(Ping timeout: 246 seconds)]
endformationage has joined #nixos
markus1189 has joined #nixos
markus1199 has joined #nixos
ambro718 has joined #nixos
ertes-w has quit [(Ping timeout: 260 seconds)]
fifo23 has quit [(Read error: Connection reset by peer)]
fifo23 has joined #nixos
freusque has quit [(Quit: WeeChat 1.7)]
Tucky has quit [(Remote host closed the connection)]
peacememories has joined #nixos
bennofs has quit [(Ping timeout: 240 seconds)]
derjohn_mob has joined #nixos
peacememories has quit [(Ping timeout: 268 seconds)]
peacemem_ has joined #nixos
bkchr has joined #nixos
peacemem_ has quit [(Client Quit)]
orivej has quit [(Ping timeout: 246 seconds)]
justelex_ has quit [(Ping timeout: 240 seconds)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
JayVii has quit [(Remote host closed the connection)]
marsel has joined #nixos
mudri has quit [(Ping timeout: 255 seconds)]
JayVii has joined #nixos
georges-duperon has joined #nixos
edoput has quit [(Quit: edoput)]
justelex_ has joined #nixos
eacameron has joined #nixos
FRidh has quit [(Ping timeout: 272 seconds)]
mkoenig has quit [(Remote host closed the connection)]
eacameron has quit [(Remote host closed the connection)]
justelex_ has quit [(Ping timeout: 246 seconds)]
<pierron>
Why only tarballs are being downloaded from cache.nixos.org, and why everything else is being rebuilt?
<gchristensen>
if you've got a mass rebuild somewhere it'll fetch sources from the cache
<pierron>
Is there a simple way to figure out where it started to go wrong?
detran` has quit [(Ping timeout: 258 seconds)]
jgertm has joined #nixos
jgertm is now known as Guest53184
<pierron>
gchristensen: I found it, apparently having an attribute named "name" in an overlay causes a mass-rebuild
<gchristensen>
wtf?
<pierron>
I agree.
ertes has joined #nixos
ambro718 has quit [(Ping timeout: 260 seconds)]
ertes has quit [(Ping timeout: 268 seconds)]
mkoenig has joined #nixos
cement has joined #nixos
cement has quit [(Remote host closed the connection)]
cement has joined #nixos
indi_ has joined #nixos
betaboon has quit [(Quit: This computer has gone to sleep)]
indi_ has quit [(Ping timeout: 260 seconds)]
Guest23470 has quit [(Ping timeout: 240 seconds)]
hiberno has quit [(Ping timeout: 258 seconds)]
<stallion>
anyone around familiar with overrides?
<gchristensen>
pierron: seems worth a bug report
<gchristensen>
stallion: many people, should ask :)
<pierron>
gchristensen: The problem is I have no idea how to investigate that.
<gchristensen>
yeah, I think just any bug report would be good
<srhb>
pierron: Is it reproducible? Then that's enough.
<pierron>
gchristensen: somehow, I bet they are a lot of Nix expression for packages which are defined as callPackage ./path, which expect a name attribute as argument, and that one might not be provided, or might have a default value if missing.
<stallion>
I'm in an odd situation where I need to install a certificate into the default cacert, I'm not seeing a great way to do this, so I started looking at providing an override that would append the cert that I care about. the catch is that I can't seem to have other packages (particularly nixpkgs) use this overridden derivation so that tools like fetchgit will work.
<stallion>
fwiw, I'm on darwin and not nixOS
derjohn_mob has quit [(Ping timeout: 258 seconds)]
<orbekk>
tomjaguarpaw: lua packages work if you set the LUA_PATH manually, but otherwise broken. that's why I created that issue and pull request. hopefully this will fix it
<pierron>
srhb: Yes, it is. I will open it in a few hours.
<LnL>
stallion: pretty sure those use NIX_SSL_CERT_FILE
<orbekk>
tomjaguarpaw: currently you have to do something like this: pkgs/servers/dns/knot-resolver/default.nix
<stallion>
LnL: unfortunately no. curl does the right thing, but git only uses the cacert package
<stallion>
gotcha, so i could just have a new derivation based on cacert with overrides install by adding the cert, and then updating fetchgit and possibly fetchurl to use the new cafiles
<Infinisil>
At all people using ZFS: Is there an elegant solution to keep two datasets in sync over a network?
<Infinisil>
s/keep/keeping
<Infinisil>
I'd like my working data to be always there, on whatever machine I use
<gchristensen>
sounds like a nightmare, independent of ZFS
<Infinisil>
I wrote a simple hacky script to do that, which works more or less as long as not both sides modify data
<MichaelRaskin>
Well, if dataset as append-only, with GlusterFS it is not really a nightmare. If dataset is of reasonable size, with a good DVCS (more or less anything but git, I guess) it is not a nightmare.
<MichaelRaskin>
If both-sides-modified is a possibility, there is a logical problem of merging, especially if you cannot get a diff with the last-merged state.
<Infinisil>
Yeah, I'll just have to forbid that somehow
<gchristensen>
if I could, I would "just not do that"
orivej has joined #nixos
<MichaelRaskin>
What is the dataset size, though?
bkchr has joined #nixos
<stallion>
Infinisil: honestly, I usually just used NFS tied to a dataset
<Infinisil>
A few gigs maybe
<stallion>
Are you using SunOS?
<Infinisil>
I want the data really to be local though, I sometimes don't have internet connection
<stallion>
ah
<gchristensen>
maybe look in to btsync
<MichaelRaskin>
Are there many _edits_ as opposed to additions?
<orbekk>
Yeah, I wouldn't recommend it either. Just saying it exists
<MichaelRaskin>
I mean, on whole-home you will actually hit the Unison corner cases
<Infinisil>
Oh yeah I saw unison, but it doesn't look that good
<MichaelRaskin>
Well, in reality /home shouldn't be _that_ bad with Mercurial or Git
<Infinisil>
I really want to avoid git, I don't really need that much stuff, also I don't want everything I ever create to be saved for eternity because of git's append only
<gchristensen>
shared posix volumes is nasty though
<MichaelRaskin>
That's true
<Infinisil>
What's so bad about that?
<gchristensen>
and not really suitable for offline use
<MichaelRaskin>
At some point I tried to list the things that would be needed for keeping /home/ in a DVCS (as requirements to DVCS)
<gchristensen>
POSIX (R) Is Hard
<gchristensen>
without adding network latency to the mix
<MichaelRaskin>
POSIX FS behaviour is so hard that neither Git nor BtrFS fully understand it!
<Infinisil>
An example?
cheshircat has quit [(Quit: WeeChat 1.5)]
<gchristensen>
sorry my PTSD won't let me get too deep in to it
<Infinisil>
Are we talking about fifo's or socket files?
<stallion>
MichaelRaskin: as in dotfiles?
<MichaelRaskin>
Well, Git relies on some consistency guarantees provided by ext3 but not ext4, never fdatasync's anything etc.
<MichaelRaskin>
stallion: we-ell
<stallion>
git does a relatively good job for that with a little scripting finesse
<MichaelRaskin>
If I care enough to version. I want to have history, so Git is right out, it is horrible
python476 has joined #nixos
<stallion>
history is fine as long as you don't abuse it :P
<MichaelRaskin>
I mean actually the entire /home
<stallion>
oof.
<MichaelRaskin>
Where abuse includes every possible kind of actual use
<MichaelRaskin>
Git destroys information by design: if reflog was useless, it wouldn't exist, but it is not forever, and it cannot be synced
<MichaelRaskin>
(Or can it now?)
<Infinisil>
I am very determined to have my /home synced across machines, I'll try out more options and see if it's possible without problems
spacefrogg has quit [(Ping timeout: 260 seconds)]
<MichaelRaskin>
Maybe actually reconsider the layout: the things that are really bad for a DVCS, and the things that are really bad for GlusterFS are usually different thing and you can put them in different subdirectories
<orbekk>
Infinisil: my personal recommendation: dotfiles in VCS, projects in VCS, sync or remotely mount other files (e.g. binaries, media), treat the rest of /home as disposible garbage
<Infinisil>
Another approach to keep files in sync on multiple hosts: The machine I'm currently on is the principal, it's the source of truth. When I switch machines I'll make the new machine the principal, which first makes sure it's up to date with the last principal and boom, it works
<MichaelRaskin>
That last part is close enough to my backup logic
<Infinisil>
No problems with merging because only one file can ever change machines
<Infinisil>
s/machines/data
<MichaelRaskin>
(and switching machines usually includes doing a last backup + restoring on the other one)
<MichaelRaskin>
Still keep as much data in VCS as possible
<Infinisil>
orbekk: That would be reasonnable, which I'm not, so that's a problem xD
<MichaelRaskin>
(what I really value in Monotone is that I have a small fixed number of databases where I can push many unrelated projects, and syncing can be done in bulk without listing the whole list of projects)
<Infinisil>
I actually also would like to use this for other stuff such as for tv series I'm currently watching, so I have my favorite show wherever I want it
<MichaelRaskin>
Infinisil: a completely unreasonable solution that could actually work: the real real data is on RAID that includes at least two USB drives, attaching them to a different computer and rebuilding RAID from USB drives transfers state
<orbekk>
lol
<gchristensen>
...
<Infinisil>
MichaelRaskin: So I'd have to use use STICKS to transfer data?? Well it works, buuuut
<makefu>
bad redundancy suggestions for 200
<Infinisil>
s/STICKS/DRIVES
<gchristensen>
"walking in to the datacenter to fix a failed raid array to find a bunch of external usb disks hanging off the front for 400" makefu?
<Infinisil>
Alright I'll play around with my principal solution, seems to be the easiest
<makefu>
gchristensen: pretty much, yes
trikl has joined #nixos
<gchristensen>
I done did seen it :(
<MichaelRaskin>
There is also DRBD and switching masters, for maximal fun
<gchristensen>
don't hurt them, MichaelRaskin
<MichaelRaskin>
I hope noone is adventurous enough to try that without reading about the pitfalls first
derjohn_mob has joined #nixos
<gchristensen>
Infinisil: I don't care what you do. Have fun. Take risks. Try whatever and see what happens. However: if any of the data in your home directory is important, use a different tool to take regular backups to an external place regularly, please.
<Infinisil>
Oh question: The script I wrote is embedded in a nix file, but I'd like to run and modify the script on it's own to test, how can I include a .sh file as text in a .nix file?
<MichaelRaskin>
builtins.readFile
betaboon has joined #nixos
<Infinisil>
MichaelRaskin: Thanks!
betaboon has quit [(Changing host)]
betaboon has joined #nixos
<Infinisil>
gchristensen: I'll use a test dataset, as I have before ;)
GiGa|Laptop has joined #nixos
<MichaelRaskin>
I would say stronger: please do have a boring thought-throughout backup and recovery procedure
<gchristensen>
these things go wrong at the worst time, don't use it on a test dataset and assume it'll be fine forever
<Infinisil>
MichaelRaskin: I'll also think about this
<gchristensen>
if your data has any value, us a 3-2-1 backup procedure
<Infinisil>
I actually had my test dataset erased a few times due to this script
justelex_ has quit [(Quit: Konversation terminated!)]
kiloreux has joined #nixos
justelex_ has joined #nixos
<Infinisil>
I just got my server set up with ZFS (gotta do a write up yet, clever helped me a lot!), I already have automated ZFS snapshots on the disk itself, they also get transferred every hour to an external drive, and the server will be be used for a daily backup
<Infinisil>
So I planned on doing 3-2-1 without ever thinking much about it :P
<gchristensen>
snapshots are not backups
<MichaelRaskin>
I hope that at least the daily backups are file-level, not FS-level
<clever>
Infinisil: this creates a bash script called justdoit, that does a full nixos install (ext4 based in this case)
<clever>
and it pre-installs it into the nixos thats being built
<clever>
Infinisil: in theory, that could be added to the kexec configuration.nix
GiGa|Laptop has quit [(Ping timeout: 268 seconds)]
alx741 has quit [(Quit: alx741)]
alx741 has joined #nixos
<Infinisil>
That could work yes, but it would need a lot of adjustments, because of different /dev/*da, different sizes, amount of cores, maybe more
<Infinisil>
maybe it would be better to let this stay in the users hands?
pie___ has joined #nixos
<clever>
Infinisil: nixos-generate-config handles the corecount, sfdisk eats the entire drive if you omit size, and if you just set a rule that the droplet must only have 1 drive, its always vda?
<clever>
Infinisil: main thing missing is nathan7's DO configuration module
<Infinisil>
Hmm yes that culd work
pie__ has quit [(Remote host closed the connection)]
<Infinisil>
Damnit, infinite recursion again, in the buildGoPackage module argument of systemd-digitalocean
<edef>
uhh
<edef>
that shouldn't happen :|
pie___ has quit [(Changing host)]
pie___ has joined #nixos
<Infinisil>
Good point :)
<edef>
all my software is the literal worst, news at 11
<Infinisil>
Haha nah, btw what do you think of Go?
<edef>
if you can't figure it out I'll take a look, I'm just extremely tired
<edef>
Go is the best programming language of the 1970s, definitel
<edef>
y
<simpson>
edef: Okay, I've gotten further; I had the wrong version of stuff.
<simpson>
docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "exec: \"/bin/bash\": stat /bin/bash: no such file or directory".
<Infinisil>
edef: I'm just happy that my server's running for now, don't worry ;)
<edef>
I'm guessing it's defaulting the entrypoint to bash
<pie___>
can I install nixos on jslinux?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 3 new commits to master: https://git.io/vHOeD
<NixOS_GitHub>
nixpkgs/master 7da0b96 gnidorah: libao: build both pulse and alsa drivers
<NixOS_GitHub>
nixpkgs/master dd22335 Franz Pletz: Merge pull request #25680 from gnidorah/master2...
NixOS_GitHub has left #nixos []
<simpson>
edef: Yeah, I'm going to play more with entrypoints. Still, I'm at least moving forward again. Thanks.
<edef>
my own images have Entrypoint set but not Cmd
<edef>
but I think dockerTools.buildImage might default Cmd to []
<Infinisil>
edef: I don't really know how I feel about Go, I think it's a nice little language, but nothing more, but who am I to say, I've never written a line in it
<edef>
I kind of hate Go but I'm astoundingly productive in it
<Infinisil>
Haha
<Infinisil>
What's your fav language?
<MichaelRaskin>
A significant portion of people actually are good at converting hatred to energy, not all of them admit it, though
<edef>
at this point, I don't really have a favourite language
k2s has joined #nixos
<edef>
I write Go for work, Rust for low-level stuff I do for fun
<edef>
OCaml for less low-level stuff
<Infinisil>
Nice, I'd like to get into Rust and maybe OCaml one day
<Infinisil>
For now I'm really interested in Idris, which is a masterpiece
<edef>
they changed the interactive solver at some point and now idk how to use it
<Infinisil>
Yeah I'm wondering too, I actually posted in reddit for an explanation on how to prove (a+b)+c = a+(b+c) heh
<MichaelRaskin>
Isn't that an axiom?? I mean, in actual algebra it definitely is…
shanemikel has quit [(Quit: Konversation terminated!)]
<digitalmentat>
so, even if I supply NIX_BUILD_HOOK and NIX_REMOTE_SYSTEMS to nix-build
acarrico has quit [(Ping timeout: 240 seconds)]
<dash>
simpson: Umm
<dash>
simpson: pretty sure we have the expr for that?
* dash
checks
<digitalmentat>
but I'm using nix-daemon, those env vars will not be used?
<clever>
digitalmentat: the build hook provides the raw contents that land in $out, and an attacker could just run nix-build with a fake hook, and provide a fake build of sudo to insert into /nix/store
<octe>
is it possible to run binaries compiled on other linux distributions on nix?
<edef>
MichaelRaskin: it's not an axiom in peano arithmetic
<simpson>
dash: Yeah, okay, I found it.
<clever>
digitalmentat: so the admin has to trust the build hook and the build machines
<edef>
MichaelRaskin: but it's readily proven
<clever>
digitalmentat: and nix enforces that by making you set the env variables for nix-daemon, not nix-build
<simpson>
I'm very confused. The Docker runner keeps griping that I didn't specify CMD, even though I did.
<clever>
pie___: nixos does have a kexec crashdump handler, but it just reboots nixos with less ram, and you need to manualy run kdump within that if you want to use it
<clever>
pie___: there is also a "systemctl kexec" that reboots via kexec
justelex has quit [(Remote host closed the connection)]
kuznero has joined #nixos
<kuznero>
Hi All!
detran` has joined #nixos
<pmade>
When using `patchelf --set-interpreter` is there an attribute in stdenv somewhere to pick the correct one for the current system?
<trikl>
The derivation for curl at nixpkgs' master produces several outputs. curl only contains the binary and curl.dev contains the headers, but libcurl.so is only in curl.out. Is this intentional?
fifo23 has quit [(Read error: Connection reset by peer)]
<NixOS_GitHub>
[nixpkgs] florianjacob opened pull request #26073: piwik & piwik service: init at 3.0.4 (master...piwik-package) https://git.io/vHOtP
NixOS_GitHub has left #nixos []
<LnL>
whoops
<clever>
yeah, like that
fifo23 has joined #nixos
<kuznero>
How can I `stack install terminfo` (haskell)? It fails to find ncurses(6.0) and also ncurses5(.9). I tried adding pkgdepends into cabal file as well as nix.packages = [ncurses] to stack.yaml. Please help. As a result I cannot install a lot of things - intero (emacs editor compiler service for GHC), idris, etc.
<trikl>
dash: I see, thanks, it made me go crazy for a while
<kuznero>
Searching does not give a lot of answers... :(
<pmade>
clever: Thanks!
<kuznero>
I suspect custom config script (cabal does not reference ncurses directly as it comes with different names on different platforms) also refers to ncursesw (w-in the end).
<kuznero>
Though I can see that ghc installs terminfo of older version somehow...
slyfox_ is now known as slyfox
<digitalmentat>
kuznero, are you on a NixOS system?
<kuznero>
digitalmentat: yes
<digitalmentat>
you can specify a shell environment for stack with the nix: shell-file: somefile.nix
<digitalmentat>
so, something that looks like this
<kuznero>
digitalmentat: not sure I understand it, can you please clarify a bit? Does it install ghc and make stack use it?
<digitalmentat>
if you're using stack on a nixos system, stack needs to know about the other build inputs it might need
<digitalmentat>
oh wait
<digitalmentat>
I should have read your command more thoroughly, you're doing `stack install`
<kuznero>
digitalmentat: I have configured it such that as if I always supply `--nix` flag to it (sometimes with `--nix-add-gc-roots`)
<kuznero>
digitalmentat: stack install (but also stack build)
<digitalmentat>
I don't really use `stack` anymore on Nix but my hunch is that the stack shell needs ncurses as a build input
<digitalmentat>
my example would be one way of doing that and you could supply the custom shell derivation in your global stack config
<kuznero>
digitalmentat: I have also tried `nix-shell -p ncurses` and then stack build, but same problem. In one of the discussions on github I read that it might be because terminfo does not explicitly declare dependency to ncurses.
<digitalmentat>
maybe so, sorry I couldn't be more helpful
<kuznero>
digitalmentat: ok, I am permanently using NixOS these days. Can you give me the direction about how can I build my haskell cabal projects without stack (hopefully also with cabal directly too)
<kuznero>
?
<digitalmentat>
sure
<digitalmentat>
every Haskell derivation has a `.env` attribute
<digitalmentat>
so if your project as a `default.nix` in it
joelpet has quit [(Ping timeout: 240 seconds)]
betaboon has joined #nixos
<digitalmentat>
sorry, coming up with a succinct nix-shell invocation
<digitalmentat>
most of our projects are defined in a larger custom package set
joelpet has joined #nixos
georges-duperon has quit [(Ping timeout: 246 seconds)]
<kuznero>
ok, np, I am very much willing to learn this part. Now I am doing completely basic stuff like building my config .nix files for static configuration (github.com/kuznero/dotfiles). And I did a few upgrades to fsharp, mono packages. So, pretty limitted knowledge.
<Accord>
hey guys, i'm on debian. I ran the installer but I've got no 'nix-env', is this because I run zsh?
<digitalmentat>
Accord, did you rehash?
<Accord>
i did hash -r, nix-env says command not found
<digitalmentat>
$ rehash (to update your PATH)
<clever>
Accord: ~/.nix-profile/bin/ has to be added to PATH
<clever>
normaly sourcing ~/.nix-profile/etc/profile.d/nix.sh handles it
<clever>
but it may not be compatible with zsh?
<Accord>
ah, source worked
<Accord>
i'll add it to my .zshrc, thanks
python476 has joined #nixos
<clever>
the install script should have also said thats needed
<Accord>
it didn't say to source it :(
<Accord>
said to run it, forgot I should source
georges-duperon has joined #nixos
kuznero has quit [(Ping timeout: 260 seconds)]
<Accord>
or is this ". /home/claudiu/.nix-profile/etc/profile.d/nix.sh" equivalent to source?
<clever>
yeah
<clever>
. is an alias for source
<Accord>
my bad
takle has quit [(Ping timeout: 240 seconds)]
<clever>
but source is prefered, because some people mix up ". /foo" and "./foo"
trikl has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] proteansec opened pull request #26074: Pkgs/loadlibrary (master...pkgs/loadlibrary) https://git.io/vHOsP
NixOS_GitHub has left #nixos []
hiratara has quit [(Ping timeout: 272 seconds)]
indi_ has joined #nixos
<digitalmentat>
clever, if I run nix-build as root and set NIX_REMOTE= and then configure the other env vars, shouldn't a remote build occur? or am I still confused?
<clever>
digitalmentat: yeah, it should use the hook in that situation
<digitalmentat>
hmm
hiratara has joined #nixos
<clever>
you may need to unset NIX_REMOTE, there can be a difference between "" and null
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 2 new commits to master: https://git.io/vHOGs
<NixOS_GitHub>
nixpkgs/master bfa438e Franz Pletz: ccid: 1.4.26 -> 1.4.27
<NixOS_GitHub>
nixpkgs/master a74c43a Franz Pletz: pcsclite: 1.8.20 -> 1.8.21
NixOS_GitHub has left #nixos []
kuznero has joined #nixos
<kuznero>
digitalmentat: sorry, having strange connection today
<kuznero>
digitalmentat: I am trying to figure out what `default.nix` might look like...
<digitalmentat>
kuznero, `cabal2nix . > default.nix` from within the directory containing your .cabal file
<kuznero>
digitalmentat: interesting... trying
indi_ has quit [(Ping timeout: 268 seconds)]
<digitalmentat>
clever, oh okay thank you, let me try that
takle has joined #nixos
<kuznero>
digitalmentat: after I generated default.nix and ran nix-shell -E '...', I should be able to stack install?
<digitalmentat>
no you should be able to `cabal build` and what-not
<digitalmentat>
with all the deps in the env
<digitalmentat>
I can't help you much with stack install since I don't use it at all on my nixos machine that way
<kuznero>
digitalmentat: I should have also added cabal-install in default.nix after it was generated?
<digitalmentat>
no I don't believe you need to do anything
<digitalmentat>
to the default.nix
<kuznero>
It just complains that I don't have cabal-install
<digitalmentat>
but did you get my last command that added cabal-install to the buildDepends by overriding it
<digitalmentat>
yeah
<guillaum2>
do you have an example of a nix file able to build something on the current directory? I'm struggling at that. I want to include a default.nix inside my git project to be able to build the project based on the current status of the repository.
<Accord>
any reason for very slow filesystem after a nix install in a VM?
<kuznero>
digitalmentat: it is getting more scarry ;) at some point I will have to figure out how exactly it works
<digitalmentat>
kuznero, yes that nix-shell invocation is a bit ugly, the way we do it is much cleaner with a config.nix and release.nix that do all of the work that one eval line is doing in a much more readable way
<digitalmentat>
ideally you'd `nix-shell -A mypackage.env release.nix` but that would require more examples and explanation, I will direct you at an example of it in a second if that works for you and you want to explore further
<kuznero>
That would be great! Thanks!
<kuznero>
Though when `cabal build` it complains about exactly the same thing: curses library not found, so this package cannot be installed
<digitalmentat>
instead
<digitalmentat>
try adding ncurses to the buildDepends
<digitalmentat>
of the nix-shell invocation
<kuznero>
`ld -lncurses` gives me same error inside nix-shell
<kuznero>
sec
<kuznero>
Ah :D It worked!
<kuznero>
Huge thanks!
<digitalmentat>
yup, so you can get a nice little environment local to your package if you supply your own config.nix and release.nix
<kuznero>
digitalmentat: currently my workflow is that I fixate to specific lts-8.13 in stack config. Then install a bunch of tools globally adding gc roots in Nix like ghc-mod, hlint, hoogle, intero, etc. How would I go about it with this approach when I `cabal build` inside local packages. When I `cabal install` what will happen?
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<digitalmentat>
this approach favors specifying everything with Nix
<digitalmentat>
I don't use Intero or ghc-mod at all
<digitalmentat>
so I can't help very much there
<digitalmentat>
but specifying my dependency set using Nix has been wonderful, it's also gotten me out of some hairy cabal-hell situations too
<digitalmentat>
because the *really* nice thing about this
<digitalmentat>
is that you can override the buildDepends with an entirely *custom* set of dependencies
bkchr has joined #nixos
<digitalmentat>
when you `cabal install` it will install the tool in your ~/.cabal/bin dir
<kuznero>
I guess the question then is when having perfect isolated nix-shell (that I assume might include all necessary tools for development as well), how can I ship my project as a package in Nix?
<digitalmentat>
could you rephrase that?
<digitalmentat>
what do you mean by ship as a package in Nix?
<digitalmentat>
do you mean contribute a package upstream to nixpkgs?
<kuznero>
Ah, so it will be somewhat global for my user then? I just need to add gc roots in nix, right?
<digitalmentat>
~/.cabal/bin is safe from the garbage collector since it's in your home directory
<kuznero>
something like that, yes. Basically such that next time me or somebody else can say nix-env -i myproject.env and get myproject bits + dev environment.
<digitalmentat>
well
<digitalmentat>
if you provide an override config like this
<digitalmentat>
if you place both of those in the repository
<digitalmentat>
you can then do things like: `nix-shell -A mypackage.env release.nix`
<kuznero>
it would be great to see simple isolated example of such project with all the default.nix, config.nix, release.nix and also the development/delivery flow around it. Perhaps calls for a good blog post ;)
<Sonarpulse>
I think fix-ends (self: super: )
<Sonarpulse>
functions form a monoid
<Sonarpulse>
anyone wanna sanity check me?
<digitalmentat>
kuznero, yes both of those examples are simple and would enable you to do the nix-shell invocation or also `nix-env -i -A mypackage release.nix`
bkchr has quit [(Ping timeout: 268 seconds)]
<kuznero>
digitalmentat: so, `nix-shell -A mypackage.env release.nix` for when mypackage is in the current nix channel. And if it is not, but instead just a source folder, then `nix-shell release.nix`?
<digitalmentat>
you don't need mypackage to be in the current nix channel because `-A mypackage.env` is saying "select the mypackage.env attribute from release.nix"
<kuznero>
Ah
<digitalmentat>
which if you put the above example config.nix and release.nix in your directory alongside the default.nix
<digitalmentat>
then the nix tooling will know all it needs to know
mellowmaroon has joined #nixos
<digitalmentat>
delivery workflow is interesting; our current product uses NixOS internally and a lot of our build infrastructure is internal so delivering to it is just a fetchgit derivation
<mellowmaroon>
How can I set another NixOS machine on my network as a binary source?
<mellowmaroon>
And, for two NixOS machines, can I set them both as caches for each other?
<kuznero>
digitalmentat: thanks again for all the explanations! that was very helpful! Will try it out as soon as I get some sleep ;)
<LnL>
Sonarpulse: not sure if extends is associative
kuznero has quit [(Quit: leaving)]
dbmikus has quit [(Ping timeout: 260 seconds)]
<Sonarpulse>
LnL: extends isn't the right operation
<Sonarpulse>
extends is the second argument is ({..} -> {..})
<Sonarpulse>
i.e. (self: _)
<Sonarpulse>
not (self: super: _)
<LnL>
right
<Sonarpulse>
but consider
<Sonarpulse>
f0: f1: self: super: let super' = f1 self super; in super' // f0 self super'
python476 has quit [(Ping timeout: 268 seconds)]
<Sonarpulse>
f0 and f1 are both {} -> [} -> {}
<Sonarpulse>
so it has a "fighting chance" of being a monoid :)
<mellowmaroon>
Oh, ok. I can't seem to find much about it on Google...
takle has quit [(Ping timeout: 268 seconds)]
<mellowmaroon>
Thanks :)
<MichaelRaskin>
And specify the public part of the key among trusted binary cache keys on the client
<clonesAnts>
Hi all! I have a small question about UEFI. In Ubuntu I had both a boot partition mounted on /boot, and a efi partition (code EF00) mounted on /boot/efi
Wizek_ has quit [(Ping timeout: 240 seconds)]
<mellowmaroon>
I found a section in the manual outlining it a bit more, but thanks for the advice
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to staging: https://git.io/vHOWF
<NixOS_GitHub>
nixpkgs/staging 5479f74 Franz Pletz: libtasn1: apply patch to fix CVE-2017-6891
NixOS_GitHub has left #nixos []
<clonesAnts>
But the installation manual only mentions the latter, and says to mount it on /boot
<mellowmaroon>
clonesAnts: No prob :) and I used 'cgdisk' and made a 500MB FAT32 partition with type EF00 for EFI
python476 has quit [(Ping timeout: 255 seconds)]
<clonesAnts>
mellowmaroon: Okay. I have an existing FAT32 partition which is only 260MB
indi_ has joined #nixos
<clonesAnts>
It was enough for Ubuntu, so I don't see why it would be a problem here
<mellowmaroon>
clonesAnts: for config.nix, I included 'boot.loader.efi.canTouchEfiVariables = true', 'boot.loader.efi.efiSysMountPoint = /boot', and 'boot.loader.systemd-boot.enable = true'
<mellowmaroon>
clonesAnts: Yeah that should be fine. And you'll probably want to double-check these for yourself. They worked for me though.
<clonesAnts>
Thanks a lot. That<s a good starting point :)
<mellowmaroon>
clonesAnts: oh that /boot should be "/boot". Good luck :)
spinus has joined #nixos
<spinus>
I was looking for quite a moment but coudn't find that, do you know how I can build the nixos from config (just build the drvs so I can than use nix-copy-closure)
justbeingglad has joined #nixos
justbeingglad has left #nixos []
sitwon has joined #nixos
ertes has joined #nixos
nekroze has joined #nixos
<nekroze>
I have a custom vim setup with vim_configurable however it has a gtk dependency even though I use cli only with it. Is there a way to use vimNox as the base for vim_configurable or some way to achieve the same outcome?
digitalmentat has quit [(Quit: Leaving)]
ertes has quit [(Ping timeout: 240 seconds)]
Guest53184 has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] offlinehacker pushed 2 new commits to master: https://git.io/vHO4f
<NixOS_GitHub>
nixpkgs/master d437261 Dejan Lukan: loadlibrary: init at 721b08
<mellowmaroon>
clever: I found it in 'man configuration.nix', it's 'services.nix-serve'
<nekroze>
spinus: I am trying to understand those two lines and how to utilize it alongside my current vim_configurable.customize config but I am having a hard time. Do you have any working examples I might be able to look at?
eddie is now known as Acou_Bass
<clever>
nekroze: those lines appear to already be in all-packages.nix
<clever>
nekroze: i think you want to use (vim_configurable.override { source = "vim-nox"; }) where you originaly used vim_configurable
kampfschlaefer has quit [(Ping timeout: 255 seconds)]
<nekroze>
clever: how can I use vim_configurable.override and vim_configurable.customize on the same object?
<nekroze>
clever: I was just about to ask if that was the case. That makes sense
<nekroze>
clever: spinus: thanks!
<clever>
nekroze: oh, and you can probably just use vimNox.customize
<nekroze>
clever: both ways says that customize is not available
<clever>
strange
<clever>
i havent looked into how customize works yet
ambro718 has quit [(Ping timeout: 258 seconds)]
markus1209 has joined #nixos
justan0theruser has quit [(Ping timeout: 260 seconds)]
markus1219 has joined #nixos
<clonesAnts>
Hi again! Still trying to install and I'm running into a strange error. I've ran nixos-install a few times and it works fine, until the 2nd or 3rd download fails with error "curl: (7) Couldn't connect to server"
<clonesAnts>
Anyone know what's going on?
cryptoto1 has joined #nixos
<clonesAnts>
Rerunning the command downloads the file that failed the previous time, but fails soon after on another file
<mellowmaroon>
clonesAnts: That sounds really odd
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 2 new commits to release-17.03: https://git.io/vHOBd
<NixOS_GitHub>
nixpkgs/release-17.03 8c7460f Franz Pletz: samba: 4.5.8 -> 4.5.10...
<NixOS_GitHub>
nixpkgs/release-17.03 e74d7f7 Franz Pletz: libtasn1: apply patch to fix CVE-2017-6891...
NixOS_GitHub has left #nixos []
<cryptoto1>
Hi! I tried searching on the net, but didn't find anything. What is the serialization format configuration.nix is stored in called?
<spinus>
nekroze: try to reproduce exactly the lines from all-packages, so use the same functiona and callPackage maybe to produce your vim_customizable and then do override on it
<clonesAnts>
I'm on wifi, configured using the KDE interface, if that's relevant
markus1199 has quit [(Ping timeout: 260 seconds)]
markus1189 has quit [(Ping timeout: 255 seconds)]
<spinus>
clonesAnts: did you try other linux on that machine?
<mellowmaroon>
clonesAnts: That's how I set my internet up too for installation
<spinus>
I had one wifi card which worked for 2-5 min and than stops on linux (driver issues)
<clonesAnts>
spinus: Yeah, no such issue on Ubuntu
<clonesAnts>
I'll try again using ethernet
<spinus>
check journalctl during installation to see if anything weird is going on
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] offlinehacker pushed 2 new commits to master: https://git.io/vHORL
<Nobabs27>
clever: does that include the fonts I'm talking about or no?
<clever>
dont know
<clever>
let me check my system
clonesAnts has joined #nixos
<clever>
Nobabs27: all i'm seeing so far is timezone info for monaco europe
<Nobabs27>
lol rip
acarrico has joined #nixos
<copumpkin>
ikwildrpepper, niksnut: the number of macs seems to have gone back down :( did something happen?
<clonesAnts>
spinus: I'm not sure what you were suggesting with journalctl... I left '#journalctl -f' open in another terminal while installing. The installation failes as usual, and no logs were added
<clonesAnts>
spinus: 'nixos-install' doesn't recognize the option '-j1'. How exactly should I be doing this^
<clonesAnts>
?
<mellowmaroon>
see you later everyone :)
mellowmaroon has quit [(Quit: Leaving)]
<spinus>
so somethimes when network disconnects there are some logs and you can debug
<clonesAnts>
spinus: Would this have shown up with 'journalctl -f'? I've never used it before
<Nobabs27>
where do I install custom fonts to if there is no /usr/share/themes and /usr/share/icons? Or do I just create them?
<Nobabs27>
*themes
<Nobabs27>
not fonts lol
<clever>
Nobabs27: create a nix package that describes the fonts, and put it in fonts.fonts