<ottidmes>
Anton-Latukha: the only idea I have would be to reference cmake not via buildInputs but via ${cmake}/bin/cmake, if you can get away with doing that
<Orbstheorem>
ottidmes: on the newly created system NIX_PATH: `nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels`
Makaveli7 has quit [Read error: Connection reset by peer]
Makaveli7 has joined #nixos
<Orbstheorem>
I can't check on the system I used to build the derivation: I left that hard drive home
<Orbstheorem>
But I'm quite sure that system has channel 18.09
<ottidmes>
Orbstheorem: ah, the latter was the one of interest, because that is the one on which the build is based on, since that is what <nixpkgs> resolved to when you build your system
<Orbstheorem>
So it just copies the channels from the system used to build the derivation?
<ottidmes>
Orbstheorem: no, but if build like this, the initial build will be based on it
hotfuzz_ has joined #nixos
LysergicDreams has quit [Ping timeout: 250 seconds]
hotfuzz has quit [Ping timeout: 240 seconds]
<Orbstheorem>
Does copying the configuration.nix to the target system and just running nixos-install produces different results?
<Orbstheorem>
Or there are yet other ways to build and install a system on an external disk? ^^
LysergicDreams has joined #nixos
Makaveli7 has quit [Quit: Leaving]
<{^_^}>
[nixpkgs] @Profpatsch opened pull request #52824 → pythonPackages.update-copyright: init at 0.6.2 → https://git.io/fhUQO
slack1256 has joined #nixos
<ottidmes>
Orbstheorem: hmm, nevermind my "no" just now, I guess it actually does base channel on the system used to build, but I am not sure, I do not use nix-channels, I always explicitly point to my own nixpkgs checkout
<ottidmes>
Orbstheorem: anyway, it should be easy enough to change the channel after the initial install
<ottidmes>
Orbstheorem: but to answer you question about different results, because you use <nixpkgs> it will depend on the NIX_PATH environment variable present at the moment of the build, so what nixpkgs is used is not decided by the configuration, meaning running the same configuration in different environments could end up with different results
octe has joined #nixos
__monty__ has joined #nixos
thc202 has joined #nixos
Radivarig has joined #nixos
simendsjo has joined #nixos
orivej has joined #nixos
dermetfan has joined #nixos
Guanin has joined #nixos
popularitycontes has joined #nixos
betaboon has quit [Ping timeout: 272 seconds]
<popularitycontes>
hi
<popularitycontes>
I'm having trouble using rust-nightly from within a nixpkg expression. What is the easiest way to do this?
Theuni2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[rfcs] @zimbatm merged pull request #36 → [RFC 0036] Improving the RFC process → https://git.io/fpBP0
<{^_^}>
[rfcs] @zimbatm pushed commit from @globin to master « [RFC 0036] Improving the RFC process (#36) »: https://git.io/fhU7c
jomik has joined #nixos
<jomik>
Merry christmas people! I hope you had a great evening and such! :D
<jomik>
I hope someone can answer a quick question. I have made a set of config options for fish in home-manager. Now, I want to only create some properties in the resulting config, if a list is not empty. How would I accomplish that?
<jomik>
I have mkIf cfg.enable ( let .. in { } ). The resulting set has two properties, each depends on a list. Should I use mkMerge and another two mkIfs?
<popularitycontes>
ottidmes: when I add the text from ycombinator infront of my nix pkg expression I get error: undefined variable 'rustPlatform'. What could this be? What is the correct way to implement the expression jbboehr's expression?
<ottidmes>
popularitycontes: you will have to add rustPlatform as one of your expression's dependencies, like so: { stdenv, rustPlatform }:
<ottidmes>
jomik: A merry Christmas to you as well! "I want to only create some properties in the resulting config, if a list is not empty", that could be done with: config = mkIf (list != []) { ... }, but if you need multiple mkIf's then you should indeed use a mkMerge
<jomik>
Yeah, I need to check cfg.enable, and then I have two attributes that both depend on its own list.
<jomik>
Thanks !: )
Theuni2 has joined #nixos
<popularitycontes>
ottidmes: Added all the dependencies on the top. However now I'm getting: error: cannot auto-call a function that has an argument without a default value ('stdenv'). What can this be?
Theuni2 has quit [Client Quit]
<ottidmes>
popularitycontes: how are you building it? you should use callPackage to supply a package function with the right arguments, normally this is done when it is assigned an attribute name in top-level/all-packages.nix or your overlay, but you can also do it on the fly for testing purposes
<ottidmes>
popularitycontes: this would be the on-the-fly variant: nix-build --expr 'with import <nixpkgs> { }; callPackage /path/to/my/expression.nix { }'
<popularitycontes>
I was building with nix-build. Doesn't the `defaultPkgs = import <nixpkgs> {};` already tell nix-build where to callPackage?
iyzsong has joined #nixos
<ottidmes>
popularitycontes: not sure what you mean, did you mean: with import <nixpkgs> { }; ? "where to callPackage", where is not really the question being solved by callPackage, rather it solves supplying the depedencies listed at as the function's argument of the expression (the { ... }: at the top)
slack1256 has quit [Remote host closed the connection]
jtojnar has joined #nixos
MichaelRaskin has joined #nixos
ixxie has joined #nixos
<popularitycontes>
oh I get it. Also the jbboehr's code is nixos specific, right?
<ottidmes>
popularitycontes: no, it should be usable outside of NixOS as well
<ottidmes>
popularitycontes: looking at the snippet again I now see your "defaultPkgs = import <nixpkgs> {};" you could also have used defaultPkgs.rustPlatform, I just assumed you would incorporate it in your expression and not take it as is, hence the things I said about callPackage (which proper package definitions use)
imdoor has joined #nixos
<popularitycontes>
ottidmes: maybe it would be helpful if I shared my whole expression with you?
Radivarig has quit [Ping timeout: 244 seconds]
<ottidmes>
popularitycontes: it would
<popularitycontes>
ottidmes: What is the best way to share code in here? put it on a clipboard @ https://cl1p.net/electrs
Ariakenom has joined #nixos
<ottidmes>
popularitycontes: I prefer GitHub gists, because you can easily make changes afterwards and others can see the diff, so you can also clearly see what changes have been made, but generally any paste service that is not full of ads is OK
<popularitycontes>
ok I will share with gists in the future
<ottidmes>
popularitycontes: have you already pasted it, because https://cl1p.net/electrs is empty
ixxie has quit [Ping timeout: 240 seconds]
<popularitycontes>
ottidmes: somebody must have called it up before you. Let me just put in on github quickly.
<ottidmes>
popularitycontes: I do not have the time right now to setup the overlay myself, which is why I have not tested it myself
<jomik>
I am trying to map an attribute set to be used in xdg.configFile in home-manager. It doesn't seem to evaluate at all. I am doing... xdg.configFile = mapAttrNames (n: "fish/functions/${n}.fish") cfg.functions;
<popularitycontes>
ottidmes: no problem. I'll try integrating rust nightlies overlay and report back. Could this be due to rust nightlies overlay missing: error: anonymous function at /home/user/.nix-defexpr/channels/nixpkgs/pkgs/build-support/rust/default.nix:1:1 called without required argument 'fetchcargo', at /nix/store/ln25ib694xa2ydh2vxirj89pn50wbz6y-nixpkgs-19.03pre161900.61c3169a0e1/nixpkgs/lib/customisation.nix:69:12 ?
<jomik>
That line isn't evaluated at all though, even though the other attributes in the set is.
<ottidmes>
popularitycontes: no idea, probably some package that is missing in your channel, really someone with Rust experience should chime in, and I am out of time, so I cannot try and help you further, good luck!
<ottidmes>
jomik: because you overwrite it
<jomik>
How do I overwrite it
<jomik>
?
<ottidmes>
jomik: { xdg.configFile = ...; } // { xdg.configFile = ...; } is basically what you do
<jomik>
Oooh. I guess that doesn't merge it.
<jomik>
Wait... I intended to use mkMerge....
* jomik
gets up to fetch a cup of coffee.
<ottidmes>
jomik: that is what mkMerge is indeed for, otherwise they are just regular old attrset without any knowledge about how to even go about merging based on type
<jomik>
I apologise. I even asked about this just before ! :D
Ariakenom has quit [Ping timeout: 252 seconds]
BlessJah has quit [Quit: leaving]
BlessJah has joined #nixos
Anton-Latukha has joined #nixos
jomik has quit [Quit: WeeChat 2.2]
silver has joined #nixos
SeasonsGreetings has quit [Quit: How much does Santa pay for parking? Nothing. It's on the house.]
<{^_^}>
#10597 (by zhou13, 3 years ago, open): python: can not use imperatively installed packages as libraries
<ivan>
hopefully you'll be sufficiently impressed with nix-shell -p
<mr_noobs>
Well, it would serve my main purpose right now, putting butterfly in it
<mr_noobs>
I'm trying to make a reproductible server config
<popularitycontes>
ottidmes: thank you for all your help. Will post results when I've figured it out.
popularitycontes has quit [Quit: Page closed]
<mr_noobs>
Well, nix-shell i havent used yet!
<sphalerite>
,library mr_noobs
<{^_^}>
mr_noobs: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<sphalerite>
although for a server I'd recommend making/using a package for whatever you want to run
kgz is now known as kragmas_tree
simukis has quit [Quit: simukis]
Theuni2 has joined #nixos
Baughn has quit [Ping timeout: 252 seconds]
<mr_noobs>
sphalerite: And I would put that in my configuration.nix or a separate place?
<Church->
manveru: Yeah let me get you the gist that samueldr worked up. And then joepie91 had some ideas on how to over ride nix-prefetch-url with a custom script.
<Church->
So that way we could try out a ifd with bundix. So all I have to do is run nix build.
<{^_^}>
[nixpkgs] @flokli pushed commit from @bachp to release-18.09 « gitlab-runner: 11.5.0 -> 11.6.0 »: https://git.io/fhUba
<siers>
I'm using nixops to deploy znc to a DO instance. The znc config in /var/lib/znc/configs doesn't change upon changing services.znc.zncConf though. I thought maybe 18.09 would change that, but no. What could I try to fix/debug that?
<colabeer>
I'm using tmux with powerline, so I installed the powerline-fonts package. But the fonts dont seem to be available. Is there something else I need to do_
<colabeer>
?
<siers>
[Continuing...] I found why it doesn't get updated, because the modules/znc.nix provision/preStart script says that.
<bachp>
Hi, I'm trying to figure out how to install kodi plugins via nix. Specifically: kodi-plugin-steam-launcher But I'm struggeling on how this could be achived in my configuration nix. Any hints or example configurations?
<Church->
manveru: Yeah I never expect to use Hydra on this
Mateon3 has joined #nixos
aleph- has quit [Ping timeout: 250 seconds]
Theuni2 has joined #nixos
Mateon1 has quit [Ping timeout: 268 seconds]
Mateon3 is now known as Mateon1
pie__ has quit [Remote host closed the connection]
pie__ has joined #nixos
kisonecat has quit [Remote host closed the connection]
siers has joined #nixos
Theuni2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Church->
manveru: So a question on bundix, so after it's run and imported into a derivatation. During the install/build phase would I just run things as usual? "bundle; gem install rails; rails server"
yayforj has quit [Ping timeout: 250 seconds]
<Church->
Run stuff like that during the install phase as needed and it'll work? Or am I misunderstanding bundix a bit?
<aleph->
There's what his thoughts on it were after we went over the bundix source
<samueldr>
I wasn't certain that it would use the full path, due to how (1) `sh('nix-prefetch-url', ...)` was called and (2) the output of that `sh` invocation from bundix which showed only the basename; though yeah, it was something I had in the back of my mind: it's plausible it uses the full path
<manveru>
Church-: there's no need to run `bundle`, inside the bundlerEnv you don't need it
<samueldr>
>> so it does seem to be path-based # lol
<manveru>
but you should use the wrappedRuby output of the bundlerEnv, it's a ruby with all the needed gem library paths setup
<samueldr>
(but quick hack and lack of time made me drop the attempt :))
<Xyliton>
I got `unar` in my configuration.nix's system packages and doing a `nixos-rebuild switch` errors when building unar because "The ffi library (libffi) does not appear to be working."
<Xyliton>
should I upgrade my system then or hasn't it been fixed yet?
<samueldr>
it's been fixed, but the channels haven't caught up yet, so if you're using channels, you can't really easily, otherwise you'd have to update to a commit later than the one fixing it
<{^_^}>
[nix] @clefru opened pull request #2602 → Add root uid/gid mappings to sandbox namespace. → https://git.io/fhTJR
<Church->
samueldr: So I'm gonna take a crack at bundix, think just over riding the package definition and passing in our nix-prefetch-url script would work?
<samueldr>
(sorry if the answer seems vague, but if you have specifics to pick my mind with, do ask)
jackdk_ has joined #nixos
<Church->
samueldr: Will do! Thanks.
<jackdk_>
Merry Christmas #nixos! Does anyone have a configuration.nix snippet that sets up a DHCP server? (I have a RPi3 with wifi going, but I want it to serve DHCP and route over a wired LAN)
<jackdk_>
((I have checked the nixos manual, wiki and discourse and not found much, and I don't know enough about dhcpd configuration to understand the options in the nixos options list.))
<{^_^}>
[nixpkgs] @offlinehacker opened pull request #52870 → dockerTools: allow to pass extraCommands, uid and gid to buildLayered… → https://git.io/fhTUw
tzemanovic has quit [Remote host closed the connection]
erictapen has quit [Ping timeout: 250 seconds]
simendsjo has quit [Ping timeout: 244 seconds]
ryantrinkle has quit [Ping timeout: 240 seconds]
imdoor has quit [Quit: imdoor]
imdoor has joined #nixos
fendoer has quit [Read error: Connection reset by peer]
pie__ has quit [Remote host closed the connection]
pie__ has joined #nixos
<Church->
samueldr: This is driving me nuts. >_> Not sure how bundix is even calling nix-prefetch-url. >_> manveru, you maintain it, how does it do it? Not seeing it anywhere in the source.
pie__ has quit [Remote host closed the connection]
<jomik>
Also - how long does it usually take for a package to get merged from master into unstable or Release-18.09? I see that Alacritty is very outdated on Release, and also a minor version behind on master (PR incoming)
<jomik>
Would like it to be on unstable to match the home-manager module I have opened a PR for there though :P
<samueldr>
jomik: maybe, though I think there were changes recently about that, not sure if tit got merged
<jomik>
Oh, I dunno. I just know that I feel like the packages there try to do WAY too much, compared to what they need to do. My approach is more the one done by arch linux.
<jomik>
You specify the packages you need, and then you get them.. :P
vidbina has quit [Ping timeout: 252 seconds]
aleph- has joined #nixos
<jomik>
My issue was that licenses weren't accepted, and couldn't be, because of where the sdks where placed, so it was unusable.
Mr_Keyser_Soze has quit [Ping timeout: 250 seconds]
<jomik>
OH, I see, svanderburg!
<samueldr>
?
<samueldr>
(yeah, that's the one who's AFAIK been managing everything android-sdk in nixpkgs)
<aleph->
samueldr: Hey when building your example, should it just be "nix build test.nix"