<evanjs>
clever: Bah. Did you have any issues like “special device /dev/xxx does not exist”? It doesn’t mount if I specify that in the sysinit file, but works fine if I mount it after the boot finishes
<evanjs>
Otherwise, I think everything else is working now
o1lo01ol1o has quit [Ping timeout: 258 seconds]
<clever>
evanjs: you need to either use the special devtmpfs to auto-create nodes, or run udev to create them
<clever>
evanjs: you also need to wait for the device to appear, read stage-1-init.sh in nixpkgs
* clever
heads off to bed
vidbina has quit [Ping timeout: 255 seconds]
<simukis__>
I’m looking into copying every output that nix builds with `nix build` to a cache. Is there a way to do it after the fact without `post-build` script?
<simukis__>
notably I don’t want to copy outputs produced by things like `src = ...`, outputs already cached in other caches etc. Which rules out `nix-store -qR`
simukis__ is now known as simukis_
<{^_^}>
[nixpkgs] @Ma27 pushed to master « vimPlugins.deoplete-phpactor: init at 2019-02-22 »: https://git.io/JvzKa
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vidbina has joined #nixos
<catern>
I remember seeing something quite recently about a project to improve packaging of scientific/data science libraries in Nixpkgs - anyone know what that was?
<catern>
(it might not have been datascience)
<catern>
maurer: does nixGL count as a solution?
<maurer>
catern: That might help, I'll have to look at it once I'm home. I was hoping we were approaching something where I could install a GL-using application from nixpkgs, and have it know to use the host GL rather than a nixpkgs one
<maurer>
(I burned an hour or two trying to figure out why I "didn't have acceleration" the other day, since I had forgotten about this issue)
<catern>
There's also libglvnd if you haven't seen that, but I don't know whether that's actually in use
<evanjs>
clever: alright, thanks! Night
<xa0[m]>
Hey, so I know guix is based on nix, so weird question. Is it possible to run nixos but with guix as the package manager, using nixpkgs still?
<drakonis>
no.
<xa0[m]>
Ok
<catern>
xa0[m]: you can have guix installed on top of nixos, or nix installed on top of guixsd, but you'll still have both package managers around in both situations
<drakonis>
both are separate at this point
<catern>
(since both package managers support being installed on non-native distrubtions)
<xa0[m]>
Gotcha. Alright
<drakonis>
however you can't use the same store
theduke_ has quit [Quit: Leaving]
<ShaRose>
Because maybe someone else will know: Is there any sane-ish way to make it so I can call a program and get the return value (stdout) in a nix build? I'm hoping to use a program for encryption using host-specific info like the motherboard's UUID so not everyone can see stuff like 2FA secrets or WPA passphrases
<bgamari>
domenkozar[m], is cachix currently down?
mbrgm_ has joined #nixos
<catern>
ShaRose: the motherboard's UUID should be available inside the sandbox, but if you want the program to run outside the sandbox you could use builtins.exec (but of course it's fairly discouraged you have to invoke nix with a special argument to use it)
<DigitalKiwi>
so i came here to see if anyone else was
<iqubic>
Same here.
<DigitalKiwi>
:P
<iqubic>
I mean for me it's haskell-miso... But same thing.
<DigitalKiwi>
--option substituters should work with nix-shell. it'll work with most of the nix* commands
<theduke>
mhm, very weird issue with configuration: environment.etc."i3/config".text = " my config ... ";
<jared-w>
domenkozar[m]: on the bright side, you know you've made it when you can get the IRC to flood in two minutes by breaking a DNS config somewhere :p
<theduke>
this creates a symlink /etc/i3/config => /etc/i3/static/config
<theduke>
which links back to /etc/i3/config
<iqubic>
Oh. Is it domenkozar[m] that broke the dns?
<theduke>
so /etc/i3/config => /etc/static/i3/config => /etc/i3/config, recursively
<theduke>
is this a bug?
m4ts_ has joined #nixos
<alienpirate5>
DigitalKiwi: I did `--option build-use-substitutes false` which also worked
<jared-w>
iqubic: I'm just guessing since he controls cachix, and nothing else using cloudflare (ie half the internet) seems to be particularly broken atm
<jybs>
Is there a way to work out where a package is coming from, so in my example work out what in my shell was injecting clang5?
<bhipple>
`nix why-depends` and `nix-store -q --tree` are quite useful for this, if you've already built the pkg
<bhipple>
but they won't tell you which channel / derivation it came from, just which packages/expressions
<CMCDragonkai>
I have a problem with building a netboot image. I'm embedding a tensorflow with CUDA application inside, and the current TF 1.15 ends up being an image that is way too large. And I get a CPIO error: cpio: nix/store/949ggakaqr98f2ljkpkkhdjniznvaq26-squashfs.img: value file size 5055664128 out of allowed range 0..16777215 is there an alternative for the initrd file format?
orivej has joined #nixos
<cole-h>
bhipple: Is there a way to get `nix-store -q --tree` to show what a certain store path is a dependency of?
<Ankhers>
Does anyone else have issues with lorri consistently running high cpu usage?
<{^_^}>
[nixpkgs] @bhipple opened pull request #81235 → rdedup: upgrade cargo fetcher and cargoSha256 → https://git.io/JvzXq
<{^_^}>
[nixpkgs] @bhipple opened pull request #81236 → svgcleaner: upgrade cargo fetcher and cargoSha256 → https://git.io/JvzXY
h0m1 has quit [Ping timeout: 240 seconds]
h0m1 has joined #nixos
<evanjs>
am I out of the loop/too tired right now, or can I not edit reviewers for my PRs?
<evanjs>
bhipple: now don't kill ofborg this time lol
<{^_^}>
[nixpkgs] @bhipple opened pull request #81237 → oxipng: upgrade cargo fetcher and cargoSha256 → https://git.io/JvzXn
<{^_^}>
[nixpkgs] @bhipple opened pull request #81238 → fselect: upgrade cargo fetcher and cargoSha256 → https://git.io/JvzXz
<{^_^}>
[nixops-aws] @AmineChikhaoui pushed to master « iam_role.destroy(): handle resources that are already removed »: https://git.io/JvzXg
<bhipple>
but otherwise it all appears to be going swimmingly
<{^_^}>
[nixpkgs] @bhipple opened pull request #81239 → lsd: upgrade cargo fetcher and cargoSha256 → https://git.io/JvzXy
<evanjs>
sweeeet
<bhipple>
Now that I've got the rate limiting in place I'll just let it go and do all the rest
drakonis has joined #nixos
<evanjs>
cole-h: that's basically what `nix why-depends` does afaik
<evanjs>
and then you can give it something like --all, if needed
LysergicDreams has quit [Ping timeout: 258 seconds]
wtuhfm^ has quit []
<cole-h>
evanjs: What if I want to see why any specific package is in my store
<bhipple>
cole-h: You're looking for `nix-store -q --referrers-closure <pkg>`, which shows the reverse dependency tree
<cole-h>
Thank you, yes. I forgot the term -- reverse dependency
<cole-h>
<3 bhipple
<{^_^}>
bhipple's karma got increased to 5
<{^_^}>
[nixpkgs] @bhipple opened pull request #81240 → viu: upgrade cargo fetcher and cargoSha256 → https://git.io/JvzXN
<bhipple>
You can also run these commands (nix-store -q --tree and so on) on the derivation files, which can show you build-time dependencies before you've built the package
<bhipple>
This is useful when you get into situation like "Package X failed to build because of Y", and you want to say "Wait a second, why does X even depend on Y in the first place".
<bhipple>
Without having X and Y realized yet
medvid__ has joined #nixos
<{^_^}>
[nixpkgs] @thefloweringash opened pull request #81241 → nixos/activation: propagate system to nested configurations → https://git.io/Jvz1e
<{^_^}>
[nixpkgs] @bhipple opened pull request #81242 → shotgun: upgrade cargo fetcher and cargoSha256 → https://git.io/Jvz1L
artemist is now known as artemist_
Church- has quit [Ping timeout: 258 seconds]
chagra has joined #nixos
artemist_ is now known as artemist
<CMCDragonkai>
also when using dockerTools.buildImage, why are there duplications in gcc and cuda?
<CMCDragonkai>
what could cause such things in the built image?
felixfoertsch23 has joined #nixos
felixfoertsch has quit [Ping timeout: 252 seconds]
lovesegfault has joined #nixos
<{^_^}>
[nixpkgs] @thoughtpolice pushed 2 commits to master: https://git.io/Jvz1C
Church- has joined #nixos
<{^_^}>
[nixpkgs] @bhipple opened pull request #81243 → bitwarden_rs: upgrade cargo fetcher and cargoSha256 → https://git.io/Jvz1l
<energizer`>
one of the entries in `nix-env -q` is `source`
nathanlkoch has quit [Quit: No Gods, No Masters.]
nathanlkoch has joined #nixos
<energizer`>
which i mention because poetry2nix (the script in question) is a symlink to > /nix/store/j056hiy2zpldx9gf1dw71ynz75sl9sy1-source/bin/poetry2nix, which says `source`
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @peti pushed 0 commits to haskell-updates: https://git.io/Jvz71
madjar has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Jvz7y
erictapen has joined #nixos
vandenoever has joined #nixos
<chris|>
has anyone by chance figured out how to override the msgpack version of neovim in 20.03 with the unstable version to get deoplete working again?
vandenoever has quit [Changing host]
vandenoever has joined #nixos
<{^_^}>
[cabal2nix] @peti pushed to master « git-annex: switch build to network-3.x »: https://git.io/Jvz7H
sigmundv has joined #nixos
sphalerite has quit [Quit: WeeChat 2.7.1]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskell-feed: disable test suite to fix the build »: https://git.io/Jvz5f
leothrix has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kristian__ has quit [Remote host closed the connection]
<deni>
what's the nixos equivalent for libglib2.0-dev ? I can't seem to find anything. Just the "glib" package doesn't seem to work...but I might be doing something else wrong
__monty__ has joined #nixos
<deni>
For context I'm running `pypi2nix -e bluepy==1.3.0 --extra-build-inputs="glib"` and I'm getting an error saying: glib.h: No such file or directory
<symphorien>
Try glib.dev maybe ?
<deni>
symphorien: Is that a convention <lib>.dev?
<deni>
I tried running `nix-env -f '<nixpkgs>' -qaP glib` but it didn't show up
<symphorien>
Not all of them. Only multi-output derivations
<symphorien>
,libraries deni
<{^_^}>
deni: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<symphorien>
nix-env does not work with libs
<deni>
symphorien: So effectively the only way to search for stuff is to clone the nixpkgs repo and grep?
<symphorien>
There is nix repl
<symphorien>
It has tab completion
<symphorien>
But yes reading the source is too often the only solution
<deni>
symphorien: is this documented somewhere? I don't really need all of the repl...I just need a way to search what's available for installation
vandenoever has quit [Read error: Connection reset by peer]
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
ongy[m] has quit [Quit: authenticating]
ongy[m] has joined #nixos
rbartlensky has joined #nixos
gagbo has quit [Ping timeout: 255 seconds]
Blessjah has quit [Ping timeout: 265 seconds]
<rbartlensky>
Hello, I was wondering why I am encountering the following error:
<rbartlensky>
nix build -f channel:nixos-unstable pkgsCross.musl64.llvmPackages --show-traceerror: while evaluating the attribute 'depsTargetTargetPropagated' of the derivation 'clang-wrapper-7.1.0' at /nix/store/h0z9mvnjlpz30grmby5rcp7k1cfp5raw-nixexprs.tar.xz/pkgs/stdenv/generic/make-derivation.nix:191:11:while evaluating 'getOutput' at
<rbartlensky>
/nix/store/h0z9mvnjlpz30grmby5rcp7k1cfp5raw-nixexprs.tar.xz/lib/attrsets.nix:464:23, called from undefined position:while evaluating anonymous function at /nix/store/h0z9mvnjlpz30grmby5rcp7k1cfp5raw-nixexprs.tar.xz/pkgs/stdenv/generic/make-derivation.nix:159:17, called from undefined position:attribute 'llvmPackages_7' missing, at
<bdju>
https://paste.debian.net/plain/1132687 got this build failure trying to install xorg.xrdb to an otherwise-working configuration. something to do with "luv"
M2easy2do[m] has quit [Quit: Idle for 30+ days]
acowley[m] has quit [Quit: Idle for 30+ days]
alan[m]1 has quit [Quit: Idle for 30+ days]
aleph9[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
babariviere[m] has quit [Quit: Idle for 30+ days]
chatmaster5000[m has quit [Quit: Idle for 30+ days]
devis350[m] has quit [Quit: Idle for 30+ days]
Dave[m]1 has quit [Quit: Idle for 30+ days]
eol[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
psiperator[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
emmanuelrosa[m] has quit [Quit: Idle for 30+ days]
fabiomen10[m] has quit [Quit: Idle for 30+ days]
grahamc[m] has quit [Quit: Idle for 30+ days]
hr[m] has quit [Quit: Idle for 30+ days]
haruko[m] has quit [Quit: Idle for 30+ days]
PlayfulCuriosity has quit [Quit: Idle for 30+ days]
Jarva[m] has quit [Quit: Idle for 30+ days]
kennykwey[m] has quit [Quit: Idle for 30+ days]
Logan[m] has quit [Quit: Idle for 30+ days]
luc65r[m] has quit [Quit: Idle for 30+ days]
lucasmarcos[m] has quit [Quit: Idle for 30+ days]
mudrii[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
p-h[m] has quit [Quit: Idle for 30+ days]
ragge[m] has quit [Quit: Idle for 30+ days]
slby[m] has quit [Quit: Idle for 30+ days]
sputny[m] has quit [Quit: Idle for 30+ days]
test53453535[m] has quit [Quit: Idle for 30+ days]
teuffil[m] has quit [Quit: Idle for 30+ days]
the_pumpkin_man[ has quit [Quit: Idle for 30+ days]
tomberek[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
<__monty__>
Sure but that's only writing a script that'll access the network *when* it's called.
<karantan>
aha if I do that curl into pkgs.writeShellScriptBin then it also works
mounty has quit [Quit: Konversation terminated!]
<__monty__>
You can't access the network *during* evaluation.
<karantan>
aha
<karantan>
well that sucks
<__monty__>
Are you sure you even need that ip?
<__monty__>
It's rarely reliable.
<karantan>
I can manually change it but it would be nice if I would have one configuration.nix and I wouldn't need to change the address every time I deploy a nixos on aws
<__monty__>
Hmm, I'd expect nixops to have a solution for this.
<infinisil>
karantan: As I mentioned in the original thread, these instructions were only a proof of concept. The installation script for such instances should fetch the IP and write it to the configuration.nix (or to some json file so it can be imported)
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage2nix: update list of broken builds »: https://git.io/JvzFx
<karantan>
aha yeah that could also work
<karantan>
@infinisil I think I missed that comment, sorry
<__monty__>
karantan: The reason for this is reproducibility btw. If your configuration depends on any sort of state outside of the configuration then the configuration's not reproducible, which is one of nix's goals.
<karantan>
@infinisil I'll tackle that later. I learned some new skills and I thought I could already used them to improve the config :)
<{^_^}>
[nixpkgs] @cillianderoiste pushed 3 commits to master: https://git.io/Jvzbk
LysergicDreams has joined #nixos
gagbo has quit [Ping timeout: 240 seconds]
<JonReed>
How to build a VM from configuration.nix inside a normal nix expression? I tried using `callPackage (import <nixpkgs/nixos> {}).vm { config = callPackage ./configuration.nix {}; };` but that tries to build the configuration in my `/etc/nixos` rather than the one I'm importing.
sgrunert has quit [Remote host closed the connection]
<__monty__>
JonReed: Do you need callPackage twice?
<__monty__>
But you callPackage vm, satisfying its config argument and then you pass another argument?
<JonReed>
I thought that callPackage works by looking the variables in scope and passing them to the expression. If this is correct, then I assumed that I'll pass { pkgs, lib } and whatever else needed to `vm`, while overriding `config` to use another config.
<ikwildrpepper>
does vm actually exist in nixpkgs?
<JonReed>
I'm importing it it from `nixpkgs/nixos`
<ikwildrpepper>
ah nixos, need coffee :)
<ikwildrpepper>
JonReed: you shouldn't need to use callPackage
<ikwildrpepper>
JonReed: you should run:
<infinisil>
JonReed: You were close, it's `(import <nixpkgs/nixos> { configuration = ./configuration.nix; }).vm` :)
<ikwildrpepper>
what infinisil said ;)
<infinisil>
Hehe
<evanjs>
So I've noticed various other distros (Arch, I think?) have SMP Preempt enabled. Is there any particular reason NixOS doesn't have Preempt enabled?
<ikwildrpepper>
evanjs: no idea, but seems we have voluntary preempt enabled
<ikwildrpepper>
which seems to be the advised option for desktops
<ikwildrpepper>
for PREEMPT docs mention: Select this if you are building a kernel for a desktop or embedded system with latency requirements in the milliseconds range.
<ikwildrpepper>
looks like it changed last year in commit e4c269813c7a41b7b6e3b615a9cb68b2972b4fb5
<{^_^}>
[nixpkgs] @roberth opened pull request #81292 → nixos/service-runner.nix: Allow quotes in commands + test → https://git.io/JvzAE
cosimone has joined #nixos
cosimone has quit [Excess Flood]
cosimone has joined #nixos
Soo_Slow has joined #nixos
bhipple has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
evils has quit [Ping timeout: 265 seconds]
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @orivej to master « fmt: 6.1.1 -> 6.1.2 »: https://git.io/JvzA9
<evanjs>
__monty__: interesting, though. Didn't realize `nix build` doesn't print that info out at the start, -L or not
kapil_ has joined #nixos
wavirc22 has quit [Read error: Connection reset by peer]
<JonReed>
Hm... I have a database that starts as a systemd service. I have a mount command `mount -t 9p -o trans=virtio,version=9p2000.L host /mnt/host`. I can't find any examples where fsType is `9p` in `configuration.nix`. Does this mean that I should just write a custom system service that will execute before my database service and mount the required
<JonReed>
path? Or there's an easier option somewhere?
<JonReed>
systemd service*
bhipple has quit [Remote host closed the connection]
Soo_Slow has quit [Quit: Soo_Slow]
wavirc22 has joined #nixos
<clever>
JonReed: one minute
<evanjs>
clever: okay, so coworker had `mount -t devtmpfs none /dev` commented out, and linked to the CONFIG_DEVTMPFS_MOUNT docs as to why... but like... uncommenting that and waiting for the drive seemed to fix the issue lol
<JonReed>
clever: I like how you can find a recipe for every type haha. Thanks!
wavirc22 has joined #nixos
<clever>
JonReed: i sorta memorized a large chunk of nixpkgs....
<JonReed>
clever: Based on my interactions with you, that does not surprise me :)
<__monty__>
There are those who say we need to push for flakes and a fracturing of nixpkgs to contain clever's power or else he will consume the nixiverse.
<evanjs>
that's a humble way of saying "all of it" :P
<clever>
evanjs: ive not memorized the source of every single package :P
<clever>
but a lot of the more unique modules and packages
wavirc22 has quit [Read error: Connection reset by peer]
wavirc22 has joined #nixos
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
<evanjs>
clever: *every single nix expression. there :P nah but I'm glad we have such a knowledgeable community. Don't think I'd be where I am now without people like clever or infinisil lol
<infinisil>
o/
genesis has quit [Remote host closed the connection]
genesis has joined #nixos
wavirc22 has quit [Read error: Connection reset by peer]
<infandum>
standard way of doing this that I'm not seeing? There are a bunch of different "install custom packages" questions out there, but I have difficulty following them as there are always components missing. The post I mentioned here had all of the files...
KeiraT has joined #nixos
shibboleth has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 opened pull request #81297 → nixos/sslh: don't run as nogroup → https://git.io/Jvzhy
<infandum>
Essentially, there is a default.nix overlay with callPackage to a folder containing another default.nix with the recipe
<infandum>
I assume I would put all of the overlays into that file
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage2nix: update list of broken builds »: https://git.io/JvzhF
<infandum>
Although I need to change the sha
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JvzhN
<magnetophon>
I was trying to get my git commands to go faster in nixpkgs and tried a shallow clone. Found out that shallow updates are not allowed. Any tips for a faster git experience?
veske has joined #nixos
veske2 has joined #nixos
veske has quit [Client Quit]
veske2 has quit [Client Quit]
<{^_^}>
[nixpkgs] @peti pushed to master « mlt: update from version 6.18.0 to 6.20.0 »: https://git.io/Jvzjk
Boarders has joined #nixos
philr has quit [Ping timeout: 260 seconds]
endformationage has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
<Boarders>
hi i'm trying to install nix remotely on a mac with catalina and running into some difficulties
cosimone has quit [Quit: Terminated!]
<DigitalKiwi>
hackage2nix is impossible to build
<Boarders>
after installing it says to manually run "mkdir -m 0755 /nix && chown callanmcgill /nix" but doing so just gives back "mkdir: /nix: Read-only file system"
<Boarders>
then when I restart the shell it does not seem to have nix on the $PATH
<Boarders>
and unclear if it is installed
<Boarders>
any ideas?
<DigitalKiwi>
someone help plz :(
malSet has quit [Read error: Connection reset by peer]
<mdash>
infandum: you don't need an overlay, you can just import your custom derivation directly and put it in environment.systemPackages
malSet has joined #nixos
<mdash>
overlays are nice when you want to share a set of custom packages between configs
<mdash>
or override stuff in nixpkgs
<infinisil>
DigitalKiwi: Nobody can help without any info :)
<DigitalKiwi>
following the instructions doesn't work
<infinisil>
DigitalKiwi: Do you need the master version? Because if not potentially nixpkgs' `haskellPackages.hackage2nix` will work
<infinisil>
Ah too late :)
<JonReed>
:)
<DigitalKiwi>
attribute not found or if s/nixos/nixpkgs/ does not evaluate to a derivation
<DigitalKiwi>
i tried that already too ;_;
malSet has quit [Quit: Quit.]
<DigitalKiwi>
believe me i took one look at the readme and was like there's gotta be a way to install that but alas
orivej has quit [Ping timeout: 255 seconds]
<{^_^}>
[nixpkgs] @emilazy opened pull request #81300 → pypy: use openssl_1_1 → https://git.io/JvzjP
<infandum>
mdash: Yeah, I did that and it works. I have a lot of trouble with overlays for some reason. Now my new issue is that the package wants to install a library in /usr/lib so I need to figure out how to redirect it to the correct location
<gustavderdrache>
the Makefile already references a DESTDIR, why not just append that to `makeFlags` in the derivation?
<LnL>
Boarders: take a look at what I just linked, manually running the volume creation script before the installer should be enough to make the current installer succeed afterwards
<Boarders>
thank you!
<mdash>
infandum: 'make DESTDIR=$out' may be enough
c0c0 has quit [Quit: WeeChat 2.6]
malSet_ has joined #nixos
o1lo01ol1o has joined #nixos
<JonReed>
DigitalKiwi: It appears that `haskellPackages.hackage2nix` is meant to be used within Nix. For example, `nix-build -E 'with import <nixpkgs> {}; pkgs.haskellPackages.hackage2nix "hello" "1.0"'` will give you output where default.nix of the package generated is located.
<Boarders>
LnL: apologies for the stupidity but specifically which part of that script should I be running?
<JonReed>
DigitalKiwi: In other words, it is a lambda that takes (name: version: ...) and generates a output which has `default.nix` in its directory.
malSet has quit [Ping timeout: 265 seconds]
<LnL>
Boarders: the entire thing, it sets everything up for the volume
<evanjs>
clever: yeah looks like that’s everything for now for the mini-system. Thanks again!!
<DigitalKiwi>
JonReed: so how do i regenerate hackage-packages.nix after changing configuration-hackage2nix.yaml with that
kenshinCH has joined #nixos
<infandum>
mdash: Yes, that works! Last thing -- how to add the output bin to path?
<infandum>
Looks like the fixup?
<infandum>
phase
<kenshinCH>
Hi all. I'm trying to get the ExtensionPack in VirtualBox (nix is the host). I put `enableExtensionPack=true` in `config.nix`, and I see the folder in the nix store, but when I launch VirtualBox itself it doesn't see it. Am I missing some steps?
<Boarders>
and if so how would I know it has correctly installed?
<LnL>
yep
<LnL>
when merged that installer will include this extra step, but no changes in the existing steps are needed
mexisme_ has joined #nixos
shafox has quit [Read error: Connection reset by peer]
<Boarders>
I think I am missing something so, is the script being changed or should it already work or?
<simukis_>
a quick question: is there a good guaranteed way to make sure that in a group of 4 local machines only 1 machine fetches packages from the substituters? Considering machines A-D, where A is the fetcher, would B-D machines having no substituters and `builders = A; builders-use-substituters=true` be sufficient to achieve this?
shafox has joined #nixos
<LnL>
Boarders: no, but you only need the extra steps _before_ running the current installer
<infandum>
mdash: OK, using postInstall = "mv $out/usr/* $out", it works!
<infandum>
Thank you! With this as a starting point, I understand a bit more of how it all fits together.
<{^_^}>
[nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/Jvgvr
<Boarders>
LnL: I have tried running that script you linked and then running the installer and it doesn't appear to work so I guess I need to try something else
<Boarders>
thanks for your help so far
mexisme_ has quit [Ping timeout: 246 seconds]
<Boarders>
it looks like it doesn't work for me, for reason I don't know
<infandum>
Will it magically uninstall if I remove "mons" from the packages list? I assume so as it has it's own location in the store
<LnL>
Boarders: even now that synthetic.conf exists?
syrupthinker has quit [Quit: ZNC 1.7.5 - https://znc.in]
<LnL>
Boarders: can you post the bash -x output again, should be slightly different now
<infandum>
Oh shoot, the mons script looks in /usr for the lib, so I can't do the postInstall
<Boarders>
LnL: do you mean from the nix installer?
<LnL>
Boarders: the volume creation
<infandum>
Okay, I just changed mv to cp -r and it works, but it's probably not ideal for larger programs.
<LnL>
Boarders: strange, I'm almost certain I bootstrapped with apfs.util on the exact same version
Neo-- has joined #nixos
<alex_giusi_tiri>
Hi! Firefox just showed me "Sorry. We just need to do one small thing to keep going. We have just installed an update in the background" (https://bugzilla.mozilla.org/show_bug.cgi?id=1492023) but I don't have my NixOS 19.09.2163.d0b3ab3b249fb62ee1997b34bbfd65600231769f (Loris) set to auto update, and even if I would have it so, shouldn't the executable not change? I didn't know it before, but I just took a look, and I had about:confi
<alex_giusi_tiri>
.update.auto==true (it is now changed to false), although I'm not sure how and what it could auto update by itself.... :-?
<cole-h>
DigitalKiwi: Just making sure, but you did test it from that branch, right? It may work on current nixpkgs, but not the Haskell update branch.
<DigitalKiwi>
i guess haskell-updates isn't merged into master yet?
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JvgUp
<cole-h>
PR is still open, so no DigitalKiwi :P
mexisme_ has quit [Ping timeout: 240 seconds]
<DigitalKiwi>
and i still haven't figured out how to update hackage-packages.nix ;_;
<DigitalKiwi>
i fixed like 4 haskell packages if i could get it to work :(
<{^_^}>
[nixpkgs] @peti pushed 74 commits to haskell-updates: https://git.io/JvgTu
o1lo01ol1o has quit [Ping timeout: 255 seconds]
zupo has joined #nixos
drakonis has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed 72 commits to haskell-updates: https://git.io/JvgTz
<aanderse>
the openssh AuthorizedKeysCommand seems to not work with nixos T_T
<aanderse>
error: Unsafe AuthorizedKeysCommand "/nix/store/qvc65vjq5xh0by54j18jgq20fwlizkxb-my-auth-thing/bin/my-auth-thing": bad ownership or modes for directory /nix/store
<aanderse>
won't run any binaries from /nix/store because permissions
drakonis_ has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @peti pushed 12 commits to haskell-updates: https://git.io/JvgTV
<aanderse>
disasm: i noticed you took over goklp a few years back, any recollection how you worked around that issue?
<symphorien>
Maybe a security wrapper with no additional capabilities ?
bvdw has quit [Read error: Connection reset by peer]
<aanderse>
the /run/wrappers dir also has sticky bit
bvdw has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed 16 commits to haskell-updates: https://git.io/JvgTD
<{^_^}>
[nixpkgs] @eamsden opened pull request #81317 → [nix] Patch config.nix.in to reference host platform binaries → https://git.io/JvgIw
<agschaid>
hi everybody. I am new to nixos and linux-semi-literate in general. When trying to run the SLiM displaymanager it complains about not finding /usr/bin/xauth. xauth IS installed but it's located at /run/current-system/sw/bin/xauth (I even tried symlinking to that location but then xauth complained about not finding some file and I didn't follow down
<agschaid>
that rabbit hole further...). Can anybody give me a hint what I am doing wrong?
<deni>
how does one test (nix-build) python packages.... I've been getting an error: cannot auto-call a function that has an argument without a default value ('stdenv')
<cole-h>
`nix-build -A pythonPackages.python38.package` or something similar I believe
<cole-h>
(from the root of a checked-out nixpkgs repo)
<deni>
cole-h: Umm I meant a python package for which I'm writing a derivation (default.nix)
<cole-h>
If you're writing it in the nixpkgs tree, just need to add it to `pkgs/top-level/all-packages.nix` and do the same thing
<deni>
cole-h: this is outside of nixpkgs for now
<deni>
just a directory with default.nix
<deni>
I want to be able to run nix-build to see if it builds
<cole-h>
Then you should have the derivation in a separate nix file and do `{ pkgs ? import <nixpkgs> { } }: { something = pkgs.callPackage ./something.nix { }; }`
<cole-h>
in the default.nix file
<deni>
but then I have to add every package in there and call nix-build -A thatPackage
<deni>
cole-h: manveru ah yes, great catch! I'm at the point now where I get the same error as with my test.nix file.... the issue I'm facing now is that I can't call the derivation with an empty set because it expects fetchPypi and other that are not part of pkgs but rather pkgs.python3Packages. Is there a way to pass those in without having to pass them in one by one?
<{^_^}>
[nixpkgs] @NeQuissimus pushed 2 commits to release-20.03: https://git.io/Jvgtn
<manveru>
you could also use the `with` statement, but i really hate that one :P
<deni>
also inside the callPackage {} ?
<deni>
hmm no... Also the CLI command is getting a tad long ... I'm starting to think the only way is to have a test.nix file where I spell this out or work out of a cloned nixpkgs repo where things are already wired together somewhat
<deni>
this doesn't seem to work though.... it says that python3Packages is undefined. but if I spell it out as pkgs.python3Packages it doesn't work either
<manveru>
yes, it can't work...
<manveru>
since you don't have it in this scope, you put `python3Packages` into the arguments in the default.nix
<manveru>
not on the outside, callPackage does that for you
<manveru>
if you have the file somewhere i can show it better :)
energizer` has joined #nixos
mexisme_ has joined #nixos
<erictapen>
I'm trying to crosscompile pycryptodome, a python package. Does it ring a bell to anyone why it wants to run native gcc, despite I set CC and only supply the cross gcc?
judson_ has quit [Remote host closed the connection]
<erictapen>
Funny thing is, it creates the first .o file with the correct cross gcc, but then tries to use native gcc for the .so file…
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<deni>
manveru: this is the file http://dpaste.com/2VSKTBG (I don't yet know if it works mind you...just trying to debug it)
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #nixos
<deni>
The thing is I don't want to pass in python3Packages. It makes more sense to pass individual deps so that it makes it easier to override
<deni>
or that's what I found most of the packages in nixpkgs are doing
<deni>
(I assume that's the reason)
<DigitalKiwi>
jared-w: ty
o1lo01ol1o has joined #nixos
<DigitalKiwi>
AGHHH now more things are broken in copilot ;_;
<manveru>
deni: ah, yes, this is called in a different way...
<jared-w>
DigitalKiwi: I wanna use glirc at some point but need to get back off of irccloud and get onto a vnc hosted somewhere else. So yey
<DigitalKiwi>
infinisil: how do i regenerate hackage-packages.nix
<samueldr>
erictapen: yes, rings a bell, but I don't remember what was the end-result for me
<jared-w>
I have it filed down under "stuff I'll get around to before I'm dead, probably"
<samueldr>
erictapen: IIRC what is happening is that some part of the setup.py (was it?) was using the right gcc from env, another was just using gcc or something along the line
<deni>
manveru:you're right! It starts building it.... hooray :)
<samueldr>
haven't checked in the past month or so with unstable, but it could help you side-step some issues
<samueldr>
depending what's the end-goal of your image
<erictapen>
samueldr: It's an minimal raspi image I'm crosscompiling for a year now, without ever using it. I just want to find issues with cross compiling, so I see it as my regular contribution.
<samueldr>
ah, good
<erictapen>
And most of the time I'm able to build it, with a few patches ontop of nixpkgs
<samueldr>
yeah, python 3 + glibc upgrade happening around the same time broke a bunch of stuff
<erictapen>
yep
<samueldr>
or, put forward existing issues
<erictapen>
but glibc builds fine again, only this pesky pycryptodome is making issues
<erictapen>
samueldr: aah, now I see your workaround for crda, the only package I need pycryptodome for: crda = pkgs.runCommandNoCC "neutered-firmware" {} "mkdir -p $out";
<erictapen>
samueldr: very clever
<samueldr>
nah, clever would have fixed it ;)
<erictapen>
samueldr: ^^
Neo-- has joined #nixos
<samueldr>
oh, *that's* where I had to fix that
<samueldr>
I thought it was in another project
<{^_^}>
[nixpkgs] @costrouc opened pull request #81324 → [WIP] pythonPackages.requests-html: init at 0.10.0 → https://git.io/Jvgmf
<gustavderdrache>
i think it's projectDir, but i forget how that interacts with derivations
<gustavderdrache>
i've seen nix copy FS paths into the store
<gustavderdrache>
yup, if you do "${./.}" in a nix repl, the directory is copied
<gustavderdrache>
not having used the tool in question, i don't know if you can substitute something else for projectDir, but that's where i'd look to troubleshoot
<deni>
manveru: you mean add pkgconfig to nativeBuildInputs?
<deni>
manveru: a yes it does say pkg-config: Command not found
<energizer`>
what is eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee?
<gustavderdrache>
it's a fake store hash used with removeReferencesTo
<deni>
manveru: the package isn't just a plain old python package...sigh...it has vendored in bluez (c) and is attempting to compile it
<samueldr>
it's also extremely fake that `e` cannot be in a valid hash
drakonis_ has quit [Ping timeout: 240 seconds]
drakonis has joined #nixos
<gchristensen>
samueldr: `e` isn't a valid hash character
<samueldr>
yeah, that's what I meant
<cole-h>
Anybody know if nixpkgs prefers `inherit (src.meta) homepage;` vs `homepage = "https://...";` in `meta`?
<cole-h>
Didn't even know that was a thing tbh
<JonReed>
energizer: I think it converts the `projectDir` to `/nix/store` path, which copies everything there, and then it adds "/pyproject.toml" to that path.
linarcx has quit [Quit: WeeChat 2.7.1]
gustavderdrache has quit [Quit: Leaving.]
KeiraT has quit [Ping timeout: 240 seconds]
JonReed has quit [Remote host closed the connection]
justanotheruser has quit [Ping timeout: 258 seconds]