contrapumpkin has quit [(Quit: My MacBook Pro has gone to sleep. ZZZzzz…)]
<simpson>
Holy fuck, I forgot how much easier Haskell is with Nix. Amazing.
<slabity_>
I'll brb
slabity_ has quit [(Quit: leaving)]
<Infinisil>
simpson: The haskellWithPackages thing?
contrapumpkin has joined #nixos
johnw has joined #nixos
<simpson>
Infinisil: Even just nix-shell and $(cabal sandbox init) works perfectly on the first try.
<simpson>
Well, the second try, since I had to go look up which GHC can satisfy `base == 4.8.*` because the GHC team hasn't just given up and synced those numbers to their release numbers already.
<Infinisil>
I can't wait for nix to take over the world
<Infinisil>
Oh btw, is it safe to say that every nix package builds on every Linux distro?
Mateon1 has left #nixos []
ris has quit [()]
<simpson>
No, because some packages are broken or non-Linux.
<Infinisil>
Yeah yeah, I don't mean those
<Infinisil>
Because I'm gonna be recommending people to use nix to install some software if they're having problems with their distro and it's available in nixpkgs
sigmundv__ has quit [(Remote host closed the connection)]
<clever>
ah
<clever>
ive given up on installing things with emerge on gentoo, its too slow, but i cant always change the os right away
<clever>
so i just use nix on all of my old gentoo boxes
<Infinisil>
That's a win-win situation
sigmundv_ has joined #nixos
<Infinisil>
Question: This package has a cli part and a gui part, whereas the cli is a dependency of the gui. Both are built from a single source. What's the best way to package these?
<ebzzry>
Infinisil: ping. I got dc’d yesterday.
<clever>
a: make a single package that just builds both and puts them into $out
<Infinisil>
Right now I'm using a default.nix file which does `callPackage ./cli.nix`, where the cli.nix file is the package for the cli
<clever>
b: make a single package that builds both, but puts the gui stuff in the $gui output, via outputs = [ "out" "gui" ];
<clever>
c: make 2 packages, which it sounds like youve done already
<Infinisil>
So with b), can I put stuff in both $out/bin and $gui/bin and it is available from PATH?
<clever>
it will only be in path if you install foo.gui and foo.out at the same time
<clever>
but if you only install foo.out, the gui can be deleted by a GC
<clever>
and then it wont depend on things like libX11
<Infinisil>
Hmm, maybe I could do option a), but have an argument `includeGUI ? true`
<clever>
that can be done, but would possibly result in having to recompile it, if the binary cache doesnt have both variants
<Infinisil>
Hmm true..
<Infinisil>
When doing multiple outputs, would users need to install it using nix-env -iA nixos.scyther.gui / nixos.scyther.cli ?
<clever>
the tricky thing there, is that nix-env will think one is an upgrade for the other
<clever>
and always remove the pre-existing one
<Infinisil>
Eww
<clever>
but you could then make a 3rd package, using buildEnv and arguments
<clever>
that will conditionaly merge the cli and gui (either outputs, or seperate packages)
<clever>
that operation is fast, so it can be re-built on the end-users machine
<clever>
chrome and firefox plugins work in a similiar way
<Infinisil>
Oh, so cli package, gui package, and a package that combines them with `includeGUI ? true`
<clever>
yeah
<clever>
and that 3rd one could just return the un-modified cli in the false case
<Infinisil>
Ah yes, thanks I'll try that
<clever>
if includeGUI then (buildEnv { name = "foo-with-gui"; paths = [ cli gui ]; } else cli
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 2 new commits to staging: https://git.io/vQql7
<NixOS_GitHub>
nixpkgs/staging 0737359 Tim Steinbach: openldap: 2.4.44 -> 2.4.45
<NixOS_GitHub>
nixpkgs/staging 56761c9 Tim Steinbach: minikube: 0.19.1 -> 0.20.0
NixOS_GitHub has left #nixos []
<Infinisil>
Thanks, I think this is gonna work
boj has quit [(Ping timeout: 260 seconds)]
<Infinisil>
Works already :D
<clever>
:D
<Infinisil>
Now I have one more problem: I should include multiple versions (latest from master, latest release and some other branch), how would I make these available idiomaticly?
<clever>
some packages have a foo and a foo-unstable attribute
<clever>
but there is no way to make nixpkgs always build from master
<Infinisil>
Hmm
<Infinisil>
I could make it another argument: `version ? "1.1.3"`, then check if its one of the supported ones and build that one
<Infinisil>
Non-default versions don't need to be built by hydra
<clever>
you can also just set meta.hydraPlatforms
<clever>
that controls which platforms hydra will build it for
<clever>
and if its an empty list, none
<clever>
then it can be in the main attribute list as foo-unstable, but not pre-built
eacameron has joined #nixos
<Infinisil>
Ah yes
<clever>
and if hydraPlatforms is missing, it defaults to meta.platforms
<clever>
which restricts where nix will even try to build it
boj has joined #nixos
<clever>
so you could prevent nix from building the package on arm, or darwin
<Infinisil>
Oh that reminds me, I should also make this package work on Darwin, it's supposed to work on it as well
<clever>
another fun thing to setup, is darwin build slaves
<Infinisil>
Which are?
<clever>
ensure nix is in the $PATH on non-interactive shells (try ssh mac "nix-store --help")
<clever>
then configure nix.buildMachines on your nixos box
<clever>
then you can do nix-build '<nixpkgs>' -A foo --argstr system x86_64-darwin
<Infinisil>
Can't use it though, I'm dual booting
<clever>
this will force it to build a darwin version, ignoring the current host
<clever>
in my case, i dont own any mac hardware, so i use www.macincloud.com
<Infinisil>
I see
<clever>
but in your case, you could do it from a linux VM inside the mac
<clever>
or flag a linux VM as a linux build slave, so the mac can still do linux builds
<Infinisil>
I'll just get it to work on linux first, darwin comes later
<clever>
then you can build for either platform, while booted into mac
<clever>
a mac guest in a VM would be harder
<ebzzry>
Infinisil: back to my nix-shell question earlier, how can I make https://goo.gl/zAkQBq work for an input like: ./lisp --noinform --eval '(progn (format t "Hello, world!") (quit))'
<Infinisil>
ebzzry: That doesn't work?
pie_ has quit [(Changing host)]
pie_ has joined #nixos
<Infinisil>
Ah yeah it doesn't, hold on
<ebzzry>
Infinisil: clone that repo, then please try it. =)
jgertm has quit [(Ping timeout: 255 seconds)]
<Infinisil>
Ugh I hate bash scripts, such an ugly language, string handling is the worst
<NixOS_GitHub>
nixpkgs/master 6fb9f89 Tim Steinbach: Merge pull request #25368 from bachp/virtualbox-5.1.22...
NixOS_GitHub has left #nixos []
ogkloo has joined #nixos
<pie_>
stallarium fails to build from unstable for some reason
<Infinisil>
Alright dude, I'm giving up on this bash fucking "string" handling, what a piece of bullshit this is
s33se has joined #nixos
dalaing_ has quit [(Ping timeout: 246 seconds)]
<jbaum98>
is there a way to add your own custom modules to nixos?
<jbaum98>
like if i've written one, how do i enable it
s33se_ has quit [(Ping timeout: 255 seconds)]
<clever>
jbaum98: just put it into the imports list of configuration.nix
<clever>
jbaum98: and also, configuration.nix itself is a nixos module
ryanartecona has joined #nixos
<justanotheruser>
I'm running into an import error at python run time stating "ImportError: libfreetype.so.6: cannot open shared object file: No such file or directory". I get it from importing a module that is part of the panda3d python package. This is my definition to install panda3d, let me know if you see the cause of the issue please, I am indeed including the "freetype" package. https://hastebin.com/raw/yawisavoye
<kanzure>
hm.
<kanzure>
justanotheruser: do you actually have libfreetype.so.6 and if so does setting LD_LIBRARY_PATH help
dalaing_ has joined #nixos
<kanzure>
er, LD_LIBRARY_PATH=/whatever python3 panda.py
<justanotheruser>
kanzure: I was having trouble with libstdc++.so.6 earlier, now the module I'm trying to build references it properly after adding pkgconfig. Both libstdc++.so.6 and libfreetype.so.6 are in the nix store, however only libstdc++ is in the nix store for the environment this module is being built in, it looks like. Maybe I should just include another environments LD_LIBRARY_PATH, however is there a more correct
<justanotheruser>
solution?
lambdamu has joined #nixos
mbrgm has quit [(Ping timeout: 240 seconds)]
mbrgm has joined #nixos
<justanotheruser>
Trying another envs libfreetype I get ImportError: libfreetype.so.6: wrong ELF class: ELFCLASS32
<justanotheruser>
so I guess some env has some package which has 32 bit libfreetype as a dependency?
lambdamu_ has quit [(Ping timeout: 240 seconds)]
<justanotheruser>
I'm surprised it doesn't just include the library when I build it... I mean, nixos.freetype is what I want for libfreetype right
<clever>
justanotheruser: did you install freetype with nix-env?
<clever>
Infinisil: services.bind.enable = true; is all you need, lol
rjsalts has joined #nixos
<Infinisil>
One thing I need is access to my router, its website redirects to the domain swisscom.mobile, which is handled by the router directly
darlan has joined #nixos
darlan has quit [(Client Quit)]
<Infinisil>
Somehow, I don't fully get it why
<justanotheruser>
clever: is there any way I can store the state of the build at a certain step, and only run it again if that step of the expression has been changed?
<clever>
Infinisil: ah, networking.extraHosts is the cheap way
<justanotheruser>
Every time I build Eigen it takes a while
<ison111>
clever: So is overrideAttrs the right one to use for buildInputs?
<Infinisil>
ison111: Yes, if you want to override buildInputs (which is an attribute of the derivation)
<ison111>
Infinisil: Is that how I can add additional dependencies though? I added one that way to a package with a global override but it didn't seem to work.
<clever>
ison111: how did you try building the package?
<clever>
what command did you run?
eacameron has quit [(Remote host closed the connection)]
<ison111>
Just with nixos-rebuild switch, is that what you meant?
<clever>
ah, can you gist the contents of configuration.nix?
<ison111>
clever: Well I just want to run an apache server with mod_wsgi, but I need a bunch of python libraries which it can't find. So I'm trying to just add the python libraries I need as dependencies. Right now that's just a small test to see if I can add the PIL library, but it still says it can't find it.
<clever>
ah
<clever>
but its failing at runtime, not build time
<clever>
so you need to configure apache, so it configures mod_wsgi correctly
<clever>
see the above link
yegods has quit [(Remote host closed the connection)]
<ison111>
clever: Oh wow, I didn't even know that existed. Thanks. I have one more issue though, I need it to use python3 instead of python2. I noticed in the mod_wsgi nix file that it has "python2" in its buildInputs. So I guess I can add python3 to it using ++ the way I did in my configuration.nix file, but is there a way to remove "python2"? Maybe some kind of -- operator?
zeus_ has quit [(Read error: Connection reset by peer)]
zeus_ has joined #nixos
hotfuzz has quit [(Ping timeout: 276 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm closed pull request #26773: nixos: replaced "userns" with "user namespaces" for clarity (master...patch-1) https://git.io/vQt70
NixOS_GitHub has left #nixos []
pietranera has quit [(Quit: Leaving.)]
pietranera has joined #nixos
pietranera has quit [(Client Quit)]
pietranera has joined #nixos
bzizou has joined #nixos
mrkgnao has quit [(Ping timeout: 255 seconds)]
mrkgnao has joined #nixos
Itkovian has joined #nixos
ilyaigpetrov has joined #nixos
markus1189 has quit [(Ping timeout: 240 seconds)]
markus1189 has joined #nixos
DrWaste has joined #nixos
yegods has joined #nixos
<joachifm>
looks like glibc is now broken on i686 and aarch64 (re ongoing rebuilds)
pietranera has quit [(Ping timeout: 240 seconds)]
marsel has joined #nixos
ambro718 has joined #nixos
zeus_ has quit [(Remote host closed the connection)]
zeus_ has joined #nixos
elninja44 has quit [(Remote host closed the connection)]
pietranera has joined #nixos
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
jensens has joined #nixos
freusque has joined #nixos
indi_ has quit [(Ping timeout: 246 seconds)]
boomshroom has joined #nixos
<boomshroom>
Hello, sorry about earlier.
pie_ has joined #nixos
<boomshroom>
I'm trying to setup a shared configuration between my desktop and my laptop and currently I have separate branches for each with a master branch for common changes. Is there a better way to do this?
<boomshroom>
I'm also wondering about how much can go in
<boomshroom>
I'm also wondering about how much can go in ~/.config/nixpkgs/config.nix as I'm trying to keep most of the configuration user-side rather than system-side.
thc202 has joined #nixos
hotfuzz_ is now known as hotfuzz
pietranera has quit [(Ping timeout: 240 seconds)]
arkad has joined #nixos
<boomshroom>
For file layout, I have a common configuration.nix, the generated hardware-configuration.nix, and a platform-configuration.nix, which is hand-written and different between systems.
Vorpal has quit [(Ping timeout: 258 seconds)]
<boomshroom>
I take it there aren't many people around this time of night.
<tommyangelo[m]>
currently compiling libreoffice-5.3.1.2 but it seems stuck at "checking for references to /tmp/nix-build-libreoffice-5.3.1.2.drv-0 in /nix/store/gzibdnv3i5svxzzcg6i0017in86bgywa-libreoffice-5.3.1.2...". How long should that take
yegods has quit [(Remote host closed the connection)]
ebzzry has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] markus1189 opened pull request #26784: ammonite: disable remote logging by default (master...ammonite-disable-remote-logging) https://git.io/vQqDk
NixOS_GitHub has left #nixos []
ambro718 has quit [(Ping timeout: 240 seconds)]
bastian has joined #nixos
archebian has joined #nixos
archebian has quit [(Quit: WeeChat 1.0.1)]
archebian has joined #nixos
jgertm has quit [(Ping timeout: 255 seconds)]
archebian has left #nixos []
reinzelmann has joined #nixos
ertes has quit [(Quit: Bye!)]
goibhniu has joined #nixos
page has quit [(Quit: Lost terminal)]
zeus_ has quit [(Remote host closed the connection)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
zeus_ has joined #nixos
archebian has joined #nixos
berce has joined #nixos
ThatDocsLady has joined #nixos
Itkovian has joined #nixos
Tucky has joined #nixos
zeus_ has quit [(Ping timeout: 246 seconds)]
<berce>
I 'm trying to get a smartcard reader working. In debian, it would need package libarc38u. Can you help me to make it available in nixos?
<goibhniu>
usually the readme will say what extra buildInputs you need, or you can also check a build script from some other distro
<qknight>
hey. i'd like to install nixos on digitalocean but we can't find the tool to create a cloud-config. https://github.com/elitak/nixos-infect <- this is the manual we are following
FRidh has joined #nixos
<berce>
goibhniu: I 'm looking at hello. It looks really simple. I know nix is brilliant, but is it brilliant enough to know where the library files have to be put?
<goibhniu>
berce: it will make a fair attempt
pie_ has quit [(Changing host)]
pie_ has joined #nixos
<goibhniu>
berce: best to try it out and ask if you run into any issues
<berce>
goibhniu: I 'll give it a try. Thanks.
<archebian>
What should I do when I get cmake errors?
<archebian>
I'm trying to add a package to nixpkgs
<goibhniu>
archebian: what's the error?
<qknight>
archebian: have a look at other cmake projects already in nixpkgs
<archebian>
In file included from /tmp/nix-build-bytecoin.drv-0/bytecoin-1d48dc274048787b7a95814e216c61a1a7307ef1-src/src/CryptoNoteCore/SwappedMap.cpp:18:0:
<archebian>
/tmp/nix-build-bytecoin.drv-0/bytecoin-1d48dc274048787b7a95814e216c61a1a7307ef1-src/src/CryptoNoteCore/SwappedMap.h: In member function 'void SwappedMap<Key, T>::close()':
<archebian>
/tmp/nix-build-bytecoin.drv-0/bytecoin-1d48dc274048787b7a95814e216c61a1a7307ef1-src/src/CryptoNoteCore/SwappedMap.h:198:3: error: 'cout' is not a member of 'std'
mmmrrr has quit [(Remote host closed the connection)]
mudri has joined #nixos
m0rphism has quit [(Quit: WeeChat 1.8)]
indi_ has joined #nixos
indi_ has quit [(Ping timeout: 260 seconds)]
mpcsh has quit [(Quit: THE NUMERICONS! THEY'RE ATTACKING!)]
mpcsh has joined #nixos
arianvp2 has quit [(Quit: arianvp2)]
reinzelmann has quit [(Quit: Leaving)]
indi_ has joined #nixos
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
bzizou has quit [(Remote host closed the connection)]
indi_ has quit [(Ping timeout: 268 seconds)]
<jophish>
I think that I have some leftover locks which are preventing builds
<jophish>
restarting the daemon doesn't seem to work
<jophish>
Apparently the machine has been restarted since this started
<gchristensen>
you might have some build dirs remaining? maybe show the gc roots and delete the old dirs
<jophish>
there are two roots, in /run/user/1003
<jophish>
for the .drv file
orivej has quit [(Ping timeout: 240 seconds)]
<jophish>
Removing those didn't help
<jophish>
I've told the intern to make a documentation improvement to the package and compile again :)
ebzzry has joined #nixos
seppellll has joined #nixos
tmaekawa has joined #nixos
indi_ has joined #nixos
indi_ has quit [(Remote host closed the connection)]
<pietranera>
Hello, this may be a silly question, but how to I update the system packages in NixOS (a la nix-channel --update && nix-enc -u)?
<pietranera>
s/nix-enc/nix-env/
<goibhniu>
hi pietranera, `nixos-rebuild switch --upgrade`
<goibhniu>
nix-env will only update the packages in the user profile
<pietranera>
goibhniu thanks, I knew that nix-env would not work but couldn't figure out the nixos command. Thanks!
<goibhniu>
cool, you're welcome!
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti pushed 8 new commits to master: https://git.io/vQqji
<NixOS_GitHub>
nixpkgs/master 167b27b Peter Simons: LTS Haskell 8.19
<NixOS_GitHub>
nixpkgs/master 7673cd0 Peter Simons: hackage-packages.nix: automatic Haskell package set update...
<NixOS_GitHub>
nixpkgs/master 5148757 Peter Simons: haskell-hspec-core: break infinity dependency cycle...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti pushed 1 new commit to release-17.03: https://git.io/vQqjX
<NixOS_GitHub>
nixpkgs/release-17.03 bff2ea5 Peter Simons: haskell: fix logic error in generic builder introduced in 00892b7e4ed2e8eb52227db8e8312a06bd1d6699...
NixOS_GitHub has left #nixos []
simukis has joined #nixos
reinzelmann has joined #nixos
nh2 has joined #nixos
MrCoffee has joined #nixos
ryantrinkle has joined #nixos
mudri has quit [(Ping timeout: 260 seconds)]
arjen-jonathan has joined #nixos
r444 has joined #nixos
Wizek__ has joined #nixos
python476 has joined #nixos
Wizek has quit [(Ping timeout: 268 seconds)]
archebian has quit [(Quit: WeeChat 1.0.1)]
civodul has joined #nixos
MercurialAlchemi has quit [(Ping timeout: 260 seconds)]
<gchristensen>
you can get that via nix-shell -p nixUnstable
ryantrinkle has quit [(Ping timeout: 268 seconds)]
<Infinisil>
Damn, I'm still amazed how nice nix solves everything, you just said "do nix-shell -p nixUnstable", whereas in anything other than nix you'd need to do all that shitty dependency installing
<Infinisil>
So glad I found nix
<gchristensen>
<3
<gchristensen>
I saved my coworkers a day and a half of work by making a nice shell.nix for a project we're starting
<Infinisil>
Nice, what was it?
<gchristensen>
it sets up go and a few dependencies like protobuf / protoc / language-plugins
<gchristensen>
and it automatically detects (using some clever trickery if I may say so) if you've cloned the repo to the wrong place
MercurialAlchemi has joined #nixos
<Infinisil>
Why would it matter that you cloned something in a specific place?
<Infinisil>
I don't have the full picture I guess
<gchristensen>
Go's GOPATH requires you clone your project to $GOPATH/src/github.com/OrgName/RepoName/
<Infinisil>
Ahhh I see
cpennington has joined #nixos
<Infinisil>
I haven't looked into Go very much, I'm not sure what to think of its library management
<gchristensen>
so I have something like this: https://gist.github.com/grahamc/b96d4e2b0461a2e590af514725a8a8be and if the directoryStructureIsSane it exposes the development shell, and if it isn't sane it exposes a `diagnosticEscapeHatchShell` which provides instructions on how to fix it
Rotaerk has quit [(Quit: Leaving)]
indi_ has joined #nixos
bitchecker has quit [(Remote host closed the connection)]
<r444>
can i search nixpkgs for the target binary i need instead of expr/derivation names?
<r444>
e.g. I need a genisoimage binary
newhoggy has quit [(Ping timeout: 240 seconds)]
<ij>
If you want to use some nix file, do you figure out how to use it just by looking at source and usually not by searching for examples?
proteusguy has quit [(Ping timeout: 268 seconds)]
reinzelmann has quit [(Quit: Leaving)]
newhoggy has joined #nixos
indi_ has quit [(Remote host closed the connection)]
freusque has quit [(Quit: WeeChat 1.7.1)]
<Infinisil>
Ankhers: I don't know exactly what you mean, but you can just use `args.<whatever you want from args>`, assuming the thing you want is an attribute of it
<r444>
is there a common way to structure configuration?
<Infinisil>
Ah yes it's actually very much this
MercurialAlchemi has quit [(Ping timeout: 246 seconds)]
<Infinisil>
Do you mean regarding overridePackages?
<r444>
I'll need to write an override somewhere, but I suspect configuration.nix will get clumbersome very fast
<r444>
yes, I'm wondering if there's a common practice/convention for that
digitus has joined #nixos
<Infinisil>
You could put it in a separate file and then include it
<r444>
how do people version it?
<Infinisil>
Version what? configuration.nix?
<r444>
git repos with scripts that copy the contents to /etc/nixos?
newhoggy has joined #nixos
<r444>
configuration.nix and the rest of custom configuration
<r444>
It feels like I'm about to invent a wheel
<r444>
reinvent*
darlan has joined #nixos
<Infinisil>
I personally use symlinks for now
<r444>
so you point the /etc/nixos/configuration.nix to your repo or something?
<Infinisil>
Like I have a git repo in /home/infinisil/system and /etc/nixos/configuration.nix is a symlink to /home/infinisil/system/nixos/mac-config.nix
<Infinisil>
Also hardware-configuration.nix so it can be used with nixos-generate-config
<r444>
I wasn't sure if it'll work with nixos-rebuild and the rest of the machinery
<Infinisil>
You see, the whole file is known to work with exactly that iso, the hash is there to make it reproducable. If you're lucky your iso works without modifications. But I'd try to get the correct one
<Infinisil>
I don't know much about parallels or where these iso come from
newhoggy has joined #nixos
<r444>
I tried to google it
<r444>
i have no clue how to get that iso
newhoggy has quit [(Ping timeout: 255 seconds)]
<Infinisil>
I searched too, I have no clue what Parallels Tools for Linux even is
newhoggy has joined #nixos
<Infinisil>
Can't find anything
<disasm>
Infinisil: parallels is an osx hypervisor, like virtualbox. parallels tools is the daemon that runs and handles driver level stuff. I have parallels on my mac here, but I have yet to try nixos in it. Haven't rebooted into OSX in over a month.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 40 new commits to master: https://git.io/vQmV3
<NixOS_GitHub>
nixpkgs/master c4ba2e3 John Ericson: cc-wrapper: Remove `stdenv.is*` for `targetPlatform.is*`...
<NixOS_GitHub>
nixpkgs/master 459f1c6 John Ericson: cc-wrapper: Learn about target prefixes...
<NixOS_GitHub>
nixpkgs/master d70e726 John Ericson: cc-wrapper: Simplify and correct logic to chose dynamic linker library
NixOS_GitHub has left #nixos []
<r444>
Infinisil: daemon that allows you to interact with a host OS
<r444>
i want to share some folders
<Infinisil>
Ahh
<r444>
basically i want to launch emacs in my host OS X, use tramp to get to nixos VM
ambro718 has joined #nixos
<r444>
have no clue how to make it work though
<r444>
I feel kinda stupid describing my issue on parallels forums, because it's obvious from the answers i get, they have no clue about nixos.
<disasm>
I think you can just override the version and the hash
<Fuuzetsu>
Infinisil: w.r.t. "Imagine being able to use Haskell for Nix, you'd have so many libraries available :o" yes but the thing is that you usually don't need these libraries. What do you want libraries for? No immediate uses come to mind that would offset the insane price of moving to it. It's still possible to use Haskell here however. You can write your Haskell script then use nix's "runCommand" to invoke it, passing parameters from nix.
<Fuuzetsu>
You can use the output of your Haskell code however you wish. You can even output a nix expression and evaluate that.
<Infinisil>
Damnit
<Fuuzetsu>
I do this in some project (client's so private) and it works great.
<Infinisil>
r444: After every assignment (blabla = blabla;) there needs to be a ;
eacameron has quit [(Remote host closed the connection)]
<r444>
oh, i found the missing ;
<Infinisil>
Fuuzetsu: Well now that I think about it once more, the stuff that nix has in its library (nixpgks/lib) and in pkgs is actually very much enough, you're right
<r444>
error message is .... meh at least
<Infinisil>
r444: Yeah it's not easy to find sometimes
<Fuuzetsu>
Infinisil: I actually only 2 days ago realised that nix doesn't support floating point. After years of using it; and only because I read about that somewhere, not because I tried to use it...
<r444>
the error after `nixos-rebuild test` looks the same as before
newhoggy has quit [(Ping timeout: 260 seconds)]
<Infinisil>
Fuuzetsu: Heh, yeah floating point doesn't have much use in nix
newhoggy has joined #nixos
<Fuuzetsu>
my use-case was parsing and processing some YAML FWIW; if it was JSON then we have a built-in for that (though processing would be a pain anyway)
<Infinisil>
r444: Seems like the override didn't do anything then
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<Infinisil>
Fuuzetsu: Why did you need to parse yaml at build time?
acertain has quit [(Ping timeout: 276 seconds)]
<r444>
disasm: i see the sha and it's different
<Fuuzetsu>
parsing stack.yaml and extracting local packages, dependency overrides and extra-packages then overriding the package set with those
<r444>
any pointers how to proceed from there?
<Sonarpulse>
Fuuzetsu: havee you ever talked to domenkozar about that?
<Fuuzetsu>
so we build Haskell package but use information from stack.yaml to make sure it's closer to "stack build" or whatever
<Fuuzetsu>
Sonarpulse: about what precisely? parsing stack.yaml? no
<Sonarpulse>
also hi, long time no see
<Infinisil>
I se
<Fuuzetsu>
hey; don't really come on IRC much these days (years?)
newhoggy has quit [(Ping timeout: 260 seconds)]
peacememories has joined #nixos
<Sonarpulse>
years :D
<Infinisil>
r444: If the override was applied, the hash wouldn't be checked I'm pretty sure, don't really know
<Infinisil>
Hi Sonarpulse :)
<r444>
I just pasted the snippet into the configuration.nix
<Sonarpulse>
and yeah. parsing stack.yaml
Filystyn has joined #nixos
<Fuuzetsu>
nope, just wrote that stuff in-house when I needed it, no public solutions as far as I saw (though I expect many home-grown ones)
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
<r444>
Fuuzetsu: I want to use nixos as a guest within parallels desktop, but to share folders and stuff like with host I need to install parallels tools
eacameron has joined #nixos
newhoggy has quit [(Ping timeout: 260 seconds)]
<r444>
i have an iso parallels expects me to mount in a guest linux system
<Infinisil>
Ahh yeah that looks better, wouldn't this give the error "attribute defined multiple times"?
iyzsong has quit [(Ping timeout: 240 seconds)]
<r444>
error: attribute ‘extend’ missing, at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/system/boot/kernel.nix:26:31
<Fuuzetsu>
no, it's taking " prl-tools = config.boot.kernelPackages.prl-tools;"; and `config` is an attribute passed in and you're defining it in there; even if it was, you can force it and do various stuff
<Infinisil>
Fuuzetsu: Ah yeah, makes sense
newhoggy has joined #nixos
<Fuuzetsu>
r444: you sure you set `boot.kernelPackages.prl-tools` and not `boot.kernelPackages`?
<Fuuzetsu>
hm
<Infinisil>
Well my next move would be to just clone nixpkgs and change this very file yourself (putting the path for src)
<r444>
the only thing i've changed is the value of src = ...
<Infinisil>
Then use -I nixpkgs=/path/to/nixpkgs
<r444>
i've replaced ... with a path
<disasm>
Infinisil: but then you have to manage updates yourself
<Fuuzetsu>
let me put that in my config and mess with it
<disasm>
r444: can you gist it again?
<r444>
do you mean configuration.nix?
<disasm>
I probly have about a half hour or so left on some of these jobs running on my laptop before I can reboot into osx and try something.
<disasm>
r444: yeah
<Infinisil>
disasm: I doubt it's even gonna work, because those patches and stuff may not apply to the version he has
<Infinisil>
disasm: I would do that to just test if it's gonna work before investing any more time
<disasm>
ah yeah, xorg version might end up being different and what not.
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
<r444>
Fuuzetsu: it got a bit farther
<r444>
builder for ‘/nix/store/1hdghnwnphqlxwj4zklvarvpngsiir6k-prl-tools-lin.iso.drv’ failed to produce output path ‘/nix/store/vaacf0z6a7v2ysxs11qnwwasnvjlcfs8-prl-tools-lin.iso’
<r444>
i see this though
<r444>
cannot build derivation ‘/nix/store/qw4bp1yhfgykzxshf8j4y8vggzv999yx-prl-tools-10.0.2.27712.drv’: 1 dependencies couldn't be built
<r444>
...
<r444>
error: build of ‘/nix/store/fx0zc8j4dy1jchi43zz82lpn02kjxrfb-nixos-system-nixos-17.03.1371.76d649b594.drv’ failed
lambdael has quit [(Quit: WeeChat 1.7.1)]
<disasm>
r444: can you gist the whole output?
<Fuuzetsu>
seems like it failed to build prl-tools: that means your override worked, now to just fix your build
ris has quit [(Ping timeout: 240 seconds)]
<r444>
gotta go away for a few hours
newhoggy has joined #nixos
<r444>
I'll annoy you a bit later or tomorrow, ok?
<Filystyn>
just at soem point happened maybe i need some hard *resest* lol
<Infinisil>
That looks pretty bad..
<Filystyn>
this happens only with clem
* Fuuzetsu
is the one that package Clementine
<Filystyn>
but it worked fine untill i installed many DE
<Fuuzetsu>
packaged*
<Fuuzetsu>
haven't touched it in long time..
<Filystyn>
to see which one i prefered
newhoggy has quit [(Ping timeout: 260 seconds)]
<Filystyn>
or maybe this is coincidence
<Filystyn>
:o
<Filystyn>
also
<Fuuzetsu>
you should report that to the clementine developers
pietranera has quit [(Ping timeout: 268 seconds)]
lambdael has quit [(Quit: WeeChat 1.7.1)]
<disasm>
yeah, that seems like a bug. It could potentially be caused by something in your config you didn't have before, but malloc() memory corruption means something isn't being allocated correctly causing corruption in memory, or you have bad RAM, one of the two.
newhoggy has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
alx741_ has joined #nixos
<Filystyn>
nah i have 8 giga ram
<Filystyn>
this is just fuckign segfault
simendsjo has joined #nixos
<Filystyn>
and the linking problem was solved it was other program tho
<Fuuzetsu>
don't know if anyone has been updating it
proteusguy has joined #nixos
<Fuuzetsu>
it's at 1.3.1 on github so guess not
<Fuuzetsu>
(clementine is, not nixpkgs)
newhoggy has joined #nixos
<simendsjo>
I haven't been able to upgrade NixOS for a while as ghc-syb-utils haven't been able to build. I found a github issue for this that said that it had been fixed and would be available in a matter of days. It has now taken some days longer, and it looks like nixpkgs doesn't build properly (if I interpret Hydra correctly). Is there something I can do to work around this and upgrade my system despite this problem? Unfortunately, I don't know
<simendsjo>
enough nix to help resolve the issues.
<disasm>
the only difference between unstable and stable is it adds optionals for ipod mtp cd and cloud
arjen-jonathan has quit [(Ping timeout: 260 seconds)]
<Fuuzetsu>
1.3.x has tons of fixes, I'd suggest packaging and trying that.
<disasm>
simendsjo: are you on unstable?
<Fuuzetsu>
simendsjo: which issues are these? can you link? why is ghc-syb-utils blocking your system, is it a dependency for something you're using?
newhoggy has quit [(Read error: Connection reset by peer)]
newhoggy has joined #nixos
roconnor has joined #nixos
newhoggy_ has joined #nixos
newhoggy has quit [(Ping timeout: 246 seconds)]
newhoggy_ has quit [(Ping timeout: 246 seconds)]
newhoggy has joined #nixos
Infinisil has joined #nixos
roconnor has quit [(Quit: Konversation terminated!)]
newhoggy has quit [(Ping timeout: 268 seconds)]
alx741_ has quit [(Quit: alx741_)]
alx741 has joined #nixos
kugelblitz has joined #nixos
marsel has joined #nixos
<sphalerite>
Idea: would it be feasible and useful for binary caches/remote stores to provide deltas from previous versions in addition to complete packages? As I imagine it, it would save a lot of download on mass-rebuilds
newhoggy has joined #nixos
endformationage has joined #nixos
zeus_ has joined #nixos
<kugelblitz>
how can i get ldconfig to run on nixos? It complains that /nix/store/HASH-glibc-2.25/etc/ld.so.cache is on a readonly filesystem
<sphalerite>
kugelblitz: depending on what you're aiming to do, you could just pass the -C argument to put the cache elsewhere
<sphalerite>
For improving program load performance, the model doesn't really work for NixOS AFAIU. https://github.com/NixOS/nixpkgs/issues/24844 would be a better solution but I don't know how to implement it
newhoggy has quit [(Ping timeout: 240 seconds)]
hotfuzz_ has joined #nixos
jgertm has quit [(Ping timeout: 255 seconds)]
hotfuzz has quit [(Ping timeout: 240 seconds)]
<kugelblitz>
sphalerite, like nix-shell -C "out=/some/writable/path" ?
<sphalerite>
kugelblitz: no, ldconfig -C /some/writable/path/ld.so.cache
<kugelblitz>
ah
newhoggy has joined #nixos
<sphalerite>
kugelblitz: reason for the concept not really working being that nixos doesn't have a systemwide library search path from which a cache could be generated meaningfully, as each executable has its own search path
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vQm59
<NixOS_GitHub>
nixpkgs/master 26e1664 Langston Barrett: flask-restplus: update to 0.10
<NixOS_GitHub>
nixpkgs/master cb0851d Frederik Rietdijk: Merge pull request #26714 from siddharthist/flask-restplus...
NixOS_GitHub has left #nixos []
<kugelblitz>
ah hm I just wanted a list of libraries which gcc can link to
<sphalerite>
ah right, in the nix-shell?
<kugelblitz>
when i do a nix-shell -p SOMELIBS then i want to see which ones are actually there
<Infinisil>
sphalerite: Regarding your idea: Aren't binary caches not very bad for diffing? I feel like every single version would have an incremental update that's just as big as the whole thing
<kugelblitz>
yep
<Infinisil>
s/binary caches/binaries/g
acowley_away is now known as acowley
joko has joined #nixos
<sphalerite>
kugelblitz: best I can think of is ls $(printf "%s/lib " $nativeBuildInputs)
<sphalerite>
Infinisil: but in the case of a mass-rebuild it would often just be library paths changing, while most of the program code stays the same
<Infinisil>
sphalerite: Ah I see
<acowley>
Is anyone familiar with building qt5 applications these days?
<acowley>
I have a thing that used makeQtWrapper, and I'm not sure how to get it working since the refactoring that removed makeQtWrapper
newhoggy has quit [(Ping timeout: 260 seconds)]
<acowley>
As of now, on darwin I get: This application failed to start because it could not find or load the Qt platform plugin "cocoa"
<acowley>
in "".
<sphalerite>
Infinisil: and I think that would be especially useful in packages that contain a lot of data (particularly games) that doesn't depend on the build inputs to the game's derivation at all
zeus_ has quit [(Read error: Connection reset by peer)]
<Infinisil>
sphalerite: I feel like zfs could work for that, the whole snapshot and incremental send/receive thing
zeus_ has joined #nixos
<sphalerite>
acowley: I think it's just not been removed, just moved into qt5
<acowley>
I think things are supposed to work automatically now, but I must have left something out of the derivation for this thing that used to work
<sphalerite>
oh, in that cacse I don't know
<acowley>
I see, there's a custom mkDerivation now
<acowley>
Which is a problem for me as I'm already using a custom mkDerivation. Previously I'd wrapQtProgram myself
<acowley>
This is an interesting (eh) design problem
newhoggy has quit [(Ping timeout: 246 seconds)]
<sphalerite>
mkDerivation should be more composable
Tucky has quit [(Remote host closed the connection)]
<acowley>
Yes in so far as it's probably better than bash, but no in that it's too popular a place to inject custom arguments.
<acowley>
E.g., given another customized mkDerivation (something that manipulates arguments and calls stdenv.mkDerivation), how to compose the two?
<sphalerite>
Or rather: perhaps custom mkDerivations should be implemented as a transformation function that is composed with mkDerivation but can also be used on its own
<acowley>
Yeah
<acowley>
Precisely
<sphalerite>
Doesn't even sound too difficult. But I don't know what I'm getting into here :p
<kugelblitz>
sphalerite, thanks for the hint, did not know about $nativeBuildInputs
<acowley>
sphalerite: I think you're right, it's just a tiny refactoring
newhoggy has joined #nixos
<acowley>
sphalerite: But looking at what's there now, I don't think it will solve my immediate problem
<sphalerite>
kugelblitz: it would be buildInputs but for some magic that mkDerivation does
<sphalerite>
acowley: could you not refactor qt's custom mkDerivation like that, PR it, and use your branch in the meantime?
<acowley>
sphalerite: Yes, I will PR the refactor if I can determine it's the problem
<NixOS_GitHub>
[nixpkgs] LnL7 opened pull request #26797: erlang: remove erlangR16 and all versioned variants from all-packages (master...erlang-versions) https://git.io/vQmA7
NixOS_GitHub has left #nixos []
Sonarpulse has quit [(Ping timeout: 255 seconds)]
reinzelmann has joined #nixos
jgertm has joined #nixos
<acowley>
If I add qtbase to propagatedBuildInputs I get a segfault rather than a missing plugin error. I think that's all the progress I'll make today.
<noffle>
hello. I'm running the nixos livecd and noticed that wifi commands like iwlist and iwconfig seem to not be present
zeus_ has quit [(Read error: Connection reset by peer)]
atemerev has joined #nixos
zeus_ has joined #nixos
<Neo--->
noffle, I don't have iwlist, but you might get (some at least) information from nmcli?
newhoggy has quit [(Ping timeout: 255 seconds)]
<peti>
disasm: Hmm, back-porting that single change is going to be difficult.
<Neo--->
noffle, e.g. nmcli device wifi list
<atemerev>
Hi! I am trying to build a python package; it includes a few dependencies not listed in pythonPackages (e.g. sseclient). I have added the dependency to pythonPackages and then to propagatedBuildInputs, but it still not found during the build process:
newhoggy has joined #nixos
<disasm>
peti: can you give simendsjo some help? I know nothing about ghc :)
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<Neo--->
i think you need the buildEnv
newhoggy has quit [(Ping timeout: 246 seconds)]
newhoggy has joined #nixos
<Neo--->
eh, buildInputs and extraLibs set up
<Neo--->
anyway, I need to run, hope it's any use! :)
hotfuzz_ has quit [(Read error: Connection reset by peer)]
<Neo--->
noffle, no problem :)
<Neo--->
noffle, pro-tip: you can short that to nmcli d w l ;)
bennofs has joined #nixos
hotfuzz_ has joined #nixos
<noffle>
nice
newhoggy has quit [(Ping timeout: 260 seconds)]
<peti>
disasm: pkgs/development/haskell-modules/configuration-common.nix is the place to look at.
<disasm>
atemerev: I see you listed yourself as the maintainer for those packages, are you trying to add these to nixpkgs?
acertain has joined #nixos
newhoggy has joined #nixos
<disasm>
simendsjo: I think you can do something like this: ghc-syb-utils = overrideCabal super.ghc-syb-utils (drv: { doCheck = false; });
<disasm>
thx peti for the pointer.
<atemerev>
disasm: yes, eventually
newhoggy has quit [(Ping timeout: 260 seconds)]
<disasm>
atemerev: so are you adding those to your nixpkgs fork?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #26798: ios-cross: Just properly use the cc-wrapper (master...ios-cross-stdenv) https://git.io/vQYT4
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 2 new commits to master: https://git.io/vQYTg
<NixOS_GitHub>
nixpkgs/master f43ae98 John Ericson: ios-cross: Just properly use the cc-wrapper...
<NixOS_GitHub>
nixpkgs/master a240313 John Ericson: Merge pull request #26798 from obsidiansystems/ios-cross-stdenv...
NixOS_GitHub has left #nixos []
<simendsjo>
disasm: Where do I put this? I see overrideCabal is defined in haskell-modules/lib.nix, but I'm still very much a newbie with nix.
<atemerev>
disasm: to my clone, firstly
newhoggy has joined #nixos
<disasm>
simendsjo: depends on how you're installing the package. if it's via nixos-rebuild, it would go in configuration.nix.
Itkovian has joined #nixos
<disasm>
atemerev: so after you add those packages, they need to go in pkgs/top-level/python-packages.nix
jensens has quit [(Ping timeout: 276 seconds)]
<disasm>
then you should be able to run something like nix-shell -I nixpgs=/path/to/nixpkgs -p pythonPackages.dcos-cli
ison111 has quit [(Quit: WeeChat 1.7.1)]
newhoggy has quit [(Ping timeout: 260 seconds)]
cpennington has quit [(Ping timeout: 255 seconds)]
<simendsjo>
disasm: I get a problem where overrideCabal isn't defined. Tried searching through the documentation, but I couldn't find overrideCabal in the nixpkgs Haskell documentation.
<Sonarpulse>
peti: were getting close to the point where I'd open a PR for my cross changes to the haskell infra
<Sonarpulse>
there's still a few more systems fixes I'll need to hydra can actually test the stuff
<Sonarpulse>
but if you like, I can open the PR first for style, etc
<peti>
Sonarpulse: Hmm, just open the PR whenever it suits your needs. I'll need a few days to actually read the changes anyway.
newhoggy has joined #nixos
<Sonarpulse>
exactly
<Sonarpulse>
I'll do that then
zeus_ has quit [(Read error: Connection reset by peer)]
<chrishill>
Hi. Is there a stable version of Firefox in Nixpkgs? I think I only got nightly installed, but I would like to try the stable.
<chrishill>
Is it something like firefox-51?
yegods has quit [(Remote host closed the connection)]
newhoggy has quit [(Ping timeout: 276 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 closed pull request #24983: [WIP] Cross compilation changes, with enphasis on (haskell) GHC HEAD (master...cross-haskell) https://git.io/vSbqA
NixOS_GitHub has left #nixos []
<simendsjo>
disasm: Sorry for wasting your time, but I'm stuck :/ My latest attempt: environment.systemPackages = with pkgs; [(pkgs.haskellPackages.ghc-syb-utils (drv: { doCheck = false; }))];
yegods has joined #nixos
yegods has quit [(Remote host closed the connection)]
yegods has joined #nixos
MP2E has joined #nixos
newhoggy has joined #nixos
cpennington has joined #nixos
hotfuzz_ is now known as hotfuzz
<Infinisil>
chrishill: Firefox is always called Nightly by default when it's not distributed by mozilla
<MP2E>
hi there, have been trying to use nix-copy-closure with another machine, both running latest nixpkgs master as of an hour ago. If I try --from to copy over ssh, I get the error 'got EOF while expecting 8 bytes from the remote side'
oida_ has joined #nixos
<MP2E>
weird thing is that logging in with just SSH works. nix-store works once I log in
jgertm has quit [(Ping timeout: 260 seconds)]
<MP2E>
also nix-copy-closure works normally if I put both pcs in the same LAN and use a local IP
<gchristensen>
unfortunately I got approval from Mozilla to distribute the officially named Firefox version but they reconsidered after I asked for _written_ approval :(
<MP2E>
but doesn't work with an IP outside the network, despite being able to SSH in still
<Infinisil>
chrishill: You can enable the official branding but you need to compile it yourself then (takes quite a while). I'm currently doing that
<Infinisil>
gchristensen: Ohh, weird
newhoggy has quit [(Ping timeout: 240 seconds)]
<chrishill>
Infinisil: Im having problems with Netflix and its DRM videoplaying system. I suspected that being nightly was the problem. It at some point prompted me to go to Firefoxs site and download Firefox, while in Firefox.
newhoggy has joined #nixos
<chrishill>
Infinisil: so compiling it with the official branding might fix that, you think?
oida has quit [(Ping timeout: 260 seconds)]
MichaelRaskin has joined #nixos
<Infinisil>
chrishill: I'm pretty sure the official branding doesn't anything other than firefox's GUI
<Infinisil>
doesn't affect*
<gchristensen>
chrishill: if you don't mind, I use google-chrome for DRM videoplaying
<makefu>
can somebody other than bennofs confirm the origin of `nix` from the hackernews-comment stating " I believe that this meaning is even intentional, the original author of nix (Eelco Dolstra) is from the Netherlands. The name comes from the fact that by default, nothing is available in build environments in nix. " ? i'd love to add this trivia to the wiki
<Infinisil>
Why would firefox not work for that though?
<chrishill>
gchristensen: good thinking, thanks!
<chrishill>
Sheesh, I had too much tunnel vision to think of that myself
<Infinisil>
makefu: You could write Dolstra an E-Mail
newhoggy has quit [(Ping timeout: 268 seconds)]
<chrishill>
Infinisil: I think its an issue with the Nix installation, since it works on my APT installed firefox on my desktop but not on the Nix installed Firefox on my laptop
<chrishill>
It gives a pretty bland and bad error message
<gchristensen>
makefu: you could open an issue asking on nixos/nix
<disasm>
chrishill: In the Add-ons Manager tab, select the Plugins panel. Is Widevine Content Decryption Module provided by Google Inc enabled?
<makefu>
gchristensen: ok i will open a ticket and add the reference to the wiki ;)
newhoggy has joined #nixos
<Infinisil>
makefu: Wait, what wiki? The unofficial one?
<makefu>
!
<makefu>
i would not even know where to add it in the official documentation
<Infinisil>
It's not really documentation really, just history
MP2E has quit [(Read error: Connection reset by peer)]
MP2E has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
stanibanani has quit [(Ping timeout: 260 seconds)]
<makefu>
how about `everywhere`, it s just such a nice piece of trivia
zeus_ has quit [(Read error: Connection reset by peer)]
zeus_ has joined #nixos
pietranera has joined #nixos
<Infinisil>
where everywhere = [ wikipedia, ?? ]
<dtzWill>
makefu: it's in one of the papers, "The name Nix is derived from the Dutch word niks, mean-
<dtzWill>
ing nothing; build actions do not see anything that has not been explicitly declared as an input."
<dtzWill>
1 sec i'll link it to you
<MichaelRaskin>
Well, on the Wikipedia mere provable truth will not preserve it from deletionists unless you force some media to ask Eelco Dolstra this question
<makefu>
dtzWill: great!
<dtzWill>
from "Nix: A Safe and Policy-Free System for Software Deployment", fwiw, page2 it's the footnote
<MichaelRaskin>
A paper is primary source, and Wikipedia loves secondary, no?
<dtzWill>
took me entirely too long to recognize that as a joke, lol
<MichaelRaskin>
I guess I could stretch the joke by looking up a Talk page where this exact question was seriously discussed
<LnL>
:p
newhoggy has joined #nixos
<MichaelRaskin>
I mean primary vs. secondary for stuff like that; can you cite a rock band homepage for the album publishing dates, for example?
ryanartecona has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #26799: haskell infra: Fix cross compilation to work with new system (master...cross-haskell) https://git.io/vQYqd
pie_ has quit [(Read error: Connection reset by peer)]
<chrishill>
disasm: that add on might have been the problem. I tried disabling all add ons. But if that one needs to be running...
ThatDocsLady has quit [(Quit: Arma-geddin-outta-here!)]
newhoggy has quit [(Ping timeout: 246 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<Infinisil>
A kinda unrelated question: Is is somehow possible to mathematically have encrypt something and guarantee it can't be decrypted before some date?
<MP2E>
just tried nix-copy-closure --to to see if it's just --from having an issue, that gives me a different error : "program /nix/store/*hash*-openssl-1.0.2l-bin/bin/openssl failed with exit code 1 at /nix/store/*hash*-nix-1.11.11/lib/perl5/site_perl/5.24.1/x86_64-linux-thread-multi/Nix/CopyClosure.pm line 44"
<MP2E>
pretty odd
<MP2E>
followed up by 'unexpected end-of-file'
<MichaelRaskin>
Infinisil: not really
<MichaelRaskin>
It does depend on your definition of encryption, in some sense
<Infinisil>
MP2E: Rerun it maybe, I often get unexpected EOF because of bad network connection, rerunning it fixes it every time
<MichaelRaskin>
It is possible to split a file into two files stored on different devices so that seizing one is not enough to say anything about the file, except size
<Sonarpulse>
Infinisil: if it requires all the CPU time in the world until that day to crack it, and you throw away the key :D
<gchristensen>
Infinisil: no, because the current date is an input that can always be faked
<Infinisil>
Sonarpulse: Yeah, but that doesn't practically work
<Sonarpulse>
sorry
<gchristensen>
that is The Only Way
<Infinisil>
Hmm...
<gchristensen>
because the date isn't a mathematical construct, but an input to the equation
<dash>
build a stone megastructure that won't unlock until the sun shines on the keyhole
<dash>
align to local latitude etc
<gchristensen>
the local latitude of the date you want it to unlock*
<dash>
this only works if the future date is less than a year away
<Infinisil>
Okay okay, there's no nice way
newhoggy has joined #nixos
<Infinisil>
One thing I find really cool is how blockchains can do a proof that something happened *before* some date, I'm trying to find other similar things
<dash>
Infinisil: put the key on a flash drive, hide it in a crypt and raise a lich guardian to kill adventurers before the appointed day
chrishill has quit [(Quit: Leaving)]
<Infinisil>
:')
<dash>
now that I mention it, I might just do that anyhow
<dtzWill>
xD
<Infinisil>
Is it possible to proof that something happened *after* a certain point in time?
<dash>
Infinisil: sure
<gchristensen>
blockchain is built on lots of people agreeing something happened
<MichaelRaskin>
A problem with «mathematically impossible» is also that we don't actually know even P vs. NP
<Infinisil>
dash gchristensen: How would you do it?
<dash>
Infinisil: selfie with a newspaper
<gchristensen>
so the people verifying things all just agree "yep, this thing says it is done and it isn't this date yet"
<simendsjo>
disasm: Finally got it to compile by putting the following in the packages list: (pkgs.haskell.lib.overrideCabal pkgs.haskellPackages.ghc-syb-utils (drv: { doCheck = false; })). Unfortunately, I got the same error as before. Tried doing a collect and rebuild, but the same error again.
<MichaelRaskin>
gchristensen: fake blockchain histories are pretty easy to create, though
ertes has joined #nixos
<gchristensen>
and the assumption is that if enough verifiers agree then it is true enough to move forward
<MichaelRaskin>
This only works if there is no global net partition event
<gchristensen>
yeah and a lot of other stuff, the blockchain is an ecological disaster
<Infinisil>
gchristensen: This gives a guarantee that something happened before a certain time I think
newhoggy has quit [(Ping timeout: 240 seconds)]
<Infinisil>
Our assumption is that blockchains work as intended
<MichaelRaskin>
Infinisil: but you can be partitioned from blockchain
<gchristensen>
what is a date other than a point in time
rory has joined #nixos
<clever>
MichaelRaskin: but with the difficulty of the chain as high as it is, any partition is going to suffer so badly it wont progress at all
<MichaelRaskin>
clever: that is the point
<clever>
MichaelRaskin: you would need to partition the entire internet nearly 50/50 by hashing power
<MichaelRaskin>
If you want to use blockchain history as proof of date, I will fake a blockchain history where China has been literally nuked
<MichaelRaskin>
Which means I need to mine _one_ block (at current difficulty), then difficulty goes down, fast
<MichaelRaskin>
From formal verification point of view, this is a formally correct history
<clever>
i believe there is also another point, that when given 2 chains of the same length, prefer the chain that has had a higher difficulty
<clever>
and also, the time it took you to make that 1 block will set you behind time wise a decent amount, until you can get the difficulty down enough to cheat and make more blocks then you should
<MichaelRaskin>
clever: my point is that if you rely on blockchain as proof of time, you _require_ unfiltered network access
MP2E has quit [(Ping timeout: 240 seconds)]
newhoggy has joined #nixos
<MichaelRaskin>
And if you trust your network access, you can as well just check time.is
<clever>
yeah, you would need to eventualy hear about the other fork and correct things, or hard-code a minimum difficulty for the chain to be acceptable
<clever>
and i wouldnt really use a blockchain as a replacement for ntp, the resolution is far lower
rory is now known as guest
<Infinisil>
Oh and regarding proofing something happened *after* a point: Assuming "happened" means "we knew the data that produced hash x", this is impossible, because we can't look into the future, it wouldn't make any sense
<MichaelRaskin>
And when I hear «encryption» and «mathematically» and «guaranteed» in the same phrase, I go check Scott Aaronson's blog to see if there is any major paper on P vs. NP. The answer has always been «no» so far…
newhoggy has quit [(Ping timeout: 240 seconds)]
<disasm>
simendsjo: sorry, I know nothing about haskell, someone else here might be able to help you.
reinzelmann has quit [(Quit: Leaving)]
<simendsjo>
Ok, thanks so far. I tried moving it to packageOverrides (adding the following: haskellPackages.ghc-syb-utils = pkgs.haskell.lib.overrideCabal pkgs.haskellPackages.ghc-syb-utils (drv: { doCheck = false; });), but now I get errors like `ghcWithPackages missing`.
<clever>
simendsjo: haskellPackages.ghc-syb-utils = doesnt work in an obvious way, it does haskellPackages = { ghc-syb-utils = ...; };
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] aszlig pushed 1 new commit to master: https://git.io/vQYOM
<Infinisil>
I feel like a website for nix examples would be nice
<Infinisil>
One where you could add an example along with some tags
newhoggy has joined #nixos
<Infinisil>
Every used function package could get indexed so you can search for either tags or functions (e.g. builtins.map)
<Infinisil>
function and* package*
<Infinisil>
wait no, <s>package</s>
simendsjo has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
newhoggy has quit [(Ping timeout: 240 seconds)]
zeus__ has quit [(Read error: Connection reset by peer)]
zeus_ has joined #nixos
ambro718 has quit [(Quit: Konversation terminated!)]
slabity_alt has joined #nixos
newhoggy has joined #nixos
mellowmaroon has joined #nixos
<mellowmaroon>
I was able to fix a lot of my java issues by only having oraclejdk/jre installed, instead of both it and openjdk
newhoggy has quit [(Ping timeout: 240 seconds)]
goibhniu has joined #nixos
mellowmaroon has left #nixos []
newhoggy has joined #nixos
Itkovian has joined #nixos
avn_nb has joined #nixos
orivej has joined #nixos
<justanotheruser>
how do I use ${pkgs.libtiff} in the command line?
zeus_ has quit [(Read error: Connection reset by peer)]
<justanotheruser>
also, why was the nixos wiki shut down?
zeus_ has joined #nixos
newhoggy_ has joined #nixos
newhoggy has quit [(Ping timeout: 246 seconds)]
<Infinisil>
justanotheruser: How are you intending to use this in the command line? I bet you're trying to do something this was not intended for
<justanotheruser>
Infinisil: ls
slabity has quit [(Disconnected by services)]
<goibhniu>
justanotheruser: the wiki was overwhelmed by spambots, so much of the content was moved to the manual, there's also a new github wiki: https://github.com/nixos-users/wiki/wiki
<justanotheruser>
ty
hotfuzz_ has joined #nixos
orivej has quit [(Ping timeout: 246 seconds)]
slabity_alt is now known as slabity
newhoggy has joined #nixos
newhoggy_ has quit [(Ping timeout: 255 seconds)]
hotfuzz has quit [(Ping timeout: 246 seconds)]
kugelblitz has quit [(Ping timeout: 240 seconds)]
<Infinisil>
justanotheruser: Ah I see
<Infinisil>
I actually don't know of an easy way to get the path of a package
<dtzWill>
justanotheruser: nix-build '<nixos>' -A libtiff
<dtzWill>
should do the trick
<Infinisil>
What I often just do when I need to find out where an executable comes from is `realpath $(which hello)`
<dtzWill>
i do that too, since once it's installed I don't want the path of /any/ version but the path of the one that I execute when I run the command... :)
<LnL>
yep, nix-build prints the path on stdout
lordofsnackfalco has joined #nixos
<Infinisil>
Isn't there some better way?
<justanotheruser>
dtzWill: ty
<Infinisil>
I feel like that's a bit abusive of nix-build
<LnL>
using nix-build guaranties that it actually exitsts
<Infinisil>
Well it works, so whatever
newhoggy_ has quit [(Ping timeout: 240 seconds)]
<justanotheruser>
hmm, my program is telling me "ImportError: libtiff.so.5: cannot open shared object file: No such file or directory"
<LnL>
if you just want to print it you can use nix-instantiate --eval -A hello.outPath
<justanotheruser>
and it looks like within the libtiff path, there is no libtiff.so.5
<Infinisil>
LnL: Ah nice
<Infinisil>
justanotheruser: Can you gist it?
<LnL>
but ls might say that it doesn't exist :)
yegods has quit [(Remote host closed the connection)]
<Mateon1>
How does npm with node-gyp look like on nixos? I'm trying to build a package that depends on keyboard-layourt, which fails due to missing X11/Xlib.h - how can I fix that, preferably without packaging a massive npm monstrosity?
<Mateon1>
keyboard-layout*
<Infinisil>
justanotheruser: You could use nix-repl for that
<Infinisil>
When you tab after libtiff. you get suggestions as well
<LnL>
yeah, that's what I did, nix-repl '<nixpkgs>', libttiff.<tab>
MP2E has quit [(Quit: reboot)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
MP2E has joined #nixos
newhoggy has joined #nixos
<sphalerite>
justanotheruser: you can also use the tab completion provided in zsh, not sure about bash but there is completion on nix-shell and nix-env for zsh
<justanotheruser>
not sure what you mena by that, but I'll look at the commands for nix-repl
<justanotheruser>
sphalerite: oh yeah? Maybe I should get that extension
tokudan has quit [(Quit: Leaving)]
<LnL>
the zsh tab completion is almost as good as nix-repl now
<sphalerite>
LnL: almost?
<LnL>
well it doesn't work for complex expressions
lordofsnackfalco has left #nixos []
<Ralith>
now if only zsh didn't break horribly whenever I ssh in from a remote system
<sphalerite>
Ralith: how?
hiratara has quit [(Ping timeout: 276 seconds)]
<LnL>
never had any issues with that
<sphalerite>
^
<Ralith>
/nix/store/ghgv7545gy8c4pa5b63jqpfahd4amkmd-set-environment:23: can't find terminal definition for xterm-termite
newhoggy has quit [(Ping timeout: 268 seconds)]
eacameron has quit [(Remote host closed the connection)]
<Ralith>
and yes, I have the terminfo installed
<Ralith>
it's some dumb search path issue that's been known for ages
<Ralith>
you can work around it by re-exporting TERM manually, which invokes some shell magic and makes it find it, but it's super obnoxious
<Ralith>
since you have to do that on every single login
<sphalerite>
Ralith: but I don't have that issue
<Ralith>
hurray for you?
<ToxicFrog>
I also don't have that issue, but all of my terminals report as "xterm-256color", IIRC
<sphalerite>
Ralith: can you show me a way to reproduce it?
newhoggy has joined #nixos
<Ralith>
ssh into a nixos system from a terminal that needs its own terminfo
<Ralith>
such as termite
<Ralith>
when the remote shell is zsh
hiratara has joined #nixos
<sphalerite>
Where is the terminfo installed?
<sphalerite>
In cases where it doesn't work
<sphalerite>
or: can you point me to a bug report?
<ToxicFrog>
Infinisil: it's a thing for programs to look up information about a terminal.
<ToxicFrog>
Like what features it supports, or what sequences you have to send to it for various commands.
<ToxicFrog>
Sadly, not everything is a vt220.
<ToxicFrog>
Ralith: that bug lists two workarounds you can use to not have to manually set TERM each time
kristoffer has joined #nixos
kristoffer has quit [(Client Quit)]
newhoggy has quit [(Ping timeout: 268 seconds)]
<sphalerite>
oh yeah that one
chrishill has joined #nixos
<ToxicFrog>
Infinisil: if you've ever run into "termcap" (terminal capabilities), that's what terminfo replaced.
newhoggy has joined #nixos
MrCoffee has joined #nixos
<justanotheruser>
Why isn't this legal? nix-repl> builtins.attrNames nixpkgs.nix-zsh-completions error: value is a function while a set was expected, at (string):1:20
<clever>
what did you do to set nixpkgs?, it doesnt exist by default
<chrishill>
I can't install google-chrome. error: No Chrome plugins are available for your architecture.
seanz has joined #nixos
<chrishill>
Does anyone have any experience with that?
slabity has left #nixos []
<justanotheruser>
clever: imported it
<justanotheruser>
what you just ran gives me error: undefined variable ‘nix-zsh-completions’ at (string):1:30
<clever>
justanotheruser: with what command exactly?
<justanotheruser>
I restarted nix-repl
<clever>
chrishill: you need to set chromium.enableWideVine = true; in your nixpkgs config
<clever>
justanotheruser: you have to load nixpkgs with either nix-repl '<nixpkgs>' or by running :l <nixpkgs> in nix-repl
newhoggy has quit [(Ping timeout: 240 seconds)]
<justanotheruser>
my environment.systemPackages includes nix-zsh-completions
<justanotheruser>
ok
<clever>
nixpkgs = import <nixpkgs> wont work, because that returns the function at the top of nixpkgs
<clever>
you have to call the function with arguments before you can access the packages within
<justanotheruser>
yep, that worked, thanks!
<chrishill>
clever: Thanks!
newhoggy has joined #nixos
avn_nb has quit [(Remote host closed the connection)]
<chrishill>
clever: I still get the same error for some reason. This is my .nixpkgs/config.nix: { allowUnfree = true; chromium.enableWideVine = true; }
<sphalerite>
Anyone know anything about debugging tab crashes in firefox?
<clever>
i believe this is the open source one, the only other crippling fault it has, is that Xorg crashes hard if i unplug an active monitor
<clever>
and X also likes to auto-activate any monitor i hot-plug
<clever>
so i must be very carefull near the video cables
<sphalerite>
I think I've sesen it before too, but I'm on intel graphics
<MP2E>
compton is a life safer :P I was dealing with the worst visual tearing in xmonad til I enabled it
pietranera has joined #nixos
<clever>
the closed-source driver is worse, any attempt to turn on dual-monito crashes xorg hard
<clever>
and xfce restores dual-monitor upon login, crashing xorg hard
<sphalerite>
well AMD aren't really trying with their proprietary drivers, are they?
<clever>
yeah
newhoggy has joined #nixos
<clever>
i also discovered some unique nixos problems with the open-source drivers before
<clever>
one of the components in the mesa pathway, was merged into another project
<clever>
but the auto-generated stuff in xorg packages, just got an http dir listing, and built everything in it
<clever>
so nixos kept using the outdated repo, that had been long forgotten
<sphalerite>
meanwhile nvidia aren't trying with their proprietary driver, nor are they cooperating in the slightest with the nouveau folks :(
<clever>
because of that, xterm framerates where horid, "ls -ltrh" took minutes to output
<sphalerite>
clever: ouch
<clever>
i suspect it was forcing a vsync between every line of text, or possibly every character
<sphalerite>
oh yeah, I've had to use windows a bit recently
<sphalerite>
powershell's performance is abysmal
mudri has joined #nixos
<clever>
oh yeah, and windows cant even keep up with my typing speed, lol
<clever>
i often hammer out complex sequences of control codes in screen, using ctrl and shift
<clever>
and if i do it too fast on windows with putty, it misses keystrokes
<sphalerite>
>_>
<Infinisil>
gross
newhoggy has quit [(Ping timeout: 260 seconds)]
<Infinisil>
Oh hey, an idea: Normally you'd use bash for runtime stuff in your nix config. bash is interpreted and slow. But if we use haskell or any other compiled language, it's possible to compile all these scripts at build-time!
newhoggy has joined #nixos
Rotaerk has joined #nixos
<Infinisil>
Making them much faster than bash
<clever>
Infinisil: only cost is the 1gig you need just to install ghc
<MP2E>
I think haskell hasn't been brought into nix due to concerns about bootstrapping and closure size, but I would like to see it used some :p
<MP2E>
yeah
<clever>
gcc and c/c++ would be cheaper, but then you run the risk of segfaults
ambro718 has joined #nixos
<Infinisil>
clever: Ghc is installed anyways on my machine
<clever>
Infinisil: and i think i have 7 copies of ghc 8 on mine
<clever>
but not everyone can afford to waste space like that, lol
<clever>
i have a netbook with nixos that barely has enough room for 2 generations of nixos
markus1189 has quit [(Ping timeout: 260 seconds)]
<clever>
i had to disable Xorg and fully GC it, before it could finish a nixos-rebuild
<clever>
a single copy of ghc would consume over 25% of the disk space
newhoggy has quit [(Ping timeout: 260 seconds)]
jgertm has quit [(Quit: WeeChat 1.8)]
markus1219 has quit [(Ping timeout: 260 seconds)]
seanparsons has quit [(Remote host closed the connection)]
<Infinisil>
Lol
jgertm has joined #nixos
<Infinisil>
Could use another machine to build it still
<atemerev>
OK, I have figured out how to add dependencies to dcos-cli python package, it is compiling now. However, it includes the actual "dcos" binary which I don't know how to get installed. This is what's in the sources: https://github.com/dcos/dcos-cli/blob/master/cli/bin/create-binary.sh
sean has joined #nixos
<clever>
remote build slaves wont do, since nix wants to download the deps to the local box, then push it out to slaves
<clever>
Infinisil: so it would have to be a nixops target
<Rotaerk>
MP2E, what do you mean by "haskell hasn't been brought into nix"?
<atemerev>
How it usually works for python binaries?
<Rotaerk>
I mean, it's there in nixpkgs
sean is now known as Guest22536
<clever>
and even then, you must ensure zero references to ghc at runtime, or the 2nd nixos wont fit
<clever>
and then its imposible to upgrade
Guest22536 has quit [(Client Quit)]
seanparsons has joined #nixos
seanz has quit [(Quit: Leaving.)]
markus1189 has joined #nixos
newhoggy has joined #nixos
<MP2E>
Rotaerk: I mean as in we don't use Haskell in nix the package manager
<MP2E>
and also to clarify, I think the team has stated some very good reasons why, closure size is a concern when you're talking about adding an entire gigabyte
<MP2E>
it'd just 'be nice one day'
<Rotaerk>
ah, haskell as opposed to nix expressions
newhoggy has quit [(Ping timeout: 260 seconds)]
<Infinisil>
Why is GHC so big anyways?
<atemerev>
Does anybody know how to declare Python application binaries with pyinstaller? Can't find any example...
<ekleog_>
I'd guess $out/share/zsh (potentially with /site-functions), given ls -lah /run/current-system/sw/share/zsh/site-functions gives this path here
markus1199 has joined #nixos
<ekleog_>
(got to go so can't help more than that, sorry and good luck :))
eacameron has joined #nixos
Havvy has joined #nixos
ris has quit [()]
ertes has joined #nixos
<Infinisil>
ekleog_: Thanks!
<Infinisil>
See ya
<LnL>
Infinisil: $out/share/zsh/site-functions
<Infinisil>
LnL: Gonna try it
primeos has joined #nixos
Wizek has joined #nixos
eacameron has quit [(Remote host closed the connection)]
newhoggy has quit [(Remote host closed the connection)]
Wizek__ has quit [(Ping timeout: 240 seconds)]
elninja44 has joined #nixos
Wizek_ has quit [(Ping timeout: 246 seconds)]
markus1209 has joined #nixos
Wizek has quit [(Ping timeout: 260 seconds)]
boj has quit [(Ping timeout: 246 seconds)]
Nobabs27 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 opened pull request #26804: erlang: change default to R19 (master...erlangR19) https://git.io/vQYrj
NixOS_GitHub has left #nixos []
eacameron has joined #nixos
markus1199 has quit [(Ping timeout: 260 seconds)]
markus1189 has quit [(Ping timeout: 260 seconds)]
markus1189 has joined #nixos
<atemerev>
Hi again -- now I am stuck with wrapProgram. Using pyinstall, I have generated the binary, but it is in the _source_ directory, not in the output. How do I install it in PATH?