gchristensen changed the topic of #nixos to: NixOS 18.03 and Nix 2.0 are released! || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
<kerrhau> ottidmes: I just want to write projects in clisp using sbcl
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
<ottidmes> kerrhau: sorry, I have no experience with that, there are some common lisp users here on the IRC, maybe they can help you
* ottidmes off to get some sleep
<kerrhau> alright, thanks anyway!
hakujin has quit [Ping timeout: 248 seconds]
ma27 has quit [Ping timeout: 256 seconds]
sanscoeur has joined #nixos
freeman42x]NixOS has quit [Ping timeout: 256 seconds]
tertle||eltret has joined #nixos
woodson has joined #nixos
lo_mlatu has quit [Ping timeout: 248 seconds]
jtojnar has joined #nixos
Fare has quit [Ping timeout: 240 seconds]
Fare has joined #nixos
woodson has quit [Quit: Leaving]
alfie has quit [Quit: Bye.]
xcmw has quit [Ping timeout: 240 seconds]
astiles has quit [Remote host closed the connection]
ryanartecona has joined #nixos
astiles has joined #nixos
xcmw has joined #nixos
astiles_ has joined #nixos
astiles has quit [Ping timeout: 260 seconds]
astiles_ has quit [Ping timeout: 240 seconds]
thc202 has quit [Ping timeout: 248 seconds]
judson has quit [Remote host closed the connection]
ottidmes has quit [Quit: WeeChat 2.0]
astiles has joined #nixos
xcmw has quit [Ping timeout: 260 seconds]
astiles has quit [Ping timeout: 265 seconds]
mkoenig has quit [Remote host closed the connection]
mkoenig has joined #nixos
xcmw has joined #nixos
spear2 has quit [Quit: Leaving]
iyzsong has joined #nixos
bennofs has quit [Quit: WeeChat 2.0]
goibhniu has quit [Ping timeout: 240 seconds]
mkoenig has quit [Remote host closed the connection]
WhittlesJr has quit [Quit: Page closed]
infinisil has quit [Quit: Configuring ZNC, sorry for the join/quits!]
infinisil has joined #nixos
pkill9 has quit [Ping timeout: 240 seconds]
mkoenig has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
ryantrinkle has quit [Ping timeout: 248 seconds]
xcmw has quit [Ping timeout: 240 seconds]
chisui has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
zybell_ has quit [Ping timeout: 256 seconds]
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
chisui has joined #nixos
lo_mlatu has joined #nixos
markus1189 has joined #nixos
Supersonic112 is now known as Supersonic
nuncanada has quit [Quit: Leaving]
mbrgm has quit [Ping timeout: 260 seconds]
Neo-- has quit [Ping timeout: 265 seconds]
mbrgm has joined #nixos
markus1199 has quit [Ping timeout: 240 seconds]
lo_mlatu_ has joined #nixos
xcmw has joined #nixos
zybell_ has joined #nixos
_habnabit has quit [Quit: ZNC - http://znc.sourceforge.net]
_habnabit has joined #nixos
ertes has joined #nixos
iyzsong has quit [Ping timeout: 256 seconds]
jgt has quit [Ping timeout: 265 seconds]
lo_mlatu has quit [Ping timeout: 260 seconds]
lo_mlatu_ is now known as lo_mlatu
pie_ has quit [Ping timeout: 256 seconds]
chisui has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/06c576b0525 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
ericsagnes has quit [Ping timeout: 268 seconds]
xcmw has quit [Ping timeout: 264 seconds]
ericsagnes has joined #nixos
endformationage has quit [Quit: WeeChat 1.9.1]
Fare has quit [Ping timeout: 256 seconds]
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]
lo_mlatu_ has quit [Ping timeout: 256 seconds]
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/06c576b0525 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
lo_mlatu_ has joined #nixos
mightybyte has joined #nixos
<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]
thblt` is now known as thblt
<Akii> yesterday someone suggested I could import a derivate from a private git like so http://lpaste.net/365076#line22
<Akii> of course doesn't work
<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
<Akii> is that not how you bring a variable into scope
<clever> yeah, that should work
<Akii> welp it does not
<clever> where did you put the reference to this file?
<clever> try rerunning the command with --show-trace and post the backtrace
<Akii> I've a packages.nix thing where I want to include the package I'm referencing here
<Akii> in the imports
<Akii> that's probably wrong
<clever> yeah
<clever> imports is only for nixos modules
<clever> packages go into nixpkgs.overlays
<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
arianvp2 has quit [Ping timeout: 260 seconds]
<Akii> fiddled around until it stopped complaining: http://lpaste.net/365078
<Akii> still doesn't work of course
<clever> Akii: what error does that fail with?
<clever> oh
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
<Akii> these*
<clever> that file is already doing the callPackage, so you instead want to just call import on it
<clever> overlays = [ (self: super: { utleague = import ./custom-packages/utleague.nix; }) ];
iyzsong has joined #nixos
<clever> and this time without {}, because it doesnt accept any args
<Akii> if these functions had some notion of an output
<Akii> overlays = [ (self: super: { utleague = ./custom-packages/utleague.nix; }) ];
<Akii> like this?
<Akii> ah there
<clever> it needs the import function at the start, i pasted an example already
<Akii> ah
<Akii> woow
<Akii> fiiinnallly
<Akii> just took me days
<clever> you can also fold the self: super: into custom-packages/utleague.nix
<clever> then use self instead of import <nixpkgs> {}
<clever> then it becomes overlays = [ (self: super: import ./custom-packages/utleague.nix) ];
<Akii> tried that but then it complained about an unexpected let statement
<clever> it goes before the let
kerrhau has quit [Ping timeout: 260 seconds]
<clever> self: super: let config = {...}; nixpkgs = (...); pkgs = ..; in pkgs.haskellPackages....
thc202 has joined #nixos
jgt has quit [Ping timeout: 256 seconds]
kai_w_ has quit [Quit: Konversation terminated!]
paraseba has quit [Ping timeout: 256 seconds]
<Akii> okay, sounds like a good refactoring; also will rename "custom-packages" to overlays
<Akii> thanks
<Akii> I wish one could just google for all of this
paraseba has joined #nixos
<Akii> overlays is like 12.1 of the nix documentation and even then that paragraph makes absolutely no sense
<zybell_> put it in the wiki
nD5Xjz_ has quit [Ping timeout: 268 seconds]
<kuri0> how do I change the abi in nix configuration file ?
chimay has quit [Quit: WeeChat 2.1]
Mateon1 has quit [Remote host closed the connection]
Mateon1 has joined #nixos
<Akii> zybell_ this one? https://nixos.wiki/wiki/Main_Page
pkill9 has joined #nixos
asuryawanshi has quit [Ping timeout: 240 seconds]
nD5Xjz has joined #nixos
<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
nD5Xjz has quit [Quit: ZNC 1.6.5 - http://znc.in]
nD5Xjz has joined #nixos
<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 ?
phry has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
knupfer has quit [Ping timeout: 265 seconds]
phry has joined #nixos
astiles has quit [Ping timeout: 256 seconds]
knupfer has joined #nixos
<clever> kuri0: i think youll need to add support in 3 before nixpkgs can support ilp32
coot has quit [Ping timeout: 276 seconds]
kreetx has joined #nixos
kreetx_ has joined #nixos
nD5Xjz has quit [Ping timeout: 260 seconds]
kreisys has quit [Ping timeout: 248 seconds]
FareTower has joined #nixos
<mightybyte> I'm getting an error "fatal error: 'endian.h' file not found" when building libseccomp-2.3.3.drv. Anyone know what's up with that?
<aminechikhaoui> mightybyte: why is it being built in the first place
<aminechikhaoui> should be available in the binary cache
<mightybyte> No clue
<aminechikhaoui> which channel are you using ?
nD5Xjz has joined #nixos
<mightybyte> $ nix-channel --list
<mightybyte> nixos-unstable https://nixos.org/channels/nixos-unstable
<aminechikhaoui> oh you're on darwin
<aminechikhaoui> then I have no idea :D
<avn> libseccomp shouldn't be built on darwin
<LnL> mightybyte: I'm guessing you have allowBroken set
<mightybyte> LnL: I don't see that anywhere in my darwin-configuration.nix. How do I check?
<LnL> nix-instantiate --eval '<nixpkgs>' -A config.allowBroken
<LnL> nix-instantiate --eval '<darwin>' -A pkgs.config.allowBroken
<mightybyte> true
kreetx_ has quit [Quit: leaving]
kreetx has quit [Quit: leaving]
<mightybyte> error: attribute 'allowBroken' in selection path 'pkgs.config.allowBroken' not found
kreetx has joined #nixos
pie_ has joined #nixos
<LnL> so anything non nix-darwin related has allowBroken, that will cause eg. nix to try and enable libseccomp
<mightybyte> Why does allowBroken have that effect?
seville has joined #nixos
<LnL> it changes the availability of packages
nD5Xjz has quit [Ping timeout: 260 seconds]
nD5Xjz has joined #nixos
jgt2 has joined #nixos
silver has joined #nixos
jgt1 has quit [Read error: Connection reset by peer]
phry has quit [Quit: WeeChat 2.0]
phry has joined #nixos
mmlb has quit [Ping timeout: 240 seconds]
nD5Xjz has quit [Ping timeout: 268 seconds]
mmlb has joined #nixos
ditadi has quit [Quit: WeeChat 2.0]
Ridout has joined #nixos
b has quit [Ping timeout: 276 seconds]
maingo has quit [Quit: Connection closed for inactivity]
mmlb has quit [Ping timeout: 264 seconds]
<zybell_> Akii:was afk;yes that one that is linked to from the 'official' wiki(not anymore)webpage. In short yes!
mightybyte has left #nixos [#nixos]
dw2 has joined #nixos
<dw2> how do I view generations in nixos?
mmlb has joined #nixos
<seville> dw2, nix-env --list-generations
sigmundv__ has quit [Ping timeout: 256 seconds]
<TimePath> anyone using nix to create debs or rpms?
ShalokShalom3 is now known as ShalokShalom
* bkchr[m] sent a long message: bkchr[m]_2018-04-21_12:52:16.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/TwLpgvuhSVcKpvxyuCBVEqZQ>
xcmw has joined #nixos
<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
iyzsong has quit [Quit: ZNC 1.6.5 - http://znc.in]
<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
<Geraldus> Setup: Encountered missing dependencies: Cabal ^>=2.2.0 && ^>=2.0.0,
<Geraldus> clever: any ideas?
<clever> does your cabal file define a min cabal version?
<Geraldus> Let me check
<Geraldus> clever: Yes, it does. I have Cabal >= 1.20
<cinimod_> Can anyone tell me how I might set about installing gnuplot with qt? Via homebrew I'd do `brew install gnuplot --with-qt`
<clever> can you gist the entire output from the failing build?
<Geraldus> Yep
<cinimod_> I assume an overlay? But what attribute do I overlay?
<clever> cinimod_: add gnuplot = super.gnuplot.override { withQt = true; };
<Geraldus> clever: looking carefully at output I see it requires older versions of base, ghc and etc. for some reason
<cinimod_> clever: how did you find `withQt`? I looked here `nixpkgs/pkgs/development/pure-modules/gplot/default.nix` but didn't see anything
<clever> cinimod_: line 15 of that file
<clever> cinimod_: oh, wrong file too, its pkgs/tools/graphics/gnuplot/default.nix
<clever> Geraldus: the failure is within haddock-api, not yesod
<cinimod_> Faulty grepping on my part
<clever> Geraldus: so you want to check the cabal file for haddock-api
<clever> cinimod_: i ran `nix edit nixpkgs.gnuplot` and it opened the right file instantly
freeman42x]NixOS has joined #nixos
<Geraldus> clever: Looks like the issue is in the `nix` section of my stack.yaml
<cinimod_> Lol I didn't know about nix edit
<zybell_> Geraldus it needs ghc 8.4 but tries 8.2.2
<Geraldus> zybell_: Yeah, I see now
<Geraldus> I'm on nixos-unstable
<Geraldus> I assume because I have `nix: packackages` section in my stack.yaml it depends on recent versions of yesod-bin and other tools
leat has joined #nixos
<cinimod_> Can I do something like `nix-env -f /Users/dom/nixpkgs -i let gnuplot = super.gnuplot.override { withQt = true; }; in gnuplot`?
<clever> cinimod_: nix-env -f ~/nixpkgs --arg config '{ packageOverrides = pkgs: { gnuplot = super.gnuplot.override { withQt = true; }; }; }' -iA gnuplot
<Geraldus> clever: I have no haddock-api in direct dependencies
<clever> Geraldus: the error says that yesod-bin depends on it, maybe you just have haddock enabled?
<Geraldus> clever: maybe. I was absent from Haskell world for a while, now everything is hard to remember.
FareTower has joined #nixos
<cinimod_> `error Qt requires a C++11 compiler and yours does not seem to be that.` - that's a new one for me
ma27 has quit [Quit: WeeChat 2.0]
<clever> cinimod_: i think somebody in #nix-darwin mentioned recently that qt is broken on darwin
alexteves__ has joined #nixos
<cinimod_> :(
ma27 has joined #nixos
random-nixor has quit [Quit: Page closed]
<cinimod_> Brew it is then
Geraldus has quit [Quit: Page closed]
ajs124 has joined #nixos
<cinimod_> This was working `stack --nix build`
<cinimod_> Now I get `warning: unknown setting 'signed-binary-caches'`
<LnL> cinimod_: we have a stable channel for darwin
<cinimod_> Followed by `error: imported archive of ‘/nix/store/q0s4js8j1sxfps0c7p2y0rwk1pnw5n3j-source’ lacks a signature`
<clever> cinimod_: your running nix2 with a 1.1 nix-daemon
<cinimod_> Crikey - how did I manage that?
<cinimod_> I think something upgraded my nix
<cinimod_> But it wasn't deliberate on my part
<clever> what does `type nix` say?
<cinimod_> `nix is hashed (/Users/dom/.nix-profile/bin/nix)`
<clever> cinimod_: and `which --all nix-env` ?
<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_> gunplot I can live without
<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: yeah
<jonasem> This is the complete output for nix-build -v https://gist.github.com/jemilsson/bbd508592983b8ea8e63aec3d20cabda
<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
<clever> it may be off by default
FareTower has quit [Ping timeout: 260 seconds]
<Myrl-saki> Nix takes 100 MB to run.
<Myrl-saki> RIP RasPi
<clever> Myrl-saki: to run what?
<clever> Myrl-saki: use -iA not -i
<Myrl-saki> clever: `nix build`
blankhart has quit [Quit: WeeChat 1.9.1]
<clever> Myrl-saki: what args did you give it?
<Myrl-saki> nix build nixpkgs.cabal2nix --substituters '' --cores 2 --max-jobs 2 --builders ''
<clever> ah, id expect that to need a lot of ram, since it has to build ghc
<clever> your better off running cabal2nix on another machine, there is no real reason to run it on the pi itself
<Myrl-saki> clever: I mean Nix itself is taking that amount.
blankhart has joined #nixos
<Myrl-saki> 105M 1868 S 0.0 11.3 0:10.32 nix build nixpkgs.cabal2nix --substituters --cores 2 --max-jobs 2 --builders
<Myrl-saki> Leftmost is RES
<clever> thats probably the nix language itself, just add more swap and it should release that ram
<Myrl-saki> clever: Incredibly deep dependency graph?
<clever> probably
<clever> haskell packages do that
shabius has quit [Quit: Leaving]
<Myrl-saki> clever: Yeah, that makes sense.
<Myrl-saki> clever: FWIW, I've already built both GHC-802 and GHC822. :)
<Myrl-saki> Or was it 823
<Myrl-saki> clever: I also copied it to my desktop and ran it under qemu for shits and giggles.
<clever> :D
shabius has joined #nixos
<Myrl-saki> clever: This is the very pinnacle of computing.
<Myrl-saki> clever: OTOH, a saner solution would have just to used the binaries.
jonjitsu has joined #nixos
<jonasem> "As of Poldi 0.4 poldi-ctrl has been stripped in this"
<jonasem> respect; it does not contain this functionality anymore. Instead the
<jonasem> system administrator has to edit the appropriate files manually.
<Myrl-saki> clever: Also, if you're not too busy, we can talk a bit about my PR.
<jonasem> I was looking for something that has been removed...
<clever> Myrl-saki: got a link?
<jonasem> *facepalm*
<clever> *looks*
<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! :)
<clever> Myrl-saki: left a comment in the PR
<clever> oops, editing it some
<clever> fixed
<clever> Myrl-saki: ahh, i think i see the problem
<clever> Myrl-saki: the issue, is that the mmap winds up allocating ram above the 4gig mark, beyond what 32bit can address
<clever> so it has to do weird things to make things work
<clever> a 32bit build of qemu always gets 32bit mmap results
jonjitsu has quit [Ping timeout: 268 seconds]
<Myrl-saki> clever: Yep. But the dynamic qemu(from nixpkgs) does not exhibit that problem
<clever> Myrl-saki: there is also an mmap flag that can fix this
ckauhaus has joined #nixos
<Myrl-saki> clever: Oh cool. I'll try that patch?
<clever> Myrl-saki: sure
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
<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.
<Myrl-saki> mmap(0x1000, 4294901760, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7f437462d000
<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]
jonjitsu has quit [Ping timeout: 256 seconds]
shabius has joined #nixos
<jluttine> if anyone is familiar with cmake and boost and is able to help, i'd be really grateful: https://github.com/NixOS/nixpkgs/pull/39295
<Myrl-saki> clever: Sorry, had to wrestle with git.
uptime has quit [Quit: Hi I'm new, is this the lobby? What do you mean no? Stop degrading my irc experience]
xcmw has joined #nixos
<Myrl-saki> clever: Also, my if/then/else looks ugly. The then-clause has no semicolon, but the else clause does. How should I write it to avoid that?
aarvar has joined #nixos
<clever> Myrl-saki: (if condition then self.callPackage else self.callPackage_i686) ./path {};
<Myrl-saki> clever: Yep, that makes sense.
<Myrl-saki> OTOH, I suck at writing commit messages.
<clever> didnt even read it
<Myrl-saki> Haha. :P
<clever> also handy, git commit --amend -p
<clever> and git push --force
<Myrl-saki> clever: That doesn't mess up a PR?
<clever> nope
<clever> i force-push dozens of times
<clever> it only messes things up if another person pulls the branch
<Myrl-saki> There we go.
xeji has joined #nixos
alexteves_ has joined #nixos
xAFFE has joined #nixos
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/423be37a0b4 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
ckauhaus has joined #nixos
<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
ckauhaus has quit [Ping timeout: 260 seconds]
<Myrl-saki> clever: I moved it from `qemu.nix` to `overlays`
<clever> ah, i was expecting the if to be re-arranged
<Myrl-saki> Ohh, the () one.
fendor has joined #nixos
Ridout has quit [Quit: Lost terminal]
<Myrl-saki> clever: I think I'll keep it that way.
<clever> kk
<clever> merged!
<Myrl-saki> Thanks. :D
<Myrl-saki> clever: I believe that that is the line.
<Myrl-saki> clever: It seems to match the call from strace.
<clever> yeah, that looks like it
<Myrl-saki> I'll try to tinker with it tomorrow, gotta help with a project I neglected for literally months.
nschoe has joined #nixos
xcmw has quit [Ping timeout: 276 seconds]
pie_ has quit [Read error: Connection reset by peer]
<robstr> I'm using nixops for aws deployment, Is it possible to describe a security group too ?
<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
<robstr> clever: ty :)
ShalokShalom has quit [Quit: Konversation terminated!]
arianvp2 has joined #nixos
<arianvp2> hi
<arianvp2> more nooby nix questions incoming :D
<arianvp2> I decided to add an overlay to my configuration.nix but I get the following error:
<arianvp2> error: The option value `nixpkgs.overlays.[definition 1-entry 1]' in `/etc/nixos/configuration.nix' is not of type `nixpkgs overlay'.
<arianvp2> and I have nixpkgs.overlays = [ import /home/arian/.config/nixpkgs/overlays.nix ];
<arianvp2> whose contents is super: self: {}
<clever> arianvp2: wrap the import in ()
<clever> nixpkgs.overlays = [ (import /home/arian/.config/nixpkgs/overlays.nix) ];
ryanartecona has joined #nixos
<arianvp2> oooh
<arianvp2> it thinks import is a list element
<arianvp2> I see, stupid parsre
<clever> yeah
<arianvp2> worked! Thanks!
pie_ has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
arianvp2 has quit [Ping timeout: 260 seconds]
knupfer has joined #nixos
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
<WhittlesJr> fadenb: Alright, I'll try that! thanks. symphorien: I'd like to try addressing this issue (https://github.com/NixOS/nixpkgs/issues/9468) with this change (https://github.com/NixOS/nixpkgs/compare/master...WhittlesJr:master) (maybe that's totally wrong but I'm trying)
<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?
<clever> nschoe: nix-env avoids installing header files
<nschoe> clever, so it did install the .so but not the header file? Why is that/
<nschoe> ?
<symphorien> WhittlesJr: what you should do is http://xelpaste.net/0YpLEu and it should not rebuild the world
<clever> nschoe: because nix-env isnt supposed to be used on library
<symphorien> !library
<{^_^}> Don't install libraries through nix-env or systemPackages. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<symphorien> nschoe: ^
<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.
<cocreature> looks like for now I’ll have to use nix-prefetch-url but it’s fixed in master https://github.com/NixOS/nix/issues/1905
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> sphalerite: working on it: https://github.com/NixOS/nixpkgs/pull/39295
<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? :/
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/06c576b0525 (from 19 hours ago, history: https://channels.nix.gsc.io/nixos-18.03)
asuryawanshi has joined #nixos
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.. :/
<clever> jluttine: adding mesa to the build inputs will automatically add "${mesa}/include" to the search path
<clever> jluttine: how did you add it to the include path?
<clever> jluttine: try adding mesa to the buildInputs
ptech has joined #nixos
blankhart has joined #nixos
<drakonis> no wine64 by default.
<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> ?
<steveeJ> at least there's no canonical way (https://github.com/NixOS/nixops/issues/510)
troydm has joined #nixos
<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: another option you could look into is my kexec tool: https://github.com/cleverca22/nix-tests/blob/master/kexec/session.md
<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?
<manveru> nur0n0: there's always moretea/yarn2nix :)
<phry> manveru nur0n0 that's trading one sickness for another. both have strengths, but also problems.
<clever> steveeJ: i'm heading to bed now, but if you get stuck or have questions about the kexec trick, just leave a PM and i can answer things later
<steveeJ> clever: how far is it away from being sent over ipxe and automatically install nixos on the empty box?
<manveru> phry: well, at least it doesn't need a node-packages.nix and is far faster
<clever> steveeJ: already done
<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
<steveeJ> s/model/module
<clever> steveeJ: a lot of the power comes from justdoit: https://github.com/cleverca22/nix-tests/blob/master/kexec/justdoit.nix
<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?
<clever> nur0n0: this is a large project that recently switched over to using yarn2nix and is already using webpack: https://github.com/input-output-hk/daedalus/blob/develop/yarn2nix.nix
<clever> steveeJ: yep, i left that final step out, because it would auto-wipe whatever disk it happens to boot on
<steveeJ> clever: I see. we could build in a safety mechanism and require an empty disk
<clever> steveeJ: line 55 and 56 of justdoit.nix, it nukes all disk signatures, because several of the tools get upset when an old FS is in the way
<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: yeah
<samueldr> phry: there are some notes here on the wiki https://nixos.wiki/wiki/Install_NixOS_on_Scaleway_X86_Virtual_Cloud_Server
<steveeJ> clever: or do the check before calling justdoit, and not call it otherwise
jrolfs has quit [Read error: Connection reset by peer]
<clever> steveeJ: yep
<samueldr> don't know how accurate they are
<nur0n0> phry: I'm directly calling `webpack` inside the nix-shell. did I mess that up? o.O
<phry> samueldr: nice :)
<clever> steveeJ: another thing ive thought of, one sec
<phry> nur0n0: webpack will not be in your path, it is only in a package that is dependet on by other packages
<clever> steveeJ: this tells the machine to load boot.php?mac=INSERT_MAC_HERE
<steveeJ> clever: right, and then what file does it get back?
shabius_ has joined #nixos
<clever> steveeJ: you can then use server-side-scripting in your language of choice, to lookup the machine in a database
<steveeJ> i.e., where's the php file?
<clever> in this example, its not even php, i was just too lazy to rename it
<steveeJ> :-D
<nur0n0> clever samueldr: thank you for the links
<clever> steveeJ: but the key part, is that ipxe is able to legacy-boot from the local hdd
jrolfs has joined #nixos
<clever> sanboot --no-describe --drive 0x80
<clever> steveeJ: if you return this in a #!ipxe script, it will just boot off the 1st local hdd
<clever> steveeJ: so now, a central database can control the boot order of every machine on the LAN
<clever> just remotely trigger a reboot, and let boot.php decide the boot order
shabius has quit [Ping timeout: 255 seconds]
<clever> http://ipxe.org/cmd/sanboot has more docs
<steveeJ> gotcha, I'm quite familiar with ipxe
<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
<clever> (line 57)
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/255a833e841 (from 12 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
marusich has joined #nixos
<infinisil> Why
<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.
<samueldr> (I was quoting a previous discussion for this) if you're curious https://logs.nix.samueldr.com/nixos/search?q=stateVersion
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 :/
lord| has quit [Ping timeout: 265 seconds]
<samueldr> if you look at the packages-explorer example, when I develop I don't care about nix-specifics, I yarn add what I want, and yarn update. Once I touched the yarn state, I run a script which updates the yarn.nix file → https://github.com/samueldr/nixos-homepage/blob/feature/packages-explorer/packages-explorer/bin/yarn2nix-update.sh
hiratara has quit [Ping timeout: 276 seconds]
<samueldr> so it's kind of a two-step process, dev ⇒ release, dev ⇒ release
<samueldr> which means that yes, it's possible I forget to update the yarn.nix file and do a wonky breaking update :/
lord| has joined #nixos
<samueldr> (I think so, don't recall if I did forget to update it, then what it would do)
[Leary] has joined #nixos
<serentty[m]> Yo. I'd like to install CDE, but there's no package for it. All I can find is an old issue on GitHub.
hiratara has joined #nixos
rauno has joined #nixos
simukis has quit [Ping timeout: 256 seconds]
<steveeJ> clever: I can't spot how you inject the luks password for https://github.com/cleverca22/nix-tests/blob/master/kexec/justdoit.nix#L66
<steveeJ> clever: I guess this wouldn't work unattended, as it requires user input
ivanivan has quit [Quit: WeeChat 2.0]
phry has quit [Quit: WeeChat 2.0]
max___ has joined #nixos
phry has joined #nixos
<dhess> OK https://github.com/NixOS/nixpkgs/pull/39314 should fix the Hydra problems.
<ryantrinkle> I'm having some trouble fixing the python36Packages.ledgerblue package
<ryantrinkle> Collecting requests (from python-u2flib-host>=3.0.2->ledgerblue==0.1.17)
<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
<phry> steveeJ: just saw this on reddit, this might also be interesting for you https://github.com/jeaye/nixos-in-place
<makefu> 1. the package is already in nixpkgs so you can simply add it to the derivation
<ryantrinkle> that's what i'm getting, after adding python-u2flib-host 3.0.3 as a dependency
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<makefu> or 2. you will have to package the new dep yourself
<ryantrinkle> already done #2
<jeaye> phry :)
<ryantrinkle> that's why i'm confused :)
<ryantrinkle> lemme push a branch
<clever> phry: nixos-in-place is based on how i had forcibly converted a gentoo netbook into nixos
<clever> phry: the main limitation, is that you cant change the partition layout
<nur0n0> max___: hmm, I don't think it makes a difference, but the most appropriate phase for `mkdir -p $out` is `installPhase` I believe
<makefu> ryantrinkle: from the error it looks like u2flib requires requests as dependency
<phry> clever: ah, okay, wasn't aware of that limitation :)
<ryantrinkle> ah, requests? i'll try that
<nur0n0> max___: what is the exact error message you are getting?
<ryantrinkle> oh, lol
<clever> phry: basically, all nixos-in-place does is rename everything in /, populate /nix/store with a copy of nixos, and overwrite the bootloader
xy2_ has quit [Ping timeout: 240 seconds]
<ryantrinkle> i thought that was part of the static text of the error message
<ryantrinkle> "Collecting requests" :P
<ryantrinkle> i'll try that
<clever> phry: but my kexec trick boots a full nixos in ram, and then your free to nuke the disk from orbit and partition it however you like
xcmw has joined #nixos
<jeaye> clever: Have you turned your kexec trick into a documented repo for people to use yet?
<ryantrinkle> now i'm getting this: nix_run_setup: error: unrecognized arguments: test
<phry> clever: I see the difference now :)
<steveeJ> clever: what are you using for the local database for the pxe server?
<max___> nur0n0: npm ERR! Error: EACCES: permission denied, access '/nix/store/kmrw4hhlwqg5idwzx5170932j8drnams-source' when npm-ing in the source dir; or mkdir: cannot create directory ‘/nix/store/ifmpvbj3...' when mkdir -p $out
<nur0n0> max___: fwiw `mkdir -p $out` works in the nix-shell for me. so far, it seems that your error is in filesystem permissions outside of nix
<jeaye> clever: That's the biggest difference, as far as I've seen.
<clever> steveeJ: i never actually wrote that part, its just a hard-coded switch-case
<ryantrinkle> doCheck = false fixes that, but i assume there's a better way
<makefu> ryantrinkle: if the package does not provide tests then this is the correct thing
<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> :D
<phry> clever: yes, documentation please :)
<makefu> for kexec there is already https://nixos.wiki/wiki/Install_NixOS_on_Scaleway_X86_Virtual_Cloud_Server , once stuff got even better then the wiki article can also be updated
<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?
<max___> nur0n0: npm install
nyanloutre[m]1 has joined #nixos
griff_ has joined #nixos
justan0theruser has joined #nixos
jgt3 has joined #nixos
hiratara has quit [Quit: ZNC - http://znc.in]
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.
alexteves_ has quit [Ping timeout: 256 seconds]
WhittlesJr has quit [Quit: Page closed]
<coorey[m]> oops
bennofs has quit [Quit: WeeChat 2.0]
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos
rauno has quit [Ping timeout: 260 seconds]
sigmundv__ has joined #nixos
daveo has joined #nixos
nur0n0 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
asuryawanshi has quit [Remote host closed the connection]
<tokudan[m]> is there a good way to write a package that optionally accepts an override for a file?
<tokudan[m]> i believe i saw something like that in some blog, but i cannot find it anymore
Arcaelyx has quit [Ping timeout: 260 seconds]
Arcaelyx has joined #nixos
<Myrl-saki> Well.
<Myrl-saki> That Emoji messes up my client.
rauno has joined #nixos
griff_ has quit [Quit: griff_]
vidbina has joined #nixos
kreetx has quit [Ping timeout: 268 seconds]
<zybell_> Myrl-saki: Did the emoji messed up to cause you to miss my message? Should I repost?
<zybell_> *up your client enough
<Myrl-saki> zybell_: Wait, was that supposed for me?
<Myrl-saki> zybell_: And yes, you seem correct. I retried the build and it worked.
<zybell_> yeah ...3 days...
<Myrl-saki> zybell_: I'm assuming you were talking about the somewhat random numbers in the name?
daveo has quit [Ping timeout: 248 seconds]
<zybell_> no I'm reasonably sure that nothing random is in my post. short that I have nailed which exact change happened.
nur0n0 has joined #nixos
<Myrl-saki> zybell_: Sorry, I'm a bit confused.
<Myrl-saki> zybell_: Though, it wasn't a 3-day package build. The package itself took like 30 minutes, the deps took 3 days.
<Myrl-saki> zybell_: From what I understand, you're saying that a bit got flipped, changing from 3 to 2?
<drakonis> is there a crash course on nix 2.0?
<Myrl-saki> zybell_: Which messes up the search string, making it not findable?
<drakonis> i'm sort of confused on how to use it, so i'm still making use of nix-env for any package management needs
daveo has joined #nixos
<gchristensen> drakonis: continue using nix1 commands as the nix 2 commands are a preview, and may change
<zybell_> Oh I mean really digit 2 which is only once in the name. I was confused too, did misread your post.
<drakonis> hmm i see
<Myrl-saki> zybell_: Ah. :P
jperras has joined #nixos
Arcaelyx has quit [Read error: Connection reset by peer]
Arcaelyx_ has joined #nixos
Arcaelyx_ has quit [Client Quit]
<zybell_> And yes, thats what I mean, although I read the error first the other way around, but with 30min your way is equally probable.
<wilornel> hi #nixos! I see that https://nixos.org/nixos/packages.html#tigervnc there is tigervnc version 1.8, but when I install (I'm on nixos 18.30) tigervnc, I get version 1.7.9
<wilornel> I'm confused, how can I get version 1.8?
<Myrl-saki> zybell_: OTOH, I should be concerned that a bit flip occured..
<gchristensen> Myrl-saki: they definitely happen
<zybell_> K40 cant be helped.
<Myrl-saki> K40?
thc202 has quit [Ping timeout: 248 seconds]
<zybell_> Kalium isotope,alpha radiation
<Myrl-saki> Ah. :P
<Myrl-saki> TIL, Kalium.
vidbina has quit [Read error: Connection reset by peer]
<gchristensen> bananas, too...
<Myrl-saki> gchristensen: I ate a banana for the first time in a few months. Seems like we found the culprit...
<samueldr> Myrl-saki: could you try and reproduce the issue?
<samueldr> (eat more bananas)
Arcaelyx has joined #nixos
<Myrl-saki> samueldr: Haha. :D
<samueldr> it seems to be a common issue with nixos users, gchristensen had issues with bananas earlier this week iirc
FareTower has quit [Ping timeout: 240 seconds]
<wilornel> is there a way to get a verbose log of an installation procedure?
<zybell_> -v
<wilornel> or just the default.nix file that is used for a package?
<wilornel> because I think that the current (2018-Apr-21) nixos.tigervnc attribute installs 1.7.9
<zybell_> more if you need more
<samueldr> wilornel: uh, weird, looking at the git history makes me think it never was updated to 1.8
<wilornel> hmm
<samueldr> the version string is 1.8.0___pre___
<samueldr> (added underscores to point out the pre)
<samueldr> this was done last year and doesn't look like it updated to 1.8.0 proper afterwards
<wilornel> should I make a PR?
<samueldr> I'd say yes!
<wilornel> How do I make a PR? :)
freeman42x]NixOS has quit [Ping timeout: 248 seconds]
<wilornel> What are the steps for this case? My understanding is this:
<drakonis> the current version on nixpkgs is 1.8.0
<zybell_> or NIX_DEBUG=7 before the command should answer all questions you may have and never thought to ask.
vidbina has joined #nixos
<drakonis> from 2017
sigmundv__ has quit [Ping timeout: 256 seconds]
<samueldr> with preseverance for your first, but here's the chapter for contributions https://nixos.org/nixpkgs/manual/#chap-submitting-changes
<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?
<samueldr> on master it's still rev = "v1.7.90"
<drakonis> yes and no
<samueldr> (for the src attribute)
<drakonis> nixpkgs is the central repository
<drakonis> it is also a channel
<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!"