justanotheruser has quit [Ping timeout: 256 seconds]
justanotheruser has joined #nixos
jonjitsu has joined #nixos
Fare has joined #nixos
FareTower has joined #nixos
fare__ has joined #nixos
Fare has quit [Ping timeout: 256 seconds]
FareTower has quit [Ping timeout: 260 seconds]
FareTower has joined #nixos
fare__ has quit [Ping timeout: 260 seconds]
FareTower has quit [Ping timeout: 264 seconds]
<coorey[m]>
is there a way to allowUnfree for a particular nix-shell?
<coorey[m]>
adding it to ~/.config/nixpkgs/config.nix seems like a relatively global approach when I just want it to apply in a single shell.nix...
<elvishjerricco>
coorey[m]: Anything you would put in `~/.config/nixpkgs/config.nix` may also be passed to `nixpkgs` when you import it in a nix expression. i.e. replace `import <nixpkgs> {}` with `import <nixpkgs> { config = ...contents of ~/.config/nixpkgs/config.nix...; }`
<coorey[m]>
elvishjerrico: ahh thanks, that made me realize I was trying to set allowUnfree in the wrong spot
lo_mlatu_ has joined #nixos
lesur has joined #nixos
FareTower has joined #nixos
jmeredith has quit [Quit: Connection closed for inactivity]
<mightybyte>
I remember seeing a video that described how to set up a nix cache on S3, but unfortunately I haven't been able to find it. Anyone have a link?
jonjitsu has quit [Ping timeout: 240 seconds]
jgt has joined #nixos
kerrhau has quit [Ping timeout: 260 seconds]
jperras has quit [Quit: WeeChat 2.1]
lesur has quit [Quit: Page closed]
Rusty1_ has quit [Quit: Konversation terminated!]
<kuri0>
How do I increase the SD card speed on Linux ?
<kuri0>
on a Raspberry Pi I can do it with a option in the configuration file
<kuri0>
I want to increase it to 100mhz on my laptop
kuri0 has left #nixos ["Leaving"]
rauno has quit [Remote host closed the connection]
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
<Ralith>
mightybyte: in nix 2.0, S3 buckets are natively supported
<Ralith>
though performance is pretty bad at the moment
lo_mlatu_ has quit [Ping timeout: 268 seconds]
sanscoeu_ has joined #nixos
ZaraChimera has joined #nixos
sanscoeur has quit [Ping timeout: 240 seconds]
lo_mlatu_ has joined #nixos
kuri0 has joined #nixos
<kuri0>
where is configuration.nix located in the aarch64 image ?
iyzsong has joined #nixos
Ralith_ has joined #nixos
ariutta has quit [Ping timeout: 260 seconds]
xy2_ has joined #nixos
simukis has joined #nixos
elninja44 has joined #nixos
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 260 seconds]
Mateon3 is now known as Mateon1
dmj` has quit []
chimay has joined #nixos
sigmundv__ has joined #nixos
iyzsong has quit [Remote host closed the connection]
iyzsong has joined #nixos
krey has quit [Ping timeout: 256 seconds]
krey has joined #nixos
robstr has joined #nixos
greg___ has joined #nixos
jgt has quit [Ping timeout: 264 seconds]
frank87 has quit [Remote host closed the connection]
frank87 has joined #nixos
<MichaelRaskin>
ketthau: is it NixOS or Nix-on-other-distribution? Is /run/opengl-driver/lib in LD_LIBRARY_PATH when you launch the program? You could shell out to Nix and set CFFI search path for both libGL with drivers and libSDL2 if you want to be fancy.
NightTrain has quit [Ping timeout: 264 seconds]
frank87_ has joined #nixos
frank87 has quit [Read error: Connection reset by peer]
lo_mlatu_ has quit [Read error: Connection reset by peer]
<kuri0>
how do I change the abi of the sd image ?
<kuri0>
i can't find the platform it uses in it's nix files
day|flip has quit [Remote host closed the connection]
iyzsong has quit [Ping timeout: 264 seconds]
lo_mlatu_ has joined #nixos
ma27 has joined #nixos
coot has joined #nixos
hotfuzz_ has joined #nixos
hakujin has joined #nixos
hotfuzz has quit [Ping timeout: 248 seconds]
hakujin has quit [Ping timeout: 256 seconds]
thblt has joined #nixos
lo_mlatu has quit [Quit: Connection closed for inactivity]
orivej has joined #nixos
chimay has quit [Ping timeout: 268 seconds]
chimay has joined #nixos
<bkchr[m]>
When is staging normally merged into master?
coot has quit [Read error: No route to host]
coot has joined #nixos
greg___ has quit [Quit: Page closed]
ma27 has quit [Ping timeout: 256 seconds]
aarvar has quit [Ping timeout: 248 seconds]
<LnL>
that depends, there's no fixed schedule
ma27 has joined #nixos
<bkchr[m]>
LnL: okay, I'm waiting for the binutils patch for aarch64.
asuryawanshi has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
FareTower has quit [Ping timeout: 240 seconds]
jgt has joined #nixos
freeman42x]NixOS has joined #nixos
hotfuzz_ is now known as hotfuzz
thblt` has joined #nixos
orivej has quit [Ping timeout: 248 seconds]
elninja44 has quit [Read error: Connection reset by peer]
knupfer has joined #nixos
MP2E has quit [Remote host closed the connection]
freeman42x]NixOS has quit [Ping timeout: 264 seconds]
thblt has quit [Remote host closed the connection]
<Akii>
error: attempt to call something which is not a function but a set, at /nix/store/n4r4293bxrf5c4kivgzsimsmvrqcf5ny-source/pkgs/development/haskell-modules/make-package-set.nix:88:27
<clever>
Akii: i believe you want to store the fetchGit path in a variable, then callPackage "${thatvar}/utleague.nix" {}
<Akii>
wat error: The option `LANG' defined in `/etc/nixos/custom-packages/utleague.nix' does not exist.
<clever>
you tried to put something into nixos imports that didnt fit
<clever>
Akii: self in the last file, is the result of applying every overlay in the list of overlays, but also, foo = self.foo; causes infinite recursion
<clever>
super is the result of all overlays up to but not including the current, so you can modify foo without infinite recursion
<clever>
so you generally want to use self, except when it causes recursion
lo_mlatu_ has quit [Read error: Connection reset by peer]
<Akii>
error: The option value `environment.systemPackages.[definition 2-entry 5]' in `/etc/nixos/packages.nix' is not of type `package'.
<clever>
the {} at the end of the callPackage is missing
<Akii>
yey error: attempt to call something which is not a function but a set, at /nix/store/xdfsm3pdjalxl4l8lr7dswidhh8yr0qp-nixos-18.03.132021.c0c5571ec1a/nixos/lib/customisation.nix:74:12
<clever>
can you pastebin the contents of custom-packages/utleague.nix ?
<Akii>
what tf am I supposed to do with errors like there
<clever>
kuri0: what do you want to change the abi to?
ditadi has joined #nixos
cinimod_ has joined #nixos
<cinimod_>
collision between ‘/nix/store/g0np3j37r0ggh6jqrq8drfgjbav90ghn-BlogLiterately-0.8.6.1/lib/links/libHScmdargs-0.10.20-KCeyMG0dLWIAP5PCFvYJUT-ghc8.2.2.dylib’ and ‘/nix/store/65mzqlwzblg45fqs8w2546qqzng6i8lv-hlint-2.1.1/lib/links/libHScmdargs-0.10.20-KCeyMG0dLWIAP5PCFvYJUT-ghc8.2.2.dylib’; use ‘nix-env --set-flag priority NUMBER PKGNAME’ to change the priority of one of the conflicting packages
<cinimod_>
I have tried `nix-env -f /Users/dom/nixpkgs --set-flag 42 haskellPackages.hlint` but I still get the same error
<clever>
cinimod_: try without the haskellPackages.
<clever>
nix-env -f /Users/dom/nixpkgs -iA hlint
<cinimod_>
Ok so I should have said leviosaaa
<cinimod_>
So why does one work and other claims to clash?
<clever>
haskellPackages.hlint is using dynamic haskell linking, and includes all of the dependencies, which conflict with the last thing you installed
<clever>
hlint is using static haskell linking, so it only has a binary and nothing else
<cinimod_>
:thu
<cinimod_>
👍
jgt has joined #nixos
thblt has quit [Ping timeout: 240 seconds]
xeji has joined #nixos
Lears has quit [Remote host closed the connection]
Lears has joined #nixos
hakujin has joined #nixos
iyzsong has quit [Ping timeout: 248 seconds]
mkoenig has quit [Quit: Lost terminal]
<kuri0>
clever, ilp32
hakujin has quit [Ping timeout: 248 seconds]
<kuri0>
in platforms.nix theres stuff which changes the abi so it is possible
mkoenig has joined #nixos
<clever>
kuri0: ah, you need to set something in the area of nixpkgs.config, or nixpkgs.system, not sure on the right value though
ShalokShalom3 has joined #nixos
iyzsong has joined #nixos
ShalokShalom2 has quit [Ping timeout: 256 seconds]
jgt1 has joined #nixos
jgt has quit [Ping timeout: 260 seconds]
b has joined #nixos
<mightybyte>
Ralith_: Ahh yes, I see that in the nix 2 announcement. But how do I actually set up an S3 cache then?
xeji has quit [Ping timeout: 256 seconds]
<aminechikhaoui>
mightybyte: I don't think there is any setup needed, doing e.g nix copy --to s3://foo <store_path> should just make that bucket a binary cache
<mightybyte>
Oh wow
<mightybyte>
That's amazing
Neo-- has joined #nixos
<mightybyte>
I see the help for "nix copy" shows this as an example: "nix copy --to file:///tmp/cache $(type -p firefox)"
<mightybyte>
What is "$(type -p firefox)"?
Izorkin has joined #nixos
<srhb>
mightybyte: Essentially a shell builtin for `which firefox`
<srhb>
which is standalone.
<mightybyte>
echo $(type -p firefox)
<mightybyte>
Oops
<mightybyte>
Cool, thanks.
astiles has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
vandenoever has joined #nixos
<kuri0>
clever, do you know how i should change those ?
<bkchr[m]>
Anyone has an idea what could be wrong?
<ShalokShalom>
ok, it seems like my symlinks break all, anyway what I do
Lears is now known as [Leary]
<ShalokShalom>
directly after the installation
<ShalokShalom>
i deleted /nix before
dw2 has quit [Quit: WeeChat 2.0]
alfie has joined #nixos
xcmw has quit [Ping timeout: 268 seconds]
knupfer has quit [Ping timeout: 265 seconds]
<bkchr[m]>
Sonarpulse: available?
ckauhaus has joined #nixos
Rusty1_ has joined #nixos
justanotheruser has quit [Ping timeout: 260 seconds]
ckauhaus has quit [Ping timeout: 256 seconds]
<dtz>
bkchr: if you file an issue I'll fix it when I'm next at my computer. Or maybe someone else will :). Looks like the code in that expression requires a "dev" output from libc, which isn't there in the Android stdenv. Using "getDev" from lib instead will fix it.
ckauhaus has joined #nixos
<htafdwes[m]>
how can i split systemPackages into multiple declarations?
<bkchr[m]>
dtz: ahh okay
<htafdwes[m]>
like so i can comment out different parts for different systems. like headless vs graphical
<htafdwes[m]>
does the nix configuration language support composable arrays?
<ben>
what are composable arrays?
<zybell_>
++
<ben>
ah, the nixos module system definitely supports specifying systemPackages from multiple places
<ben>
you could split your nixos configuration into multiple .nix files, each declaring some systemPackages, and conditionally include them in the `imports` field in the main file based on which kinda system you're on
<ben>
you can also just have a single systemPackages declaration as a concatenation of multiple parts, some of which are "optional" depending on some flag, using some of the combinators for optional lists or w/e that i'm sure are all over the nixpkgs lib
FareTower has quit [Ping timeout: 248 seconds]
ckauhaus_ has joined #nixos
ckauhaus has quit [Ping timeout: 256 seconds]
<htafdwes[m]>
ben: thanks i'll try that
ckauhaus_ has quit [Ping timeout: 260 seconds]
<clever>
htafdwes[m]: it also gets a bit tricky to put conditions in the imports field, doing config = lib.mkIf is a lot simpler, have a look at almost any nixos module for an example
MinceR has quit [Ping timeout: 246 seconds]
MinceR has joined #nixos
jonasem has joined #nixos
<bkchr[m]>
I want to cross compile `attr` for android, but I get compile errors. Anyone has managed to get this compiling?
Geraldus has joined #nixos
leat has quit [Ping timeout: 264 seconds]
<Geraldus>
Hey folks!
<Geraldus>
Any Haskellers here?
<clever>
Geraldus: yes
<Geraldus>
clever: hi!
<clever>
hello
<Geraldus>
I've upgraded my NixOS recently
<Geraldus>
Now I'm facing strange error message when building my Yesod project
<yorick>
why does cabal2nix put qtah in a librarySystemDepend in cabal2nix cabal://qtah-qt5-0.4.0?
<clever>
cinimod_: yeah, you have 2 copies of nix installed, as dom run `nix-env -e nix` to remove the duplicate, then if you want to upgrade, run `nix-env -iA nixpkgs.nix` as under `sudo -i`
<yorick>
that doesn't seem like it'd work
asuryawanshi has joined #nixos
<jonasem>
Error: target STRING not available
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<jonasem>
Hey guys, I am a novice at making my own nix expressions. I have been trying to create an expression for poldi, a pam module. This is my current attempt: https://gist.github.com/jemilsson/2cf61a3afc4a0ea0be39b6bf39babcc0. However when i run nix-build there is no poldi-ctrl in the result/bin directory. Do you have any idea of what might be wrong? I would really appreciate some help.
m0rphism has quit [Quit: WeeChat 2.0]
ma27 has quit [Quit: WeeChat 2.0]
<clever>
jonasem: add this to the nix file, postInstall = "pwd; ls; ls $out";
<cinimod_>
clever: I am back in business
<cinimod_>
LnL: If I used the Darwin stable channel I think I'd need quite a lot of overlays / overrides
m0rphism has joined #nixos
<cinimod_>
LnL: I will investigate though - thanks
justanotheruser has joined #nixos
<zybell_>
jonasem:lines 1 and 3 should be swapped imo
<LnL>
or rollback your channel until the issue is fixed
<LnL>
18.03 isn't that old :)
mkoenig has quit [Remote host closed the connection]
<cinimod_>
Although it is now working curtesy of brew
* cinimod_
hangs head in shame
ThatOtherGuy has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
ilyaigpetrov has joined #nixos
coot has joined #nixos
shabius has quit [Quit: Leaving]
shabius has joined #nixos
<jonasem>
Thanks alot for your suggestions. I swapped line 1 and 3. I also added the postInstall suggested by clever. However it still doesnt work. I suppose you want to have a look at the output of the postInstall commands?
<clever>
jonasem: it looks like the makefile does have an install rule, but its probably not installing what you want it to install
<clever>
jonasem: i think you want to change the ls command to `ls -l src compile tools` and see where the binary was left
<jonasem>
Ah, ok. So you believe the make places a binary somewhere that isn't exported to $out?
<clever>
yeah
<clever>
so you need to put a cp command into the postInstall, to copy it to $out/bin/
glines has quit [Ping timeout: 264 seconds]
glines has joined #nixos
krey has quit [Ping timeout: 260 seconds]
<jonasem>
I jumped in to nix-shell and ran the commands manually. I then ran "find . -name "poldi-ctrl" " but got no results. It seems something is wrong when compiling :S
<clever>
jonasem: you may need to check ./configure --help
<Myrl-saki>
clever: I don't really have much to say, but what really throws me off is that the non-static build of qemu doesn't have the same problem as the static build.
htafdwes has left #nixos ["WeeChat 1.9.1"]
<Myrl-saki>
clever: Basically, run it under strace, and enjoy 100 MB of data, full of mmap/munmap loop.
<jonasem>
clever: Thanks a lot for helping me out! :)
<Myrl-saki>
clever: FWIW, this is the strace from the nixpkgs qemu. http://ix.io/18n1
<Myrl-saki>
clever: Search "gnemul", then look down, you should see `mmap(0x1000, 4294901760, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x10000`
<Myrl-saki>
OTOH, you could just search that immediately lol.
<Myrl-saki>
This is what I get from the static build.
<clever>
Myrl-saki: at a glance, it appears to be allocating a 4gig chunk of ram starting at 0x1000
<Myrl-saki>
clever: Yeah, but what confuses me is the difference between mmap behavior.
<clever>
Myrl-saki: the 1st argument is a hint at where to put it
<Myrl-saki>
clever: Mhm. The calls are similar, I believe.
<clever>
but qemu doesnt know what is already in use, and when trying to get the entire 4gig chunk to fit within the 1st 4gig of ram
ckauhaus has quit [Ping timeout: 248 seconds]
<clever>
the kernel defaults to putting it higher up in the address space
<Myrl-saki>
Makes sense.
jonjitsu has joined #nixos
slyfox has quit [Ping timeout: 268 seconds]
pkill9 has quit [Quit: WeeChat 2.1]
s2mitrov has joined #nixos
<Myrl-saki>
Just a bit curious. What other OS, except probably Guix, has practically first-class support for multi-arch packages?
slyfox has joined #nixos
krey has joined #nixos
<s2mitrov>
has anyone here been able to get ggez working on nixos? (Rust gamedev framework)
<s2mitrov>
https://i.imgur.com/l0fp8Da.png is the issue i'm having - not really a big deal since Piston is working fine for me, just curious if anyone here's had the same issue and knows of a solution
bennofs has joined #nixos
MP2E has joined #nixos
<Myrl-saki>
clever: Can I set the arch with callPackage?
<clever>
Myrl-saki: the arch has to be set when you import nixpkgs
<Myrl-saki>
clever: Okay. I'll submit a PR in 3 mins.
<clever>
oh, but there is a 2nd pkgs
<clever>
Myrl-saki: pkgsi686Linux is a 32bit version of pkgs
<clever>
so pkgsi686Linux.callPackage only ever makes 32bit programs
<Myrl-saki>
clever: `callPackage_i686`?
<Myrl-saki>
What's that for?
<clever>
the same thing
<clever>
just an alias
<Myrl-saki>
clever: Okay, I'll choose that, since I don't think I can refer pkgsi686Linux from the overlay?
<Myrl-saki>
I believe `self` is `pkgs`?
<clever>
self.pkgsi686Linux.callPackage
<Myrl-saki>
Okay, I'm wrong.
<Myrl-saki>
Lmao
<Myrl-saki>
I'll choose the alias, because it looks cleaner.
shabius has quit [Remote host closed the connection]
<clever>
Myrl-saki: another handy but optional thing, if you run 'git reset --soft revision' it will forcibly change the commit the current branch points to, without loosing any files
<clever>
Myrl-saki: so you could switch back to the 1st commit in the pr, then amend again
<clever>
then the 2nd commit just wont exist, the 1st will be everything
alexteves__ has quit [Ping timeout: 248 seconds]
<clever>
Myrl-saki: and i dont think the last commit you made has the changes
<clever>
robstr: it works something like resources.security-groups
<clever>
it may be in the nixops manual
<robstr>
clever: yea i found it, but from what i understood is that you can _attach_ the instance to a upfront created security group, but it would be nice to specify it from the nix language
<clever>
robstr: yeah, resources.security-groups lets you define the security groups in nix
justanotheruser has quit [Ping timeout: 265 seconds]
WhittlesJr has joined #nixos
WhittlesJr has quit [Client Quit]
WhittlesJr has joined #nixos
<WhittlesJr>
Here's an easy one: So I'm on the 18.03 channel. If I want to try modifying a service in nixpkgs, is there a way to rebuild/switch with those changes without having to rebuild the whole world?
<WhittlesJr>
Is nix-shell the answer?
blankhart has quit [Ping timeout: 256 seconds]
<symphorien>
can you be more specific on what you are trying to achieve ?
drakonis has joined #nixos
<fadenb>
WhittlesJr: I usually clone nixpkgs and switch to the same commit currently used by the channel
<fadenb>
that way everything except what I changed is cached
<nschoe>
Hi everyone :) I'm having a small problem. I'm trying to test libcryptopp. So I wrote a basic main.cpp file that has #include "filters.h", then I ran `nix-shell -p cryptopp`, and once inside when I try to compile with `g++ -lcryptopp` I've got "fatal error: filters.h: No such file or directory".
<fadenb>
You can check ://howoldis.herokuapp.com to find out which commit the channel currently is on
<nschoe>
I think I still haven't grasped how nix / nixOS works ^^ Is it not enough beeing in a nix-shell with -p cryptopp?
<fadenb>
and you of course have to tell your system to use local nixpkgs instead of the channel
<symphorien>
nschoe: try include <cryptopp/filters.h>
<nschoe>
symphorien, okay let me try
<symphorien>
see tree $(nix-build --no-out-link "<nixpkgs>" -A cryptopp)
<nschoe>
symphorien, OMG it worked. thanks. How could I know that?
<symphorien>
nschoe: see the command above, filters.h is not directly in .../include but in .../include/cryptopp
<nschoe>
symphorien, okay, thanks.
nD5Xjz has joined #nixos
<nschoe>
symphorien, so is it common to build the package with --no-out-link, and then look at the resulting path to see how it is organized?
<symphorien>
this is how I did that, because cryptopp was not in my store
<clever>
nschoe: i tend to just build it without --no-out-link, then poke around in result
<nschoe>
symphorien, okay, thanks.
<nschoe>
clever, yeah, I guess it's the same. It's just a matter of not forgetting to delete result/
<nschoe>
clever, thanks.
<symphorien>
but for example in your case, cryptopp is in the $buildInputs of your shell so you just have to echo $buildInputs and tree the corresponding path
<nschoe>
symphorien, ah yes, tried it, indeed. This makes sense.
<nschoe>
And one last thing, if I may (which _totally_ proves that I still don't get how nix/nixOS works :/). Why is it that I cannot compile (get the same error) my file, when I'm not into the nix-shell with -p cryptopp, but knowing that I did nix-env -iA nixos.cryptopp
Arcaelyx_ has joined #nixos
<nschoe>
As I understand it, nix-env -iA installs the packages (here the library) and makes it available to my user. So why cannot I compile my file?
<nschoe>
symphorien, clever thanks for that. I was suspecting this, but you made it clear.
<WhittlesJr>
symphorien: That works too... I think I'll try that first. Thanks!
<nschoe>
Okay, so if I'm developing a piece of software, and I need a library (like cryptopp in my case), what is the correct, nixOS way of doing it? Should I make a default.nix file, with the library requied in it, and always nix-shell it before developping?
<symphorien>
yes, and you can even name it shell.nix
<symphorien>
(it it the real default for nix-shell)
Arcaelyx has quit [Ping timeout: 276 seconds]
roconnor_ has joined #nixos
roconnor has quit [Ping timeout: 265 seconds]
<tertle||eltret>
im on Nix and I cant install visual studio? what gives?
frank87_ has quit [Remote host closed the connection]
<nschoe>
symphorien, oh yeah, sorry. I actually already do this with Haskell, through cabal2nix.
frank87 has joined #nixos
<nschoe>
Thanks symphorien, clever for the help.
jgt2 has quit [Ping timeout: 256 seconds]
<symphorien>
tertle||eltret: well I have vscode here, how did you try to install it ?
<tertle||eltret>
i did install.py VS2018.exe
<tertle||eltret>
with a modified install.py file
<symphorien>
tertle||eltret: which os ?
ajs124 has left #nixos ["Machine going to sleep"]
spear2 has joined #nixos
<tertle||eltret>
symphorien: NixOS
<symphorien>
then nix-env -iA nixos.vscode
<drakonis>
wait, why is the default for wine to not have 64bit support?
justanotheruser has joined #nixos
arianvp2 has joined #nixos
Arcaelyx_ has quit [Read error: Connection reset by peer]
Arcaelyx has joined #nixos
arianvp2 has quit [Ping timeout: 260 seconds]
ryantrinkle has joined #nixos
nschoe has quit [Ping timeout: 256 seconds]
akaWolf has quit [Remote host closed the connection]
<zybell_>
drakonis:Because a simulated 64bit windows must simulate access to 32bit programs, that needs to include 32bit wine and develop the thunking on windows side, which probably includes RPC between the wines.
<cocreature>
can I get "nix build" to report the actual hash on a hash mismatch for builtins.fetchTarball instead of just reporting “store path mismatch in file downloaded from …”?
<drakonis>
zybell_, i should've made it clear
<zybell_>
you can develop it if you want,but because 64bit windows programs usually come in 32bit flavor too because of old hardware,and new programs we try to encourage builds for linux.
<drakonis>
the nixos package does not have 64 bit wine as the default
<drakonis>
newer windows programs no longer come in 32 bit flavors
<zybell_>
they should come in native linux flavor,bug the author.
cinimod_ has quit [Quit: Connection closed for inactivity]
akaWolf has joined #nixos
coot has quit [Quit: coot]
<jluttine>
hmm.. one package derivation needs a path to ...../lib/cmake/Qt5. i just gave it as "${qtbase}/lib/cmake/Qt5". now it started downloading and building a huge amount of dependencies... i'm already running KDE and a bunch of Qt apps, why these downloads and builds.. am i doing something wrong..
<sphalerite>
jluttine: which package derivation is it?
<jluttine>
(that isn't up to date atm, qt stuff missing there)
<jluttine>
(perhaps i'll pull my current state there)
<sphalerite>
jluttine: is your branch based on master?
<jluttine>
nixos-unstable
<sphalerite>
hm then I don't see any reason it would do that
orivej has joined #nixos
<jluttine>
sphalerite: pretty sure i'm just doing something wrong.. i updated the pull request
jgt2 has joined #nixos
<drakonis>
zybell_, hmm i want to run windows applications with it
<drakonis>
not things i can run on linux
<jluttine>
sphalerite: ooohps, now i understand...
<jluttine>
sphalerite: i had updated cmake locally for testing :) :)
<sphalerite>
oh, yeah, that would explain it. A lot of things depend on it :p
pie__ has joined #nixos
<zybell_>
drakonis:you could run nix on windows,using cygwin. then your apps will be supported natively.
<drakonis>
idgi
<drakonis>
you're missing the point here
judson has joined #nixos
<drakonis>
i don't want to use windows
<drakonis>
also i can run nix on windows with wsl because cygwin is pretty crappy
<judson>
Did I misunderstand - I thought there was something semi-magic that happened when you add cmake to a stdenv?
<judson>
I see that there's a cmakeConfigurePhase defined, but it doesn't seem to hook in?
<LnL>
it also changes the default configurePhase to run cmakeConfigurePhase instead
asuryawanshi has quit [Ping timeout: 256 seconds]
aarvar has left #nixos [#nixos]
xcmw has joined #nixos
<zybell_>
wsl is crappier than cygwin atm,but that can change. you essentially have 4 options:run windows programs on windows,run linux programs on linux,use already developed compatibility(wine32bit)for no longer supported windows binarys,develop new compatibility for programs that are currently supported. If that new compatibility is called electron/java/npm/wine64/whatever... you can hash out with the authors of the software that has to be developed
<zybell_>
in it. But be warned:The 64bit API of windows consists not only of the 32bit API translated to 64bit, but *additionally* of the complete 32bit API in its natural beauty, and additionally 64bit specific extensions. HAVE FUN!
mmlb has quit [Ping timeout: 240 seconds]
FareTower has joined #nixos
<drakonis>
crappier than cygwin? say what?
<ekleog>
Anyone here using the mozilla rust-overlay? I'm unable to compile anything with a rustc from the overlay, apparently it's not finding the crate for core? :/
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
thblt has joined #nixos
maingo has joined #nixos
<tertle||eltret>
symphorien: i want to install Visual Studio Professional
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<symphorien>
ah sorry I misunderstood
knupfer has quit [Remote host closed the connection]
simpson has joined #nixos
<drakonis>
hmm maybe the problem is that i didn't delete debian's .wine folder
<drakonis>
oh nevermind, wine is still 32-bit only by default
coot has joined #nixos
asuryawanshi has quit [Ping timeout: 240 seconds]
<jluttine>
trying to build a derivation that has qt5 as a dependency. build fails with error: /nix/store/8ba9lhzdr13w4vqpam9ss52cq5svrpbk-qtbase-5.10.1-dev/include/QtGui/qopengl.h:141:13: fatal error: GL/gl.h: No such file or directory
<jluttine>
i've added "${mesa}/include" to include path, so i don't understand why that file isn't found.. :/
<drakonis>
i suppose i might need some cheese with my wine
<ptech>
Anyone managing Emacs with Nix that has convinced it not to use the built-in org-mode?
<robstr>
Hi, I struggle to deploy my application with nixops, https://gist.github.com/rsoeldner/08b7d09c3657dbf85355a7474af43de0 - nix-build release.nix works, running an instance on aws with access to the internet works too. I think my problem is located in the `machine.nix` file and how to _load_ the stuff from _release.nix_ can someone help here ?
<jluttine>
clever: thanks, that worked!
[Leary] has quit [Remote host closed the connection]
phry has quit [Quit: WeeChat 2.0]
<ekleog>
oh nvm my question, installing [cargo rustc rust] fails, but [rust] appears to work fine… weird
seville has quit [Ping timeout: 268 seconds]
sehqlr has joined #nixos
fendor has quit [Quit: Leaving]
phry has joined #nixos
nur0n0 has joined #nixos
hotfuzz_ has joined #nixos
hotfuzz has quit [Ping timeout: 240 seconds]
phry has quit [Quit: WeeChat 2.0]
phry has joined #nixos
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
thblt has quit [Remote host closed the connection]
coot has quit [Quit: coot]
srdqty has quit [Ping timeout: 240 seconds]
srdqty has joined #nixos
marzzzello has joined #nixos
pie__ has quit [Quit: Leaving]
sehqlr has quit [Ping timeout: 276 seconds]
thblt has joined #nixos
sehqlr has joined #nixos
statusfailed has quit [Quit: leaving]
statusfailed has joined #nixos
statusfailed has quit [Client Quit]
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
<steveeJ>
is anyone using a tool like foreman or ubuntu maas to deploy NixOS?
asuryawanshi has joined #nixos
<simpson>
steveeJ: Does nixops count?
<steveeJ>
simpson: AFAICT no, because it doesn't provider bootstrapping of baremetal machines
<steveeJ>
s/provider/provide
<simpson>
steveeJ: It supports Hetzner bare-metal, or so I hear. But you're thinking on-prem, sounds like
<simpson>
Well, bare-metal setups don't really come in a canonical flavor, do they?
<simpson>
Ah, yeah, that's covered in the issue.
<nur0n0>
has anyone had luck with node2nix? I'm having some issues so I'm just wondering if its worth the time investment
<simpson>
nur0n0: It's used internally to nixpkgs, so it definitely does do things. But also there tend to be issues with any of the package-manager adapters.
jrolfs has joined #nixos
<nur0n0>
simpson: thanks, that's good to know. my knowledge of node is not very deep so that might be the issue; i'll have another go at it
<phry>
nur0n0: node2nix is a bit of a hassle. if you want to build a derivation, there's no way around it, but just for development I would rely on npm or yarn
<phry>
nur0n0: what do you want to achieve/have you tried so far?
<bkchr[m]>
zimbatm: online?
spear2 has quit [Remote host closed the connection]
<clever>
steveeJ: just upload the tarball to any linux machine, run 1 command, and its running nixos in a ramdisk, run 1 more command, and the disk is wiped and it now has nixos
<steveeJ>
clever: I'm currently looking at it, it seems interesting
<bkchr[m]>
Anyone managed to cross compile gettext for android?
<steveeJ>
clever: i.e. I don't actually require the kexec trick as the nixos ramdisk over ipxe would be the first OS
<manveru>
phry: but if you have no yarn.lock yet, you'd have to keep that in sync
<clever>
steveeJ: this configures a complete router, with NAT, bind, tftp, nginx, and dhcpd
<phry>
manveru: luckily I've only had simple thing sto package until now ;)
<manveru>
phry: yeah... once you've got a few thousand dependencies, node2nix is just not useful :|
<clever>
steveeJ: you can also modify the 1st command from session.md to -A cofnig.system.build.image, then result will just be a directory with a naked kernel+initrd+cmdline, configure the bootloader yourself
<steveeJ>
clever: this seems cool. let's have a chat some time next week. it looks like we could build a nice model from this
<nur0n0>
phry: I suppose I'm overengineering a blog. I only really need a small JS framework (mithril) and webpack to set it up. `webpack` and `webpack-cli` are listed as dev dependencies in `package.json` and then I run `node2nix --development -8 -l` followed by `nix-shell -A shell`, but webpack is not visible
<nur0n0>
I've played with different node versions and different flags to node2nix, but nothing seems to work
<clever>
steveeJ: you set a few basic options, like the hdd type (vda, sda, nvme0n1), uefi, luks, boot/swap size, and then it generates a bash script to fully automate the install
<clever>
steveeJ: so you can just ssh into the machine and run `justdoit`, and your done
<nur0n0>
manveru: thanks, I'll consider that first before I default to using npm directly
<phry>
nur0n0: when you try to execute webpack (I guess from a buildPhase script or something), are you just calling "webpack" or are you specifying the package that should contain it?
<steveeJ>
clever: and "justdoit" would then place nixos on the local drive in the box?
<clever>
steveeJ: yep
<steveeJ>
clever: so could we automate that within the initrd and have it reboot afterwards so the installation is fully automated?
<phry>
clever: could you do a writeup on that in the wiki? that sounds highly interesting, but right now I'm looking at it and can't really grasp how to use it
<clever>
phry: i wasnt directly involved in the creation of those scripts, i just picked up maintaince of them after they where finished
<steveeJ>
clever: at that stage we could check for a disk partition layout. if one's found we bail out
<phry>
clever: but unlike me, you know how to use them ;)
<clever>
steveeJ: the netboot_server.nix variant keeps the netbootipxescript intact (line 18), so you can just chainload netboot.ipxe
jrolfs has quit [Read error: Connection reset by peer]
<clever>
the kexec variant omits it, since ipxe wasnt in the loop
ivanivan has joined #nixos
jrolfs has joined #nixos
<clever>
steveeJ: my original use-case for netboot_server.nix, was to turn my old laptop into a complete router and netboot server, which would forcibly install nixos onto the new laptop, no need to mess with usb sticks or iso's
<clever>
which is why the WAN interface is pointing at a wifi card
<infinisil>
Why can I never have a smooth upgrading experience
<nur0n0>
phry: is there any way to directly access the executable?
<dhess>
Anyone else having problems with Hydra on nixos-unstable or nixos-unstable-small? I'm running into a variety of problems and I'm curious that there don't appear to be any issues filed yet
<samueldr>
nur0n0: assuming it's installed, it would be under node_modules/.bin/webpack
<samueldr>
(inside a nix-shell)
<samueldr>
(well, not only inside a nix-shell, but any non -g installs)
marusich has quit [Quit: Leaving]
slyfox has quit [Quit: :)]
<ivanivan>
I updated NixOS to 18.03 recently, but never changed system.stateVersion from "17.09"
<ivanivan>
I just noticed that I never updated system.stateVersion in my configuration (it's still set to "17.09").
<ivanivan>
I'm guessing it's safe to update that now?
<ivanivan>
The NixOS release notes mention a change to matrix-synapse defaults for stateVersion 18.03, but that's all they say.
<ivanivan>
y
<phry>
nur0n0: or you access it by importing the composition file and access it via "${composition.sources.webpack-4}/bin/webpack" or something like that
<phry>
but I might be overthinking that
<samueldr>
ivanivan: you shouldn't change the stateVersion unless the docs indicate you should
<samueldr>
what stateVersion means is "at which nixos version was the stateful stuff made", which is mostly used by databases and such
<samueldr>
this allows changing configuration in the future without breaking existing stuff
<ivanivan>
samueldr: I don't see any such indications in the release notes for previous releases.
jrolfs has quit [Read error: Connection reset by peer]
<ivanivan>
samueldr: Thanks
<samueldr>
though, it *can* be updated safely, but if you do, first read the release notes, then grep through <nixpkgs/nixos> for stateVersion on *anything* you are using
<samueldr>
some manual intervention would be required when changing it
<MichaelRaskin>
Including things used by default or indirectly
<nur0n0>
samueldr: sorry, something must off in my mental model. why would a node_modules directory be created? I assumed the nix-shell would just make sure `/nix/store/***webpack/bin` is in $PATH
<samueldr>
nur0n0: oh, using node2nix? then I wouldn't know, sorry, I was assuming (like I'm used to) only adding nodejs and yarn to shell.nix or default.nix
statusfailed has joined #nixos
<drakonis>
ryantm, spyder seems to be pulling in from python 2 instead of python 3 by default
<drakonis>
hmm wait
<drakonis>
this is just the automated commit
slyfox has joined #nixos
sehqlr has quit [Quit: Konversation terminated!]
<ivanivan>
samueldr: I'm kind of inclined to update it since I only see one difference listed in the release notes and would like to stay current as possible. I haven't yet grepped through <nixpkgs/nixos> yet though. I'll do that.
<nur0n0>
samueldr: ah ok, that actually might be the most painless option
<infinisil>
I currently have 3 nixpkgs commits cherry-picked to fix my system :/
<ryantrinkle>
Could not find a version that satisfies the requirement requests (from python-u2flib-host>=3.0.2->ledgerblue==0.1.17) (from versions: )
<ryantrinkle>
does anyone know what that means, offhand?
<nur0n0>
samueldr: cool, I think i'll go with something similar. fwiw, using something like http://entrproject.org/ should remove any concerns about forgetting to update the yarn.nix
<max___>
nodejs question. I'm trying to make a derivation for a node program. I need to get its dependencies with npm, but when I try I get an error because the filesystem is read only
<ryantrinkle>
python-u2flib-host 3.0.3 is an input to the derivation, and another line of the output describes it as "already satisfied"
<makefu>
ryantrinkle: this is the current state of the package in nixpkgs or an update you are working on?
<max___>
I can't even doa make -p $out, so I'm afraid I'm missing something basic :p
<clever>
steveeJ: yeah, if you want luks, somebody has to type it on the console
<ryantrinkle>
makefu: it has already been bumped in nixpkgs, but it wasn't working
<clever>
steveeJ: but if you check the luks man pages, that can probably be automated
<ryantrinkle>
0.1.16 was previously working, but 0.1.17 was not working on master as of last night
<makefu>
ryantrinkle: okay let me check who borked it
<clever>
steveeJ: also, you can `nix-build release.nix -A luks_legacy` then ./result/bin/qemu_test1 to boot the generated kernel+initrd under qemu for testing justdoit
<nur0n0>
max___: you mean `mkdir -p $out`?
<clever>
steveeJ: and after you install and shutdown, ./result/bin/qemu_test2 to boot the hdd without the generated kernel+initrd, to confirm the install can boot
<ryantrinkle>
makefu: looks like it might have been an automated bump
<ryantrinkle>
but the deps have changed
<ryantrinkle>
i'm not very familiar with the python packaging in nix, so i'm a bit confused about how to fix this
<clever>
steveeJ: there are entries in release.nix for legacy on sata, with and without luks
<clever>
steveeJ: uefi on sata, and also 2 for nvme
<max___>
@nur0n0: yeah sorry ^_^
<makefu>
ryantrinkle: FRidh[m] bumped the package it seems
<ryantrinkle>
any idea how i can help fix it?
<ryantrinkle>
i'd like to get 0.1.17 working
<makefu>
i will try the build myself real quick
<nur0n0>
max___: where are you running that command?
<steveeJ>
clever: and you wrote all this for an old and a new laptop? :-D
<max___>
inside the nix-shell
<clever>
steveeJ: justdoit+kexec was written mainly for installing to remote servers in datacenters
<clever>
steveeJ: and then i repurposed pieces of it for installing to the new laptop
seville has joined #nixos
<makefu>
ryantrinkle: mhhh with the current unstable channel the package builds
<makefu>
18.03 sorry
<makefu>
ah no, sorry
<ryantrinkle>
makefu: i'm on master
<ryantrinkle>
i don't have any problem with the fact that it's broken; just want to help it get fixed :)
<makefu>
normally the error hints towards a new dep
<max___>
nur0n0: I read somewhere in StackOverflow that it should work in nix-env but not in nix-shell, but I get the same error putting the command in buildphase or configurephase in nix-env
<makefu>
python-u2flib-host is a new dependency so there are 2 options
<max___>
nur0n0: Then the derivation must be wrong...
<clever>
steveeJ: but in theory, you can just replace the switch block with a database, and use any server-side scripting you want
<jeaye>
clever: You've had this kexec approach working for multiple years, but I haven't seen an approachable project out of it. The appeal of nixos-in-place is that it's easy.
<ryantrinkle>
makefu: ah, ok; maybe they took out their tests or something
<clever>
jeaye: i have recently been thinking about adding arx into my kexec tool
<makefu>
just add a comment above it which states this. if they are using another test runner, then you can override the checkPhase
frank87 has quit [Remote host closed the connection]
<clever>
jeaye: so you can just nix-build foo.nix && cat result | ssh root@host, and your done
foldingcookie has quit [Ping timeout: 260 seconds]
frank87 has joined #nixos
<jeaye>
Do it, document it, and spread the word so people can use it!
<clever>
i need to get some sleep now, but i can look into that tomorrow
* clever
heads off to bed
<jeaye>
night
<makefu>
bye
<steveeJ>
clever: good night and thanks for the detailed information!
<phry>
makefu: that article just leves out the "justdoit"-part and the title is not really appealing to anyone not wanting to use a Scaleway server. Also, it does not explain why the steps are done.
<makefu>
not *yet*
jmeredith has joined #nixos
<max___>
nur0n0: wait, you mean in nix-env? If so, yes, I can di mkdir. But then do I have to copy the whole $src to $out, and then npm install? If I do that, I get no error on creation of the folder (I think), but I get EACCESS error on /homeless-shelter
<phry>
makefu: yup. but at the current state, it's more "notes for someone who already knows how it works". Reading those docs will definitely make it easier for me to use it, but like "it only takes 7 instead of 8 hours to figure it out" easier
<makefu>
the article started as a walkthrough for a scaleway installation, if we can split the generic part out this would be fantastic of course. luckily this is a wiki and in theory everybody has at least the possibility to clean up
<makefu>
i will also need to go now, see you
<phry>
makefu: so I'm unfortunately not in a position to edit the article as I don't have a clue what it actually talks about :/
xeji has quit [Quit: WeeChat 2.0]
<phry>
bye makefu :)
thblt has quit [Ping timeout: 240 seconds]
<nur0n0>
max___: so you moved `mkdir -p $out` to `installPhase` and are no longer getting the original error? what is the source of the second errror?
justanotheruser has quit [Ping timeout: 240 seconds]
jrolfs has joined #nixos
hiratara has joined #nixos
jgt2 has quit [Ping timeout: 248 seconds]
jrolfs has quit [Read error: Connection reset by peer]
<Myrl-saki>
/nix/store/w0lb11jy5q3vizidq33id9c30pnpq66y-ghc-8.2.2/lib/ghc-8.2.2/bin/ghc-pkg: symbol lookup error: /nix/store/w0lb11jy5q3vizidq33id9c30pnpq66y-ghc-8.2.2/lib/ghc-8.2.2/bin/ghc-pkg: undefined symbol: Cabalzm2zi0zi1zi0_DistributionziParseUtils_locatedErrorMsg3_bytes
<Myrl-saki>
On the last package.
<Myrl-saki>
On the *LAST* package..
<Myrl-saki>
After 3 days of compiling
max___ has quit [Quit: Page closed]
harumph has joined #nixos
<nyanloutre[m]1>
Hi ! I think I managed to setup the matrix server correctly on my NixOS server (if you can read me 😁
<nyanloutre[m]1>
Hi ! I think I managed to setup the matrix server correctly on my NixOS server (if you can read me 😁)
wqsdkjqhskdjqhkd has joined #nixos
<nyanloutre[m]1>
Very nice distribution indeed
wqsdkjqhskdjqhkd has quit [Client Quit]
<MichaelRaskin>
Yes we can read your message
<MichaelRaskin>
Well, I can, but I hope there is no epic failure.
<MichaelRaskin>
(apparently there is no netsplit going on)
cufisz has quit [Ping timeout: 260 seconds]
<zybell_>
could it be random memory error? there is that symtab that at beginning of comp has name ...2... at end of compilation (3 days no read no write)the value is now computed and the place to stuff it in is searched,in the meantime the entry has changed to ...3... and cosequently ...2...(which is searched for)is not found?the structure of the name suggests that may have happened.
<wilornel>
I should fork the repo. Edit the default.nix file. Go to that directory. Run a build command (forgot what it was). Test that it does build the right version and then submit the PR?
<samueldr>
pretty close!
<drakonis>
its kind of weird
<wilornel>
zybell_: that didn't help though
<drakonis>
it fetches a specific revision
<wilornel>
and drakonis, is nixpkgs and nixos different channels?
<drakonis>
nixos is a channel cut from nixpkgs every often
<zybell_>
wilornel:not on its own line. place it really before the command (like an option,but backward)
<wilornel>
NIX_DEBUG=7 nix-env -iA nixos.tigervnc ? I tried and it gave the same output
<wilornel>
Xvnc TigerVNC 1.7.90 - built Jan 1 1970 00:00:01... build at epoch==0
<wilornel>
hahah
<zybell_>
yeah thats real
<drakonis>
its to make it reproducible
<samueldr>
wilornel: while probably useless, using `-vvvvv` with more or less Vs will show more or less verbosity on all(?) nix commands
<samueldr>
(nix-env -iA will probably not build it)
<drakonis>
that's baffling in a unique way
<drakonis>
vvvvvvvv
<samueldr>
the manpage for each commands has a section explaining the verbosity of each levels :)
<samueldr>
(just re-opened it) four Vs is the current max useful amount of verbosity
<drakonis>
i'm still confused as to why wineWow isn't the default winebuild
<drakonis>
i spent 30 minutes compiling it with wine staging and now i can run pretty much anything
<samueldr>
drakonis: not that I know, but what's the default upstream (wine) build settings?
<samueldr>
AFAIUI, nixpkgs prefers keeping defaults in such situations
<wilornel>
Alright so should I make a PR I guess
aarvar has joined #nixos
<samueldr>
wilornel: try it! it's fun! :)
<drakonis>
WoW64 isn't the default yet
<drakonis>
it has to be enabled with a flag right now
<drakonis>
do provide WoW64 builds though, because these take time
<drakonis>
they recommend shipping WoW64 on 64bit architectures
<drakonis>
"If you just want to build Wine on common hardware with a 64-bit distro, odds are you want a WoW64 build."
<drakonis>
"64-bit Wine built without 32-bit support will not be able to run ANY 32-bit applications, which most Windows binaries are. Even many 64-bit programs still include 32-bit components!"