<pie_>
x3 i barenly know anything about this node stuff
<manveru>
it doesn't use webpack afaict
<manveru>
ah, nm
* pie_
runs yarn
notdaniel has quit [(Ping timeout: 250 seconds)]
<manveru>
it definitely doesn't use webpack
betaboon has quit [(Ping timeout: 240 seconds)]
<manveru>
but it does use npm and bower dependencies... two different package managers for node
<manveru>
i think there was also some bower2nix, it's been ages since i did anything with that
<pie_>
;_;
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] nicknovitski closed pull request #23412: nodePackages: regenerate package set with node2nix -6 (master...node2nix6) https://git.io/vynB0
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jwiegley pushed 1 new commit to master: https://git.io/vFVZ5
<NixOS_GitHub>
nixpkgs/master 028c192 John Wiegley: coqPackages_8_6/7.equations: new expression 1.0-beta/8.7 branch
NixOS_GitHub has left #nixos []
jtojnar has quit [(Quit: jtojnar)]
<manveru>
well... can't say it'll be easy :(
<manveru>
if it wasn't 1:30am i'd give it a try, but that grunt config seems quite hostile
erasmas has quit [(Quit: leaving)]
slack1256 has joined #nixos
<manveru>
anyway, just running it is easy i'd say
<manveru>
packaging it would be harder
<slack1256>
some program I packaged is passing from a C++ app to a javascrip + electron app. I only know to to pack for nixos because I already knew how to compile and install C/C++ programs on FHS linux. How do I approach discovering how to install this new app?
<manveru>
slack1256: maybe look at atom or other electron apps already packaged
<codygman>
I have an external hard drive which is exfat that I need to run fsck for. First I need to figure out how to install exfat stuff for nixos.
<manveru>
codygman: it goes in your systemPackages
patrl has quit [(Ping timeout: 240 seconds)]
pie_ has quit [(Ping timeout: 240 seconds)]
<codygman>
manveru: Yeah, I ended up trying that and it worked. Thanks.
<Unode>
can someone point me to the manual or doc page that lists most functions available from nix. Google is sending me all around and I can't seem to find it. Thanks
<Unode>
also while at it, I'm looking for a way to delete files/folders after unpacking in a buildPythonPackage expression. What would be the recommended way to do so?
<manveru>
hmm i thought it had a function list once...
<codygman>
Is something like this wordpress example (https://nixos.wiki/wiki/Wordpress) meant to be run with nix-shell, built with nix-build and nix-installed,or something else? My goal is just having a working local development wordpress.
markus1189 has quit [(Ping timeout: 248 seconds)]
<Unode>
manveru: hum... maybe I'm think about something else. I once encountered a page that listed most of the functions you can call in a build expression with descriptions of what they do
<Unode>
I was using "writeText" as search and didn't find anything. I'm starting to wonder how extensive that page was and if writeText was actually there.
[0x4A6F] has quit [(Ping timeout: 248 seconds)]
matthewbauer has joined #nixos
<Unode>
and looking through it, 'that page' might very well be the nixpkgs manual. 'writeText' isn't documented in detail there.
phreedom has quit [(Ping timeout: 250 seconds)]
<Unode>
and I just realized that even if I wanted to read the code where that function comes from, I've no idea where to look :)
<clever>
it creates a new package, that is compiled by running the command, then returns the result of building it
<Unode>
hold on, the patch is all messed up after paste
<clever>
a;sp tje
<clever>
also the '' is missing from that patch
<Unode>
the hell... dpaste is losing lines...
<clever>
its visible in raw mode
<Unode>
yeah... trailing whitespace making a mess
<clever>
oh
<clever>
scroll to the right
<clever>
i think your terminal did that when you copied
<Unode>
yup, copying from vim with mouse selection (working on a remote machine)
<sauyon>
hmm
<sauyon>
I'm trying to mount a fuse filesystem on boot
<clever>
Unode: run "gist -p" on the file from a shell
<Unode>
clever: too big :P it's all of pkgs/top-level/python-packages.nix
<sauyon>
and I'm not sure what I'm supposed to
<Unode>
clever: but the raw mode mostly shows how it looks
<Unode>
with some bad indentation on the diff
<sauyon>
it fails if I put it into fileSystems because it requires network, but putting _netdev in makes it fail because it's actually passed to the mount command
<Unode>
ok... then checking if this has been fixed in nixpkgs already (using nixos-17.09)
<Unode>
coming from /nix/store/qi1isq6gykpanxjbinig835irq3sx7nj-python3.6-reportlab-3.2.0.drv_ failed with exit code 1
hellrazo1 has quit [(Ping timeout: 268 seconds)]
<Unode>
god.. this pyqi package is a mess
<Unode>
the code is mostly fine but tests have a gazillion dependencies. Can I define test-only dependencies? I'm only familiar with the propagatedBuildInputs strategy
<clever>
tests go under buildInputs like the rest of the deps
<Unode>
ah so that's the distinction
<Unode>
ok makes sense
Sonarpulse has quit [(Ping timeout: 250 seconds)]
<Unode>
ok and it happened again :S my /tmp was completely erased . I really need to figure out what rogue process or service is causing this :/
<mekeor>
while writing an overlay, when should i use `super.foo.override` and when should i use `super.callPackage /path/to/foo`? (and also, how do i find out the `/path/to`?)
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
srdqty1 has quit [(Ping timeout: 240 seconds)]
erictapen has joined #nixos
srdqty1 has joined #nixos
<sauyon1>
I think you should almost just use override[,Attrs]
<sauyon1>
unless you want to write your own package
shanemikel has joined #nixos
shanemikel has quit [(Client Quit)]
shanemikel has joined #nixos
shanemikel is now known as Guest92922
Arcaelyx_ has joined #nixos
Arcaelyx_ has quit [(Read error: Connection reset by peer)]
<mekeor>
alright, thanks
Mateon1 has quit [(Ping timeout: 268 seconds)]
Mateon3 has joined #nixos
Arcaelyx_ has joined #nixos
Arcaelyx has quit [(Ping timeout: 268 seconds)]
theseriousadult has quit [(Ping timeout: 268 seconds)]
Mateon3 is now known as Mateon1
theseriousadult has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] teto opened pull request #31511: anura: init at 20171110 (master...anura) https://git.io/vFVRt
<NixOS_GitHub>
[nixpkgs] mekeor opened pull request #31514: st: add description and use https for homepage. (master...master) https://git.io/vFV06
NixOS_GitHub has left #nixos []
<shanemik_>
I updated Nix recently and my Haskell project's haddock docs aren't ending up in ./result (my derivation has doHaddock=true, and I see the docs are being built, just can't find 'em)
jgertm has quit [(Ping timeout: 240 seconds)]
Arcaelyx_ is now known as Arcaelyx
erictapen has quit [(Ping timeout: 248 seconds)]
<clever>
shanemik_: split outputs, you need to build the .doc attribute of the derivation
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej pushed 2 new commits to master: https://git.io/vFV0x
<NixOS_GitHub>
nixpkgs/master 1baad86 Mekeor Melire: st: add description and use https for homepage.
<shanemikel>
so building the .doc attribute gives me a result-doc link... now unfortunately whether I build the project derivation or the .doc derivation, it does all the work of building my project and haddock docs.. is there a way for me to get both links from one go?
Arcaelyx_ has quit [(Ping timeout: 240 seconds)]
<shanemikel>
better yet, a way to prevent the splitting in the first place?
drp has joined #nixos
<MJJEFF>
(newbie here) I'd like to get naturalScrolling set up for my mouse and not just my trackpad. AFAIK, currently this isn't supported as the naturalScrolling option only affects the trackpad. My thoughts on how to tackle this is to just copy the services.xserver.config setting from libinput and create a new .nix that sets that one setting but modified to target the mouse. Is that a good way about it, or would anyone recommend another
<MJJEFF>
way?
p4cman has joined #nixos
todder has quit [(Quit: is such a quitter...)]
todder has joined #nixos
FreakingOut1987 has joined #nixos
<FreakingOut1987>
does anyone here use the Electron framework?
MP2E has quit [(Remote host closed the connection)]
ma27 has joined #nixos
jb55 has quit [(Ping timeout: 260 seconds)]
ericsagnes has joined #nixos
adamt_ has joined #nixos
MP2E has joined #nixos
endformationage has quit [(Quit: WeeChat 1.9.1)]
orivej has quit [(Ping timeout: 248 seconds)]
<fearlessKim[m]>
when you go to https://nixos.org/ there is sthg troubling, ie. you can select nix/nixops/nixpkgs/etc and you will have "Manual" in the top bar. Except for nixOs !
rogue_koder has quit [(Quit: Konversation terminated!)]
<fearlessKim[m]>
adam_t everytime it hits me and it's bothersome as there is quite some information in the nixos manual
markus1189 has joined #nixos
<fearlessKim[m]>
as a newcomer, seeing no manual for nixos may induce that nixos is an abstraction of nix+nixops etc as it seemingly has no dedicated manual
asuryawanshi has joined #nixos
ma27 has quit [(Quit: WeeChat 1.9.1)]
<srhb>
fearlessKim[m]: Huh, yes, I think that would be good to add.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vFVwc
<NixOS_GitHub>
nixpkgs/master 1806559 Frederik Rietdijk: python.pkgs.ipython: add missing typing dependency
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to release-17.09: https://git.io/vFVwC
<NixOS_GitHub>
nixpkgs/release-17.09 68efaea Frederik Rietdijk: python.pkgs.ipython: add missing typing dependency...
NixOS_GitHub has left #nixos []
asuryawanshi has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
asuryawanshi has quit [(Remote host closed the connection)]
matthewbauer has quit [(Ping timeout: 260 seconds)]
asuryawanshi has joined #nixos
FRidh has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vFVwb
<NixOS_GitHub>
nixpkgs/master e8be9f0 Frederik Rietdijk: python.pkgs.reportlab: move expression
<NixOS_GitHub>
nixpkgs/master 2b2088e Frederik Rietdijk: python.pkgs.reportlab: 3.2.0 -> 3.4.0
NixOS_GitHub has left #nixos []
vcunat has joined #nixos
hellrazor has quit [(Ping timeout: 268 seconds)]
hellrazor has joined #nixos
<sphalerite>
fearlessKim: it's on the page you get to when you follow the "Support" link. I agree it's not easy to find, but the top bar is pretty full already and I'm not really sure how it could be done better. Any ideas?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vFVrU
<NixOS_GitHub>
nixpkgs/master ff4080e Frederik Rietdijk: python.pkgs.folium: fix build
NixOS_GitHub has left #nixos []
<srhb>
I think some of the other options should be removed to make space, really.
<fearlessKim[m]>
The "Search options" is the least meaningful for newcomers IMO. It could be removed/merged with "Packages" . Support/Community could be merged too. The manual should be a priority
<srhb>
Agreed.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vFVrt
<NixOS_GitHub>
nixpkgs/staging 8559b6d Vladimír Čunát: Merge branch 'master' into staging...
NixOS_GitHub has left #nixos []
<sphalerite>
True, and when I want the options page (I never really use the packages page) I just type "options" in my browser bar and select it from the history
<sphalerite>
I'll make a PR
<srhb>
\o/
<fearlessKim[m]>
Linus: same, it's either in history or bookmarks. You are the man !
<sphalerite>
although I think packages is most useful for newcomers
<srhb>
Probably, yes.
<fearlessKim[m]>
Keep it to the right, to be consistent with nix/nixops homepage
<sphalerite>
(that is, more useful than it is to experienced users)
<fearlessKim[m]>
yes because you want to kow if your favorites packagesareavailable before you make the switch
<sphalerite>
and actually the packages page should really live on the nixpkgs section shouldn't it… although that would make it harder to find
<srhb>
How do I make /urlselect and co work in the new weechat again? Looks like the split has all plugins enabled per default, but still, something broke
<sphalerite>
srhb: oh yay the first trouble with the split :D hang on
<__monty__>
I have an environment (haskellPackages myEnvFun, similar to buildenv afaik) that won't build because a test fails for a single dependency. Can/should I override the dependency with a dontCheck predicate? http://ix.io/C8E
<ixxie>
jtojnar: I will have some time tomorrow; keep in mind I have never done any contributing to nixpkgs before, so I will be slow to get my bearings
<__monty__>
ixxie: Are you trying to trick us into writing documentation with snazzy words?
<ixxie>
jtojnar: but I can try and do some testing and so on!
<ixxie>
__monty__: sounds like you are trying to trick yourself into *not* writing documentation with some snazzy words ;)
Itkovian has quit [(Client Quit)]
<jtojnar>
any help is appreciated
<ixxie>
alright, lets keep in touch
ixxie has quit [(Quit: Lost terminal)]
hellrazor has quit [(Ping timeout: 240 seconds)]
<srhb>
__monty__: No test failure on unstable for me, so I'm guessing no.
<srhb>
Oh wait, wrong compiler version
<__monty__>
srhb: I'm using the nixos channel.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 5 new commits to master: https://git.io/vFVod
<NixOS_GitHub>
nixpkgs/master 2fa69f6 Michael Alan Dorman: elpa-packages: 2017-11-06
<NixOS_GitHub>
nixpkgs/master 532e2ed Michael Alan Dorman: org-packages: 2017-11-06
<NixOS_GitHub>
nixpkgs/master fa3ca0c Michael Alan Dorman: melpa-stable-packages: 2017-11-06
NixOS_GitHub has left #nixos []
<srhb>
__monty__: Oh, are you intending to push the change upstream?
<__monty__>
No, I haven't made any changes. I'm just looking for a way to get the environment to build.
<srhb>
__monty__: You can absolutely add it to the compiler specific config file if you want to ignore the test failure.
<srhb>
Or just locally in your env.
matthewbauer has quit [(Ping timeout: 248 seconds)]
matthewbauer has joined #nixos
hexamod has joined #nixos
<__monty__>
I'm getting a syntax error on this, but I wanted to ask whether it's the right approach to add an env local override? Relevant part is the attribute "haskell821Packages": http://ix.io/Ca2
<srhb>
__monty__: Entirely up to you if you do one or the other.
<srhb>
__monty__: You're mising a semicolon after the definition of ghc-exactprint
asuryawanshi has joined #nixos
ssmike has joined #nixos
zzamboni has joined #nixos
zzamboni has quit [(Client Quit)]
asuryawanshi has quit [(Ping timeout: 240 seconds)]
zzamboni has joined #nixos
romildo has joined #nixos
yegortimoshenko has quit [(Ping timeout: 248 seconds)]
<__monty__>
srhb: I'm having some trouble with the "with pkgs.haskell.lib" which I think I need because dontCheck is defined there. Where exactly should the with go? http://ix.io/Ca3
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<srhb>
__monty__: just use pkgs.haskell.lib.dontCheck directly
<srhb>
There is not "with ... in" though
<srhb>
It's just with ...;
hexamod has joined #nixos
Itkovian has joined #nixos
<__monty__>
srhb: Thank you, I stuck with with in to make it easier to reuse this bit in the future, ganging up pkgs.haskell.lib.dontCheck (pkgs.haskell.lib.dontHaddock ...) seems unwieldy.
<__monty__>
Is it possible to list what packages an env contains with nix-env?
thc202 has joined #nixos
<srhb>
__monty__: Short of printing the derivation, no.
<__monty__>
srhb: Ok, thanks for the help. I don't understand some people don't "get" nix it's awesome, and I don't use that word lightly.
<romildo>
Enlightenment-0.22.0 meson.build defines the variable suid_exes as a list of paths to file that should be set suid. How can I capture this variable as an attribute so that it can be used also in the Enlightenment module too?
ylwghst has joined #nixos
takle has joined #nixos
matthewbauer has quit [(Ping timeout: 248 seconds)]
zzamboni has quit [(Quit: Leaving.)]
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
takle has quit [(Client Quit)]
hexamod has joined #nixos
zzamboni has joined #nixos
<drp>
Anyone here got matrix-synapse running?
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<adamt>
drp: Yes, on unstable, but haven't tested it a lot.
<manveru>
pie_: yo, you saw my message yesterday?
<drp>
adamt: do you have a .nix? I have just added it as a service but don't have the user utils like syctl
<drp>
I don't want to enable users to join randomly, I want to add them individually via command line
<romildo>
How can I define an attribute of a derivation dynamically? Let's say, from the value of an environment variable, or from the output of a command?
<drp>
Cool
joehh has joined #nixos
<sphalerite>
romildo: that breaks nix's purity and isn't a good idea. But you can use builtins.getEnv
<sphalerite>
romildo: the preferred way to do this sort of thing is to give the package an additional argument and use an override on it to change it.
<romildo>
sphalerite, the package (enlightenment) build system (meson) produces a list of files that should be set suid. I need this list in the corresponding module derivation. What do you suggest to handle this?
bennofs has joined #nixos
ShalokShalom_ has quit [(Ping timeout: 268 seconds)]
zzamboni has joined #nixos
<derchris>
hey, i got a problem with node2nix
<joehh>
hi gchristensen, re pinging you - just seen the lumiguide nixcon video
<joehh>
loved the auto rollback functionality
<joehh>
nice and simple
<derchris>
trying to convert a npm to nix, elgato-stream-deck
<derchris>
when i try to build/install it, it fails because of a missing dependency
<joehh>
haven't absolutely needed it yet, but have come awfully close
<joehh>
looks like something I'll be putting into our deploys asap
<derchris>
that is, it fails in one of the npm module depnedencies, because it is missing libusb
<derchris>
i tried to add libus as a buildinput, but it still fails
<adamt>
I'm trying to get a reading of the rssi of a bluetooth device (signal strength), but the internet tells me i want either the "rfcomm" or "hcitool" application for that. I can't find either on https://nixos.org/nixos/packages.html, but maybe they're packaged under a different name..?
<derchris>
not sure if i added it to the correct locations
<sphalerite>
romildo: you could use import-from-derivation — use builtins.readFile to read the file in from the derivation. But that won't be allowed in nixpkgs. I don't know of another way to solve it in this case, probably best to manually mirror the list though.
romildo has left #nixos ["Leaving"]
romildo has joined #nixos
ylwghst has quit [(Quit: Lost terminal)]
Piece_Maker has joined #nixos
jmc_fr has joined #nixos
Acou_Bass has quit [(Ping timeout: 268 seconds)]
Piece_Maker is now known as Acou_Bass
ylwghst has joined #nixos
hariel has quit [(Ping timeout: 240 seconds)]
alhariel has quit [(Ping timeout: 240 seconds)]
wolfcub has quit [(Ping timeout: 248 seconds)]
alhariel has joined #nixos
hariel has joined #nixos
wolfcub has joined #nixos
<adamt>
Nvm, seems like the bluez5_28 package contains what i need, instead of the regular bluez-package.
zzamboni has quit [(Quit: Leaving.)]
p4cman has quit [(Quit: Connection closed for inactivity)]
ssmike has quit [(Read error: Connection reset by peer)]
__monty__ has left #nixos []
ylwghst has quit [(Quit: Lost terminal)]
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Wizek has joined #nixos
orivej has joined #nixos
<srhb>
adamt: Looks like those tools were deprecated upstream with no replacements.
hexamod has joined #nixos
<srhb>
Can anyone help me figure out why command-not-found is working on my system?
<srhb>
I don't have any channels enabled afaik.
zzamboni has joined #nixos
zzamboni has quit [(Client Quit)]
zzamboni has joined #nixos
zzamboni has quit [(Client Quit)]
<srhb>
Hm, I do have a /nix/var/nix/profile/per-user/root/channels/nixos
<srhb>
I wonder why that is
p4cman has joined #nixos
Turion has joined #nixos
takle has joined #nixos
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<Unode>
is there any way to prevent nix-build from cleaning up the build directory? I'd like to inspect why something is failing
hexamod has joined #nixos
<LnL>
--keep-failed
<Unode>
LnL: thanks totally missed it in the manpage ... coffee time
roberth has quit [(Ping timeout: 240 seconds)]
__monty__ has joined #nixos
ylwghst has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 2 new commits to master: https://git.io/vFV1H
<NixOS_GitHub>
nixpkgs/master e19434b Matthew Bauer: SDL: try disabling sdltest on darwin
<sphalerite>
__monty__: no, the env vars will be fine. Just shell functions used by the build scripts. Often you won't need them though, so it may well be fine
<__monty__>
Can I automate the exec fish? Change the bashrc in the env, and include fish in the env of course?
<sphalerite>
personally I'd just set up an alias (or function in fish? I think?) for nix-shell --run 'exec fish'
<__monty__>
I guess, but that sounds more snowflakey : )
<srhb>
/quit
<srhb>
Woops
<hyper_ch>
fail :)
python476 has joined #nixos
simendsjo has joined #nixos
<jluttine>
has anyone managed to play blurays on nixos? i installed libaacs and aacskeys and libbluray but vlc is still complaining: "This Blu-ray Disc needs a library for AACS decoding, and your system does not have it."
<jluttine>
do i need to tell vlc somehow that these libraries are available?
<jluttine>
i just added those to systemPackages..
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 1 new commit to master: https://git.io/vFVyr
<NixOS_GitHub>
nixpkgs/master 4b759a0 Andreas Rammhold: rzip: fix CVE-2017-8364
<NixOS_GitHub>
nixpkgs/master f8b53a7 Andreas Rammhold: redis: fix CVE-2017-15047...
NixOS_GitHub has left #nixos []
b has joined #nixos
<jluttine>
how can i use overlays to modify a package derivation so that it finds some library? i guess buildInputs isn't the solution, as that only affects building, not run-rime
joehh has quit [(Ping timeout: 248 seconds)]
<vcunat>
jluttine: the typical way is that we put libs into build inputs, and the package's build system detects them and stores the path
<vcunat>
and then it just uses the path during runtime as well
<jluttine>
oh. i've thought that buildInputs aren't available during run time. they are just used for compiling
ssmike has joined #nixos
<jluttine>
and i wouldn't want to compile the package... modifying buildinputs causes a compilation right? i just want to add the library to the library path during run time
<jluttine>
or if anyone knows how to make libaacs available for vlc, i'd be happy to hear
<manveru>
jluttine: you can wrap it and add a LD_LIBRARY_PATH
<mbrgm>
manveru: that one looks great. gonna try it out. ty
<c0bw3b>
ah missed the 'package' keyword i guess my bad
<jluttine>
i'm always lost with these wrappers.. why are they shell functions instead of nix functions? now i need to figure out how and where i need to use those shell functions in my package derivation.. i would like to just use those wrappers as nix functions to create a wrapping
civodul has joined #nixos
ilyaigpetrov has joined #nixos
<jluttine>
if a nix file defining a package derivation has some optional arguments (looking like enableFoobar ? false), how can i enable those?
goibhniu has joined #nixos
<jluttine>
how to pass those arguments? i guess i need to use overlays somehow
Turion has joined #nixos
<mekeor>
jluttine: how do you want to install that package? on command-line? from system configuration?
<jluttine>
vcunat: ok! can i make it so that it changes the package in pkgs so that when i add the package to systempackages elsewhere, it adds the one i modified elsewhere?
<jluttine>
guess that needs overlays
<vcunat>
yes, that's what overlays are for
<jluttine>
yep
<hyper_ch>
hi vcunat
<vcunat>
but you do the overriding the same way
<vcunat>
just define the new version via super.somepackage.override....
<vcunat>
hyper_ch: hi
Vorpal has joined #nixos
Vorpal has quit [(Changing host)]
Vorpal has joined #nixos
<jluttine>
vcunat: yep thanks. was a bit lost with how to define overlays but i think i got it now. nixpkgs.overlays was supposed to be a list of overlays. nice
<jluttine>
at least it started compiling so i guess i managed to change the parameters :)
<vcunat>
there's a how-to recording from NixCon'17
<hyper_ch>
vcunat: still need to test your TO change... but becuase of the break-in and entry I was preoccupied with other stuff
<vcunat>
sure, I expected that to take time
<vcunat>
TO didn't get stolen then?
<hyper_ch>
vcunat: nah, they took the server, 3 monitors, several external usb drives and sticks, some money, post stamps, a suite, an ancient microwave, usb hub, poe switch, my Alexa, and other stuff... interestingly the TO and Yealink T48Gs were not taken..... they also took toilet paper and tissues....
* jluttine
<3 overlays
<gchristensen>
wat
<gchristensen>
I'm sorry, hyper_ch
<vcunat>
toilet paper :-D
<hyper_ch>
vcunat: and also a stack uf those large paper bags you get at grociers shop with handles...
<gchristensen>
to help carry all their find
<hyper_ch>
gchristensen: nothing to worry about it.... re-setting up everything costs much more than actual value of stolen goods
<hyper_ch>
however, now server is away from Debian with Proxmox and using native root encrypted zfs with Nixos and qemu/kvm for the VMs.... still I need a few things get to run
<hyper_ch>
also I need a more up-to-date zfs version to actually be able to do incremental encrypted snapshots
jtojnar has joined #nixos
<hyper_ch>
before, I had nightly backups
<hyper_ch>
now I do 6h full pool backups until the incrementation works
<hyper_ch>
once incremential sending resp. receiving works, I'll up it to hourly backups :)
<__monty__>
Also, still don't know where these errors are coming from when launching the env: http://ix.io/Cab
<vcunat>
I'm no lawyer, but I think that without explicitly stated license you basically can't do anything with the SW
<sphalerite>
monty: maybe the shell hook is overriding it
<gchristensen>
vcunat: best not look at 99% of perl-packages.nix then
<c0bw3b>
yheah there is no "unknown" defined in licenses.nix for now
<__monty__>
vcunat: Unless you're getting the code from github. I believe they default to a form of open license, probably doesn't qualify as free but it's something.
jtojnar has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ttuegel pushed 2 new commits to master: https://git.io/vFVd8
<NixOS_GitHub>
nixpkgs/master ab1075c Andrea Scarpino: qt5: Add qtnetworkauth submodule
<NixOS_GitHub>
nixpkgs/master 1e9edbf Thomas Tuegel: Merge pull request #28480 from ilpianista/qt5...
NixOS_GitHub has left #nixos []
zzamboni has joined #nixos
zzamboni has quit [(Client Quit)]
ssmike has quit [(Ping timeout: 240 seconds)]
jensens has joined #nixos
<gchristensen>
c0bw3b: ok can you rebase your libtom*pr?
<gchristensen>
c0bw3b: seems borg is having a bad time, I'd say just merge, heh
<joehh>
worked first time (much to my surprise)
<pie_>
joehh, :D
<c0bw3b>
gchristensen : yes I think I will... Travis shows problems with qtnetworkauth.nix though
<gchristensen>
hard-sigh.gif
<gchristensen>
looking :)
<c0bw3b>
I guess i should raise a warning in PR 28480
<c0bw3b>
for ttuegel
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] gbuisson opened pull request #31524: update Jackett to use mono50 (master...master) https://git.io/vFVFd
NixOS_GitHub has left #nixos []
<pie_>
manveru, is there anything that would have made getting this to work easier?
<c0bw3b>
yheah you were faster than me :p
acarrico has joined #nixos
<manveru>
pie_: steam-run maybe
<gchristensen>
c0bw3b: I'm sorry your PR has become the testing ground for other broken commits
<manveru>
though that'd result in a mess quite fast
<pie_>
lol is that the nuclear option
<c0bw3b>
gchristensen no problem actually, a simple PR like this is perfect to troubleshoot bigger issues :p
<pie_>
i mean was there anyhting that was specifically painful
<pie_>
*what was painful
__monty__ has quit [(Quit: rebootying)]
<gchristensen>
joehh: so cool :D
<Dr8128>
When I upgrade to 17.09 I get an error about systemd-udev-settle.service and my internet stops working. Does anyone know why this could be? Also enp2s0 dissappears and wlp1s0 loses the inet part. Could it be that 17.09 cannot find my hardware?
<Dr8128>
i mean from ifconfig
<joepie91>
Dr8128: what is the "an error" exactly?
<Dr8128>
enp2s0 and wlp1s0 from ifconfig
<manveru>
pie_: collecting all the deps for patchelf... would be nice if that was automated
<joehh>
this one is only 2800 km away, but is in a different country :)
<manveru>
i mean, it gives you the name of the missing library, and i basically just did `find /nix/store -name somemissing.so.1` to find it... luckily i had the all around
<joehh>
plus has much more infrastructure, so if we brick it, can get local IT to reinstall appliance
<pie_>
manveru, right thats what i was guessing :P
__monty__ has joined #nixos
<pie_>
manveru, i think there was actually something moderately helpful somewhere in the nixpkgs tools tree for that
<pie_>
manveru, patchelf clunkyness annoys me to no end
<pie_>
but i havent gotten around to doing something about it
b has joined #nixos
<joepie91>
Dr8128: hmmm. that's not a very informative error.
<joepie91>
Dr8128: can you have a look at `journalctl -u systemd-udev-settle -b 0` and see if there's anything useful in there?
<Dr8128>
joepie91: ok but ill have to upgrade my computer which will disconnect me then get the output and then reboot in the old version again so ill brb
<NixOS_GitHub>
nixpkgs/master 417706d Graham Christensen: Merge pull request #31522 from Mankarse/folly-v2017.11.06.00...
NixOS_GitHub has left #nixos []
arximboldi has joined #nixos
arximboldi has quit [(Read error: Connection reset by peer)]
<joepie91>
Dr81281: for future reference, you can also do something like `-b -1` to get the logs for a past boot :)
<joepie91>
anyway, that's not really a helpful error at all
<joepie91>
you could try doing a nix-store repair to make sure that nothing got corrupted
<joepie91>
nix-store --verify --check-contents it seems
jabranham has joined #nixos
python476 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/vFVAJ
<NixOS_GitHub>
nixpkgs/master 52fba7e Vladimír Čunát: perlPackages.LWPAuthenOAuth: the license is known...
NixOS_GitHub has left #nixos []
<manveru>
also --repair :)
<Dr81281>
ill try it thanks
<Dr81281>
i guess i should also read up a little on systemd troubleshooting
<Dr81281>
gtg thanks for the replies
Dr81281 has quit [(Quit: Leaving.)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh force-pushed python-unstable from a872c30 to 578b99a: https://git.io/v5aIf
<NixOS_GitHub>
nixpkgs/python-unstable c0ff1d9 Frederik Rietdijk: python.pkgs.rivet: add bindings for rivet
<NixOS_GitHub>
nixpkgs/python-unstable 88ad181 Frederik Rietdijk: python.pkgs.buildPythonPackage: do not pass attributes that stdenv.mkDerivation does not use
<NixOS_GitHub>
nixpkgs/python-unstable ec32f75 Frederik Rietdijk: python.pkgs.pytest: add missing setuptools dependency
NixOS_GitHub has left #nixos []
vcunat has quit [(Ping timeout: 240 seconds)]
ssmike has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vFVA9
<NixOS_GitHub>
nixpkgs/master 6c52e19 Eric Sagnes: groonga: 7.0.3 -> 7.0.8
<NixOS_GitHub>
nixpkgs/master 71689dd Frederik Rietdijk: Merge pull request #31517 from ericsagnes/pkg-update/groonga...
NixOS_GitHub has left #nixos []
ylwghst has quit [(Quit: Lost terminal)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vFVA7
<NixOS_GitHub>
nixpkgs/master 72f4278 Frederik Rietdijk: Merge pull request #31521 from DeltaEvo/master...
NixOS_GitHub has left #nixos []
<Orbstheorem>
Hi, I'm trying to install ipython using nix-env, I found the attribute name is 'python36Packages.ipython', but when I run ni-env, I get `error: attribute 'python36Packages' ... not found`
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vFVAA
<NixOS_GitHub>
nixpkgs/master 33ab98d Tor Hedin Brønner: nix-bash-completions: init at 0.1...
<NixOS_GitHub>
nixpkgs/master 2f34d20 Frederik Rietdijk: Merge pull request #31518 from hedning/nix-bash-completions-init...
<mekeor>
how do you update a sha256 hash of the sources after changing e.g. version number, without just trying to install the package and wait for it to fail with a statement like "x has sha256 hash ‘y’ when ‘z’ was expected"?
<c0bw3b>
at least it was enough for my test case
<c0bw3b>
mekeor : with nix-prefetch-url
<gchristensen>
mekeor: usually I just use the error message
<tokudan[m]>
mekeor: you can try nix-prefetch*
<hyper_ch>
I don't get how this works
<mekeor>
it seems, i still have to specify the exact url myself for nix-prefetch-url
<ij>
c0bw3b, ah "--magic"/"-m" would also have done it
<sphalerite__>
aaah the black mesa breakage is because it wants an older libstdc++ :(
<mekeor>
hyper_ch: i never tried it myself but i guess you have to insert something like this in your /etc/nixos/configuraion.nix: http://sprunge.us/ihjX
<mekeor>
hyper_ch: does this help you? what exactly don't you understand?
<hyper_ch>
mekeor: I want to try to use a newer version of zfs and spl unstable.... but no idea what I actually need to add
<mekeor>
hyper_ch: did you look at the nix package definitions of those?
<hyper_ch>
mekeor: no idea what package definitions are
<avn>
hyper_ch: we had {spl,zfs}Unstable expressions in the past, but it was removed when zfs 0.7 was released
<hyper_ch>
boot.zfs.enableUnstable = true;
<avn>
may be it need to be partially reverted, and updated to possibility use unstable snapshots (+optionally patches from master/PRs)
<mekeor>
hyper_ch: use --show-trace. i think it will show you the correct hash
<hyper_ch>
mekeor: doesn't help
<hyper_ch>
mekeor: well, it wi
<mekeor>
doesn't it say something like "x has sha256 hash ‘y’ when ‘z’ was expected"? hyper_ch
hexamod has joined #nixos
<hyper_ch>
mekeor: no it ase override missing
<mekeor>
oh, no, sorr
<hyper_ch>
says
<mekeor>
sorry
<mekeor>
yeah, you're right
<mekeor>
hyper_ch: did you try using overrideAttrs instead of override?
<nixos1022>
what interpreter should I write at the beginning of a python script?
<hyper_ch>
mekeor: error: attempt to call something which is not a function but a set, at /nix/store/bz5b8zlvpj5qlvxz5ki0rjwc4ig6l7xv-nixos-18.03pre120118.4d4e70d071/nixos/pkgs/stdenv/generic/make-derivation.nix:176:56
<hyper_ch>
nixos1022: #!/usr/bin/env python I think
<mekeor>
hyper_ch: did you try `nix-env -i zfsUnstable` or something like that? i don't know if that should even work
zzamboni has quit [(Client Quit)]
<hyper_ch>
mekeor: no... why would I try nix-env -i zfsUnstable?
<mekeor>
hyper_ch: in order to see if the overlay works from the command-line? i was thinking that maybe you still have to tell nixos-rebuild that it should use the overlay which is defined in itself...
python476 has joined #nixos
<mekeor>
but i'm just wildly guessing, hyper_ch. sorry. i don't have a clue. *shrug*
<hyper_ch>
mekeor: I have no clue either
<aminechikhaoui>
Hi, I'm having trouble making a usb ethernet device work on my machine, from the kernel logs I'm seeing these kind of errors
<c0bw3b>
ij the result of your build would be gc'ed iff you delete any symlink pointing to it
<mekeor>
hyper_ch: you were using overrideAttrs before. why you changed?
<sphalerite>
It just seems to fail to build the environment every time. This also happens on nixos-rebuild.
<mekeor>
srhb: how to tell the user profile to respect the system profile's packages/overlays?
<sphalerite>
I can consistently work around it using nix-shell -p nix
<srhb>
mekeor: import the same overlays variable from the same file in both configuration.nix and config.nix
<hyper_ch>
mekeor: still old copy in clipboard
<srhb>
sphalerite: Confirmed. unexpected EOF reading a line
<ij>
What should the default.nix for ruby contain? With "with (import <nixpkgs> {}); bundlerEnv rec {…", the nix-shell I invoke doesn't see rails or any of the "vendor/…/bin"s files.
<srhb>
sphalerite: On current nixos-unstable
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti created revert-28480-qt5 (+1 new commit): https://git.io/vFweA
<NixOS_GitHub>
nixpkgs/revert-28480-qt5 c1c21cd Peter Simons: Revert "qt5: Add qtnetworkauth submodule"
NixOS_GitHub has left #nixos []
<sphalerite>
srhb: I'm on nixos-17.09 with nixUnstable
<srhb>
sphalerite: Can you switch off nixUnstable at least?
<hyper_ch>
mekeor: error: selector ‘zfs’ matches no derivations error: selector ‘zfsUnstable’ matches no derivations
<averell>
thanks, it built past that point at least :) although for some reason i had to specify super.haskell.lib.dontcheck instead of super.dontcheck. same for the overrideCabal.
bennofs has quit [(Ping timeout: 250 seconds)]
simukis has quit [(Quit: simukis)]
simukis has joined #nixos
<srhb>
Right.
<hyper_ch>
fpletz: online?
<Turion>
Does any of you develop with ghcjs? If yes, is there a way to install ghcjs-base system-wide?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jwiegley pushed 1 new commit to master: https://git.io/vFwUt
<NixOS_GitHub>
nixpkgs/master 462b5e0 John Wiegley: coqPackages.mathcomp: 1.6.1 -> 1.6.4, for Coq versions 8.6 and 8.7
<taohansen>
must have mistyped, works now. apologies for command-spam
codygman has quit [(Quit: Page closed)]
<rnhmjoj[m]>
is there a way to use `nix-copy-closure` or `nix copy` without signing packages? i'm connecting via ssh to another machine i control so i don't care about it.
jb55 has joined #nixos
<gchristensen>
connect to the remote as a trusted-user (usually root)
<srhb>
Oh, nice.
<srhb>
Signing is changing in 1.12, isn't it?
<rnhmjoj[m]>
gchristensen: what makes a user trusted? I have root login via ssh disabled and i'd rather not change this.
<gchristensen>
the trusted-user option in nix.conf
seppellll has joined #nixos
sphalerite__ has quit [(Ping timeout: 260 seconds)]
<rnhmjoj[m]>
gchristensen: thanks.
bennofs has joined #nixos
<srhb>
I'm wondering if a simple solution for nix managed secrets could be hacked together once 1.12 lands. I'm thinking an auxiliary store that's locked away from everyone but root.
<srhb>
That way, systemd units could substitute in from those..
rogue_koder has joined #nixos
hariel has quit [(Ping timeout: 260 seconds)]
hariel has joined #nixos
wolfcub has quit [(Ping timeout: 260 seconds)]
alhariel has quit [(Ping timeout: 260 seconds)]
alhariel has joined #nixos
wolfcub has joined #nixos
jb55 has quit [(Ping timeout: 248 seconds)]
seppellll has quit [(Ping timeout: 248 seconds)]
joncfoo has quit [(Ping timeout: 268 seconds)]
<srhb>
sphalerite: I don't think it's a Nix issue. I've gone back to mid-october now and it's still an issue.
<srhb>
sphalerite: Must be somewhere else...
<srhb>
Or well, maybe some assumption is made by Nix that changed in nixos somehow.
<srhb>
(Or the upstream sources?)
<jmc_fr>
I've just (re-)installed nixos in a VBox, and at the end of nixos-install I somehow screwed up and my root password do not match. So I'm out of nixos-install with no password set up : Is there a way to recover this ? Or do I have to re-install ?
lassulus has quit [(Ping timeout: 240 seconds)]
<srhb>
jmc_fr: Restart the installer, mount your system again, nixos-install --root /mnt --chroot, run passwd to set the password, reboot again
<jmc_fr>
ok. currently I have falled to root : do I have to restart ?
<srhb>
jmc_fr: Sorry, i did not understand that. Can you rephrase?
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
lassulus has joined #nixos
<jmc_fr>
srhb: whet do you mean with "restart the installer" ? I'm currently in the installer, as root, just out of nixos-install
<jmc_fr>
*what
<srhb>
jmc_fr: Oh, nixos-install just finished?
<srhb>
jmc_fr: You can just rerun nixos-install then. :)
<jmc_fr>
srhb: you mean "nixos-install --root /mnt --chroot" ?
<srhb>
jmc_fr: If you _just_ finished nixos-install, just rerun it without arguments again.
betaboon has joined #nixos
<betaboon>
is the human maintaining nixops in here ?
<jmc_fr>
Yes /just/ finished, but what do you mean with _just_ ? I want to avoid the whole install
<srhb>
jmc_fr: It won't have to redownload everything.
<srhb>
But yes, otherwise you can just do nixos-install --root /mnt --chroot and then passwd
<srhb>
It won't make much difference, afaik.
<jmc_fr>
ok, going to try... I'll tell you ;-)
<srhb>
betaboon: I don't think a single human maintains nixops.
hexamod has joined #nixos
<jmc_fr>
OK, re-running nixos-install is very quick : thanks
<srhb>
jmc_fr: Yeah, should be :-)
<betaboon>
srhb: let me rephrase: asside from creating a github-issue is there a way to ask in here if someone could create a nixos-17.09-nixops-virtualbox-vmdk ? :P
<srhb>
betaboon: Hmm, is there a nix file to do that?
<betaboon>
srhb: ah yeah there is a script in the nixops-repo in the "maintainer" directory. and it works just fine. just when using nixops to deploy to virtualbox it still seems to fetch the 16.09 base image
<srhb>
betaboon: Looks like there is. Where can I upload it?
<srhb>
Oh..
<betaboon>
srhb: but as can be seen in that script, it is uploading to a s3 bucket. which is fine. but i can't do :P
<betaboon>
so question is, who can ? :P
<betaboon>
listening to myself, i should just open an issue ...
<betaboon>
and be a good citizen
<srhb>
Basically yes :-P
<betaboon>
just sometimes i fall back into the mindset of hanging with a couple of ppl in an irc channel, just doing everything there :P
<srhb>
It's very comfy, admittedly!
ambro718 has joined #nixos
<sphalerite>
Meh, I have huge amount of mouse lag when I run games using primusrun
<srhb>
sphalerite: Are you running a compositor at the same time?
<srhb>
Not sure if that will help, but get general performance problems when running compton and primusrun something at the same time
<betaboon>
so i just tried the nix-docker approach for running nixops on a macbook deploying into a virtualbox. still not working ...
_c_ has left #nixos ["-"]
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
drakonis has quit [(Read error: Connection reset by peer)]
<srhb>
betaboon: Perhaps if you provide a more detailed description of what you did and how it fails, someone might be able to help.
<srhb>
(Probably not me, since macs are mysterious to me.)
<betaboon>
srhb: just preparing a simple usecase and description of what i did.
<srhb>
Cool :)
Dr8128 has joined #nixos
<sphalerite>
srhb: yeah I think so (plasma desktop). Would that cause it?
<srhb>
sphalerite: I'm not sure about the cursor, really. I think it's worth a try.
jmc_fr has quit [(Ping timeout: 248 seconds)]
kaba has joined #nixos
<mbrgm>
is there a way to inject something into /run/current-system/sw/bin from a nixos module?
<the-kenny>
mbrgm: of course, you can just add stuff to environment.systemPackages.
<mbrgm>
the-kenny: so when I want to add a wrapper script to that path, I'd have to create a derivation for it first, right?
<the-kenny>
mbrgm: iirc there is some sort of utility function that will create a derivation from an executable for you. But generally: yes
<kaba>
Hi, how can I help test the gnome 3.26 branch? I started building the git branch but it takes an eternety, than I saw that there is a hydra job compiling it, but I don't know much about hydra, could you please help me point to some place where I can get more info on it?
<mbrgm>
the-kenny: ok. thx!
<mbrgm>
I'm going to look for that utility function
<the-kenny>
mbrgm: check trivial-builders.nix
<the-kenny>
so for inline stuff you can use `writeShellScriptBin`
<mbrgm>
that would be fine already. :)
<the-kenny>
this takes two arg `name` and `text`, the former being the script name, the latter being its source :)
<mbrgm>
ty!
<the-kenny>
mbrgm: also note that you can also reference stuff from a nixos module directly. Just do something like `${pkgs.foo}/bin/your-program` in your ExecStart or whereever
<srhb>
kaba: I think we used to be able to use hydra.nixos.org as a binary cache.
<the-kenny>
This will insert the full path directly, without making it globally accessible
<srhb>
kaba: If that's still possible, that should suffice to help you out.
<srhb>
Oh, or are they copied directly to cache.nixos.org now?
<mbrgm>
the-kenny: that's what I'm doing already in the module (for gnu mailman). however, I'd like to add a wrapped `mailman` executable to the path, which passes the proper config file option to the actual mailman executable, so the shell can be used without having to lookup the config file location in the service definition
<srhb>
kaba: In that case, everything that is available on hydra should already be available to you.
<the-kenny>
mbrgm: sounds reasonbable
<kaba>
srhb: O, I see, thank you. But for some reason it's still compiling something huge right now :/
<mbrgm>
the-kenny: writeShellScriptBin cannot directly be added to the systemPackages... what would be the bare minimum way to turn its result into a 'package' type?
<srhb>
kaba: Are you sure it's built on hydra then?
<the-kenny>
mbrgm: Did you wrap it in parentheses? environment.systemPackages = [ (writeShellScriptBin ...) ]?
<the-kenny>
writeShellScriptBin evaluates to a normal derivation, so you should be able to add it to systemPackages
<mbrgm>
the-kenny: awww snap ^^
<mbrgm>
parenthesis ;)
* the-kenny
does Clojure for his day job
<vcunat>
srhb: cache.nixos.org is popluated after each single build
<the-kenny>
I'm used to those!
<vcunat>
(and it's no longer possible to use hydra.nixos.org as the cache, IIRC)
<gchristensen>
(that is correct)
joncfoo has joined #nixos
<kaba>
vcunat: But there are already compiled (gnome 3.26 branch) packages stored in the cache, aren't there?
<vcunat>
yes, everything on hydra should go to cache immediately, as far as I understand
<kaba>
If I create a git clone of jtojnar's repo, and use it as nixpkgs path, do I have to do anything else to make nix download what it can from the cache? Sorry, I don't quite understand how does nix looks for caches, should I add a separate channel as well?
<kaba>
I didn't catch a glimpse of what took so long to compile unfortunately. I try it again, and will tell if I'm stuck at it
<kaba>
vcunat: Yes it is
bennofs has quit [(Ping timeout: 240 seconds)]
<kaba>
vcunat: Oo, sorry, I think I just messed up my local git repo and wasn't at this revision before. It's built now :)
<vcunat>
:-)
kaba has quit [(Quit: Page closed)]
<srhb>
vcunat: I see you commented on one of the pcre issues. I think if we switch over to external pcre, we should include one of the pcre tests somewhere. Can we do per-package nixos tests yet, or should I just add it to nixos/tests ?
<srhb>
(especially since we now know that the cli php and apache module may behave differently)
<vcunat>
srhb: well, there was a plan from Profpatsch about tests, presented a few weeks ago at NixCon, but I suppose that's not ready yet
<vcunat>
srhb: what does it test?
<vcunat>
libpcre itself, or its combination with php?
kaba has joined #nixos
<vcunat>
if it's nothing too big, it might be good to just do them within check phase of a package
<srhb>
vcunat: My test essentially enables services.httpd, serves a small php file from it and curls against that to see that pcre_match works
<srhb>
Er, preg_match
<srhb>
Whatever it's called.. :-P
<vcunat>
right, so that looks like the nixos tests
<srhb>
Yep.
<vcunat>
I'd put it there, and perhaps include them in the channel-blocking sets
<srhb>
vcunat: Alright, thanks for the feedback. :)
<vcunat>
maybe I'd make a comment in the package expression that there's a test
<srhb>
I will do that.
<vcunat>
One of the arguments on NixCon was about the tests being often too far from the tested stuff.
hexamod has joined #nixos
<srhb>
I saw the talk. I agree with that point. I'm looking forward to better package-near infrastructure :)
<vcunat>
Yes. Encouraging more automated tests will help the community.
asuryawanshi has joined #nixos
<gchristensen>
I like that we caught 2 eval errors today within 20min of them being introduced
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej opened pull request #31535: make-disk-iamge: add compressed option to compress qcow2 images (master...compress-qcow2) https://git.io/vFwYp
NixOS_GitHub has left #nixos []
b has quit [(Quit: Lost terminal)]
asuryawanshi has quit [(Ping timeout: 240 seconds)]
bennofs has joined #nixos
nh2 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 2 new commits to gcc-7: https://git.io/vFwOd
<NixOS_GitHub>
nixpkgs/gcc-7 1862b77 Vladimír Čunát: Merge branch 'staging' into gcc-7
<NixOS_GitHub>
nixpkgs/gcc-7 3610d63 Vladimír Čunát: gcc-7: sync some parts of expression from gcc-6...
NixOS_GitHub has left #nixos []
nh2 has quit [(Read error: Connection reset by peer)]
<lejonet>
Hmmm, what could cause the wantedBy variable to not be honored in a service file? I've double checked that the wantedBy assignment I have in mine is the same as other, similar services, at systemd.services.sheepdog.wantedBy, but I don't see wantedBy in the service file that was created by the derivation
nh2 has joined #nixos
<lejonet>
hence I can't enable that service :/
<lejonet>
should it be in systemd.services.sheepdog.serviceConfig?
zzamboni has joined #nixos
<srhb>
lejonet: Yeah
<lejonet>
srhb: I'll move it then, thanks :)
<srhb>
Wait, no.
acarrico has joined #nixos
<srhb>
systemd.services.name.wantedBy is right. How are you concluding it's not working?
<lejonet>
that systemctl enable tells me that there is no WantedBy in the service file, which I confirmed by looking at the service file referenced in vim
<lejonet>
I can see all the other things, like wants, after, description and such, but no WantedBy
<srhb>
lejonet: What did you set the value to?
<lejonet>
wantedBy = [ "multi-user.target" ];
<srhb>
Time to paste some snippets of your definitions then. Seems all right so far.
<NixOS_GitHub>
[nixpkgs] orivej opened pull request #31537: lkl: 2017-10-18 -> 2017-11-10, make-disk-image: do not fake time for cptofs (master...lkl) https://git.io/vFwsO
NixOS_GitHub has left #nixos []
python476 has joined #nixos
phreedom has quit [(Remote host closed the connection)]
<srhb>
lejonet ls /etc/systemd/system/multi-user.target.wants shows sheepdog.service just fine
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vFws6
<NixOS_GitHub>
nixpkgs/master f6655ba Vladimír Čunát: bootstrap tools test: fixup after d71833ee36
NixOS_GitHub has left #nixos []
fendor has quit [(Read error: Connection reset by peer)]
<lejonet>
srhb: hmm, weird, I have that too, but there is no wantedBy in the service file, and trying to do it manually gets it to spew out nonsense
<lejonet>
let me restart the server and see if it brings it up automatically, if so, its a moot issue
<srhb>
Maybe you're doing something that doesn't make sense.
<srhb>
Everything looks right to me :)
Turion has quit [(Quit: Leaving.)]
<lejonet>
Well, yes, it probably doesn't make sense to try and enable it manually
<lejonet>
and it makes sense that nixos itself makes the symlink instead of relying on systemctl enable, because all that does is the symlink
<lejonet>
hence no need to actually write WantedBy in the service file
<srhb>
lejonet: And /etc/static is a nix store path, so not writable.
<lejonet>
Mhm
<srhb>
Yes, I think everything is working as intended :)
phreedom has joined #nixos
<lejonet>
Restarting the server now to test
<lejonet>
As you said, it probably is working as intended :)
nh2 has quit [(Read error: Connection reset by peer)]
<srhb>
betaboon: Hm.. Sorry, no idea how that nix docker thing would work. I've given up making Virtualbox work even on NixOS, but of course I also have a kvm alternative, which I guess you do not...
<betaboon>
srhb: i am successfully running nixops and deploy containers into a local virtualbox on my nixos machine. it's a breeeze.
<betaboon>
but now it's time to replicate my setup on a coworkers machine... a macbook..
<LnL>
funny thing is that I've barely use that image myself
<betaboon>
LnL i can report, starting it (using your script) still works out of the box.
<LnL>
don't even remember why I made it :)
<lejonet>
srhb: it does indeed try to start it at startup, so there is no actual issue :P
<betaboon>
so it brings me further than the mentioned virtualbox-script.
<lejonet>
srhb: now to try and get it to stop being stupid and crash sometimes because the daemon doesn't write a pidfile fast enough
<LnL>
should probably update it to work with the daemon
<lejonet>
maybe just forget about forking mode and put it as foreground -.-
<betaboon>
LnL: do you have any idea what could be the issue ?
<LnL>
oh, thought it worked
p4cman has quit [(Quit: Connection closed for inactivity)]
<LnL>
can you paste the output of nix-info
Dr8128 has left #nixos []
<betaboon>
LnL: the script and running that docker-build container. that works. but the part of using nixops to deploy a virtualbox-machine using that docker build container does not.
<betaboon>
LnL: there is no nix-info on that macos machine oO
<LnL>
nix-shell -p nix-info --run nix-info :)
<betaboon>
yeah. stupid me. its in the gist now :P
<LnL>
as for the deployment try nixops set-args --argstr system x86_64-linux
<LnL>
but I don't think the script works for multi-user installs
<lejonet>
Hmm, setting up stuff in the limits.conf or limits.d, how would I do that on nixos? security.pam.loginLimits doesn't seem to be what I want, or is it?
<betaboon>
LnL: i sadly don
<betaboon>
argh.... i sadly dont have access to the macos machine right now.
<betaboon>
i havent quite understood the difference between multi-user and single-user install yet. and why exactly it seems to be a problem with these kinda things.
markus1189 has quit [(Remote host closed the connection)]
<LnL>
for single user you can configure distributed builds with an environment variable
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] c0bw3b pushed 2 new commits to master: https://git.io/vFwZI
<NixOS_GitHub>
nixpkgs/master b2c2944 Christopher Singley: nzbget.service override nzbget.conf broken paths with current derivation
<NixOS_GitHub>
nixpkgs/master 1503409 Renaud: Merge pull request #30943 from csingley/nzbget...
NixOS_GitHub has left #nixos []
<LnL>
with a mutli-user install it has to be configured for the daemon
zzamboni has quit [(Quit: Leaving.)]
<betaboon>
LnL: so the NIX_REMOTE_SYSTEMS which is being set by your script, has no effect on multi-user setup?
<LnL>
yeah
<LnL>
and because of that it's also hard to enable/disable it temporeraly
<betaboon>
i see. so even if i would get the virtualbox script running (or use a regular nixos-virtualbox) i would still run into that problem
<LnL>
with nix 1.12 there's --option builders, that makes it a lot nicer
<betaboon>
is it feasible to convert the nix-setup on the macos to a single-user setup ? oO
<betaboon>
LnL: would that 1.12 feature solve the current problems ?
<betaboon>
and when is 1.12 scheduled for release ?
zzamboni has joined #nixos
<betaboon>
how do you configure teh daemon to use distributed build. i find the manual confusing in that section. I'm assuming NIX_BUILD_HOOK ? oO
<jmc_fr>
is there a `locate' natively in nixos ? or how do I get it work ?
<LnL>
betaboon: yeah, if you add the environment variables from the script like that and configure ssh for root instead of your current user it should work
<lejonet>
Ah, found it, ${optionalString () '' ''} :D
erictapen has quit [(Ping timeout: 248 seconds)]
FRidh has quit [(Quit: Konversation terminated!)]
dywedir- has joined #nixos
<rnhmjoj[m]>
c0bw3b: thank you
nixos1022 has quit [(Ping timeout: 260 seconds)]
tommyangelo has quit [(Remote host closed the connection)]
tommyangelo has joined #nixos
<c0bw3b>
rnhmjoj[m] i'm running a quick nox-review but getting the same merge conflict as the failed travis job
<c0bw3b>
rnhmjoj[m] have you been able to test it?
<betaboon>
LnL: as i currently only have access to a macbook that does not support docker i would have to go with a virtualbox. using the demo vmdk from the website. enabling ssh on that machine and ensure that root has passwordless ssh-root-access to that machine combined with the plist changes should work ?
<rnhmjoj[m]>
c0bw3b: in fact i have been using it for a while on my laptop. it's possible i have to rebase the patch
<c0bw3b>
rnhmjoj[m] github doesn't report any conflict but just in case, can you please rebase on master?
<rnhmjoj[m]>
c0bw3b: sure, just a moment
nh2 has joined #nixos
<lejonet>
Hmm, how do I make an optional assertion (yes, that is quite an oxymoron) as in, I want to add an assertion if a certain option has been set, because I have 2 options where if you set one, you have to set the other too
_c_ has joined #nixos
kaba has quit [(Quit: Page closed)]
mkoenig has joined #nixos
<symphorien>
assert option1 -> option2
<LnL>
betaboon: distributed builds only need ssh and nix so yes
<symphorien>
not sure about the exact syntax though
<NixOS_GitHub>
[nixpkgs] benley opened pull request #31543: noto fonts and tools: update to newer tagged releases (master...noto-fonts-2017) https://git.io/vFwlQ
NixOS_GitHub has left #nixos []
hexamod has joined #nixos
ahmad has joined #nixos
<ahmad>
Hi all, (probably) noob question here. I'm trying to override a package to get a version from git. To do this, I need to also enable the autoconf hook.
<ahmad>
However, when trying to build, I get: error: undefined variable ‘autoreconfHook’ at /etc/nixos/configuration.nix:80:31
<clever>
ahmad: add autoreconfHook to the buildInputs
<ahmad>
This is what I have in my configuration.nix:
<lejonet>
How do I repress the default behaviour of changing a comma-separated list into a space-separated one in a optionalString? I have ${optionalString (cfg.journalDir != "") ''-j dir=${cfg.journalDir},size=${cfg.journalDirSize}''} that turns into -j dir="thing" size="other thing" instead of -j dir="thing",size="other thing"
servator has joined #nixos
python476 has quit [(Read error: Connection reset by peer)]
<gchristensen>
lejonet: I don't think optionalString does that
<rnhmjoj[m]>
lejonet: I tried in nix-repl and it didn't happen
<rnhmjoj[m]>
all optionalString does is `if cond then string else ""`
servator has quit [(Ping timeout: 248 seconds)]
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]