emacsomancer has quit [Read error: Connection reset by peer]
jluttine has joined #nixos
iqubic has quit [Ping timeout: 240 seconds]
<Judson1>
I'm working on transitioning my git-based dotfiles to home-manager, and looking now at wanting to issue PRs against it. But the contributing suggests PRs from master, and I'm currently tracking Nixpkgs stable. :/
<Judson1>
I guess I could switch my personal channel to nixpkgs-unstable...
iqubic` has left #nixos ["ERC (IRC client for Emacs 26.1)"]
<noonien>
i want to generate a .nix file that contains a list of urls to zips, and their sha256, i'm unsure if i should download the archive to a temp path, or keep it in the nix store
eadwu has joined #nixos
marusich has joined #nixos
<noonien>
this file will only be called to refresh the available derivations, i think nixpkgs already has tools like this one
<ottidmes>
noonien: I actuall also made another tool for use cases like that, but that is even more alpha than nix-prefetch: https://github.com/msteen/nix-update-fetch (I am working on changing the way nix-prefetch and nix-update-fetch work together, so the API will change soon)
<noonien>
would using nix-prefetch-url and adding to the nix-store be appropriate?
<ottidmes>
nix-prefetch-url already adds to the store
<noonien>
i know, that's why i'm asking if it's appropriate
<noonien>
should i just rely on the user running gc?
<ottidmes>
if its for an update script, its appropriate
xkapastel has quit [Quit: Connection closed for inactivity]
<noonien>
oh, ok then, makes things easier
<noonien>
btw, given that one can rollback with nix, is it appropriate to not care as much as with other distros when breaking packages?
o1lo01ol1o has joined #nixos
<ottidmes>
that would not be appropriate
<noonien>
for example, a user can now add pkgs.nerdfonts to her fonts.fonts, would it be ok if that breaks? and instead, she should have to add pkgs.nerdfonts.somefont?
<{^_^}>
[nixpkgs] @matthewbauer pushed to master « openblas: fix on linux »: https://git.io/fhQTp
dmc has left #nixos ["WeeChat 2.3"]
<ottidmes>
rollback is nice to have, but should not be relied on like that, effort should be taken to prevent breakage, if its just breaking for you, got nuts, but whenever nixpkgs is concerned, breakage is very bad
<noonien>
i see
<ottidmes>
s/got/go/
<ottidmes>
in this case you mean backwards compatibility, there are ways to notify the user of the change, and if there is good enough reason, its OK to do so
<ottidmes>
in this case, I think you could probably have both, keep pkgs.nerdfonts a derivation with passthru to the specific fonts, that way it won't break the existing usage, but allow your per font use case too
o1lo01ol1o has quit [Ping timeout: 268 seconds]
<noonien>
hm? can a derivation expose attributes that are also derivations?
<ottidmes>
never tried, but I am quite sure you can, yes, with passthru you can define arbitrary attributes on top of derivations making it act like a regular attrset for those, while still being a derivation as a whole (the passthru attributes will not impact the derivation, so they won't modify the derivation itself)
rcshm has joined #nixos
<noonien>
cool!
<noonien>
hmm, then i might just submit my first PR. how long does a simple PR usually take to go through?
Rusty1 has joined #nixos
<ottidmes>
hard to put a number to it, it depends on serveral factors making pointless to say a number, my experience so far has been 1 to 2 weeks, but it depends on the review results and whether reviewers have time, and how many PRs are created at that moment
<noonien>
oh, pretty cool
Guanin has quit [Remote host closed the connection]
daniele- has quit [Quit: daniele-]
<ottidmes>
and of course if its a big change resulting in a lot of packages needing to rebuild it takes a whole lot longer and it will first have to go through staging before it ends up in master
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhQke
<Judson1>
The problem is that home-manager master really assumes nixos-unstable, so selecting specific packages doesn't (I think) solve the problem.
<Judson1>
Separately, I'm running into concrete irritations with the way Python packaging is managed.
<Judson1>
In that jira-cli is now broken because the jira package isn't pinned to 2.7 (I think?) "jira-2.0.0 not supported for interpreter python2.7"
<Ankhers>
I'm trying to get home-manager to use my local git checkout. I changed programs.home-manager.path = "..."; to the proper directory, but it still seems to be pulling from the channel. Any ideas?
leex has quit [Quit: Lost terminal]
filterfish has quit [Ping timeout: 240 seconds]
<wedens>
Ankhers: you'll need to set home-manager in NIX_PATH, I think
<Ankhers>
wedens: Thanks, I will look into that.
eadwu has quit [Quit: WeeChat 2.3]
ggp0647 has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 246 seconds]
worldofpeace has joined #nixos
filterfish has joined #nixos
Taneb has quit [Quit: I seem to have stopped.]
filterfish has quit [Ping timeout: 250 seconds]
o1lo01ol1o has joined #nixos
lawlesseel has joined #nixos
<{^_^}>
[nixpkgs] @edude03 opened pull request #55550 → Push plex logs to syslog/journald → https://git.io/fhQII
<iqubic>
How hard is it to run a steam game with an older version of Mono?
<iqubic>
Specifically I need this game to run with Mono 4.2.4.
<iqubic>
I might also need a few other specific 32-bit libraries too.
<iqubic>
I'm not sure how to make that work.
reinhardt has joined #nixos
<laalf>
hello! information about system.stateVersion is rather different around the web. if i dont change the stateversion, i wont get newer channels packages, right? there is no "nixos-stable" channel, right?
<iqubic>
stateVersion should be kept the same always. It's used for managing things like databases behind the scenes. DO NOT CHANGE IT.
<laalf>
iqubic: will i get packages from newer stable channels if i dont touch it?
<iqubic>
that being said, you can still get new channels as they are released. I don't recall the command to that, but it can be done.
<iqubic>
clever: gchristensen: infinisil: Can one of you help out here?
<iqubic>
Changing the stateVersion might actually screw up your system really badly.
<laalf>
if fetchtarball worked in nixos-install that wouldnt be a huge problem for me
Church_ has quit [Quit: WeeChat 2.2]
filterfish_ has quit [Remote host closed the connection]
<laalf>
iqubic: the one that changes all the time?
<iqubic>
What do you mean by "the one that changes"?
<iqubic>
The stable channel usually only gets updated ever 6 months.
<laalf>
yes. that is what i mean
<iqubic>
That's as stable as it gets for Nixos.
reinhardt has quit [Ping timeout: 250 seconds]
<laalf>
sad... well maybe people will give it more attention once they notice what a shitshow ostree is. more manpower would probably help nixos a lot
filterfish__ has quit [Ping timeout: 250 seconds]
daniele- has joined #nixos
<iqubic>
what is ostree?
<worldofpeace>
laalf I'm not sure if I understand your question, but nixos doesn't have a "stable channel" per say but we have stable releases. most recent would be 18.09 and the channel is channel nixos-18.09
<laalf>
that stuff that fedora silverblue tries to push. also flatpaks
<laalf>
worldofpeace: yes i got that now.
reinhardt has joined #nixos
<iqubic>
Does anyone know how I can run a *.exe file with Mono version 4.2.4 on NixOS?
<etu>
They don't refer to the service, but I think the service is better anyways
<iqubic>
Why is the reset needed?
<iqubic>
What does that mean?
Makaveli7 has joined #nixos
<iqubic>
answer: It doesn't seem to be required.
thc202 has joined #nixos
lfish has joined #nixos
gagbo has quit [Quit: I'm out !]
<iqubic>
etu: So I just ran 'flatpack install flathub com.valvesoftware.steam' and it seemed to install it correctly. Now, where is my executable for steam?
<iqubic>
I can't seem to find that.
Makaveli7 has quit [Quit: Leaving]
ottidmes has joined #nixos
<etu>
iqubic: You're talking to someone that tried flatpak like once several years ago
<etu>
but I would guess "flatpak run com.valvesoftware.Steam"
schjetne has joined #nixos
justanotheruser has quit [Ping timeout: 246 seconds]
<iqubic>
Yes, that works.
<iqubic>
Now, this seems to be working. But steam thinks I'm logging in from a new computer.
<etu>
Yeah, flatpak puts all files generated by a program in a contained directory
<etu>
So things don't spread around the homefolder
Mateon1 has quit [Quit: Mateon1]
<iqubic>
I see.
Mateon1 has joined #nixos
<iqubic>
And I now need to install all of my steam games again. Weird.
<etu>
Not at all, it put's everything in a contained directory
civodul has joined #nixos
<iqubic>
And that did in fact fix my issues.
<iqubic>
I can now play mono games again.
<ptotter[m]>
\o/
<etu>
And with that, I wonder what the flatpak does that we don't
<iqubic>
Well, my steam game just screwed up my screen resolution.
<therealwaphire[m>
<freenode_etu ",which-channel therealwaphire"> currently i'm testing nixos so I have both unstable channels added. but when I did `nix-env -i gcc` it pulled `gcc-7.4.0` for some reason
<iqubic>
How can I use xrandr to fix this?
<iqubic>
I just want to set it back to the default.
<etu>
iqubic: if you have one screen, I would do: "autorandr common" :p
<ottidmes>
therealwaphire[m: gcc8 is available on nixos-unstable under the attribute name gcc8
<therealwaphire[m>
I guessed as much
<etu>
therealwaphire[m: Then it's because gcc8 isn't the default gcc (yet)
<iqubic>
etu: I do only have one screen.
<therealwaphire[m>
but I tried installing gcc8, gcc8.2.0, gcc-8 and gcc-8.2.0
<iqubic>
But I don't have the autorandr command.
<therealwaphire[m>
didn't install
<ottidmes>
therealwaphire[m: clang is available under attribute name clang_7
<ottidmes>
* clang 7
<iqubic>
etu: how shall I fix this?
<therealwaphire[m>
how would I go searching channels for a package, again?
<therealwaphire[m>
`nix-env --query` only shows me installed packages
<ottidmes>
therealwaphire[m: easiest is installing the channels you are interested in and doing `nix search`
<ottidmes>
therealwaphire[m: I did something similar to that FAQ I linked via the bot, about having unstable while on stable by binding it to an attribute name called unstable, so I checked like this (but that requires some Nix experience): nix eval '(with import <nixpkgs> { }; with lib; filter (hasPrefix "clang") (attrNames unstable))'
<ottidmes>
therealwaphire[m: there is also https://nixos.org/nixos/packages.html# but that can be a bit outdated and it doesnt show unfree software unlike `nix search` (as long as Nixpkgs config.nix contains allowUnfree = true;)
oida has joined #nixos
<therealwaphire[m>
yeah I already searched through that and figured out that it doesn't show packages from unstable
<ottidmes>
therealwaphire[m: try: nix-env -iA gcc8, nix-env -iA nixos.gcc8, or nix-env -f '<nixpkgs>' -iA gcc8 (not sure which one worked for clean setups, I always use the last one though)
<ottidmes>
therealwaphire[m: but mind you, that is probably not what you want to do, you probably want to use nix-shell with a package that uses gcc8Stdenv (bit complicated maybe to get into right when you are starting out)
<therealwaphire[m>
<freenode_ott "therealwaphire: but mind you, th"> could you explain what would be the difference in using `nix-shell` ?
<{^_^}>
[nixpkgs] @vbgl opened pull request #55555 → coqPackages.paramcoq: init at 1.1.1 → https://git.io/fhQqZ
mzan has joined #nixos
nikivi has quit [Quit: ZNC is awesome]
<ottidmes>
therealwaphire[m: `man nix-shell` probably does the best job at that, but in short, you might get gcc8 to work if you install it in your env, but it will not be able to find any libraries, the only way to do that is to build something or to use nix-shell which can be used to mimick the environment in which builds are run
nikivi has joined #nixos
<ottidmes>
,libraries therealwaphire[m
<{^_^}>
therealwaphire[m: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
knupfer has quit [Remote host closed the connection]
<therealwaphire[m>
<freenode_{^_ "therealwaphire: Don't install li"> woah this is completely new lol
<therealwaphire[m>
<freenode_ott "therealwaphire: `man nix-shell` "> thanks for the explanation, man
<therealwaphire[m>
I'm gonna read the manpage and report back if I have additional questions
<siers>
Can I install docker on darwin with nix somehow? Or shall I have to brew it?
<therealwaphire[m>
so I've one question here. say, gcc or clang are built into different profiles with different paths. How then would an application like vim with plugins for a dev environment be able to find the libraries / compilers necessary?
tmaekawa has joined #nixos
knupfer has joined #nixos
<{^_^}>
[nixpkgs] @edolstra pushed to master « nixos-generate-config: Don't suggest setting a uid »: https://git.io/fhQq6
<ottidmes>
therealwaphire[m: applications can handle different dependencies and their versions because their dependencies are in fixed locations in the Nix store (/nix/store), its only in a global environment like systemPackages that it could cause problem, because you would get collisions, i.e. two versions giving the same /bin/<name> but since you generally only install applications in systemPackages this is rarely a
<ottidmes>
problem (if it is, you can assign priorities)
<ottidmes>
therealwaphire[m: ^ wedens answer is probably what you meant
<timor>
Question: `buildEnv` does not support the `requiredSystemFeatures` attribute. It does, however, support `passthru`. I noticed that anything in `passthru` is accessible as if it has been added as an attribute directly to `mkDerivation`. Will a `requiredSystemFeatures` defined in `passthru` do what I mean?
knupfer has quit [Remote host closed the connection]
<ottidmes>
timor: likely, you should just test it I guess
<timor>
ottidmes: I am unsure how to test this reliably, since the effect it is supposed to have happens only on a hydra server.
sigmundv has joined #nixos
<ottidmes>
timor: create a buildEnv locally with just some test packages, and try to trigger the error, and then try with passthru instead, I guess?
<timor>
ottidmes: well, getting rid of the error is easy, but I don't know how to test wether the intended consumer of the `requiredSystemFeatures` attribute picks it up. Oh well, I'll just try it out and see what hydra does...
<spacefrogg>
timor: Maybe, requiredSystemFeatures is kept in the produced *.drv directly...
knupfer has joined #nixos
<{^_^}>
[nixpkgs] @peterromfeldhk opened pull request #55558 → WIP: sonar-scanner-bin: init at 3.3.0.1492 → https://git.io/fhQmT
<{^_^}>
[cabal2nix] @peti pushed to master « pandoc: fix post-process hook to install the man page properly »: https://git.io/fhQmk
<{^_^}>
[nixpkgs] @vbgl pushed commit from @r-ryantm to master « ocamlPackages.topkg: 0.9.1 -> 1.0.0 »: https://git.io/fhQYh
init_6__ has joined #nixos
init_6 has quit [Ping timeout: 246 seconds]
init_6__ is now known as init_6
aanderse_ has joined #nixos
<init_6>
I try to bump openmw to 0.44.0 and port it to qt5 https://pastebin.com/bJ4AbHQE but now build failed with "error: anonymous function at ~/nixpkgs/pkgs/games/openmw/default.nix:1:1 called without required argument 'qtbase', at ~/nixpkgs/lib/customisation.nix:69:12" What I did wrong?
aanderse has quit [Ping timeout: 246 seconds]
<aanderse_>
init_6: look at pkgs/top-level/all-packages.nix
<ottidmes>
init_6: at all-packages.nix you will have to update openmw to have { qtbase = qt5.qtbase; }
<noonien>
does nix-prefetch-url refetch something that's already in the store?
<init_6>
aanderse_: all plugins stuff 13Gb
<noonien>
hmm, i geuss it does, since there's no reason why it shouldn't
<ottidmes>
noonien: according to the description, that seems to be the case unless you supply it with a hash
aanderse_ has quit [Ping timeout: 245 seconds]
aanderse_ has joined #nixos
<ottidmes>
init_6: I always ended up as a sort of demigod in Morrowind (constant health regen and such), the only thing that could still kill me were poison darts (or throwing knives, cannot remember) in Tribunal sewers
<{^_^}>
[nixpkgs] @amiloradovsky opened pull request #55561 → opencascade-occt: init at 7.3.0p2 → https://git.io/fhQO4
<yorick>
so nix-prefetch-git will not fetch submodules, then give you a hash that you plug in to fetchGit which will work only on your system
dramforever has joined #nixos
infinee has joined #nixos
<elvishjerricco>
yorick: Why would it work only on your system?
<ottidmes>
yorick: it can fetch submodules, you can choose this yourself
rauno has quit [Ping timeout: 272 seconds]
<yorick>
elvishjerricco: since fetchSubmodules is a default to fetchGit but not nix-prefetch-git
zupo_ has joined #nixos
<clever>
elvishjerricco: it only works if the path for the given name+hash exists in /nix/store/, and due to giving the "wrong" hash (the submodule free one) it will fail for all others
periklis` has joined #nixos
<clever>
elvishjerricco: the hash matches what nix-prefetch-git added to the store, but it doesnt match what is downloaded at build time
periklis has quit [Ping timeout: 272 seconds]
<elvishjerricco>
Ah, right. That's frustrating
zupo has quit [Ping timeout: 245 seconds]
<ottidmes>
With https://github.com/msteen/nix-prefetch it should just work: nix-prefetch builtins.fetchGit --help (or am I misunderstanding the problem?)
<ottidmes>
hmm, help does not work for the builtins yet, ah well, it should at least prefetch, giving you the correct hash
<sb0>
I can create a shell with python containing several packages from nixpkgs with: nix-shell -p "python3.withPackages(ps: with ps; [ package1 package2 ])"
<sb0>
what is the equivalent command when those packages are not in nixpkgs, but in a hydra channel somewhere else?
<{^_^}>
nix#2523 (by periklis, 13 weeks ago, open): darwin: nix-daemon crashes due to OBJC_DISABLE_INITIALIZE_FORK_SAFETY
<siers>
Would you suggest it? I didn't think much and just started it just now.
johanot has quit [Quit: WeeChat 2.2]
<siers>
LnL, So when does the crash happen, precisely?
halfbit has quit [Ping timeout: 240 seconds]
<LnL>
when downloading cached packages, when libcurl resolves a bunch of libraries are loaded causing it to die if the variable is not set
reivilibre has quit [Quit: No Ping reply in 180 seconds.]
<LnL>
why is still kind of mysterious, since using a different resolver only fixes some problems
dramforever has quit [Remote host closed the connection]
reivilibre has joined #nixos
fendor_ has quit [Remote host closed the connection]
mobile_c has quit [Ping timeout: 246 seconds]
fendor_ has joined #nixos
jomik has joined #nixos
<jomik>
Hey guys, I noticed that I am getting this error when booting my machine `Error parsing PCC subspaces from PCCT`. How do I fix it? I have set `hardware.cpu.intel.updateMicrocode = true;`
<jomik>
It boots just fine, have not noticed any issues while running. But still a bit odd to see an error message there .. :)
<nyanloutre[m]>
<freenode_ott "nyanloutre: far from quick nor e"> thanks, I will try to understand it now 😃
ryantrinkle has quit [Ping timeout: 246 seconds]
ng0 has quit [Ping timeout: 256 seconds]
zupo has joined #nixos
<ottidmes>
I am trying to get it to show all metadata, but I have to make sure only things that can be converted to json are included
<nyanloutre[m]>
what is the part querying installed packages ?
fiola has left #nixos [""Quantum link decohered""]
o1lo01ol1o has joined #nixos
halfbit has joined #nixos
<ottidmes>
ah, I must have misunderstood, this shows all top-level packages in Nixpkgs, but for the installed, thats an easy (this time actually, already got the code) fix
ng0 has joined #nixos
makefu has quit [Quit: WeeChat 2.2]
camsbury has joined #nixos
ryantrinkle has joined #nixos
<ottidmes>
nyanloutre[m]: when you stay installed, do you want both system packages and nix-env root/user packages?
<nyanloutre[m]>
I am trying to get either just system packages or both system and user
<chrisaw>
Folks, I absolutely hate Haskell / Nix syntax. It drives me up the wall and I just can't seem to ever wrap my head around it. That having been said - I absolutely love the underlying principles of NixOS. What're my options?
<jomik>
nyanloutre[m]: I use /etc/nixos/configuration for system-level packages, and then I use home-manager for user packages.
<jomik>
chrisaw: Suck it up and learn Nix. It is nowhere near Haskell syntax :D
davidcl has joined #nixos
rycwo has quit [Ping timeout: 250 seconds]
o1lo01ol1o has quit [Ping timeout: 268 seconds]
daniele- has joined #nixos
marsam has quit [Ping timeout: 252 seconds]
<nyanloutre[m]>
ottidmes: I found the command that output the store paths `nix-store -q --requisites /run/current-system`
<ottidmes>
no need to go down that route, you can just request systemPackages directly
<jomik>
chrisaw: To be honest though, you wont need to write a lot of nix to get a working system. Most likely you shouldn't really need to write any packages or modules, but it does help to understand it, of course.
<chrisaw>
jomik: I just find the command set for NixOS confusing and cumbersome - far too many commands (i.e. the split between nix and nixos, nix-shell, nix-env, etc.) Looking in to GuixSD the command set looks awesome by comparison but I'm not really interested in moving to a libre distro like that because it rules out simple things like wifi drivers, etc. Plus I actually rather like systemd (I know, a sin in the Linux world!)
<jomik>
Pft, I like systemd as well, dunno why not :P
<chrisaw>
jomik: I should clarify - I've been running NixOS for around 8 months now - I've written packages and all of that stuff. All of my Linux boxes are Nix'd.
<jomik>
Oooh, yeah okay. Well, I really don't use that many commands.. I use nix-shell and nixos-rebuild together with nix-collect-garbage.
o1lo01ol1o has joined #nixos
<ottidmes>
chrisaw: I found the vscode Nix highlighter extremely good, never had a syntax error since using it, that helps in that regard at least
<jomik>
I can second that. I don't really want to use vscode though... I use the emacs mode, and it works decently.
<jomik>
Except the annoying indentation.
<jomik>
s/annoying/broken
hphs^ has quit []
Soo_Slow has quit [Remote host closed the connection]
<ottidmes>
there is only 1 thing I dont like about the Nix language support and that is I cannot select some text and press double quote, it replaces it rather than wrapping it, but that is really minor
<chrisaw>
It's more that things are so incredibly faffy. I'll give you an example! I want to build coreboot - that means I need gcc with gnat support.
<chrisaw>
I look that up at the NixOS side and all I find is oodles of chats and open github issues long since gone cold - things like that always end up being a nightmare where I have to spend hours if not days trying to fix them when achieving the same on literally any other distro would be easy. No doubt I could fire up a docker container but then if I'm relying on other distros for things like that - why run Nix?
htoc^ has joined #nixos
<mbrock>
rebuilding gcc with different options is easy on every other distro? :/
<simpson>
chrisaw: Indeed! You don't have to run Nix.
o1lo01ol1o has quit [Ping timeout: 246 seconds]
<chrisaw>
mbrock: Effortless. You just install another package - no need to build it with any other options. It's prebuilt.
<mbrock>
I don't think there's any real answer other than "well, this is all a big open source volunteer work in progress with lots of rough edges and unfinished stuff everywhere"
<joepie91>
chrisaw: honestly, in my experience, the #1 problem with Nix tooling is documentation
<joepie91>
almost always the bits and pieces turn out to *exist*
<joepie91>
just nobody ever documented that fact
pie_ has joined #nixos
<joepie91>
and once you start seeing it as a documentation problem rather than a design problem, it suddenly has a lot more future :)
<pie_>
I'm trying to run wikidpad but it just silently dies for some reason...
<chrisaw>
joepie91: That's very true sadly, yeah. Find myself reading through nix code far more often than I'd like to.
<joepie91>
chrisaw: anyway, unfortunately mbrock's answer is sort of right; there's just a lot of work left in documentation and so on, and it's all volunteer work in the end... and given the relatively small userbase and the more code-oriented / less options-oriented approach, there's not a whole lot of third-party tutorials to save you at this point either
<joepie91>
("turn this special knob to make the thing happen" is just fundamentally easier to document as a third party than "this is how you write the code to turn the special knob")
<joepie91>
chrisaw: a few people are working on improving the documentation, eg. gchristensen, and I'm sure that they'd be happy with any help on that front :) but there's no magical answer to make it all work out of the box today
<joepie91>
unfortunately
chimay has joined #nixos
<simpson>
chrisaw: It looks like you might be the lucky person who gets to add Ada support to nixpkgs. Exciting!
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen>
<3 joepie91
<{^_^}>
[nixpkgs] @flokli opened pull request #55566 → zoom-us: don't set dontPatchELF → https://git.io/fhQGp
<siers>
I'm trying to build nokogiri gem on darwin. It's missing the stdio.h, it says. How do I make an environment that has it?
andi- has joined #nixos
agander has quit [Ping timeout: 245 seconds]
<pie_>
ok maybe this its the problem but ive no idea how to fix it: /nix/store/kkccw270k43ys8ivpk2g5xz7w3pav2zv-python2.7-wxPython-3.0.2.0/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629: UserWarning: wxPython/wxWidgets release number mismatch warnings.warn("wxPython/wxWidgets release number mismatch")
Kakky has joined #nixos
<mbrock>
sometimes browsing Nixpkgs feels like a nightmarish deep dive into all the accumulated weirdnesses and kludges of contemporary GNU/Linux, but with a diving suit made of pure functional elegance (not so elegant metaphor, but)
<mbrock>
it's like a two-layer cake with very contrasting flavors
<mbrock>
I personally find it extremely delicious
<joepie91>
mbrock: except moments later you find out that actually you're using revision 2 of the diving suit and there's 5 others
<joepie91>
:P
<joepie91>
to abuse the metaphor to extend to the various APIs and sets of utility functions in use...
kreisys has joined #nixos
daniele- has quit [Quit: daniele-]
<joepie91>
actually, has anybody inventoried conflicting/outdated usage of different APIs in nixpkgs yet? comprehensively
<ottidmes>
I expected nix-env --query --attr-path to print the, well, attribute paths, but I only get back what seem list indices, is there a way to get this info?
<{^_^}>
[nixpkgs] @timor opened pull request #55567 → [WIP] buildEnv: accept arbitrary arguments, pass to runCommand → https://git.io/fhQZZ
<simpson>
chrisaw: I have done some investigation. I do not know the history of Ada in nixpkgs, but it seems that an Ada bootstrap compiler will be required.
<dckc>
thoughts on managing secrets in nix builds? does making a secret an input to (the last step of) a build seem reasonable?
<simpson>
chrisaw: I'm forking this to #nixos-dev.
<{^_^}>
#24288 (by basvandijk, 1 year ago, open): Provide options for storing secrets outside the Nix store
<kreisys>
Has anyone else started getting SSL errors when Nix tried to download narinfos? I've been trying to install Nix on a new laptop and was getting those; then I uninstalled Nix on my old laptop and tried to reinstall it and it was getting the same error all of a sudden.
<kreisys>
*tries
<gchristensen>
FYI: if you use docker on a computer which is not NixOS, there is a VERY IMPORTANT SECURITY UPDATE coming out very soon. please patch as soon as possible.
<__monty__>
Oh, docker, you and your vulnerabilities, you rascal.
<dckc>
I look into docker security every once in a while... I have never found a bottom to the pit.
<averell>
the real mistake is the non-nixos server of course
<__monty__>
I wonder what about NixOS mitigates the issue?
<jomik>
Hey guys, I noticed that I am getting this error when booting my machine `Error parsing PCC subspaces from PCCT`. How do I fix it? I have set `hardware.cpu.intel.updateMicrocode = true;`
mzan has left #nixos [#nixos]
meizikyn has quit [Quit: WeeChat 2.3]
<fendor_>
can I update desktop entries? In kde, the steam desktop entry tries to invoke an old path to steam but in the steam.desktop the correct path is specified
<fendor_>
ToxicFrog, kf5.kservice.sycoca: Parse error in "/home/user/.config/menus/applications-merged/xdg-desktop-menu-dummy.menu" , line 1 , col 1 : "unexpected end of file" :D
<jomik>
Ouch :D
<ToxicFrog>
Welp, I'm out of ideas
<joepie91>
[16:43] <gchristensen> FYI: if you use docker on a computer which is not NixOS, there is a VERY IMPORTANT SECURITY UPDATE coming out very soon. please patch as soon as possible.
<joepie91>
more specifically....
<joepie91>
the underlying container runtime has a vuln that allows code within a container to execute code as root on the host
<joepie91>
LXC also vulnerable though more difficult, systemd-nspawn not
rcshm has joined #nixos
<joepie91>
gchristensen: btw, has somebody actually tested in practice whether it is exploitable on NixOS? or was that just an informed guess?
Ariakenom has joined #nixos
<gchristensen>
I have tested it
<gchristensen>
I can't prove a negative, but I'm quite confident
<fendor_>
ToxicFrog, thank you nevertheless :)
<{^_^}>
[nixpkgs] @vbgl opened pull request #55568 → coqPackages.mathcomp-analysis: enable for Coq 8.9 → https://git.io/fhQnP
<joepie91>
gchristensen: right :)
ThatDocsLady has quit [Ping timeout: 250 seconds]
<mikky>
hi, how do I set vim to be default editor *and* install vim_customisable or vimHugeX while preventing conflicts? because programs.vim.defaultEditor pulls pkgs.vim which in turn creates confilcts with pkgs.vimHugeX
<pie_>
of course the result is empty if you do phases = [ "installPhase" ]; and leave out unpackPhase...
* pie_
sighs
<fendor_>
ToxicFrog, your idea was great, i removed the desktop-dummy-menu, then it worked
<dckc>
oh my... the quoting / punctuation in nixpkgs/pkgs/build-support/setup-systemd-units.nix is boggling
<ottidmes>
I am trying to create a manpage for one of my packages, I tried asciidoc, because I saw bspwm use it, and it is easy enough, except the synopsis, I would like to have whitespace sensitiviy, but still style the flags in bold and such, anyone any experience with this?
<niksnut>
devalot: nix itself doesn't have any support for setuid binaries
<devalot>
niksnut: Right. I was just wondering what others do to use packages that only work with setuid binaries.
* dckc
finds makeUnit in nixpkgs/nixos/modules/system/boot/systemd-lib.nix
Tucky has quit [Quit: WeeChat 2.2]
erasmas has joined #nixos
<ottidmes>
pie_: I believe that is OK, the string context (like when doing "${dos2nix}") is also taken into account when determining the actual dependencies, so it only need to go in buildInputs, when it is actually needed for building it
<pie_>
ok, meanwhile...it seems like theres more than one thing called makeWrapper_
<pie_>
?
<pie_>
or not. for some reason my makeWrapper doesnt have --run (At least in nix-shell)
<ottidmes>
pie_: what do you mean, makeWrapper gives you access to several shell functions, like makeWrapper and wrapProgram
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
simukis has joined #nixos
dsiypl4_ has joined #nixos
<pie_>
im trying to wrap a program so taht the environment cd-s to its directory before running it
<pie_>
huh..whats the difference between makeWrapper and wrapProgram
waleee has quit [Ping timeout: 240 seconds]
<pie_>
well, wrapprogram seems to actually work and seems to do some convenience stuff so ill just use that
__Sander__ has quit [Quit: Konversation terminated!]
<symphorien>
wrapProgram is in place
<timor>
pie_: wrapProgram is a wrapper around makeWrapper :)
halfbit has joined #nixos
<symphorien>
makeWrapper will create a new wrapper at a distinct location from the wrappee
<{^_^}>
[nixos-weekly] @disassembler pushed 0 commits to iohk-hiring: https://git.io/fhQcq
ryantrinkle has joined #nixos
<pie_>
ok and now im back to the problem of my program dying when i start it, without any errors at all... :C
<ninjin>
Having odd issues with a USB mic, works straight away under Ubuntu, but for NixOS it shows up in dmesg and pavucontrol, but not as an input device. Searches have turned up with nothing, both for NixOS and more general.
<{^_^}>
[nixpkgs] @hedning pushed commit from @r-ryantm to staging « gnome3.librsvg: 2.44.11 -> 2.44.12 (#54779) »: https://git.io/fhQcs
<manveru>
ninjin: how does it show up then?
<ninjin>
manveru: In dmesg and under “Configuration” in `pavucontrol`.
<manveru>
and it doesn't have "Analaog Mono Input" profile?
<manveru>
*Analog
rycwo has joined #nixos
<timor>
Is there a command which returns how much the store will grow after e.g. nix-build or nixos-rebuild, which I can use to check reliably whether there is enough disk space left to perform the store operation(s)?
<ninjin>
manveru: Yep.
waleee has joined #nixos
<ninjin>
Oh, sorry, read that wrong. It does have the correct profile.
<manveru>
ninjin: and on the bottom right of the "Input Devices" tab you have "All Input Devices" selected? (in pavucontrol)
<srhb>
timor: Sort of, not really. Hydra has information of all the paths that are cached that you might be using, so you can query that with nix path-info -S --store https://cache.nixos.org
<ninjin>
manveru: Hehe, yes, that one is a classic if you get it wrong. ;)
<srhb>
timor: Any paths unique to your system are unknown until you build them.
halfbit has quit [Quit: WeeChat 2.3]
<manveru>
ninjin: then i'd try `systemctl restart --user pulseaudio.service`
dermetfan has quit [Ping timeout: 245 seconds]
<manveru>
my usb mic always worked fine so far :|
<__monty__>
Hmm, pandoc seems to be at version 2.5 in nixpkgs but `nix-env -qaPA nixpkgs.pandoc` reports version 2.2.1 and I just ran nix-channel --update.
<srhb>
__monty__: Which channel are you following?
makefu has joined #nixos
<ninjin>
manveru: That did the trick! Thanks a ton, no idea why NixOS behaves slightly different for me here.
<srhb>
__monty__: 18.09 has 2.2.1
<manveru>
pulseaudio is a fickle mistress :P
<__monty__>
srhb: Ah, nixpkgs-18.09-darwin.
<srhb>
__monty__: Then that is the expected version.
<__monty__>
Switched to that because of some reason past me figured present me'd recall.
<gchristensen>
hrm. I thought I had a real juicy bug report ("NixOS on ZFS can't boot on Mondays") but alas it was just a fluke.
<srhb>
gchristensen: Well, I have something similar that's a pain to debug...
<timor>
srhb: is that the same information which is displayed when using --dry-run (... MiB download, ... MiB unpacked) ?
<gchristensen>
srhb: what is it?
<srhb>
timor: Not sure.
<gchristensen>
oooOoooh maybe it can't be reproduced on Mondays, but I have a localscenario which allowed it!
<srhb>
gchristensen: Sometimes, scrub (I think) will completely lock up the system in such a way that I can't even get a debug kernel panic (easily) and nothing is written to disk.
* gchristensen
tries again
<srhb>
gchristensen: It also prevents subsequent boots if the scrub is.. queued? or something.
<srhb>
It's really weird.
<symphorien>
wasn't there a PR to delay scrub until the system is fully booted ?
<gchristensen>
hrm, still booted, I thought it was because I had a locally added condition to only start the scrub if it was plugged in to power
<NemesisD>
so i if i use a pinned version of nixpkgs, by default i won't benefit from the nix default cache right? i'll only benefit from a local cache unless i set up a cache server myself?
<srhb>
NemesisD: If it's a version that was previously built by Hydra, you get the full benefits.
dsiypl4__ has joined #nixos
<srhb>
NemesisD: (We don't delete old paths)
<gchristensen>
bingo!
<__monty__>
Hmm, running `nix-shell '<unstable>' -p pandoc` complains about a missing attribute for one of my overrides in config.nix. Any way I can just ignore that? All I want is a shell with a recent pandoc.
<NemesisD>
srhb: oh ok. so if i'm using a really new packages revision it probably won't hit the cache much but eventually hydra will catch up?
<gchristensen>
way to go sphalerit / sphalerite!
<srhb>
NemesisD: Right, master will not necessarily have been built yet.
<srhb>
NemesisD: You can also end up with situations where a revision never gets built if it's ahead of unstable.
<srhb>
NemesisD: (two commits between two builds that completely change all of the hashes, and the older one gets skipped because it's not HEAD once the build hits)
<srhb>
NemesisD: Running master is usually a bad idea anyway :)
<NemesisD>
gotcha. i had to use a pretty recent nixpkgs to get some hackage build tooling. my project appears to be building the entire universe. i'm gonna need to work on disabling package checks and haddocks or my coworkers are going to be pretty unhappy with me
<srhb>
I see.
orivej has joined #nixos
dsiypl4_ has quit [Ping timeout: 250 seconds]
<srhb>
NemesisD: fwiw, if you change whether to run checks or not, you're probably rebuilding anyway.
IRCsum has quit [Ping timeout: 240 seconds]
<srhb>
NemesisD: So you might end up making things worse.
<NemesisD>
i could probably walk back the commit i used by a bit to get exactly what i needed but that's also work i gotta do, haha
<NemesisD>
a progress meter would go a long way here. i'm not actually sure if this whole thing will build anyways
<srhb>
I'm not sure how to create reliable progress meters for ghc builds :P
<NemesisD>
well more just like how many packages are built
<srhb>
nix build has that.
DrLambda has quit [Ping timeout: 250 seconds]
<NemesisD>
oh ok. i'm actually just running nix shell. i'm basing this build off of https://github.com/Infinisil/soph, which seems like it tries to build everything before actually letting you into the shell
IRCsum has joined #nixos
<NemesisD>
i'm going to need to modify it if it won't let you into the shell if the project you're working on won't compile. that's a dealbreaker. we'll see
<srhb>
NemesisD: If it's based on shellFor or the likes, it'll only fail if a dependency fails
<srhb>
And you really can't get around that.
<NemesisD>
srhb: yeah it is. and i guess having all the dependencies built is reasonable. you're gonna need those no matter what
<srhb>
It's a fundamental limitation anyway, the shell definition simply doesn't exist until the dependencies are built.
<srhb>
(Because they're dependencies of the shell drv)
elgoosy has joined #nixos
<NemesisD>
yeah that makes sense. i don't seem to be getting great CPU utilization out of this. i feel like stack can pin all my cores for most of the time while building deps. maybe i'm close to the end
<srhb>
NemesisD: Or your cores setting is low such that one package will only use one core ever.
<NemesisD>
srhb: i don't see cores set anywhere in the hardware. i'd assume it'd just use nprocs or whatever
<srhb>
NemesisD: stack and nix both end up using ghc in much the same way, but options affect parallelism both on the package and module level.
<srhb>
NemesisD: It changed recently. On NixOS stable it defaults to 1
<srhb>
NemesisD: On unstable, it's indeed nprocs. Which can be pretty hard on your memory for largeish ghc projects.
<NemesisD>
stockholm syndrome with GHC has already taken hold of me years ago. i'm using a machine with 24GB of ram ;)
<srhb>
NemesisD: I had to upgrade to 32 for similar reasons. :)
iqubic` has left #nixos ["ERC (IRC client for Emacs 26.1)"]
orivej has quit [K-Lined]
kleisli has joined #nixos
<dckc>
here I am thinking 16GB is extravagant. the price of an upgrade to 32 GB in billable hours is probably pretty small...
<clever>
dckc: both my laptop and desktop have 32gig of ram, and i regularly go into 32gig of swap on the desktop, so 64g would help perf
dermetfan has joined #nixos
knupfer has quit [Remote host closed the connection]
marusich has quit [Remote host closed the connection]
<srhb>
gchristensen: Yarr.
acarrico has joined #nixos
Soo_Slow has joined #nixos
<dckc>
I have a single user nix install and I'd like to switch to daemon mode. clues?
<srhb>
dckc: I think it's easiest to just reinstall. :)
<dckc>
is there a way to preserve my profile?
knupfer has quit [Quit: knupfer]
Jetien__ has quit [Ping timeout: 246 seconds]
knupfer has joined #nixos
knupfer has quit [Remote host closed the connection]
<srhb>
dckc: I'm not sure whether the current installer expects you to remove anything before it'll run. Try just leaving things in place and see if it complains.
<gchristensen>
srhb: I wonder if that should be applied to the nixos service by default
<dckc>
I did try it; it does complain
<srhb>
gchristensen: If it behaves well in all cases (including machines that don't have a concept of AC/Bat) I think it sounds sensible
<srhb>
dckc: Alright, I'd read through the multi user install script and apply it manually then.
<dckc>
is there a way to find out what packages I installed manually vs. those that were pulled in as dependencies?
<srhb>
dckc: On a high level, you'll need to change ownership of the nix store, create build users, and start the daemon.
zopsi has quit [Ping timeout: 252 seconds]
<srhb>
dckc: nix-env -q contains all the things you explicitly installed in your profile.
<dckc>
if I do nix-env -q >saved, can I then do nix-env -i $(cat saved)?
<{^_^}>
There are multiple ways of managing declarative profiles. 1) Attrset, compatible with imperative use of nix-env https://git.io/fAQHW ; 2) buildEnv, providing more control over the paths that are linked into the profile https://git.io/fp0aU ; 3) home-manager, providing nixos-like config for your ~ https://github.com/rycee/home-manager
<NemesisD>
srhb: oh weird. when i look closer at my build output, it seems to be calling ghc with -j4, but my nproc is 8...
<dckc>
if want to nix-copy-closer to $DEST, does $DEST need nix installed already?
<symphorien>
if you just want some executable to be present on the target without nix, you can tar cvf foo.tar $(nix-store -qR /nix/store/foo) and then unpack the tarball on the target
<symphorien>
nix-copy-closure is that + updating the nix db to register these store paths, so it needs nix
ddellacosta has joined #nixos
<clever>
symphorien: there is also pkgs.callPackage <nixpkgs/nixos/lib/make-system-tarball.nix>, which can generate that tarball for you
simukis has quit [Client Quit]
<clever>
it will also include a "backup" of the db.sqlite, so you can then restore that after unpacking, to make everything valid (but it will wipe any previous DB)
<symphorien>
oh
simukis has joined #nixos
Alling has joined #nixos
gagbo has joined #nixos
<clever>
its sort of a fake backup though, it has the same schema as a backup, but is limited to the subset of paths included in the tar
<Alling>
Hello everyone! I have ~10 GB of photos and videos from a trip that I would like to share with some friends. I'm trying to do it using Transmission on my server. It seems to be working insofar that I can access its web GUI. How would I go about creating a torrent?
<kreisys>
oh this is on macOS 10.14.3 btw, after a fresh nix install
judson_ has quit [Remote host closed the connection]
judson has joined #nixos
<thefloweringash>
is there such thing as `myOpt = mkOption { type = types.attrs; }` with a deep merge, such that `mkMerge [ myOpt.a.b = "b"; myOpt.a.a = "a"; ]` produces `{a = { a = "a"; b = "b"; };}` ? Didn't see it in lib/types.nix
kleisli has quit [Ping timeout: 240 seconds]
winem_ has quit [Ping timeout: 240 seconds]
Kakky has quit [Remote host closed the connection]
Kakky has joined #nixos
<__monty__>
So, why do my config.nix overrides apply to whatever channel I supply to nix-shell, and can I ignore it for a single invocation?
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhQC5
<pie_>
can wrapprogram be used to set the first word in a command? i want to prepend python to it so the interpreter calls a script instead of the shebang
<clever>
__monty__: when you `import <nixpkgs> {}` it will obey your config.nix, which is why i prefer `import <nixpkgs> { config={}; overlays=[]; }`
<clever>
__monty__: that entirely disables loading config/overlays
laduke-13 has left #nixos ["WeeChat 2.3"]
<__monty__>
clever: How do I pass that to nix-shell? I'm currently trying `nix-shell '<unstable>' -p pandoc`.
<srhb>
__monty__: You're better off writing a shell.nix once you start needing this.
<srhb>
Trying to shoehorn it into the supported command line args is painful.
<__monty__>
Really? All I want to do is install/nix-shell pandoc from a different channel :'(
<srhb>
__monty__: It sounded like you also wanted to discard your local nixpkgs config.
<heyguyswatup>
so I'm trying to figure out what I put in the configuration.nix so that I can have multiple keyboard layouts installed
<heyguyswatup>
and then I suppose my WM/DE will have some setting for letting me use some key combo to jump between them
<heyguyswatup>
but I'm totally lost in regards to what package I need to install or whatever to get access to multiple languages (so that I can hook my keycombo up to the different options)
<heyguyswatup>
would appreciate a magic incantation / link to info
shibboleth has joined #nixos
rycwo has quit [Ping timeout: 272 seconds]
<GiGa>
heyguyswatup: What DE are you using?
<GiGa>
and are you interested in using it on the TTY (i.e. outside the DE)?
Kakky has quit [Quit: Leaving]
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<heyguyswatup>
yes I'd prefer to have the ability to switch in the tty
Kakky has joined #nixos
<heyguyswatup>
butI'm on kde as of now with xmonad as well (that I am still building the config to finish transitioning
<heyguyswatup>
)
elgoosy has quit [Remote host closed the connection]
oxa has joined #nixos
Kakky has quit [Client Quit]
<averell>
i just have ,-separated entries in services.server.xkb* like xkbVariant "dvorak,basic" and a "grp:shifts_toggle" in xkbOptions
Kakky has joined #nixos
<samrose>
is there a way to do
<samrose>
nix.extraOptions = ''
<samrose>
tarball-ttl = 60
<samrose>
allowed-uris =
<samrose>
(oops fingers slipped)
<samrose>
where there are more than 1 allowed-uris ?
<averell>
polybar can pick that up and make a mouse-toggle for the layout
<ddellacosta>
so this seems like a common enough scenario, and this solution doesn't seem like the best one--can anyone point me at a more "Nix-y" solution if one exists? https://unix.stackexchange.com/a/415937
<heyguyswatup>
avarell: can I see your configuration.nix as an example (a)
dbmikus has quit [Read error: Connection reset by peer]
<heyguyswatup>
agh my nephew is having me explain in excruciating detail what a minecraft server is
dbmikus_ has joined #nixos
<heyguyswatup>
hmm nm I thin I got it to work, thanks!
<heyguyswatup>
is there a place with a collection of configuration.nix files
<heyguyswatup>
and lots of comments on the different options people are chosing etc
<heyguyswatup>
it'd be super cool to get a better feel for what is possible
<heyguyswatup>
all I'm doing is picking packages to be on the base system and specifying some small things like virtualisation and containers and the things that are suggested in the base file
<averell>
i don't know anything other than github search. the manual has a list of all options. but yeah, random configuration.nix are helpful.
<GiGa>
heyguyswatup: Sorry, I didn't notice you'd replied. Glad you got it sorted though
hexo_ is now known as plytkejsie
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kumikumi has joined #nixos
<heyguyswatup>
GiGa: No worries, thanks for the concern :)
<heyguyswatup>
btw is there any good info on containers beside the small segment in the manual? should I basically just think of them as unconfigured nixos systems?
<heyguyswatup>
I was thinking I'd make a container for rust so that I could rustup there without polluting my system with non nix configured install stuff
<heyguyswatup>
and in the future I'd like to do that for most things that want to be piped into sh
<heyguyswatup>
there's also nix-shell but I don't understand how to use it for that use case (if possible)
<ddellacosta>
it talks about how to do things using Nix infrastructure with Rust, at the least hopefully should give you more of an idea of how to fit it into your scheme
<heyguyswatup>
dude that link is so good
<ddellacosta>
excellent!
<das_j>
Is there a convenient way to force all files of a directory to be preloaded? Something like makeWrapper $out/bin/icinga2 --add-to-ldpath $out/lib/icinga2
shibboleth has quit [Ping timeout: 256 seconds]
<GiGa>
heyguyswatup: I use containers for my development too, for the same reason
<GiGa>
heyguyswatup: although the manual is the only thing I've found
<GiGa>
heyguyswatup: you can configure the container in its own configuration.nix or you can specify them in your main system one, at which point the containers get upgraded along with your system
<clever>
yl[m]: the platforms list isnt setup right, so hydra wont build it ever
<philipp[m]>
Is it possible to set up a single declarative container to track another branch than the rest of the system?
shibboleth has joined #nixos
<clever>
yl[m]: hmmm, odd, the source says platforms.all
<heyguyswatup>
yeah I'm currently just specifying one container in my main config but it didn't have anything at first, I couldn't even 'nix-env -i' but I started adding to the declaration like the main system and it seems to work the exact same way so meh
<yl[m]>
LnL: I'll test it out on both Darwin and NixOS when I'll have the PR ready. Thanks for your help!
JosW has joined #nixos
zupo has joined #nixos
xkapastel has joined #nixos
alex`` has joined #nixos
<ottidmes>
How do I prevent my Nix build manpage from showing date 01/01/1970? I searching whether there is an option for this (there probably is), but searching for manpage date does not really give me what I am looking for as you can imagine :P
<etu>
ottidmes: It's supposed to be that to be reproducible
ddellacosta has quit [Ping timeout: 240 seconds]
dbmikus__ has joined #nixos
yokyolu has joined #nixos
<yokyolu>
hi
<ottidmes>
etu: I get that on a file level, I am just hoping I can set something in the actual manpage being generated from my asciidoc, or if its not easy/possible within asciidoc, by changing the manpage after generating it
<__monty__>
Hmm, still getting cannot auto-call... stdenv.
<ottidmes>
then you got to callPackage
<clever>
,callPackage __monty__
<{^_^}>
__monty__: If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<__monty__>
Should I put the callPackage in the default.nix?
<ottidmes>
no
chimay has quit [Ping timeout: 268 seconds]
<ottidmes>
in the nix-build expression
<ottidmes>
keep the default.nix a clean package definition, is what I would do at least
<ottidmes>
__monty__: I just have a shell function: nux build-call, then builds default.nix with callPackage, likewise a nux shell-call, with an option to change the nixpkgs repo (nux is just something I use to place all my nix helpers under)
<clever>
i tend to put the { stdenv, cmake }: part into packagename.nix
<clever>
and then default.nix has the string from what {^_^} gave above
<ottidmes>
ah, keep default.nix the package, since that is what is used through nixpkgs, and then use a release.nix for convenience installing
<clever>
__monty__: the for loop is setting $odt, but then your using $f inside the loop?
<clever>
__monty__: pandoc is also not in the buildInputs, so it cant be ran
<__monty__>
Woops, $odt didn't help though. Specifying it as an argument isn't enough?
teeAyy has quit [Quit: ciao]
<clever>
__monty__: correct, you are defining a nix level function, that accepts an argument called pandoc, but then you never do anything with pandoc
tA has joined #nixos
Thra11 has joined #nixos
<clever>
__monty__: oh, and `for x in $src` will run the for loop exactly once, on $src
<clever>
you want $src/*.odt
<pie___>
symphorien, you said in my case I should wrap the interpreter, but how do I tell makeWrapper to output to my local result and not to the interpreters directory?
<__monty__>
Hmm, isn't that what the filterSource does?
<pie___>
symphorien, or rather, im guessing there's some trick to it
<clever>
__monty__: filterSource limits what files are in $src
<clever>
__monty__: but at a bash level, `for x in $src` will only set x to $src, and run the loop once
<symphorien>
pie___: makeWrapper takes as first argument the output file whereas wrapProgram implicitely overwrites
<clever>
$src is just a single directory, not a list of things
<clever>
you need $src/* to make bash treat it as a list of files
shibboleth has quit [Quit: shibboleth]
Alling has quit [Quit: Page closed]
dermetfan has joined #nixos
<__monty__>
clever: You're right ofc. I'm still getting no such file but not sure how to debug?
<pie___>
symphorien, oh
<pie___>
(man I guess i suckat reading this stuff)
<clever>
__monty__: can you pastebin the exact error, and the new nix expression?
<pie___>
symphorien, doesnt makewrapper use the first argument to get the input file
<__monty__>
clever: Hmm, I added cp novel.md $out but novel.md doesn't exist.
<yokyolu>
i put `require-sigs = false` but it didn't chanche the output
<clever>
__monty__: before the for loop, do `ls -lha $src`
<clever>
yokyolu: there is a trusted-substituters list in nix.conf
<__monty__>
clever: novel.md doesn't exist in $src, I'm creating it in the loop.
<clever>
but your filterSource may be buggy, and $src is just an empty dir
<clever>
so the for loop never runs, and novel.md is never made
<__monty__>
Yep -.-
<NemesisD>
so when im doing overrides in nix and i do rec { foo = "bar"; baz = foo; }, that foo is referring to the one i defined right? and its invariant of set attribute order?
<clever>
__monty__: youll want to add some builtins.trace in the filterSource expr, to debug it further
jabranham has joined #nixos
noonien has joined #nixos
Glider_IRC_ has joined #nixos
<clever>
__monty__: or just test the ext function within nix repl
<clever>
__monty__: a quick test in nix repl says it should have worked...
<ma9e>
anyone know how to run the aarch64 images on qemu?
<ma9e>
i get something about "linux arm bad magic"
<__monty__>
clever: Turns out "file" is not a type, it should be "regular".
<NemesisD>
so if i'm settting up haskell packages an i do pkgs.haskell.packages.ghc822.extend (self: super: rec { foo = callCabal2Nix (...); aeson = ...; }, if foo depends on aeson, it should end up referencing the aeson i supplied, right?
<LnL>
yl[m]: I can reproduce the error
<__monty__>
Hmm, dollarydo interference is kinda annoying. Can I use nix interpolation on a bash variable in my buildCommand?
<__monty__>
*on the value of a bash variable.
<clever>
NemesisD: using rec breaks the entire idea of overlays, you must use self.foo when you want to refer to another attr
<{^_^}>
[nixpkgs] @flokli pushed commit from @delroth to release-18.09 « libu2f-host: 1.1.6 -> 1.1.7 (CVE-2018-20340) »: https://git.io/fhQBZ
<yokyolu>
clever: thank you
<yokyolu>
clever: i also needed to set `trusted-users` tho
<NemesisD>
clever: so self. is the finally-resolved version of the record i'm currently extending?
<clever>
,escape''
<{^_^}>
'' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
<clever>
__monty__: ^^
<clever>
NemesisD: yep, including any future overlays your not yet aware of
<NemesisD>
clever: and i guess that means if i want to reference other values i'm defining explicitly, i need to use self?
<clever>
yokyolu: setting trusted-users allows you to bypass most of the safeties in nix, so there is likely something else you want to be setting instead, what --option flags are you using?
<clever>
NemesisD: yeah
<NemesisD>
so they're doing like a lazy-evaluation kind of thing by using a function. nice
dbmikus__ has joined #nixos
<__monty__>
clever: And the more important part, can I use nix string interpolation on the value of a bash variable?
<clever>
NemesisD: yeah, a number of things in nix are doing crazy things like passing you your own return value as an argument
<clever>
__monty__: what exactly are you trying to do?
<__monty__>
clever: I want to insert parts of the filenames as chapter titles in between the chapters, i.e. results of the pandoc commands.
juliendehos has quit [Remote host closed the connection]
<yokyolu>
clever: i had a http:/this.other.thing in binary-caches list and ran nix-build -Q
<clever>
__monty__: you should be able to use normal bash logic to do that, as long as you escape every ${ via ''${
<clever>
yokyolu: if you add that to the substituters list in nix.conf, then it will work automatically
<yokyolu>
clever: oh no, it was `nix build`
<__monty__>
clever: Substring extraction is blegh in bash though.
<clever>
__monty__: the problem, is that the nix expressions have to run to completion, before the bash stuff even starts
<yl[m]>
LnL: on MAc? interesting why I can't reproduce
<yokyolu>
clever: it was in binary-caches, then i put it in trusted-substituters
<clever>
__monty__: so you cant easily use the output of pandoc in the nix code
<yokyolu>
clever: is there a more appropriate place for it?
<yl[m]>
oh LnL do you have full Xcode installed or just the command line tools?
<clever>
yokyolu: oh, you also have to trust the public key of that cache, via trusted-public-keys
<yl[m]>
LnL: I found the other day that bazel worked without the workaround when only CLI tools were installed.
<yl[m]>
LnL: ok I'll file a PR then
<LnL>
yl[m]: neither
<yokyolu>
clever: oh, i see
<yokyolu>
clever: thanks
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
<yl[m]>
LnL: hmmm I wonder if the fix would even work then. I have never tried with neither installed
<yokyolu>
can I add an environment variable to a .callCabal2nix result?
<clever>
__monty__: just drop that into a directory full of .odt files, and run `nix-build example.nix -A allMds`
<ibxth>
hi. when i do nix-env -qaP l2tp i see 3 entries with one name and different attribute path. if i do nix-env -qa l2tp --meta --json i see that this 3 entries went from one file. what should i read to understand how this work and why several entries by one file?
<__monty__>
clever: And how do I build it with a different channel? I'd like to keep the expression clean, using <nixpkgs> but my <nixpkgs> is too old.
<{^_^}>
[nixpkgs] @7c6f434c opened pull request #55583 → nixos/xserver: drop intel from videoDrivers → https://git.io/fhQRk
<LnL>
yl[m]: no, but there's not much to find on those machines (no xcode or clt)
<clever>
__monty__: just replace <nixpkgs> with an expression for another channel
<clever>
__monty__: so you could use <nixos-unstable> if you have a channel by that name
<yl[m]>
I have Xcode installed on mine, must be the difference here so essentially I've been using XCode cc all along
iqubic has joined #nixos
<iqubic>
Why are symlinks so hard to create?
<__monty__>
clever: Yeah but I want the expression clean.
<clever>
iqubic: i always do `ln -sv` and then look at the output to see what it did
<iqubic>
So I have a directory called "~/some/long/file/path/here/data" I want a soft link to that called "~/data" so that I can type: "cd; cd data; ls" and see the contents of the of the long file path.
<iqubic>
note, that these are just names I made up for the sake of not spilling privet info.
<iqubic>
I just don't know how to make that work.
<clever>
iqubic: `ln -sv ~/some/long/file/path/here/data ~/data` wukk create such a link, but only if ~/data does not yet exist
<clever>
iqubic: if ~/data does exist, then ~/data/data is the name of the link
switchsox has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @KnairdA opened pull request #55584 → rocs: init at 18.12.0 → https://git.io/fhQRC
<clever>
__monty__: ah, then it does need some quotation, one sec
<nDuff>
__monty_, ${lib.escapeShellArgs yourList} is your friend.
<clever>
nvm, nDuff found something better then what i was about to write
<NemesisD>
would ya'll recommend dockerTools.buildImage? the docs say its unstable
switchsox has joined #nixos
<clever>
NemesisD: i use it for some things
<LnL>
I don't think we've changed anything in a particularly incompatible way so it's probably fine
<simpson>
NemesisD: The docs say that the *API* is unstable.
<NemesisD>
clever: i've got a haskell project i'm building with nix. i'm wondering if it would make sense to add an expression to take the binary/binaries and throw them into docker images. i'm also wondering if i'd have to worry about dynamic linking not working within the image
<NemesisD>
simpson: oh i see. that's not so much a concern for me then
<LnL>
why wouldn't that work?
<clever>
NemesisD: first problem you will run into, is that /etc/protocols doesnt exist, so all network in haskell code immediately fails hard
<{^_^}>
[nixpkgs] @zachcoyle opened pull request #55586 → bvi: enable on darwin → https://git.io/fhQ0J
<NemesisD>
well currently without nix when i build executables, it'll link against my system libraries, i can't ship that binary to another system unless it is on the same OS and release as mine, more or less
<{^_^}>
[nixpkgs] @johanot opened pull request #55589 → nixos/dockerPreloader: guard the entire implemetation with mkIf on image list → https://git.io/fhQ0z
Ariakenom_ has joined #nixos
johanot has joined #nixos
<rycwo>
any suggestions for a lightweight, decent mail server?
<rycwo>
want to use git send-email
<rycwo>
but missing stmp
xantoz has quit [Read error: Connection reset by peer]
stressedprogramm has joined #nixos
zupo_ has joined #nixos
xantoz has joined #nixos
ibxth has quit [Ping timeout: 240 seconds]
Ariakenom has quit [Ping timeout: 240 seconds]
<stressedprogramm>
Hey guys, I cant seem to get webstorm installed. I've looked in the nixpkgs repo and found the jetbrains derivation. Therefore I tried to call pkgs.jetbrains or pkgs.jetbrains.webstorm in my configuration but I get the error that the value is not of type 'package'
work_ has quit [Quit: Connection closed for inactivity]
zupo has quit [Ping timeout: 272 seconds]
alex`` has quit [Ping timeout: 244 seconds]
rcshm has quit [Read error: Connection reset by peer]
<stressedprogramm>
Yes I have added `{ allowUnfree = true; }` to the config file now
<stressedprogramm>
Thanks! :)
rycwo has quit [Ping timeout: 252 seconds]
Glider_IRC__ has joined #nixos
<__monty__>
clever++ Didn't finish but picking it up again tomorrow.
<{^_^}>
clever's karma got increased to 89
rycwo has joined #nixos
glowpelt has joined #nixos
Ariakenom_ has quit [Ping timeout: 268 seconds]
<dckc>
is there an idiom for concatenating shell script fragments? and how would one normally go about finding it?
johanot has quit [Quit: WeeChat 2.2]
<gchristensen>
in what context do you want to do that?
<gchristensen>
in the module system the `lines` type works well
<ivegotasthma>
how do I update packages from home-manager?
<ivegotasthma>
there's an old version of youtube-dl that doesn't work anymore
Glider_IRC_ has quit [Ping timeout: 245 seconds]
kleisli has joined #nixos
stressedprogramm has quit [Quit: Page closed]
<dckc>
I've got several java packages to build; each follows the pattern: cd x.y.z.PACKAGE; ant this that other; cd ..
<dckc>
the ant command varies slightly between packages
<buckley310>
is there a builtin way to deploy a non-world-readable file using NixOps? or is my best option to write some script combined with `deployment.keys` ?
<dckc>
so far I have: cellBuilder = { path build }: "(cd $path; $build)"
<gchristensen>
buckley310: that is roughly it
<buckley310>
ah ok
<dckc>
then I want to map cellBuilder over the package descriptions, concatenate the results, and use that as buildPhase (and likewise installPhase)
<simpson>
...Oh hello. Some things in `lib` are in the manual. TIL.
<gchristensen>
not reliably, not yet ... there is a nice PR adding it, but I haven't yet prioritized researching how to make it an "appendix" so it doesn't create 1,000,000,000 headings at the top of the page :/
__monty__ has quit [Quit: leaving]
ryantrinkle has quit [Ping timeout: 268 seconds]
slack1256 has quit [Remote host closed the connection]
<clever>
while evaluating the attribute 'cellBuilder' of the derivation 'i2b2-hive-cells' at /nix/store/98f2ynld46gvwi26xh69f17hlgqa9kwy-nixpkgs-19.03pre166613.c052da08dcb/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:185:11:
<clever>
dckc: line 19, you are passing a function to a derivation, that isnt allowed
<dckc>
ah! I see now
<clever>
dckc: move it to between 5&6, so its in the let block