<timclassic>
clever: The first problem was that charon-nm wasn't being built, so I fixed that
<timclassic>
Now I get a DBUS error
<timclassic>
I'm fixing this via configuration.nix at the moment, I plan to patch nixpkgs once I get things going
neonfuz1 has joined #nixos
neonfuz1 is now known as neonfuz
<neonfuz>
didn't work
radvendii has quit [(Quit: WeeChat 1.9)]
<clever>
neonfuz: is the driver visible in lsmod?
Fare has joined #nixos
<Fare>
Hi. I have an issue that looks a bit like https://github.com/NixOS/nixpkgs/issues/6244 : a normal user can't use nix-env anymore, because error: opening lock file ‘/nix/var/nix/profiles/per-user/fare/profile.lock’: Permission denied
<clever>
Fare: what user owns /nix/var/nix/profiles/per-user/fare ?
<clever>
drwxr-xr-x 2 clever users 18 Aug 22 10:29 /nix/var/nix/profiles/per-user/clever/
<clever>
Fare: the owner should match the name of the directory, and it should be 755
<Fare>
clever: fare.users
<Fare>
the other user is not in group users, it's a role user.
<clever>
Fare: what other user?
<Fare>
clever: user ff, which is failing to run nix-env -i ...
<neonfuz>
yeah it makes the wpa_supplicant service fail
<Fare>
(also, if someone has some working postfix configuration, I've had trouble sending to any machine but localhost)
<clever>
thats the line of config that triggered it
<neonfuz>
okay, thanks
<neonfuz>
sweet thanks, sorry my internal wifi card is a POS... lol
pxc has quit [(Ping timeout: 240 seconds)]
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
<slabity>
If I'm using nix-repl, how do I set it up as if I'm calling configuration.nix?
<clever>
nix-repl '<nixpkgs/nixos>'
drakonis_ has joined #nixos
mbrgm has quit [(Ping timeout: 260 seconds)]
mbrgm has joined #nixos
bfrog has joined #nixos
<slabity>
clever: I seem to still have an error 'attribute 'callPackage' missing'.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 2 new commits to master: https://git.io/v5mob
<NixOS_GitHub>
nixpkgs/master 8511a33 Mark Cohen: nixos/caddy: improve documentation...
<NixOS_GitHub>
nixpkgs/master ecdabb1 Peter Hoeg: Merge pull request #28481 from mpcsh/master...
NixOS_GitHub has left #nixos []
<clever>
slabity: what context is that failure happening in?
<slabity>
Well the fundamental problem I'm having is that the firefox-overlay uses the commands 'gpg2' and 'gpgv2' to validate that the nightly package
<slabity>
I've been trying to figure out which variable to override to use 'gpg' and 'gpgv' instead
<neonfuz>
sweet, up and running
<neonfuz>
idk wtf happened really, but I messed with my config and rebooted
<slabity>
clever: Nevermind, I actually don't even understand my own problem right now
<slabity>
I'll take a break and come back later
jsgrant has joined #nixos
zeus_ has quit [(Remote host closed the connection)]
v0|d has quit [(Remote host closed the connection)]
v0|d has joined #nixos
babs_ has joined #nixos
<babs_>
I tried the "hello world" nix package thing, when I run nix-build on it I get this error: error: error parsing derivation ‘/nix/store/8zbfwjwmi0c2085527p1rndxdyxisrv5-hello-2.8.drv’: expected string ‘Derive([’
<clever>
babs_: you need to run nix-build on the .nix file, not the .drv
<babs_>
i know
<babs_>
thats what I did
<babs_>
my command: nix-build default.nix
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<clever>
babs_: what is the content of default.nix?
<boomshroom>
I determined earlier that running `nix-store --optomise` causes my computer to freeze. It seems that `nix-store --verify --check-contents` does the same. Does anyone else have this problem?
<babs_>
boomshroom: first command isnt a thing for me, second one is chill works for me
<clever>
boomshroom: both commands cause nix to read every single file in the entire nix store
<dash>
boomshroom: it's probably maxing out your disk IO :)
<boomshroom>
babs_: Sorry, `--optimise`. I can't spell.
<boomshroom>
That makes sense. A quick du showed that it's currently 40 gig. I've been refraining from doing a GC since I occasionally use compilers built with non-standard targets and I don't want to have to wait for them to compile every time.
<dash>
add them as GC roots
<boomshroom>
dash: Can I add a single file as a GC root and any paths referenced in that file won't be garbage collected?
storer42 has quit [(Quit: Leaving)]
vaibhavsagar has joined #nixos
<boomshroom>
For example, I have a nim.cfg that contains the lines `i386.standalone.gcc.path = "/nix/store/5vraan7p52bhpazb558dqdwm8pldb92a-gcc-i686-elf/bin"` and `arm.standalone.gcc.path = "/nix/store/ai306mi5kvs6bsxq0n83s7l4p0zf84b6-gcc-arm-none-eabi/bin"`. Can nix detect those to be store paths?
<boomshroom>
I do a lot of dev work in nix-shell and sometimes even use it for casual use.
<dash>
boomshroom: "nix-store --add-root"
<dash>
takes a store path
<boomshroom>
Goodbye compilers and probably a bunch of other stuff. You will be re-downloaded or rebuilt at some point. 19037.45 MiB freed
schoppenhauer has quit [(Ping timeout: 240 seconds)]
<babs_>
ok how does the sha256 thing and github work? isnt sha256 for one file where a whole repo is multiple?? or am I supposed to dl it first and then get the sha256??
<dash>
babs_: nix will compute a hash over the whole thing
<dash>
babs_: nix-prefetch-git will tell you the hash it wants.
<babs_>
dash: ah
<dash>
oh, --add-root doesn't take a store path, but a destination for writing a gc root
<babs_>
dash: I dont have that command - I need to install fetchgit im assuming?
<dash>
boomshroom: btw this is what nix-build does for the 'result' dir it creates
schoppenhauer has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<jasom>
Is there a policy for incorporating autogenerated nix expressions? I have a script to generate a nix expression for each lisp system in the quicklisp package manager.
<dash>
jasom: nixpkgs definitely has several autogenerated package sets in it
<dash>
jasom: do people still use common lisp?
* dash
runs away
<v0|d>
lol can't image how xach feels right atm
<v0|d>
or are you xach :p
<v0|d>
s/image/imagine/g
<jasom>
v0|d: no I'm not xach
<babs_>
nvm I think its nix-prefetch-git
boomshroom has quit [(Ping timeout: 260 seconds)]
<babs_>
as in. the package
<johnw>
dash: yes, they do
<dash>
johnw: I know, just read Fare's post about it
Michael__ has joined #nixos
<dash>
johnw: however, now that elisp has lexical-binding I don't see what relevance CL has in the modern world!
<dash>
;->
boomshroom-lt has joined #nixos
<johnw>
lol
<boomshroom-lt>
Logging in from my laptop. The fan seems to keep running, but I don't hear the disk spinning.
<johnw>
not quite the same as a fully compiled langauge
<boomshroom-lt>
Is it really doing something, or is it frozen for good?
<boomshroom-lt>
Looking at the nix issue tracker, it seems like there is an issue with too many links in one directory.
<babs_>
I get error: syntax error, unexpected ':', expecting '.' or '=', at /home/babs/Downloads/test/default.nix:6:8
adisbladis has quit [(Read error: Connection reset by peer)]
<vaibhavsagar>
babs: replace ':' in fetchgit with '='
adisbladis has joined #nixos
<dash>
babs_: prefetch is misleading, {"foo: "baz", ...} is not nix syntax, but {foo = "baz; ... } is
<vaibhavsagar>
also ',' with ';'
<vaibhavsagar>
what dash said :)
<vaibhavsagar>
and I think you need a semicolon even at the end of the last attribute, completely unlike JSON
<babs_>
ok took me a while to understand that but I think I got it, now whats this mean?: error: syntax error, unexpected ';', expecting $end, at /home/babs/Downloads/test/default.nix:11:3
<babs_>
what is $end ?
<boomshroom-lt>
is 330846 a large number of files in /nix/store/.links?
<babs_>
nmv got past that one
<boomshroom-lt>
Did a `nix-collect-garbage --delete-older-than 30d` and it says that it freed 3473.57 MiB, that hardlinking is saving 6258.51 MiB, and now .links contains 285355 files.
<babs_>
*nvm
<babs_>
boomshroom-lt: yo if you know you can reboot, I like nix-collect-garbage -d
<babs_>
and you dont mind loosing all your past boot options
<babs_>
with sudo ofc
<boomshroom-lt>
babs_: I like the safety net of the past versions, but maybe I'm being overly paranoid.
<boomshroom-lt>
Did a collect garbage with sudo and it seems to be hanging again this time, when it hit `deleting '/nix/store/trash'`.
<johnw>
boomshroom-lt: that step can take a REALLY long time
<babs_>
or no time at all lel
<johnw>
i cleaned up 244G the other day, and it was stuck there for many minutes
<boomshroom-lt>
So it taking a really long time is known? That's good to know that it will finish eventually.
<johnw>
check and see if the process is busy
<johnw>
you can use lsof to see what files it's working on deleting
<johnw>
filesystems can be slow at unlinking hundreds of thousands of files
<johnw>
especially if it's a mechanical disk
<mpcsh>
Infinisil: hey, so I think I made an overlay!
<mpcsh>
Infinisil: but I'm having some trouble importing it. I can't just use nixpkgs.overlays = [ (fetchFromGitHub ...) ]; because fetchFromGitHub isn't in scope at that point
<v0|d>
mpcsh: overyay!
<v0|d>
:p
<mpcsh>
do you know what it's encapsulated in?
<mpcsh>
v0|d: thanks :)
<v0|d>
pkgs.fetchFromm..?
<v0|d>
like let pkgs = import '<nixpkgs>' {}; in pkgs.fetchFrom..
<v0|d>
it works all the time
<boomshroom-lt>
One moment, Penn & Teller.
<mpcsh>
v0|d: is that not the same `pkgs` as in the { config, pkgs, ... }: at the top of configuration.nix?
<v0|d>
mpcsh: yep.
<v0|d>
its the *seym*.
pxc has joined #nixos
<v0|d>
somebody has to add file to autoconfs buildInputs.
<v0|d>
i see file not found errs all the time.
<v0|d>
(during ./configure)
boomshroom-lt has quit [(Ping timeout: 260 seconds)]
<mpcsh>
v0|d: so if I try just `pkgs.fetchFromGitHub ...`, I get "error: infinite recursion encountered, at undefined position"
pxc has quit [(Ping timeout: 248 seconds)]
<v0|d>
yeah i got that too
<v0|d>
i avoid system-wide overlays
<v0|d>
i've solved that problem by linking ~/.config/nixpkgs/overlays/my-overlay
<mpcsh>
v0|d: I want it to be system-wide tho
<v0|d>
nixos and nixpkgs overlays doesn't seem to play well together.
<babs_>
error: cannot auto-call a function that has an argument without a default value (‘stdenv’)
<babs_>
{ stdenv, fetchgit }:
<babs_>
??
<v0|d>
mpcsh: you can export fetchFromGitHub and fetchzip to a file and try importing from there.
<v0|d>
might end up the same recursion if those too access to pkgs..
<v0|d>
relatively smaller though.
<babs_>
callpackage seems to be the 'solution' but what im supposed to do with it seems unclear
pxc has joined #nixos
<mpcsh>
v0|d: oof, that's nasty
<babs_>
why for it to not error out does another foo.nix have to called?
<babs_>
that seems to be the point of callpackage and some vague 'arguments' that are required??
<v0|d>
mpcsh: try downloading it first to /etc/nixos/myoverlay using pkgs.fetchFrom .. then nixpkgs.overlays = [(import /etc/nixos/myoverlay)];
<v0|d>
not sure how to put it in /etc/nixos/.. though not pure obviously.
<v0|d>
meh, i'm very poor at this helpdesk business :p
<mpcsh>
v0|d: i appreciate the help anyways :)
<v0|d>
i wrote a custom nixos module to manage all these horrible stuff.
<v0|d>
ask mic92 or vcunat on github, maybe they have a quick sln.
<babs_>
why do I want a default value? I just need to tell it how to build it...
takle has joined #nixos
<dylanjust[m]>
I have a nixos vm and I want it to be able to do nix builds which use fetchgitPrivate. What's the best practice for setting up a public/private key? I'm running as "myuser" to do nix-prefetch-git... but I think that the nix build user also needs a key. I'm confused :)
takle has quit [(Ping timeout: 240 seconds)]
mrkgnao has joined #nixos
boomshroom has joined #nixos
<boomshroom>
One Penn & Teller episode later. My computer is still deleting /nix/store/trash.
<babs_>
what makeWrapper do? is that a magic 'make this build' thing or...?
<babs_>
there is no mention of it in the nix manual
<boomshroom>
babs_: makewrapper creates a wrapper script that executes the original with various environment variables.
<dylanjust[m]>
babs_: It makes a shell script which wraps a program.
<babs_>
well im confused about why this needs a default value tho
<mrkgnao>
So I'm doing some Haskell development on NixOS, and I'd love a bit of help.
<boomshroom>
johnw: half an hour is a resonable amount of time for deleting the trash? It's a little hard for me to run lsof given that the system is completely unresponsive, even to ssh requests.
<mrkgnao>
I want to create a shell.nix (I think?) that calls the release.nix file I have, and additionally installs a few other packages. Let's say I want the shell.nix file to install, um, inotify-tools.
<boomshroom>
mrkgnao: add `nix:\n enable: true` to ~/.stack/config.yaml... or something like that. Afterwords, everything is just like normal
<mrkgnao>
I'm not using Stack. I'm trying out the cabal2nix approach.
<boomshroom>
Ok, I'm force rebooting my desktop. This is taking too long.
<ahawkins>
does NixOS support UEFI + LUKS encrypted boot/root ?
<boomshroom>
Well that seems to be a problem. It was trying hard to delete /nix/store/trash, but it didn't even exist.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #28557: Binutils-wrapper: Init by refactoring out of cc-wrapper (staging...binutils-wrapper) https://git.io/v5myh
NixOS_GitHub has left #nixos []
<jasom>
dylanjust[m]: ssh-keygen should do it, right?
reinzelmann has joined #nixos
MercurialAlchemi has joined #nixos
mog has quit [(Remote host closed the connection)]
<sphalerite>
ahawkins: Not with /boot encrypted AFAIK.
<sphalerite>
There's not really much point in encrypting /boot anyway
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 5 new commits to master: https://git.io/v5mSC
<NixOS_GitHub>
nixpkgs/master 7f13a3f gnidorah: maxx: init at 1.0.0
<boomshroom>
Good night. I'm a little sad about the collect garbage thing and optimise.
<mpcsh>
hey, can anyone help me install a nixpkgs overlay in configuration.nix?
DrWaste has joined #nixos
boomshroom has quit [(Ping timeout: 260 seconds)]
<sphalerite>
mpcsh: if you add nixpkgs-overlays=/path/to/some/dir/overlays to your system nix path (nix.nixPath) it should use the ones in there
<mpcsh>
sphalerite: well I'm trying to use the results of the overlay in configuration.nix
<mpcsh>
sphalerite: perhaps an overlay is not quite what I'm looking for. I'd like to have a github repo of some personal nix packages that I can import into configuration.nix
<sphalerite>
yes, if you add the path entry and rebuild (not sure if the rebuilding is necessary, but it might be) you should be able to
<mpcsh>
sphalerite: right, but I'd like to not have the overlay reside on my local machine
<sphalerite>
you don't necessarily need an overlay for that, but you can if you want
<mpcsh>
sphalerite: ideally I'd like to use a fetchFromGitHub
<sphalerite>
ah
<sphalerite>
That should be possible too, something like nix.nixPath = [ "nixpkgs-overlays=${fetchFromGithub {…}}" ];
<mpcsh>
sphalerite: why wouldn't I just use nixpkgs.overlays = ?
<mpcsh>
sphalerite: the problem is that `fetchFromGitHub` isn't in scope
<mpcsh>
and if I try to use pkgs.fetchFromGitHub I get an infinite recursion error when i try to run nixos-rebuild
<sphalerite>
That option is a much better solution :p
<sphalerite>
First of all — do you have a good reason to use fetchFromGitHub rather than just keeping a clone of the repo on the machine? You could even keep your configuration.nix in the repo, and it would make it all simpler and avoid you having to update the hash manually every time you've made a change in the repo
<sphalerite>
If you still want to proceed, (import <nixpkgs> {}).fetchFromGitHub might work
<mpcsh>
sphalerite: I want to be able to distribute the configuration.nix to other machines
<mpcsh>
like my server
<mpcsh>
without much trouble
paperd has joined #nixos
<mpcsh>
and I feel like the overlay belongs in a separate repo
<mpcsh>
but I feel like philosophically it's a separate thing from my dotfiles
<sphalerite>
You could use a git submodule, but those tend to be a pain
<mpcsh>
so (import <nixpkgs> {}).fetchFromGitHub works, but it tells me that "The option value `nixpkgs.overlays.[definition 1-entry 1]' in `/etc/nixos/configuration.nix' is not a nixpkgs overlay."
paperd has quit [(Client Quit)]
<sphalerite>
probably less than always updating a hash in your configuration.nix, but still
<mpcsh>
(and I know it's not my repo that's the problem because I also tried importing mozilla's nixpkgs overlay which threw the same error)
phreedom has joined #nixos
<sphalerite>
well you'll want to actually import it in this case, because nixpkgs.overlays expects a list of overlay functions rather than a directory containing overlay nix files
<mpcsh>
sphalerite: oh I'm an idiot, I can keep separate repos using peru!
<sphalerite>
so something like `nixpkgs.overlays = [ import "${(import <nixpkgs> {}).fetchFromGitHub {…}}/my-overlay.nix"];`
<sphalerite>
never heard of that
<mpcsh>
much easier. so let's abandon the fetchFromGitHub idea and suppose that I have it on my local machine
<sphalerite>
What are you writing and what's it saying when you try to build?
<mpcsh>
so now that the import works, I tried putting caddy-all-plugins in my environment.systemPackages list
<mpcsh>
and it said "The option value `environment.systemPackages.[definition 39-entry 5]' in `/etc/nixos/configuration.nix' is not a package."
Bblah has joined #nixos
<sphalerite>
ooooh
<sphalerite>
you're missing a wee {} before the ; in default.nix :)
<mpcsh>
in the caddy-all-plugins/default.nix?
<mpcsh>
oh shit no in the top level
<mpcsh>
hrrrrrrm it still says that it's not a package
zeus_ has quit [()]
<sphalerite>
I thought you said you'd already used the overlay successfully?
<mpcsh>
sphalerite: no lol
<canndrew>
anyone know how to run memtest on nixos? I've added boot.loader.grub.memtest86.enable = true to my configuration.nix, but I'm not getting the option in the grub boot menu
<sphalerite>
canndrew: are you on UEFI?
<canndrew>
uh, probably i, it's a new machine
<sphalerite>
is it a UEFI installation?
<canndrew>
i have /sys/firmware/efi, so i'd say so
<canndrew>
yes, there's some efi stuff in dmesg
Bblah has quit [(Ping timeout: 260 seconds)]
<sphalerite>
memtest86 is only for BIOS systems, so that'll explain your difficulties
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v5mH2
<ahawkins>
I'm trying to do an UEFI install. I created one /boot partition and another / partition. The docs are somewhat confusing if I need a third partition for GRUB. Is this true?
<canndrew>
sphalerite: ah, thanks
<sphalerite>
You could test your memory with the userspace memtester tool, but it won't be able to cover everything
<sphalerite>
ahawkins: you don't, if your /boot is also your ESP
<canndrew>
memtest86.com has a download for creating a bootable usb drive with memtest on it. So I'll use that.
<canndrew>
thanks again :)
<ahawkins>
sphalerite: ESP?
<sphalerite>
mpcsh: so I wanted to give your overlay a shot… nix-build -E 'with import <nixpkgs> {overlays = [import /tmp/nixpkgs-mpcsh];}; caddy-all-plugins'
<sphalerite>
mpcsh: error: infinite recursion encountered, at undefined position
<sphalerite>
I am confused :D
<sphalerite>
ahawkins: EFI system partition
<mpcsh>
sphalerite: did I just fuck up making the overlay?
<sphalerite>
idk
<sphalerite>
it looks alright to me
<sphalerite>
I might be using it wrong
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v5mHj
<Mic92>
mpcsh: it pulls the tar archive of the revision you specify.
freeman42x[m] has quit [(Ping timeout: 264 seconds)]
<ahawkins>
is there some way to manually configure the UEFI /boot partition? I'm running the installation from a USB key but it's not booting in UEFI mode
<Mic92>
ahawkins: I am not an expert on UEFI, you can set up gpt without having booted UEFI first, but I think bootctl will complain if it cannot access uefi vars
<ahawkins>
i will reattempt install, now that I've set my BIOS to boot via UEFI
<Mic92>
Depending on the firmware, your system might detect boot partitions though, without having an boot entry in the firmware though.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] gebner pushed 2 new commits to master: https://git.io/v5m5k
<NixOS_GitHub>
nixpkgs/master bff84ca Gabriel Ebner: Merge pull request #28559 from dywedir/ripgrep...
NixOS_GitHub has left #nixos []
FRidh has quit [(Quit: Konversation terminated!)]
<mpcsh>
hey all, so I'm getting close to my goal here. I've created and imported an overlay, containing a package called caddy-all-plugins (a webserver), into my configuration.nix. Now what I want to do is have services.caddy.package = caddy-all-plugins, so that instead of starting up with nixos's version of caddy, I can use my own (with all the plugins).
<Isorkin>
write to nix-package - license = licenses.asl20; - nix-build error - undefined variable ‘licenses’ How to fix?
<mpcsh>
but when I put services.caddy.package = pkgs.caddy-all-plugins and try to nixos-rebuild, I get "error: attribute ‘bin’ missing..." - in the nixos caddy module, there's a line that calls for the variable `cfg.package.bin`. I can't for the life of me figure out what this package.bin thing is!~
<mpcsh>
I'm seeing it used in lots of packages, but can't find what it refers to
<mpcsh>
nor can I find any docs on it
<mpcsh>
Isorkin: instead of { stdenv, fetchurl, etc, etc }: at the top of your file, use `with import <nixpkgs> {};` for testing purposes
leat has joined #nixos
Havvy has quit [(Ping timeout: 248 seconds)]
zennist has quit [(Ping timeout: 246 seconds)]
endformationage has quit [(Quit: WeeChat 1.9)]
pxc has quit [(Ping timeout: 240 seconds)]
sauyon has quit [(Ping timeout: 248 seconds)]
Havvy has joined #nixos
JosW has joined #nixos
goibhniu has joined #nixos
<sphalerite>
mpcsh: it seems to expect the expression to have a "bin" output
<sphalerite>
mpcsh: try comparing your expression to the standard caddy one
<mpcsh>
sphalerite: yeah, I just got that - it looks like a feature of buildGoPackage
<mpcsh>
I can build my package using buildGoPackage though, that's the good news!
<mpcsh>
the problem is that if I build using buildGoPackage, the output binary is called `caddy-all-plugins`, and I need the binary to just be called `caddy`
<mpcsh>
so I'm trying to use a preInstall hook to rename it, but it looks like the binary does not live in the build directory
freusque has quit [(Quit: WeeChat 1.7.1)]
<mpcsh>
so I can't just use `mv bin/caddy-all-plugins bin/caddy`
<mpcsh>
sphalerite: wait, no, shit, I can't build using buildGoPackage
<mpcsh>
so ignore me
<mpcsh>
back to square one - how to I make my expression have a "bin" output
<mpcsh>
so what's makeWrapper? do I need it if this package is just a single binary?
<joepie91>
iirc caddy is statically compiled so probably you don't need to do anything else
<mpcsh>
ok yeah, let's see if that works
<joepie91>
mpcsh: makeWrapper is for producing a wrapper script that invokes the real binary; eg. setting env vars, or modifying the dynamic linking path, etc.
<joepie91>
"do this thing, then launch the binary" type wrapper scripts
<joepie91>
it's useful for cases like starbound where it'll yell at you if it's in the "wrong" location
<joepie91>
but in this case patchelf alone should be fine
<joepie91>
along with a mv
arianvp2 has quit [(Ping timeout: 246 seconds)]
<joepie91>
for static builds you usually only need to modify the linker with patchelf since all the deps are compiled in
<joepie91>
so you shouldn't need to patch in any dep paths
FRidh has joined #nixos
<mpcsh>
joepie91: so just patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) caddy ?
<joepie91>
yeah
<mpcsh>
joepie91: it yells at me with "cannot find section .interp"
<joepie91>
eh..
<joepie91>
mpcsh: are you still using makeWrapper?
Capprentice has quit [(Remote host closed the connection)]
<joepie91>
mpcsh: be aware that the search I linked is regex-based
<joepie91>
so it will not find anything in that format
Capprentice has joined #nixos
<mpcsh>
joepie91: buildGoPackage.*plugin also finds nothing
<mpcsh>
nor does /^.*?\bbuildGoPackage\b.*?\bplugin\b.*?$/m
thc202 has joined #nixos
pxc has quit [(Ping timeout: 240 seconds)]
<joepie91>
I have no idea how to solve the issue, sorry :P you can try making a nixpkgs issue for it, or otherwise just trying things and reading up on things until they work
deltasquared has joined #nixos
<joepie91>
I don't know what Caddy;'s build process normally looks like
<mpcsh>
I think it's time to sleep...
snikkers has joined #nixos
catch22 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh force-pushed python-wip from 8f6ea32 to fd527c0: https://git.io/vzaOS
<NixOS_GitHub>
nixpkgs/python-wip 9017fcb Frederik Rietdijk: python.pkgs: many updates
<NixOS_GitHub>
[nixpkgs] nlewo opened pull request #28561: dockerTools: populate the nix database of the container nix store (master...dockerTools-load-nix-db) https://git.io/v5YJY
NixOS_GitHub has left #nixos []
neeasade has quit [(Quit: WeeChat 1.9)]
freeman42y[m] has quit [(Ping timeout: 240 seconds)]
<woffs>
yet another question regarding i686, does https://github.com/NixOS/nixpkgs/pull/27923 mean i686 will be supported in the future but I have to compile the non-essential parts myself?
Wair1978 has joined #nixos
Swant has quit [(Quit: Gone to IKEA)]
arianvp2 has joined #nixos
pxc has quit [(Ping timeout: 240 seconds)]
<avn>
woffs: toolchain and part of libs still builds anyway.
arianvp2 has quit [(Client Quit)]
Mateon3 has joined #nixos
joehh has joined #nixos
Mateon1 has quit [(Ping timeout: 240 seconds)]
Mateon3 is now known as Mateon1
<joehh>
what is the proper way to port some code that calls /sbin/ldconfig -p to nix/nixos?
<joehh>
should I just run true?
aszlig_ has joined #nixos
aminechi1haoui has joined #nixos
pSub_ has joined #nixos
takle_ has quit [(Remote host closed the connection)]
vagrant- has quit [(Ping timeout: 240 seconds)]
alpha_sh has quit [(Ping timeout: 260 seconds)]
alfie has quit [(Ping timeout: 240 seconds)]
rtjure has quit [(Ping timeout: 240 seconds)]
Wair1978 has quit [(Remote host closed the connection)]
rtjure has joined #nixos
mog has joined #nixos
alpha_sh has joined #nixos
arianvp2 has joined #nixos
alfie has joined #nixos
<joehh>
painful netsplit
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti pushed 1 new commit to master: https://git.io/v5YZA
<NixOS_GitHub>
nixpkgs/master 30c15c9 Peter Simons: Fix a bunch of ghc-8.2.x Haskell builds.
NixOS_GitHub has left #nixos []
Ivanych has quit [(Ping timeout: 248 seconds)]
<woffs>
I'm fine with that
odi_ has quit [(Ping timeout: 240 seconds)]
arianvp2 has quit [(Quit: arianvp2)]
arianvp2 has joined #nixos
<joehh>
:) woffs - just means fewer people saw my question and I'll reask it later...
Swant has joined #nixos
Wair1978 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] oxij opened pull request #28562: nixos: i2pd: bits and pieces (master...nixos/i2pd) https://git.io/v5Yc2
NixOS_GitHub has left #nixos []
arianvp2 has quit [(Client Quit)]
freeman42y[m] has joined #nixos
Wair1978 has left #nixos ["Leaving"]
arianvp2 has joined #nixos
freeman42x[m] has quit [(Read error: Connection reset by peer)]
<arximboldi>
hi! I see that people use nix-docker to build a docker image from a configuration.nix, is there a similar thing that one can do to just build a .img file that one can just "dd" to a system
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] viric pushed 1 new commit to master: https://git.io/v5YCP
<NixOS_GitHub>
nixpkgs/master 55821dc Lluís Batlle i Rossell: git-lfs: adding old 1.5.6 (supports old server protocols)...
NixOS_GitHub has left #nixos []
freeman42x[m] has joined #nixos
<arximboldi>
my use-case is: i would like to be able to develop an "embedded" system from a machine that has Nix (package manager, not OS) and from there just generate a .img to flash into the device, and maybe run in qemu
<arximboldi>
I have been looking at the docs but I am a bit lost :/ in guix I bould use "guix system", but I can't find anything equivalent in Nix
freeman42y[m] has quit [(Ping timeout: 264 seconds)]
<gchristensen>
`nixos-rebuild vm` will make a VM with an image
<gchristensen>
there are ways to make disk images from nix, for sure
<arximboldi>
gchristensen: so this means I should first install a vm simulating the target system and use nixos-rebuild from there?
<arximboldi>
i guess that could work but it feels less "purely functional" than doing it from the "outside", i.e. just from Nix (package manager)
<gchristensen>
no, you don't need to do that, I'm sorry -- I can tell you this is possible, but I'm not able to help you actually do it as I'm quite behind on a project at work :(
<arximboldi>
ah ok, no, prob, thanks a lot anyways for the reply, I'll keep digging
<__monty__>
Does nix expose man pages? For example I don't have a manpage for unrar.
<__monty__>
But I do for ripgrep. So I guess it does.
<easroigj>
Hi! Has someone been successful setting up a C project, giving it a default.nix (for nix-shell), and using Nix to get Emscripten and then compile to Javascript (as well as x86)? I want to do this - but am not sure where to start at all
takle has joined #nixos
<Fare>
if you're writing a new project in C, you *deserve* to lose.
<easroigj>
Fare: because the runtime must be embedded into other programs - which are likely to have their own GC. The language I'm implementing does not need GC itself as well.
__monty__ has left #nixos []
<ixxie>
easroigj: on the sidebar, under 'Resources' theres a 'Bookmarks' article with lots of other links to useful stuff
<easroigj>
ixxie: If I didn't know better I'd send you the emoji with hearts for eyes ;)
<Fare>
lua
<ixxie>
hah
<easroigj>
Fare: Lua has a GC
<Fare>
forth
<Fare>
Rust
<easroigj>
Fare: is forth safer than C somehow? You can do any side effect you wish there, just like C.
<gchristensen>
side effects are the least "unsafe" thing about C
<Fare>
are you aware of the >200 cases of UBE in C
<easroigj>
Rust doesn't have a good story for compiling to JS - and I don't want to much around with getting the Rust runtime to go into Emscripten
<gchristensen>
easroigj: I've had a great time with Elm this week
<easroigj>
Fare: what is UBE?
<Fare>
Undefined Behavior
<easroigj>
gchristensen: Elm <3 how I love that language!
<Fare>
basically, how the russians hack your users and take all their money
bennofs has joined #nixos
<gchristensen>
easroigj: so why not that one? :)
<easroigj>
Undefined behaviour ain't nice yeah. Except for forth, is there though another language that has no GC, compiles to binary & JS and is embeddable/FFI-able in C, Java, and as many others as possible?
<gchristensen>
I thought rust did compile to webasm or something
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] WilliButz opened pull request #28563: pango: fix pango_default_break function (master...fix-perl-gtk2) https://git.io/v5YRS
NixOS_GitHub has left #nixos []
<easroigj>
gchristensen: rust compiling to WebASM is a contender...
jtojnar_ has joined #nixos
Infinisil has quit [(Quit: leaving)]
DrWaste has quit [(Quit: Run away!)]
jtojnar has quit [(Ping timeout: 248 seconds)]
reinhardt has quit [(Quit: Leaving)]
endformationage has joined #nixos
MercurialAlchemi has quit [(Ping timeout: 248 seconds)]
Rotaerk has quit [(Quit: Leaving)]
griff_ has joined #nixos
freeman42y[m] has joined #nixos
freeman42x[m] has quit [(Read error: Connection reset by peer)]
freeman42x[m] has joined #nixos
zennist has joined #nixos
freeman42y[m] has quit [(Ping timeout: 260 seconds)]
phinxy has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 2 new commits to master: https://git.io/v5YuC
freeman42x[m] has quit [(Ping timeout: 260 seconds)]
freeman42x[m] has joined #nixos
freeman42y[m] has quit [(Ping timeout: 248 seconds)]
<tokudan[m]>
ixxie: I don't think there is a default browser... if you don't tell nixos to install a specific one, i don't think any browser will be installed
<gchristensen>
it ships with `curl`!
gwenloh has quit [(Ping timeout: 240 seconds)]
<ixxie>
maybe its a gnome thing?
<ixxie>
hmmm
<ixxie>
yes!
<ixxie>
gnome web
<ixxie>
weird
goibhniu has quit [(Ping timeout: 260 seconds)]
FRidh has joined #nixos
Infinisil has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 2 new commits to staging: https://git.io/v5YoR
<NixOS_GitHub>
nixpkgs/staging 81194ee John Ericson: stdenv-setup: Use `set -u` as much as possible...
<NixOS_GitHub>
nixpkgs/staging 2e7a390 John Ericson: Merge pull request #28057 from obsidiansystems/stdenv-set-u...
NixOS_GitHub has left #nixos []
darlan has joined #nixos
darlan has quit [(Client Quit)]
freeman42y[m] has joined #nixos
takle_ has quit [(Ping timeout: 246 seconds)]
freeman42y[m] has quit [(Read error: Connection reset by peer)]
freeman42x[m] has quit [(Read error: Connection reset by peer)]
<NixOS_GitHub>
nix/master ec9e0c0 Eelco Dolstra: When truncating the progress bar, take ANSI escape sequences into account
NixOS_GitHub has left #nixos []
freeman42y[m] has joined #nixos
takle has joined #nixos
roundhouse has joined #nixos
<tokudan[m]>
I'm trying to figure out what's blocking hydra with rustc. is there any way to figure out what hydra is actually trying to build? I can build pkgs.rustc without any issues, while hydra is failing
iyzsong has quit [(Ping timeout: 252 seconds)]
freeman42x[m] has quit [(Read error: Connection reset by peer)]
__Sander__ has quit [(Quit: Konversation terminated!)]
freeman42x[m] has joined #nixos
freeman42y[m] has quit [(Ping timeout: 246 seconds)]
Isorkin has quit [(Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org)]
<bennofs>
tokudan[m]: hydra has a "reproduce locally" link on failing builds iirc
bennofs has quit [(Quit: WeeChat 1.9)]
zennist has joined #nixos
<acowley>
Sorry if this has been discussed to death, but is the multi-week blockage of nixpkgs-unstable on folks' radar?
<simpson>
acowley: Yes.
<acowley>
simpson: Okay, great. A while ago there was something like this and when I asked it seemed to come as a surprise to the folks steering the ship, so I figured I'd ask just in case.
<acowley>
simpson: Is there a relevant issue on GH I could subscribe to?
<tokudan[m]>
Benno Fünfstück:
<simpson>
acowley: I don't have any more information than to confirm that yes, important maintainers and core folks have been discussing it.
<tokudan[m]>
bennofs: that seems fail on nixos-17.03 with error: value is a string while an integer was expected
<tokudan[m]>
i guess hydra needs a newer nix...
zennist has quit [(Ping timeout: 260 seconds)]
hc_ has joined #nixos
<mrkgnao>
permittedInsecurePackages isn't working for me. Any pointers?
<mrkgnao>
although NIXPKGS_ALLOW_INSECURE does work.
<FRidh>
gchristensen: ^
<gchristensen>
what did you put in to permittedInsecurePackages ?
<mrkgnao>
I got asked to put that line in by nix-build, so I did that. I just get the same error again now.
<mrkgnao>
btw, I'm not sure y'all hear this enough, so: I am doing Haskell stuff on NixOS and I cannot believe how awesome everything feels now.
<gchristensen>
mrkgnao: can you paste the exact nix-build command you're running?
kykim has joined #nixos
<mrkgnao>
I'm using a release.nix file, which imports a couple others generated by cabal2nix.
<mrkgnao>
So I just execute "nix-build release.nix".
<gchristensen>
ok, cool, can you do `nix-instantiate -v ./release.nix` and paste that output? (might be a lot! you can prune it of lines that look like they should be kept secret)
ronny has left #nixos ["WeeChat 1.1.1"]
apeyroux has quit [(Quit: Lost terminal)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] aszlig pushed 2 new commits to master: https://git.io/v5YSo
<mrkgnao>
I'm in the middle of building what appears to be WebKit, so it'll be a while before I can check if it worked. :)
<gchristensen>
oh but it is building? :)
drakonis has quit [(Quit: Leaving)]
<mrkgnao>
gchristensen: I used NIXPKGS_ALLOW_UNFREE=1 for that.
<gchristensen>
oh :(
<gchristensen>
brb
takle has quit [(Ping timeout: 252 seconds)]
jsgrant has quit [(Ping timeout: 276 seconds)]
LysergicDreams has joined #nixos
mudri has quit [(Ping timeout: 252 seconds)]
<mpcsh>
hey everyone, is there an easy way to apply a simple patch to source code before building?
<dash>
mpcsh: yes!
<dash>
mpcsh: "patches = [ ./my-patch.diff ];"
<mpcsh>
ooh nice, thank you :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to python-wip: https://git.io/v5Y7m
<NixOS_GitHub>
nixpkgs/python-wip d834bd8 Frederik Rietdijk: python.pkgs.flask-pymong: 0.3.1 -> 0.5.1
<NixOS_GitHub>
nixpkgs/python-wip 29e151a Frederik Rietdijk: python.pkgs.sqlalchemy: use pytest_30 and don't use pytest_xdist
NixOS_GitHub has left #nixos []
<tokudan[m]>
so, I've tried to figure out the problem hydra has with https://hydra.nixos.org/build/59404423. It builds just fine on my system, the only thing I had to do to get around a nix issue is to set versionSuffix in nixos/release.nix to a string. After that, it builds just fine. is there any way to tell hydra to just try again?
Arcaelyx has joined #nixos
ixxie has quit [(Quit: Lost terminal)]
<mpcsh>
dash: will it work with `git diff` output?
<dash>
mpcsh: probably!
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] sorpaas opened pull request #28570: btc1: init at 1.14.5 (master...btc1-init) https://git.io/v5Y7y
NixOS_GitHub has left #nixos []
takle has joined #nixos
<mpcsh>
dash: thanks :) follow-up, is there a way to fetch two git repos to use as source?
<dash>
mpcsh: "srcs = [ ... ];"
<dash>
you have to set sourceRoot yourself in unpackPhase if you do that
mkoenig has quit [(Remote host closed the connection)]
jsgrant has joined #nixos
mkoenig has joined #nixos
* jsgrant
, after much debate is moving back to NixOS; On all but one box. :^)
mkoenig has quit [(Remote host closed the connection)]
sellout- has quit [(Quit: Leaving.)]
sellout- has joined #nixos
<mpcsh>
dash: hrrrrm, so I have srcs = [ fetchFromGitHub { ... } fetchFromGitHub { ... } ];, and nix-build yells at me with "cannot coerce a function to a string, at /nix/store/fhs89bm2wcbv3pkz9k9708x6w00z9q0y-nixos-17.09pre113138.96457d26dd/nixos/pkgs/stdenv/generic/make-derivation.nix:85:11"
mkoenig has joined #nixos
<dash>
mpcsh: remember that spaces get treated as list item separators
<dash>
mpcsh: so you need parens around those calls.
<mpcsh>
dash: ahh, didn't know that. thanks!
<mpcsh>
dash: now how about this sourceRoot variable - does it accept a string? file path?
mudri has joined #nixos
mkoenig has quit [(Remote host closed the connection)]
sellout- has quit [(Ping timeout: 240 seconds)]
mkoenig has joined #nixos
<hyper_ch>
hmmm, I can't find kdialog on nixos... is it part of any package?
<mpcsh>
hyper_ch: I found it in pkgs/applications/kde/srcs.nix, looks like you need to install kde?
<hyper_ch>
mpcsh: I do have kde
<hyper_ch>
but I can't find it in nox
<mpcsh>
hyper_ch: are you running 17.03 or unstable?
<hyper_ch>
unstable
<mpcsh>
hm
<mpcsh>
idk then :/
<FRidh>
kdialog has not been packaged
<hyper_ch>
awww
<hyper_ch>
how to get then simple interactions from bash scripts :(
<hyper_ch>
(in kde)
takle_ has joined #nixos
revtintin has quit [(Ping timeout: 276 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 3 new commits to python-wip: https://git.io/v5YF4
<NixOS_GitHub>
nixpkgs/python-wip 647c0ba Frederik Rietdijk: python updates fixup
<NixOS_GitHub>
nixpkgs/python-wip 4338b3e Frederik Rietdijk: python.pkgs.sphinxcontrib-websupport: init at 1.0.1
<NixOS_GitHub>
nixpkgs/python-wip a9bf0f2 Frederik Rietdijk: python.pkgs.sphinx: fix build, fixup
NixOS_GitHub has left #nixos []
Infinisil has quit [(Quit: leaving)]
takle has quit [(Ping timeout: 240 seconds)]
<pbogdan>
hyper_ch: if you are fine with a gtk app then zenity could be an option (though not sure how it compares to kdialog in terms of feature parity)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh force-pushed python-wip from a9bf0f2 to 7726a1e: https://git.io/vzaOS
<NixOS_GitHub>
nixpkgs/python-wip d58e1f1 Frederik Rietdijk: python.pkgs: many updates
<hyper_ch>
pbogdan: what dependencies does zenity have?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to staging: https://git.io/v5YFX
<NixOS_GitHub>
nixpkgs/staging 656e14f Frederik Rietdijk: Merge remote-tracking branch 'upstream/python-wip' into HEAD
NixOS_GitHub has left #nixos []
freeman42y[m] has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to staging: https://git.io/v5YFN
<NixOS_GitHub>
nixpkgs/staging 665d393 Frederik Rietdijk: Merge remote-tracking branch 'upstream/master' into HEAD
NixOS_GitHub has left #nixos []
<pbogdan>
hyper_ch: not exactly sure to be honest
<hyper_ch>
so I still need to use a vm then :(
freeman42x[w] has quit [(Quit: Leaving)]
pxc has joined #nixos
Infinisil has joined #nixos
<Infinisil>
Damnit, i filled my zpool accidentally..
<Infinisil>
96% full, 77% fragmentation
<Infinisil>
Can not recommend, everything is terrible
sellout- has joined #nixos
<hyper_ch>
pbogdan: seems zenity doesn't have too many dependencies
<hyper_ch>
I guess I'll have to rewrite my scripts to use kdialog or zenity
<hyper_ch>
depending on what is found
tnias[m] has joined #nixos
Ivanych has quit [(Ping timeout: 240 seconds)]
<dash>
Infinisil: nixos needs a feature where it automatically orders you new drives on amazon when that happens
apeyroux has joined #nixos
Neo-- has quit [(Remote host closed the connection)]
<apeyroux>
hello, its possible to tag a generation ? (ex: install-ff-48 and -switch-generation install-ff-48)
Neo-- has joined #nixos
ahawkins has quit [(Quit: Connection closed for inactivity)]
<disasm>
apeyroux: --profile-name
<disasm>
apeyroux: that won't tag a generation, but you can create a separate profile with that change in it
zennist has joined #nixos
zennist has quit [(Ping timeout: 246 seconds)]
<slabity>
Attempting to run `nix-shell -p "haskellPackages.ghcWithPackages (pkgs: [pkgs.react-haskell])"` results in "Encountered missing dependencies: void ==0.7". Does anyone else have this issue?
odi has joined #nixos
<slabity>
I'm curious if it's an error in the react-haskell derivation
<apeyroux>
disasm: Yes, but how to separate the installation steps (nix-env -i pkg1 --tag pkg1; nix-env -i install-pkg2 --tag install-pkg2 ...)
<apeyroux>
disasm: and roolback with --switch-generation --tag pkg1
<apeyroux>
slabity: I have the same error
<slabity>
apeyroux: Are you on the stable or unstable branch?
eacameron has quit [(Remote host closed the connection)]
<freeman42y>
I'll try gch821
<freeman42y>
*ghc821
<fresheyeball>
hello out there
<fresheyeball>
I have an expression that is getting called by customisation.nix
<fresheyeball>
and I'd like to change its dependencies
<Infinisil>
fresheyeball: you mean configuration.nix?
<fresheyeball>
no
<fresheyeball>
I mean customization.nix in nixpkgs
<fresheyeball>
customisation.nix*
<Infinisil>
never looked at that, hold on
<fresheyeball>
its
arianvp2 has joined #nixos
<fresheyeball>
nixpkgs/lib/customisation.nix
<Infinisil>
Ah
<Infinisil>
What are you doing exactly? can you show your current nix expression?
<fresheyeball>
I need to update kubernetes.nix to use the go 1.18 compiler
<fresheyeball>
so I thought I could just change `go` in the lambda args
<fresheyeball>
to `go_1_8` since that seems to be the convention
<fresheyeball>
but I get this
<fresheyeball>
error: anonymous function at /home/isaac/Projects/nixpkgs/pkgs/applications/networking/cluster/kubernetes/default.nix:1:1 called with unexpected argument ‘go’, at /home/isaac/Projects/nixpkgs/lib/customisation.nix:74:12
<fresheyeball>
I'm trying to figure out why
justbeingglad has left #nixos []
<Infinisil>
Ah
<Infinisil>
No it's really simple actually, hold on
<fresheyeball>
Infinisil: how could I have figured that out?
<Infinisil>
fresheyeball: The reason `nix-env -iA nixos.<pkgname>` works is because <pkgname> is defined at the top-level
<fresheyeball>
I didn't know there way a top-level file!
<fresheyeball>
there was*
<Infinisil>
Which is what the file `pkgs/top-level/all-packages.nix` does
<fresheyeball>
I feel like that should get noted in the docs on `packages.html`
<Infinisil>
Yeah maybe
<fresheyeball>
not just a link to default.nix expression
<fresheyeball>
but the line on `all-packages.nix` as well
<fresheyeball>
would have saved me alot
<Infinisil>
Do you know how callPackages works?
<fresheyeball>
not totally
<fresheyeball>
I think it evals something and lets you pass stuff in
<fresheyeball>
my crude understanding
<Infinisil>
Yeah
<Infinisil>
As you may have noticed, a lot of files contain { foo, bar, go }: at the beginning
<fresheyeball>
yes, lambda
<Infinisil>
This is there so that you can easily override stuff
<Infinisil>
So, what callPackage does, is call this function, with all the default arguments (defined at toplevel)
<Infinisil>
The first argument of callPackage is the file to use
<Infinisil>
and the second argument let's you override the default arguments
zennist has joined #nixos
<Infinisil>
So, by default, if you have the argument `go` in the argument list, it gets resolved to `go_1_8` because that's how `go` is currently defined
takle_ has quit [(Remote host closed the connection)]
<lucasOfBesaid>
Are there any plans for a racket-packages.nix to mirror the haskell-packages.nix, rust-packages.nix, ocaml-packages.nix and friends?
<Infinisil>
fresheyeball: Did you test this? The file doesn't look like it would accept markdown syntax..
kykim has quit [(Remote host closed the connection)]
<avn>
lucasOfBesaid: I think, if no one reply (here and in maillist) that he do it, you can try do it yourself
<lucasOfBesaid>
Oh my. I'm not sure I'm quite that good at Nix.
<lucasOfBesaid>
Or even that having a racket-packages.nix is even the right solution.
<fresheyeball>
Infinisil: good point
gnuhurd has quit [(Remote host closed the connection)]
gnuhurd has joined #nixos
JosW has quit [(Quit: Konversation terminated!)]
<Fare>
does anyone have a good nixos configuration?
arianvp2 has quit [(Ping timeout: 240 seconds)]
<Infinisil>
Fare: What do you mean by 'good'? Everybody has different needs and considers different things 'good'
<Fare>
anything working at all would be a good start :-/
<Infinisil>
What's not working for you?
<Fare>
I'd like my robot running on a linode host to send me email alerts.
<Fare>
apparently my mail gets rejected.
<Fare>
and/or does not make it to me.
odi has quit [(Ping timeout: 246 seconds)]
<Infinisil>
That's probably not a problem with your config
<Fare>
uh?
<the-kenny>
Fare: well sending mail is complex. It might be a configuratin error, it might be some intermediate mailserver rejecting your mails, etc. etc. etc.
arianvp2 has joined #nixos
<the-kenny>
So it likely stems from a configuration error in the mail transfer agent, whose config is likely managed by nixos, but highly specific to your setup :)
<the-kenny>
Fare: maybe show what you have? I can't guarantee I'll be able to help you though
<Infinisil>
And using a "good config" by some random person is certainly not gonna solve that problem
<freeman42y>
it keeps erroring out, possibly because the first time I tried it I did a ctrl+c cause I forgot something in the config
civodul has joined #nixos
jtojnar has quit [(Remote host closed the connection)]
<freeman42y>
<uilder for ‘/nix/store/7awgd1aalqq74v58bjpnpb9p2f7n7xj4-test-framework-0.8.1.1.drv’ failed with exit code 1> http://i.imgur.com/lz1Zjec.png
<the-kenny>
freeman42y: Ctrl-c being the issue is very unlikely
<the-kenny>
Nix is pretty robust in that part ;)
<freeman42y>
the-kenny, I read an issue that said it might be that
<freeman42y>
yeah, I know, it should perfectly rollback, but...
<Infinisil>
fresheyeball: What's your nix experssion?
<Infinisil>
I don't know how to debug this rn, but I'll try building it myself
<freeman42y>
Infinisil, but how would this not be working for me only? I thought Nix makes stuff work or fail for everyone or something liket that more or less
jtojnar has joined #nixos
<Infinisil>
freeman42y: The nixpkgs version is the only thing that should be different
<Infinisil>
s/should/could
<freeman42y>
indefini, hmmm, I am on unstable
<Infinisil>
Me too, but I'd like to check anyways
<indefini>
mmh
python47` has quit [(Remote host closed the connection)]
<Infinisil>
And having it locally is much easier to help
python476 has joined #nixos
<freeman42y>
I think I might try in another laptop too
<Infinisil>
Same nixpkgs version should give you the same result on any machine really, unless you're using a different arch maybe
snikkers has quit [(Ping timeout: 276 seconds)]
<freeman42y>
Infinisil, it is inside a VMWare VM
<Infinisil>
yeah same thing
<freeman42y>
Infinisil, you got same errors?
<Infinisil>
nah
<Infinisil>
same thing regarding the VM, should be the same result on any machine
<Infinisil>
I'm still building it, takes some time
<freeman42y>
well, if same results... then you should get same error? :D
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v5Ont
<NixOS_GitHub>
nixpkgs/master ad7439f Jörg Thalheim: strongswan: add patch for CVE-2017-11185
NixOS_GitHub has left #nixos []
<Infinisil>
Yeah, but as said, it's easier to debug when I have it on my machine
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to release-17.03: https://git.io/v5OnO
<NixOS_GitHub>
nixpkgs/release-17.03 f064a2d Jörg Thalheim: strongswan: add patch for CVE-2017-11185...
NixOS_GitHub has left #nixos []
<Infinisil>
freeman42y: You could see if you can find an older nixpkgs version where it still worked and then do a git bisect to find which commit broke it
snikkers has joined #nixos
<Infinisil>
Well, my nix daemon is constantly running out of memory :(
<Infinisil>
I don't have a swap and only 8GB, so maybe that's why
Neo-- has quit [(Remote host closed the connection)]
Neo-- has joined #nixos
<Infinisil>
Yeah, can't build it because of that, sorry
<Infinisil>
Gonna have to fix my memory situation
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v5Ocn
<NixOS_GitHub>
nixpkgs/master 70aa1e3 Bas van Dijk: strongswan: 5.5.3 -> 5.6.0...
<Mic92>
fpletz: it was a little bit strange, that the nixos assembly was located next to function programming 33c3 and not the other distro/operating system guys. Is their really a significant overlap with Curry Club Augsburg?
<fpletz>
Mic92: yeah, lots of them use nixos :) this year the congress and the assemblies will be quite different because we will have big halls… the local ccc groups are encouraged to host theme-based stages with their own talks
<jmg>
hi, can anybody tell me what the status of the channel nixpkgs-unstable is? is it abandoned? there has been no update for two weeks and building ghc is broken in the current state:-(
<fpletz>
Mic92: I see a potentional FP assembly and talk track that could be organized by the augsburg folks, but we should coordinate :) we from munich don't have any ideas yet but FP is not so strong in our space… we do have a small congregation of NixOS followers here though :)
oever has joined #nixos
<fpletz>
jmg: that could be why it hasn't been released. are you on darwin or linux?
fresheyeball has quit [(Quit: WeeChat 1.9)]
<jmg>
fpletz: i am on darwin and there is github issue referencing a commit that fixes that problem
<jmg>
gnustep-make fails to build, but with said commit it goes through
hiratara has quit [(Ping timeout: 246 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Fresheyeball opened pull request #28575: Update kubes to 1.7.0 (master...update-kubes-to-1.7.0) https://git.io/v5O8U
NixOS_GitHub has left #nixos []
vandenoever has quit [(Ping timeout: 248 seconds)]
<Mic92>
fpletz: I only had little time to introduce NixOS in my Hackerspace in Dresden, so it is not yet converged in that direction - and now I am in a different place. Let me know, if you plan talks - maybe I can prepare something too.
<joachifm>
Mic92: what is a hackerspace?
<fpletz>
jmg: well, in the last comment is the problem… we have to wait for a new nix release
<Mic92>
If you apply changes/commits not diverging from what hydra has build, the build is done locally
<Mic92>
s/not diverging/diverging/
oever is now known as vandenoever
<jmg>
Mic92: thanks for the hint, I'll try that.
<jmg>
what is the process for a nixpkgs release? is it anywhere written down.
ison111 has quit [(Ping timeout: 248 seconds)]
<dash>
jmg: well, when the stars align over the altar, the candles must be lit...
<dash>
then you have to wave a dead chicken over the blessed nixpkgs revision
<Mic92>
jmg: if you are on nixpkgs-unstable, it is continous integration. For nixos we have bi-yearly releases with a 1 month stabilisation phase. For darwin there also plans to have someting similar: https://github.com/NixOS/nixpkgs/issues/25479
gnuhurd has quit [(Remote host closed the connection)]
gnuhurd has joined #nixos
bfrog has quit [(Ping timeout: 248 seconds)]
MatejC is now known as iMatejC
zennist has quit [(Ping timeout: 248 seconds)]
jmeredith has quit [(Quit: Connection closed for inactivity)]
markus1189 has joined #nixos
markus1199 has quit [(Ping timeout: 252 seconds)]
<hodapp>
Looking at https://github.com/tensorflow/models... what is some existing stuff in nixpkgs that uses repositories like this, where the repository contains N independent modules?
hamishmack has quit [(Quit: hamishmack)]
gnuhurd has quit [(Remote host closed the connection)]
gnuhurd has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] primeos pushed 1 new commit to master: https://git.io/v5O2B
<NixOS_GitHub>
nixpkgs/master 1799e14 Michael Weiss: Revert "android-studio-preview: 3.0.0.10 -> 3.0.0.11"...