<clever>
Infinisil: i think they want you to run this to generate it
<clever>
but git describe wont work
<clever>
nixpkgs removed the .git
eacameron has quit [(Remote host closed the connection)]
<clever>
Infinisil: i would just find out what it expects in there, and stick an echo into the nix file, and reuse the variable passed to fetchgit
eacameron has joined #nixos
<Infinisil>
(I'm still downloading the 32 bit gcc)
Wizek_ has quit [(Ping timeout: 240 seconds)]
<nixy>
If I am having problems with X programs in Nix, where would the logs for X be? Is it just `journalctl -u session-$whatever.scope`?
<clever>
nixy: journalctl -f -u display-manager
<jbaum98>
is there a way to give a derivation to nix-shell and also give it extra packages? when i try to do this i get an error file names are not allowed to end in ‘.drv’
<nixy>
clever: Brilliant, just what I was looking for.
<jbaum98>
i mean extra packages with -p
<clever>
jbaum98: -p generates a derivation on the fly, so it cant be used with other derivations
<clever>
jbaum98: you need to use -E and overrideAttrs
<clever>
that will create a new version of hello, with libfoo in the inputs, then load it as a shell
<Infinisil>
clever: I see now what you're talking about with git describe
<jbaum98>
clever: ahhhh this is great. this is even better because i was using nix-instantiate as well to pass dependencies via callPackage but now i can skip that!
eacameron has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
sigmundv__ has joined #nixos
<jbaum98>
clever: it seems to be exiting silently with exit code 1
<jbaum98>
clever: nevermind with pure it's okay so this is probably a problem with my dotfiles
eacameron has quit [(Ping timeout: 260 seconds)]
fnljk has quit [(Read error: Connection reset by peer)]
<nixy>
How can I set NixOS to use an LTS kernel
<clever>
nixy: boot.kernelPackages = pkgs.linuxPackages_4_9; for example
Wizek has quit [(Ping timeout: 240 seconds)]
sigmundv__ has quit [(Ping timeout: 246 seconds)]
<gchristensen>
fpletz[m]: jobs finally started. 6 out of 43,798 jobs finished :P
boj has quit [(Ping timeout: 276 seconds)]
<fpletz[m]>
gchristensen: unfortunately I just found an issue :/ I didn't test darwin
<gchristensen>
ack
<fpletz[m]>
fix is coming up
<gchristensen>
ok, well the progress this makes will still apply after your fix, right?
<gchristensen>
(excepting darwin)
<fpletz[m]>
nope, cc-wrapper change
<gchristensen>
bummer :) cancelling
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to staging: https://git.io/vQIV4
<NixOS_GitHub>
nixpkgs/staging c3a8595 Franz Pletz: cc-wrapper: fix darwin...
NixOS_GitHub has left #nixos []
<fpletz[m]>
gchristensen: I hope that was the last issue :)
<gchristensen>
:) what's an extra 50,000 build jobs between friends
sean has joined #nixos
sean is now known as Guest40306
<fpletz[m]>
hehe :) I'm preparing the cherry-picks for 17.03 now
taktoa has quit [(Remote host closed the connection)]
lambdamu_ has joined #nixos
lambdamu has quit [(Ping timeout: 268 seconds)]
mbrgm has joined #nixos
<catern>
dear #nixos
<justanotheruser>
I made the build changes that were asked (here is my definition: https://hastebin.com/raw/dalodojupa ) but I still get ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory
pie_ has quit [(Ping timeout: 255 seconds)]
<catern>
how the heck can I figure out how to run Hydra on a non-NixOS system?
<catern>
there's no information about it
<catern>
it's tricky :(
<simpson>
catern: It's way easier on NixOS. It's still kind of cruddy.
<catern>
hmm
<catern>
i guess i can believe that
<catern>
but i feel like if i just understood what was going on
<catern>
i would be able to easily run it on Nix-on-Debian
ison111 has joined #nixos
<clever>
catern: look at each of the services in the hydra module
<catern>
but I don't really, you know... *care* about the internals of Hydra :) I just want to it to build Nixpkgs and other release.nixen :)
<catern>
yeah, I mean, right now my problem is getting some restricted mode evaluation error
<clever>
here is an example of how the config should look
<clever>
this will clone 2 git repos, then call release.nix in notos, and pass it all 3 inputs as arguments
<catern>
yeah, that looks pretty much like min
<clever>
and it will put the 2 git repos into the nix-path
<catern>
e
<catern>
I copied my config from hydra.nixos.org :)
<catern>
ugh I suppose I should try first setting it up outside my dumb corporate firewall
<Infinisil>
Oh hey clever, I found out how to get over the "ld: cannot find -lc" error, I needed to include `glib.static` in buildInputs to make static builds work
<clever>
Infinisil: ah, yeah, nix doesnt like you doing static linking
cpennington has quit [(Remote host closed the connection)]
<Infinisil>
The next error is in the linker phase, resulting from the tons of "declared but never defined" warnings during compilation
<Infinisil>
Oh and regarding the static thing, I could also remove "-static" (without adding glibc.static), works too, maybe I should do that instead
jgertm has joined #nixos
zeus__ has quit [(Remote host closed the connection)]
zeus__ has joined #nixos
nh2 has quit [(Quit: Leaving.)]
zeus__ has quit [(Ping timeout: 246 seconds)]
sitwon has joined #nixos
ogkloo has joined #nixos
rcschm has joined #nixos
rcschm has quit [(Client Quit)]
<Infinisil>
Okay I solved this problem too somehow, the problem were the `__inline__` keywords on certain function declaration, removing them makes it compile
<Garlandg>
Is there a way to boot a 64bit nixos on a computer with a 32bit EFI and a 64bit processor?
spinus has quit [(Ping timeout: 260 seconds)]
eacameron has joined #nixos
<disasm>
there's definitely a way, I'm just not sure if nix could manage the boot loader for you. You might have to install the boot loader to your EFI manually.
<disasm>
I don't see any option in grub or systemd-boot for 32bit
ryanartecona has joined #nixos
eacameron has quit [(Ping timeout: 255 seconds)]
eacameron has joined #nixos
<disasm>
you could probly grab a 32 bit efi boot loader and just not install in nix.
magnetophon has quit [(Ping timeout: 255 seconds)]
eacameron has quit [(Ping timeout: 255 seconds)]
<Garlandg>
When I try to boot using the manually placed grub bootloader, I get a kernel panic because it can't find /init
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
<Garlandg>
I thnk the error is because of the filesystem's layout on nixos, looking at the grub.cfg that it creates.
magnetophon has joined #nixos
sitwon has quit [(Ping timeout: 246 seconds)]
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 246 seconds)]
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 268 seconds)]
Garlandg has quit [(Quit: Page closed)]
filterfish has joined #nixos
schoppenhauer has quit [(Ping timeout: 268 seconds)]
schoppenhauer has joined #nixos
Ivanych has quit [(Ping timeout: 255 seconds)]
justan0theruser has joined #nixos
justan0theruser has quit [(Client Quit)]
justan0theruser has joined #nixos
justanotheruser has quit [(Ping timeout: 240 seconds)]
boj has quit [(Read error: Connection reset by peer)]
fresheyeball has quit [(Quit: WeeChat 1.7.1)]
<justan0theruser>
I made the build changes that were asked (here is my definition: https://hastebin.com/raw/dalodojupa ) but I still get ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory
<jbaum9i>
Does setting a variable like patchPhase, configurePhase, buildPhase etc. override that phase during a build? And if so, does it do also override that phase in nix-shell? I've been having trouble getting this to work
<simpson>
Okay, I just got bitten by stale stuff in my nix-env for the last time. There's a lot of junk in there; how do I clear it all out without affecting the core stuff I need as a NixOS user?
<dash>
simpson: pretty sure you don't need any of it
<simpson>
dash: Don't I need to have Nix in there at least?
<ebzzry>
I want to pass command line flags to SBCL using nix-shell. How can I do that? it would look something like: nix-shell --pure --command "sbcl --eval '(...)'"
fxr has joined #nixos
rory has joined #nixos
niko__ has joined #nixos
niko__ has quit [(Client Quit)]
<Infinisil>
Does your command not work?
jgertm has quit [(Ping timeout: 268 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vQIFJ
jensens has quit [(Remote host closed the connection)]
freusque has quit [(Quit: WeeChat 1.7.1)]
freusque has joined #nixos
<UnDeRsOuL>
hello, can I install nixos on a powerpc g5?
jensens has joined #nixos
<schoppenhauer>
UnDeRsOuL: afaik nixos is only for x86-based platforms so far. otherwise you would have to recompile stuff yourself.
<ikwildrpepper>
I think nixos runs on some arms as well
<UnDeRsOuL>
well, I've read of people being able to install it on RPI
indi_ has quit [()]
<UnDeRsOuL>
thanks for the answer schoppenhauer
pie_ has joined #nixos
m0rphism has joined #nixos
<sphalerite>
UnDeRsOuL: I'm not sure if there's any prior work on it, but it's probably feasible though it would require a fair bit of work (unless someone's already done that work!)
m0rphism has quit [(Quit: WeeChat 1.8)]
<hyper_ch>
why do external HDDs keep turning to read-only filesystems?
<sphalerite>
hyper_ch: how so?
<hyper_ch>
sphalerite: running rsync to backup and they often just turn read-only....
<hyper_ch>
no idea why
<hyper_ch>
aber rebooting my whole notebook, then it's all fine again
<sphalerite>
That's weird. Anything in the journal?
<hyper_ch>
can't check anymore
<hyper_ch>
tmpfs
m0rphism has joined #nixos
mudri has joined #nixos
m0rphism has quit [(Client Quit)]
<sphalerite>
hyper_ch: probably worth checking next time the issue occurs. Any particular reason you don't have journal persistence?
thaega has joined #nixos
bastian has joined #nixos
orivej has joined #nixos
<hyper_ch>
ssd - saving writes
pie_ has quit [(Changing host)]
pie_ has joined #nixos
<hyper_ch>
I probably could stop that
<hyper_ch>
since Chromium writse like 12 GB every 6h anyway
arianvp2 has joined #nixos
mpcsh has quit [(Quit: THE NUMERICONS! THEY'RE ATTACKING!)]
<avn>
sphalerite: so python27Packages.override? Thank you for hint ;)
newhoggy has quit [(Ping timeout: 240 seconds)]
<sphalerite>
Feels like 90% of helping people with nix stuff is knowing "there was an issue about that" and "The docs for that are there" or "Someone did that once and wrote a blog post about it"
<sphalerite>
Docs are hard.
<gchristensen>
very hard
<LnL>
yeah
<avn>
sphalerite: lol, not in 17.03? ;)
<nixy>
docs are hard, but the barrier to entry on the manual is pretty high imo
<gchristensen>
nixy: for reading or writing?
<nixy>
writing
<Gravious>
one annoying thing is that a lot of google hits seem to hit the old wiki
<gchristensen>
b/c of docbook?
<nixy>
Yes docbook, which everyone says can be sorted by pandoc but I don't see any guide on that, and the fact that its a PR based flow
<nixy>
I have never had issues with PRs in nixpkgs cause you guys are awesome at actually merging stuff, but it is a bit cumbersome
<gchristensen>
how about the user wiki?
newhoggy has joined #nixos
<nixy>
I think the user wiki has the advantage of a much better layout than the Nix manul, but I still don't think github wiki is very good for that
<Drakonis[m]>
the manual needs rewriting
raunov has quit [(Ping timeout: 260 seconds)]
<nixy>
I would agree with Drakonis[m] on that. There is some stuff that is worded a little odd and could be touched up IMO
<nixy>
But at the same time I feel kinda rude and opinionated submitting a PR to rewrite somebody else's prose to convey a point in what I think is a better way
<gchristensen>
do it, nixy
<gchristensen>
I've done it a few times
Mateon3 has joined #nixos
<nixy>
Yeah I should be brave and just do the thing. I have wanted to for a while
Mateon1 has quit [(Ping timeout: 240 seconds)]
Mateon3 is now known as Mateon1
<Drakonis[m]>
it has to be written all over and cover how writing expressions work
<nixy>
I do think there are some challenges with having a single page authoritative manual as well. It makes it a bit akward to introduce things at a beginnerish level and expand on it later
<nixy>
But structural changes to the manual are pretty beyond me rn
<Drakonis[m]>
it is a patchwork manual that's written by three dozen people
<gchristensen>
Drakonis[m]: three dozen people who have worked hard to make it what it is, if you can improve it please do.
<Drakonis[m]>
i didnt imply they didn't work hard
<Drakonis[m]>
just that it can be rewritten to bring everything up to the same level of quality
<nixy>
I do think there may be consistency issues due to multiple authors, which I think is what you are getting at here
<Drakonis[m]>
start by covering the general basics before moving onto anything specific
<Drakonis[m]>
yes ^
raunov has joined #nixos
<Drakonis[m]>
the manual for nix itself seems to touch the areas that nixos' manual is deficient
<nixy>
I will probably take a swing at the Nix manual this weekend. The expression language isn't my strong suit, so I will mostly focus on the first three sections.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] domenkozar pushed 1 new commit to master: https://git.io/vQLc1
<NixOS_GitHub>
nixpkgs/master bb9e238 Domen Kožar: haskellPackages: make configuration-{nix,common}.nix configurable...
NixOS_GitHub has left #nixos []
<gchristensen>
nix, nixpkgs, and nixos have different manuals that should all be read
<Drakonis[m]>
the Nix manual touches the language, while NixOS touches the system management
<gchristensen>
yes
arjen-jonathan has quit [(Quit: WeeChat 1.8)]
<Drakonis[m]>
modules appear in NixOS
<gchristensen>
yeah
<makefu>
it is true, the manual(s) try to serve multiple scopes (tutorial,how-to,reference). this is problably the main issue
<Drakonis[m]>
yeah, that section is of wildly varying qualiity
<gchristensen>
please go improve one you care about :)
<Drakonis[m]>
haskell gets a massive section, mostly because they run nix in their infra it seems
<gchristensen>
mostly because a lot of users of nix care about haskell and have contributed the improvements
<Drakonis[m]>
python and haskell have the largest ones it seems
<nixy>
gchristensen: But there are some less loved languages like Ruby, which have nixpkgs support but don't have good documentation in the nixpkgs manual
<gchristensen>
no doubt
<Drakonis[m]>
go and coq have passing mentions
<nixy>
I also think the manually could be substantially boosted by simply adding links to the external resources that everyone ends up using like Nix Pills and other blog posts
<gchristensen>
no doubt that they should be improved, the people who care about them should improve them. complaining about it on IRC and saying the manual should be thrown out and started over with is not helping. It'd be a different conversation if there was a PR that _did_ that, but we all know that isn't coming
<Drakonis[m]>
idris is awful though
<Drakonis[m]>
i have never used idris before so i don't know how to fix that
<nixy>
gchristensen: Point taken. Probably shouldn't have started this circus again as this is starting to get repetitive
nh2 has joined #nixos
<Drakonis[m]>
a circus, haw haw
jbgi has joined #nixos
<raunov>
hey
<raunov>
when configuring network interface, only way to define gateway is via networking.defaultGateway?
<raunov>
and why is the broadcast 0.0.0.0 for ifconfig
jbgi has quit [(Ping timeout: 240 seconds)]
<jbaum98>
Does setting a variable like patchPhase, configurePhase, buildPhase etc. override that phase during a build? And if so, does it do also override that phase in nix-shell? I've been having trouble getting this to work
<goibhniu>
jbaum98: yep, it does ... you can also use pre and post e.g. preBuild, postInstall etc.
<nixy>
raunov: networking.defaultGateway is how you would configure the gateway. Not sure about the broadcast address though
<jbaum98>
goibhniu: even in nix-shell? It wasn't working at all, and then adding a rec made it work sometimes...
<jbaum98>
goibhniu: I mean calling configurePhase will run my thing instead
<goibhniu>
are you using mkDerivation?
<goibhniu>
if you're using something else, you might need to check the phases that are run
MoreTea has joined #nixos
* goibhniu
tests that
ryanartecona has joined #nixos
<jbaum98>
goibhniu: yes I'm using mkDerivation
mrkgnao has joined #nixos
<jbaum98>
goibhniu: I will try and produce a minimal example that fails for me
cpennington has quit [(Remote host closed the connection)]
<LnL>
are you just running configurePhase in the shell?
<LnL>
that will run the default phase instead of the custom one
civodul has joined #nixos
ryanartecona has quit [(Ping timeout: 276 seconds)]
iyzsong has joined #nixos
<raunov>
okay nixy
<raunov>
but when i do route -n then it shows gateway 0.0.0.0
<goibhniu>
ah, does nix-shell not run any phases?
fnljk has joined #nixos
taktoa has quit [(Remote host closed the connection)]
<goibhniu>
jbaum98: that seems to be the case, but you can use shellHook to run them ... e.g. shellHook = "$configurePhase";
<nixy>
raunov: Are you having networking issues or are you just curious? I have 0.0.0.0 in there, but mine is working fine
<gchristensen>
nixy: I'm grateful that you care so deeply about the manual and the nix project
<raunov>
having issues :)
<raunov>
can't get my static connection up
<gchristensen>
nixy: I've found myself wanting to add documentation to a topic, but found the existing docs too confusing to be able to add more. A time or two now I've rewritten a segment to be clearer, and to allow for extension. It is hard. I do agree that the structure of the manual can make it hard to contribute improvements, and would love to help put together some improvements
<nixy>
raunov: I may not be well suited to help, since I had difficulty setting up static connections myself, but providing the output of the commands you are running and your configuration.nix in a pastebin may help
<nixy>
goibhniu: Yeah something like that is exactly what I want to add
<jbaum98>
goibhniu: I mean that when I drop into nix-shell and run configurePhase, it hasn't been running the shell script I defined as the variable configurePhase in my derivation
<goibhniu>
ah, right ... you need to run $configurePhase
<nixy>
gchristensen: Yeah, I obviously have some big ideas about ways the manual could be better but the first step here is just getting familiar with working on it. Once I get a better idea of how I want to improve it I will probably open an issue/PR for some discussion
<sphalerite>
Anyone happen to know a good interface for SQLite? e.g. sqlite's builtin CLI but with line editing and completion (completion being what eliminates just sqlite3+rlwrap)
<LnL>
you can't build sqlite with readline support?
<gchristensen>
nixy: sounds good. fwiw docbook looks intimidating, but I think a few minutes of time looking at the code around your docs will help. if not,someone can help convert what you write in to docbook.
Rotaerk has quit [(Quit: Leaving)]
<jbaum98>
goibhniu: wait so setting the variables doesn't change the functions in nix-shell?
<LnL>
no genericBuild will check if a variable exists for a phase and use that instead
<jbaum98>
LnL: ahhh. So what's the best way to execute the contents of the variable myself
<LnL>
yeah I think something like eval "${!configurePhase:-configurePhase}" will do what you expect
<matumental>
so I had to replace the os disk on my server, only stumbling block is I forgot I was using enableACME = true; on one of the nginx virtual hosts, so its now failing to renew, I'm assuming there is a letsencrypt file floating around that I needed to copy over, anyone know where it is?
mudri has quit [(Ping timeout: 276 seconds)]
Wizek has quit [(Ping timeout: 246 seconds)]
Wizek_ has quit [(Ping timeout: 258 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] domenkozar pushed 1 new commit to release-17.03: https://git.io/vQLEn
<NixOS_GitHub>
nixpkgs/release-17.03 496c1f3 Domen Kožar: haskellPackages: make configuration-{nix,common}.nix configurable...
NixOS_GitHub has left #nixos []
proteusguy has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #26762: creduce: 2.6.0 -> 2.7.0, now uses LLVM 4 (master...update/creduce) https://git.io/vQLuL
NixOS_GitHub has left #nixos []
<raunov>
hum, thinking maybe the second interface in my system for local vlan might mess things up ?
<niksnut>
gchristensen: it looks like hydra-evaluator is slow because it calls this new "build-queued" hook thousands of times
<niksnut>
I think I'll disable that
<gchristensen>
:o interesting!
<gchristensen>
it was very surprising to me, to see it still running 9 hours after I cancelled its build jobs :P
<niksnut>
every call to "hydra-notify build-queued" takes 0.7s
<niksnut>
so multiply by ~44000...
<gchristensen>
that is a lot of hours...
<matumental>
(for anyone who finds my question from google, its just the letsencrypt default /var/lib/acme, duh)
sitwon has quit [(Ping timeout: 268 seconds)]
<ebzzry>
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))'
kthnnlg has joined #nixos
freusque has quit [(Ping timeout: 240 seconds)]
freusque has joined #nixos
ryantrinkle has quit [(Ping timeout: 240 seconds)]
matumental has quit [(Quit: Page closed)]
cpennington has joined #nixos
ThatDocsLady has joined #nixos
proteusguy has joined #nixos
bb4kk3r has joined #nixos
<bb4kk3r>
The rust beta and nightly packages are crapping out on me...
<bb4kk3r>
Updating the stable one might be a good idea, too
<bb4kk3r>
Y'know, since most bleeding-edge rust crates won't compile now.
arianvp2 has joined #nixos
<bb4kk3r>
I can submit a PR for the stable one, but I have no idea how the beta and nightly ones even work, so...
newhoggy has quit [(Remote host closed the connection)]
nslqqq has quit [(Ping timeout: 240 seconds)]
<LnL>
is 1.18.0 out?
bb4kk3r has quit [(Ping timeout: 260 seconds)]
<LnL>
oh it is
newhoggy has joined #nixos
newhoggy has quit [(Ping timeout: 258 seconds)]
newhoggy has joined #nixos
<disasm>
domenkozar: yeah, different Chris Rossi. We both work for AppliedTrust.
<justan0theruser>
I made the build changes that were asked (here is my definition: https://hastebin.com/raw/dalodojupa ) but I still get ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory
georges-duperon has quit [(Ping timeout: 255 seconds)]
MercurialAlchemi has quit [(Ping timeout: 268 seconds)]
newhoggy has joined #nixos
<mmmrrr>
disasm: I'd like to install it as a systemPackage in nixos. Is it sufficient to pass the --upgrade flag?
newhoggy has quit [(Ping timeout: 240 seconds)]
<dtzWill>
justan0theruser: that link is currently generating an "application error" on the server when I try to access it (possibly transient, although hastebin.com seems to generally be having problems?)--can you post it somewhere else? :)
sitwon has quit [(Read error: Connection reset by peer)]
newhoggy has quit [(Ping timeout: 240 seconds)]
<mmmrrr>
disasm: is there a way to install specific unstable packages into a stable system? I'm sorry but I have no prior experience in either nix nor nixos - so many things look rather arcane to me ^^
<goibhniu>
justan0theruser: did you write that yourself?
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
jsierles has joined #nixos
mudri has joined #nixos
<symphorien>
mmmrrr: for a local clone of nixpkgs: let local = import "/path/to/nixpkgs/clone" {}; in and then use local.thepackage
<mmmrrr>
symphorien: will try - thanks! :)
<symphorien>
for using unstable, it involves using nix-channel
ryanartecona has joined #nixos
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<disasm>
mmmrrr: what I would do is copy pkgs/applications/misc/tilix/default.nix to /etc/nixos/pkgs/tilix.nix and then in env.systemPackages = [ (pkgs.callPackages ../pkgs/tilix.nix {}) ]; that seems to work for me
newhoggy has joined #nixos
<disasm>
that seems to work for me
<disasm>
except it would probly be ./pkgs for you not ../ :)
erasmas has joined #nixos
<dtzWill>
disasm: sometimes that works but if it has deps or other infra from upstream's tree things sometimes don't work right
<niksnut>
ugh, firefox on the stable branch switched to gtk+3 which doesn't work properly
<dtzWill>
but when that's possible that's a nice simple way to do it :)
eacameron has quit [(Remote host closed the connection)]
<disasm>
dtzWill: that's true, I am on unstable, so I would already have most of those deps
<disasm>
but nothing jumps out at me int he pkg nix file.
<disasm>
dtzWill: anything too crazy dep wise I'd probly just nix-shell and -I nixpkgs= it :)
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
newhoggy has quit [(Ping timeout: 260 seconds)]
<dtzWill>
yeah, I mean I wouldn't overly worry aobut it I just mean in general grabbing things from upstream//different nixpkgs branch :)
<dtzWill>
haha yep! but occasionally I've wanted a plugin or something and it was across the gap of a big refactor or rewrite and was a bit more painful as a result :)
eacameron has quit [(Ping timeout: 255 seconds)]
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
eacameron has joined #nixos
<mmmrrr>
I like the way with the local checkout of nixpkgs... that's really handy :) thanks for the help!
<justan0theruser>
goibhniu: no
<disasm>
mmmrrr: just be careful, nixos-rebuild pointed at a local nixpkgs checkout WILL upgrade everything :) I'd only use the -I nixpkgs= if you're building a nix-shell environment.
<disasm>
mmmrrr: did that work installing in configuration.nix?
* goibhniu
can't find any reference to mkPython
<dtzWill>
goibhniu: haha yeah he posted the rest of the context later :)
<mmmrrr>
disasm: even if I specify only one package to be used with the local.PACKAGE prefix?
<goibhniu>
justan0theruser: anyway, I suspect you're going to need a custom buildPhase and installPhase ... so mkDerivation is probably the most simple to use
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<dtzWill>
justan0theruser: the tools' RPATH's are almost entirelty empty D:, trying with dontPatchELF now, we'll see... takes a bit to build
<mmmrrr>
disasm: the computer is at least still running, I need to reboot before I can tell if it really worked out ;)
mudri has quit [(Ping timeout: 255 seconds)]
eacameron has quit [(Ping timeout: 260 seconds)]
<mmmrrr>
brb
<disasm>
oh, I like symphorien way of installing some packages from local nixpkgs, that's cool.
<dtzWill>
ah, maybe the python bits try to create LD_LIBRARY_PATH for the panda parts
ryanartecona has joined #nixos
<goibhniu>
also, the project is 70% c++ ... I guess it just uses python for building and provides some libraries
georges-duperon has quit [(Ping timeout: 255 seconds)]
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
mudri has quit [(Ping timeout: 255 seconds)]
<hyper_ch>
so, I liberated now /var/log from being tmpfs
mmmrrr has joined #nixos
<justan0theruser>
goibhniu: someone in this channel gave me it long ago :p
<goibhniu>
justan0theruser: if it's getting frustrating ... you can use an FHS environment instead
orivej has quit [(Ping timeout: 268 seconds)]
<mmmrrr>
disasm: it seems as if everything is going well :)
<justan0theruser>
taktao
<goibhniu>
ah cool, FWIW IMO the mkPython stuff complicates things
<justan0theruser>
goibhniu: Do you think an FHS env would alleviate my frustration?
<justan0theruser>
The majority of my frustration comes from this error I described, ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory
sitwon has joined #nixos
sitwon has quit [(Read error: Connection reset by peer)]
<goibhniu>
disclaimer: I've never used one ... but I believe once you have one set up you can download arbitrary binaries and run them
<goibhniu>
it would be nice to have panda3d in nixpkgs though
<dtzWill>
justan0theruser: I was going to just symlink it in (patching requires knowing what the right rpath should be, and ensuring you patch all the right binaries and libraries; not impossible but can be non-trivial depending)
<dtzWill>
waht's strange is AFAICT these are /built/ but just manage to not know how to find libstdc++ lol
<makefu>
dtzWill: how did you find the path? any magic command or "common knowledge"?
<dtzWill>
makefu: I'm not sure if it's common or not, lol, but something I've run into a few times so I happen to know it O:)
<dtzWill>
it's semi-common to find this sort of problem, because software tends to expect gcc lib paths and glibc lib paths to all be the same
<justan0theruser>
dtzWill: do you have the expression that does this?
<dtzWill>
but AFAIK this is the first time I've seen a Nix-based "c++" (as in CXX=c++") produce a binary that didn't know how to find libstdc++ lol
sitwon has joined #nixos
<dtzWill>
not sure what that's about
sitwon has quit [(Read error: Connection reset by peer)]
<symphorien>
thats an import error
<symphorien>
maybe its python using ctypes to open libstdc++
<symphorien>
I don't know where it looks for it then
<dtzWill>
oh, hmm, yeah I know very little about how libraries would be found then but that would do the trick
<dtzWill>
justan0theruser: I would if I didn't waste time with buildPythonPackage haha, apparently it ate my postInstall attr :(.
* dtzWill
reads docs and nix code
<dtzWill>
but if it's python's thing... maybe just make some wrappers setting LD_LIBRARY_PATH? :)
<makefu>
justan0theruser: if you ever manage to get this running, please update ^
<makefu>
:)
<dtzWill>
oh wait no I just managed something hmm
<makefu>
or just ping me, i can also update the wiki with the solution :)
matthis_ has joined #nixos
<dtzWill>
well there's routes to making /this/ work and there's probably a discussion to be had about what the "right" answer is in general
<FRidh>
I think a better solution would be to find out what is causing it. I suppose a binary wheel is installed here instead of code that was built from source?
mudri has joined #nixos
<dtzWill>
(basically, what FRidh said :))
georges-duperon has joined #nixos
<dtzWill>
justan0theruser: pushed to the gist I linked earlier, think that'll work--rebuilding to confirm since tweaked a final thing will let you know in a few once it builds :)
mmmrrr has quit [(Ping timeout: 268 seconds)]
<dtzWill>
and ty whoever pointed out it was an import error haha
<dtzWill>
i just see library-not-found and pull our LD_DEBUG and readelf xD :D
<makefu>
in nix there are always multiple solutions to get stuff running. if we can document (and rank) these solution it will help future generations
<makefu>
(of nix users)
<justan0theruser>
dtzWill: ok, let me know if it works, I know the build takes a long time and I appreciate this very much!
<justan0theruser>
how long does it take on your system? 20m on mine
<dtzWill>
justan0theruser: seems to work, I can run 'pview' at least
<dtzWill>
no idea how to use this so couldn't say about anything else O:)
<dtzWill>
justan0theruser: looks like ~5 mins judging by local timestamps.
<dtzWill>
justan0theruser: did you see my comment about parallel build? helps quite a bit. but also my laptop is nice, but not like I'm using some beefy server with silly number of cores :)
<justan0theruser>
dtzWill: can you run this in python3
<justan0theruser>
from direct.showbase.ShowBase import ShowBase
<dtzWill>
justan0theruser: I'm a nix-python n00b, just jumped on because I'm not a noob about libraries and such :D. So uh, how does one normally 'install' a python thing such that I could use such a snippet?
<dtzWill>
IIRC it's not just installing with nix-env or grabbing with nix-shell, but don't rem offhand...
<justan0theruser>
a pyhton thing? I thought you just installed panda3d?
<justan0theruser>
to be clear, direct is part of panda3d
<justan0theruser>
dtzWill: not sure, I'm a total noob
<justan0theruser>
awesome, I'll try it out
<dtzWill>
justan0theruser: anyway try what I have there, it's a minor change I just made it it's own thing since I tend to make git repo's anyway and seemed like folks wanted a more complete example to poke at :)
<dtzWill>
GL sir :)
<dtzWill>
jsierles: got any links/info about what that is? :D
<pietranera>
Hi all, is there a way to see what one is about to update on NixOS before actually doing it?
newhoggy has quit [(Ping timeout: 240 seconds)]
mmmrrr has joined #nixos
<makefu>
pietranera: nixos-rebuild dry-build ?
<copumpkin>
you can do nixos-rebuild build and then compare the current system root with the built one
<pietranera>
I see
arianvp2 has quit [(Quit: arianvp2)]
<pietranera>
but what about updating packages.? say I update the channel and firefox bumps from v53 to v54
<pietranera>
is there a way to see that I am about to update that package and, say, abort it?
<pietranera>
e.g. on Arch when you do pacman -Syu it asks you whether you want to abort (similarly in Debian or RedHat/CentOS)
<pietranera>
(maybe my question is not very clear...)
<copumpkin>
you'd see that in the recursive diff of the machine roots, but admittedly it wouldn't be very obvious
<copumpkin>
I think
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] volth opened pull request #26769: update script for jetbrains products (master...jetbrains-update-script) https://git.io/vQLhK
NixOS_GitHub has left #nixos []
<dtzWill>
justan0theruser: sorry for late reply, but yes I got many many errors like you described (setlocale...)
<pietranera>
OK, so it's fair to say that there is no "direct" way to see what packages I am about to update/upgrade
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vQLhH
<NixOS_GitHub>
nixpkgs/master 32ef253 Peter Hoeg: tmate: minor cleanup
NixOS_GitHub has left #nixos []
<justan0theruser>
dtzWill: your fix solves the error for me too!
<justan0theruser>
not the warning I just mentioned involving locales, I don't care about that
<justan0theruser>
but the actual erro
<dtzWill>
\o/
<justan0theruser>
however I was presented with another error, which seems to have been resolved here https://www.panda3d.org/forums/viewtopic.php?t=14874 however I don't know where Confauto.prc would be created. On the forum it says in their distro it is in /etc
<justan0theruser>
currently find'ing
<justan0theruser>
of course, it's in panda3d/built/etc/Confauto.prc :p
acertain has joined #nixos
seppellll has quit [(Remote host closed the connection)]
Ivanych has quit [(Ping timeout: 268 seconds)]
cpennington has quit [(Ping timeout: 240 seconds)]
<dtz>
Right now I'm not surprised it can't out together a graphics pipeline we only gave it a base python interpreter lol
<Isorkin>
Hi. How to remove old all profiles? nix-store --gc - not deleted profiles 250,300,328,400
eliaslfox has joined #nixos
<dtz>
Probably want to add things it needs to buildInputs, not sure how many are needed for expected functionality...
digitus has joined #nixos
<justan0theruser>
well you can select between pandagl, pandadx9, or p3tinydisplay which is panda3ds own display
<justan0theruser>
libpandagl.so is built as part of makepanda, but only if it finds "gl", which is OpenGL. Make sure you have the OpenGL development package installed when you run makepanda.
<justan0theruser>
quote^
<justan0theruser>
what is the opengl development package in nixos
<goibhniu>
justan0theruser: mesa
<justan0theruser>
ok, so I will set this as a buildInput?
<goibhniu>
yep
ryanartecona has quit [(Quit: ryanartecona)]
<Gravious>
error: syntax error, unexpected IND_STR, expecting '}', at /nix/store/l9iqv27sb5ng4681gr0l38v5270v73dy-nixpkgs-17.03.1387.25a8ba5baf/nixpkgs/pkgs/top-level/node-packages.nix:60:8
<Gravious>
why do i see this regardless of which channel i try to use?
cpennington has joined #nixos
<justan0theruser>
ok I will try again
<Gravious>
i don't have the problem if i use -iA
<goibhniu>
what command are you using Gravious?
<Gravious>
nix-env -i hello
c74d has quit [(Ping timeout: 260 seconds)]
zeus_ has joined #nixos
pietranera has quit [(Ping timeout: 260 seconds)]
<Gravious>
it seems that if i nix-env iA nixpkgs.slock it installs, but i can't run it cause nix doesn't suid the binary
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 3 new commits to master: https://git.io/vQtJw
<NixOS_GitHub>
nixpkgs/master 1a87975 Volth: update script for jetbrains products
<NixOS_GitHub>
nixpkgs/master d1eefba Jörg Thalheim: jetbrains: use nix-shell shebang in update script
<Gravious>
is it expected that if you're using nix, on e.g. debian, the user would have to manually chmod u+s the installed binary, or is there some other process?
c74d has joined #nixos
mmmrrr has quit [(Remote host closed the connection)]
mbbx6spp has joined #nixos
pie_ has joined #nixos
<Gravious>
jesus why did they shut down the wiki, the first hit on google for nixos modules is there
<mbbx6spp>
anyone on master getting "vde_switch: Could not set the VDE ctl directory '/abs/path/here/vde1.ctl' permissions: Operation not permitted" errors or know how to resolve them? I upgraded to master from yesterday some time (with some of my dd-agent patches rebased on top) and this started happening then.
c74d has quit [(Ping timeout: 260 seconds)]
c74d has joined #nixos
xadi has quit [(Read error: No route to host)]
<Gravious>
what is a module for? can i install a module?
<goibhniu>
Gravious: spambots got the better of it
<pie_>
my system was working great, i didnt make any system level changes, but now since like two days ago it hangs on resume pretty often, why? magic sysrq "e" results in the display manager getting killed or something and then systemctl start display-manager doesnt work (it just doesnt do anything)
<pie_>
any ideas?
<goibhniu>
Gravious: but nixos modules are described in the nixos manual too
<Gravious>
goibhniu, i see :/
<goibhniu>
Gravious: you can only use them on NixOS though
ryantrinkle has left #nixos []
xadi has joined #nixos
<goibhniu>
Gravious: they let you declaratively configure system services (mostly)
<Gravious>
goibhniu, i've read some of what is written there, but it explains the structure more than purpose
FRidh has quit [(Quit: Konversation terminated!)]
<Gravious>
goibhniu, okay, so that raises the question how do i handle setuid binaries installed via nix but *not* on nixos
<Gravious>
since setuid binary for slock appears to be handled by a nixos module for slock
<mbbx6spp>
Re: vde_switch ... Operation not permitted errors - I am getting them when running NixOS tests for my own machine configs locally (on NixOS)
<goibhniu>
AFAIK setuid binaries should be handled in nixpkgs
<goibhniu>
what's slock?
<Gravious>
goibhniu, all the calls to security.wrappers appear to happen in modules
<Gravious>
goibhniu, slock is a screen locker
roconnor has joined #nixos
ambro718 has joined #nixos
<clever>
Gravious: nix-env without -A, will search every derivation in every channel
<clever>
Gravious: and setuid stuff requires nixos, it just doesnt work on other distros
<ambro718>
What do I need to do in configuration.nix to create a symlink in bin directory to something of my chosing?
<clever>
ambro718: which bin directory?
<ambro718>
clever: the bin directory of the system configuration
<clever>
ambro718: anything you add to environment.systemPackages will get merged into that
<Gravious>
clever, oh, so i'd have to hack it to make it work basically? :)
ryanartecona has joined #nixos
Isorkin has quit [(Read error: Connection reset by peer)]
<ambro718>
clever: yes but I'm asking for how to add a specifically named program, I want to add it under a different name
<Gravious>
clever, kay thanks
<clever>
Gravious: under nixos, a script on bootup creates setuid wrappers in /run/wrappers/bin
<clever>
ambro718: then you need to make a derivation using runCommand, that creates a $out/bin/foo symlink pointing to ${hello}/bin/hello
<ambro718>
okay thanks
<clever>
and insert that derivation into systemPackages
<mudri>
Does nix-shell set the prompt, or is that something in my shell configuration?
<clever>
nix-shell does change PS1 to say its a nix-shell shell
fnljk has quit [(Disconnected by services)]
fnljk_ has joined #nixos
bennofs has quit [(Ping timeout: 240 seconds)]
<gchristensen>
are there any golang people around, who would let me pick their brain for a few minutes?
<Gravious>
clever, i see, and how much does it break things if i make a store object owned by root and setuid?
<mudri>
Is there any way to change that?
roconnor has quit [(Ping timeout: 260 seconds)]
roconnor_ has joined #nixos
<clever>
Gravious: the next time you run a command like nix-store --verify, it will get upset and want to fix it
<Gravious>
my guess is it breaks mainly nix garbage collection once the thing is installed
<Gravious>
*uninstalled
<Gravious>
clever, right
<clever>
Gravious: and yeah, GC may have trouble deleting it
Isorkin has joined #nixos
<clever>
bbl
cpennington has quit [(Ping timeout: 268 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
fnljk_ has quit [(Quit: ?)]
goibhniu has quit [(Ping timeout: 268 seconds)]
<mbbx6spp>
I worked around the vde_switch operation not permitted issue by updating qemu_test package I am using. :shrug:
<LnL>
gchristensen: I worked on a go project for a while
jmeredith has joined #nixos
<gchristensen>
LnL: may I PM?
<LnL>
ofcorse :)
mudri has quit [(Ping timeout: 240 seconds)]
<gchristensen>
Gravious: are you making it setuid and owned by root outside of nix?
cpennington has joined #nixos
<Gravious>
gchristensen, i'd have to, the only alternative is to install nix on debian as root i think
<Gravious>
gchristensen, another option i'm looking at is modifying the program slightly to not use setuid root, but that makes it slightly less secure
roconnor_ has quit [(Quit: Konversation terminated!)]
<gchristensen>
I see
hellrazor has joined #nixos
Isorkin has quit [(Ping timeout: 276 seconds)]
marsel has quit [(Ping timeout: 240 seconds)]
freusque has quit [(Quit: WeeChat 1.7.1)]
<dweller>
is it possible to know how big (in terms of disk space) is current generation?
yegods has joined #nixos
<hyper_ch>
yes
bennofs has joined #nixos
<justan0theruser>
dtz: I am using this expression and including pkgs.mesa as one of the buildInputs https://hastebin.com/raw/oyowajadud however it's still failing to load openGL display. Is there a chance it's not being linked properly, or perhaps I need another OpenGL packages dep? Forums I'm looking at describe "libgl-mesa-dev", is that what pkgs.mesa is on nixos?
jgertm has joined #nixos
<hyper_ch>
geez, nothing but troubles with btrfs... why do I keep trying to use it....
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] garbas pushed 1 new commit to release-17.03: https://git.io/vQtZI
<NixOS_GitHub>
nixpkgs/release-17.03 9b948ea Rok Garbas: pypi2nix: 1.6.0 -> 1.8.0
NixOS_GitHub has left #nixos []
<dtzWill>
justan0theruser: when I try that locally, very early on I see lots of errors/"warnings" about packages it can't find (not surprising for many of them but...)
<dtzWill>
justan0theruser: this in particular stands out: "WARNING: Could not locate thirdparty package gl, excluding from build
<dtzWill>
"
<dtzWill>
are you seeing that as well? it mentions pkg-config, maybe it's using that to find them, 1 sec...
<dtzWill>
yeah, adding 'pkgconfig' helps it find gl
<justan0theruser>
specifically WARNING: Could not locate thirdparty package gl, excluding from build
<justan0theruser>
sorry, I'm not familiar, is that part of the expression?
<dtzWill>
i mean, many of these things seem like reaonable dependencies (zlib, png, tiff, etc.) might want to just add them too. Does the panda3d build documentation say about what's required vs truly optional? alternatively looking what's provided in other distributions can be a useful guide
<dtzWill>
justan0theruser: buildInputs = with pkgs; [ mesa pkgconfig ];
<dtzWill>
justan0theruser: err that's just slightly fancy way of saying 'buildInputs = [ pkgs.mesa pkgs.pkgconfig ];' in case typing "pkgs." got tiresome :3
<justan0theruser>
yep :p
<justan0theruser>
will try now with pkgconfig
<dtzWill>
oh, I see, great. then probably should provide all the ones it recommends, at least the ones Nix has and are easy
<dtzWill>
notably it's dep on "X libraries" might be slightly difficult to resolve, since X has lots of libraries and dunno which they want
<justan0theruser>
well, i'll try to get the 4 it lists
<dtzWill>
justan0theruser: are you wanting to submit this to nixpkgs or is this "just" for your own use? changes what makes sense for deps a bit :)
<justan0theruser>
dtzWill: in what way does it change it?
<justan0theruser>
what is the protocol for including packages? Should they be meant to include every possible way they might be used?
zeus_ has quit [(Read error: Connection reset by peer)]
<dtzWill>
justan0theruser: well if you're counting on using panda for its' ability to do nifty shader things with your nvidia card then you probably should figure out how to make that work. IIRC that's a proprietary thing that requires manual adding to nix-store (might be confusing it with another thing), but so just as an example a hard dep on such a thing might be best to not include by default
<gchristensen>
is there a way in nix (other than getEnv "PWD") to get the pwd?
<dtzWill>
justan0theruser: good question! Dunno, to be honest. I see some packages have lots of "optional" flags for enabling/disabling features--sometimes they're to manage different use-cases in-tree other times it's unclear that anyone uses many of those options
<justan0theruser>
dtzWill: I've never submitted to nixpkgs, as you can tell I'm a noobie
<dtzWill>
i added ffmpeg b/c I like ffmpeg lol but
<dtzWill>
(ffmpeg also resolves the swscale/swresample bits)
<justan0theruser>
"Required to load and play video textures."
<justan0theruser>
sounsd worth it :p
<dtzWill>
lol! yeah
<dtzWill>
how i that under "optional"
<dtzWill>
oh, like textures that themselves are video content maybe?
<justan0theruser>
I assume because textures can be images
<dtzWill>
and it says re:libjpeg that it has a fallback thaht might not support all jpeg features, so if that can't be resolved that might not be so bad
<justan0theruser>
generally
<dtzWill>
right, but like so somehow load a video and apply it as a texture (?!) lol
<justan0theruser>
yes, that is what it is referring to
<justan0theruser>
It's amazing how big this library is
<justan0theruser>
and it has one active developer
<disasm>
justan0theruser: yeah, I was looking at makepanda/makepanda.py -- possibly the most nonstandard way of installing a python library...
<justan0theruser>
yeah really
<justan0theruser>
I had to install propietary drivers nvidia libraries before in nixos, it isn't fun, but it was necessary for what I was doing. Not sure how important mandatory nvidea is here
<justan0theruser>
ia
<justan0theruser>
Is there a page showing the rules for adding to nix
<justan0theruser>
what kind of tests I should do, what kind of formatting/spacing I should use
leat has quit [(Read error: No route to host)]
Ivanych has joined #nixos
<Gravious>
how can i install with nix-env from a local nixpkgs repo?
<Gravious>
is it possible to simply add a local path as a channel?
<clever>
nix-env -f ~/apps/nixpkgs -iA hello
arianvp2 has joined #nixos
<Gravious>
ah nice thanks!
ris has joined #nixos
zeus_ has quit [(Read error: Connection reset by peer)]
zeus_ has joined #nixos
kthnnlg has quit [(Ping timeout: 260 seconds)]
nil has quit [(Ping timeout: 260 seconds)]
mudri has joined #nixos
pxc has joined #nixos
nil has joined #nixos
leat has joined #nixos
metaphysician has quit [(Ping timeout: 240 seconds)]
<nh2>
I'm having real troubles with cache.nixos.org again
<nh2>
it's downloading NAR files (600 Byte) one every 2 seconds
<Gravious>
i'm trying to figure out how runtime deps work with lua pkgs
<disasm>
justan0theruser: I'm not sure if there's a style guide or not. If it works though, can always open up a PR and someone will comment if something doesn't meet the standards.
<Gravious>
oh it does, i missed it somehow, ignore me
<justan0theruser>
okie doke, still building
metaphysician has joined #nixos
Itkovian has joined #nixos
newhoggy has joined #nixos
<Gravious>
nh2, fwiw it seems slow for me too
kthnnlg has joined #nixos
newhoggy has quit [(Ping timeout: 260 seconds)]
mrkgnao has quit [(Ping timeout: 260 seconds)]
alx741 has joined #nixos
<CcxWrk>
Is there one easy command to get working development setup (gcc, binutils, libc's libraries) exposed in the environment?
boomshroom has joined #nixos
<boomshroom>
Hello, I'm away from my main machine with not much internet.
<boomshroom>
I'm currently booted into Mac, but I'd like to work on my NixOS installation even when I lose internet.
<CcxWrk>
nix-env -i glibc fails with assertion error :-(
<boomshroom>
Is it possible to download the NixOS packages from Mac so I can install them offline when I reboot?
<boomshroom>
Also, I'm going to want to merge the stores for my Mac and NixOS installations. I have different usernames on each system so the profiles shouldn't collide.
marsel has joined #nixos
<boomshroom>
looks like I'll be heading out. I'll see if I can get a response later. Bye!
boomshroom has left #nixos []
* Gravious
is at a loss as to how propagatedBuildInputs are handled with lua packages
<Gravious>
perl packages seem to set up a nix-support/propagated-user-env-packages file
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] volth opened pull request #26770: jetbrains updater: use perlPackages.LWPProtocolhttps (master...jetbrains-update-script-2) https://git.io/vQti0
NixOS_GitHub has left #nixos []
pietranera has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] aij opened pull request #26771: libatomic_ops: Provide alternate URL (master...fix/libatomic_ops) https://git.io/vQti7
jbaum98_ has quit [(Remote host closed the connection)]
<jbaum98>
is there a way to override a package to include the files from a dependency? i'm trying to get alsa to work and i have a derivation to compile some necessary libraries. amixer doesn't see these libraries because they aren't within the alsa directory: Cannot open shared library /nix/store/2n607y7mz78yllk0ig4h2m5wyd6i0138-alsa-lib-1.1.2/lib/alsa-lib/libasound_module_ctl_cras.so, even though that shared library is in my other
<jbaum98>
derivation. how can i get it to copy everything over, or is that not reccomended?
<Gravious>
jbaum98, is that not what propagateBuildInputs is for? i don't know i'm quite new to this
<Gravious>
*propagatedBuildInputs
newhoggy has quit [(Ping timeout: 276 seconds)]
LysergicDreams has quit [(Quit: leaving)]
pie_ has quit [(Ping timeout: 240 seconds)]
<jbaum98>
Gravious: I thought that might be it, but from the docs it seems like that just propagates the buildInput to other derivations that require that one, so if anything required alsa it would also require my derviation. I don't think it actually copies the stuff in
<Gravious>
try it and see? :)
pxc has quit [(Quit: WeeChat 1.8)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<disasm>
jbaum98: then you'd need sudoers configured in docker :)
contrapumpkin has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
oida has joined #nixos
ison111 has quit [(Quit: WeeChat 1.7.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] robx opened pull request #26772: v8_3_16_14: fix OS X build by passing deployment version (master...fix-v8) https://git.io/vQtMI
NixOS_GitHub has left #nixos []
Wizek has joined #nixos
oida_ has quit [(Ping timeout: 246 seconds)]
Wizek_ has joined #nixos
pietranera has quit [(Quit: Leaving.)]
pietranera has joined #nixos
orivej has joined #nixos
pietranera has quit [(Ping timeout: 246 seconds)]
ertes-w has quit [(Ping timeout: 240 seconds)]
justanotheruser has joined #nixos
newhoggy has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] garbas pushed 2 new commits to master: https://git.io/vQtDg
<NixOS_GitHub>
nixpkgs/master 90b2d06 Robert Hensing: maintainers: add roberth
<NixOS_GitHub>
nixpkgs/master 86dc646 Robert Hensing: arelle: init at 2017-06-01
NixOS_GitHub has left #nixos []
justan0theruser has quit [(Ping timeout: 240 seconds)]
pietranera has joined #nixos
Itkovian has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
ambro718 has joined #nixos
justanotheruser has quit [(Quit: WeeChat 1.7.1)]
justanotheruser has joined #nixos
<maurer>
Hey, anyone know how to get multiarch objdump on nixos?
<maurer>
I need to disassemble something other than my native architecture
ogkloo has quit [(Ping timeout: 246 seconds)]
civodul has joined #nixos
newhoggy has joined #nixos
<sphalerite>
dweller: I don't see if someone answered how to see the amount of space the current system generation takes up: I'd do something like nix-store -qR /run/current-system | xargs du -chd0 | sort -h | tail. Bit of a mouthful but it should get you your answer
<CcxWrk>
Why are some files not linked in nix-profile? eg. most of the lib/ subdirectory is missing.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 6 new commits to master: https://git.io/vQtS4
<NixOS_GitHub>
nixpkgs/master 7797e1a Gleb Peregud: erlang: put Elixir/LFE into per-OTP packageset....
NixOS_GitHub has left #nixos []
<avn>
CcxWrk: because they really don't need to be there?
<CcxWrk>
How do I request them to be there? Or how do I set up environment on which I can manually compile stuff which links against those libraries?
peacememories has joined #nixos
ThatDocsLady has quit [(Quit: Arma-geddin-outta-here!)]
newhoggy has quit [(Ping timeout: 255 seconds)]
<sphalerite>
gchristensen: re cwd: ./.? :D
<clever>
sphalerite: i tend to use this: du --max=0 -hc $(nix-store -qR /run/current-system) | sort -h
<CcxWrk>
Or is it just impossible to compile anything on nixos without using nix?
mudri has quit [(Ping timeout: 255 seconds)]
<clever>
CcxWrk: nix-shell will create an env with things setup
<clever>
but nix wont use the stuff you manually compiled
<simpson>
CcxWrk: You're meant to, at a minimum, use nix-shell to get a development environment. You don't have to have your project be buildable with nix-build, although there's a lot of obvious benefits to doing so.
<LnL>
sphalerite: toString ./. otherwise you get a store path
peacememories has quit [(Client Quit)]
<sphalerite>
LnL: are you sure? Does it not only get imported to the store when certain evaluation operations are performed on it?
newhoggy has joined #nixos
<sphalerite>
like "${./.}" will result in a store path
<sphalerite>
but other uses of ./. may or may not
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<clever>
sphalerite: toString prevents it from being copied to the store
<LnL>
like what? you'd eventually need to use it somewhere
<sphalerite>
true
newhoggy has quit [(Ping timeout: 255 seconds)]
<sphalerite>
LnL: also re sqlite earlier: Yep, I didn't realise sqlite had builtin readline support (and that nixpkgs has a specific sqlite-interactive attr for it!), thanks for pointing it out!
ogkloo has joined #nixos
<sphalerite>
hm, the readline support doesn't seem to include completion though
UnDeRsOuL has left #nixos ["WeeChat 1.7"]
marsel has quit [(Ping timeout: 268 seconds)]
<CcxWrk>
simpson: Thanks, apparently the issue was not missing library, but missing pkg-config (the specific error message was drowned below that)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Moredread opened pull request #26773: nixos: replaced "userns" with "user namespaces" for clarity (master...patch-1) https://git.io/vQt70
NixOS_GitHub has left #nixos []
<simpson>
CcxWrk: Ah, yeah, that'll do it.
<LnL>
sphalerite: yeah same with bashInteractive, it took pretty long for me to realise that's why bash was "broken" in my docker image :)
<sphalerite>
How do I convert a base64 checksum into a base32 one?
eliaslfox has quit [(Ping timeout: 246 seconds)]
<nh2>
in a nixos module config, if I declare an option, can that option's default value refer to other options' values?
mbbx6spp has quit [(Ping timeout: 255 seconds)]
m0rphism has joined #nixos
<sphalerite>
nh2: I believe so
<sphalerite>
But you may want to consider setting it in the module's config attribute with a mkDefault instead
<sphalerite>
I'm not sure if that makes sense
<nh2>
sphalerite: do you know an example of that I could look at
<Gravious>
wow
<Gravious>
this is nuts, in several cases i get a propagated-build-inputs file, and in the top-level package i don't get one, despite specifying propagated-build-inputs
<sphalerite>
nh2: actually I think what I said is wrong. But for example the grub module sets enabled to !config.boot.isContainer by default
<Gravious>
i might hack one in manually and see what happens
<sphalerite>
Gravious: how did you specify it?
<Gravious>
the usual way with, propagatedBuildInputs = [ ... ] ?
<Gravious>
the lower level packages have it, just no the top level
<sphalerite>
Gravious: that seems odd, can you make a minimal reproducible example?
newhoggy has joined #nixos
<Gravious>
sphalerite, it might take me some time to, but possible yes
<sphalerite>
ase = "mkdir $out"; propagatedBuildInputs = [sqlite]; name = "test";}'asd
sphalerite_ has joined #nixos
<sphalerite_>
Gravious: nix-build -E 'with import <nixpkgs> {}; stdenv.mkDerivation {unpackPhase = ":"; installPhase = "mkdir $out"; propagatedBuildInputs = [sqlite]; name = "test";}' works for me
newhoggy has quit [(Ping timeout: 268 seconds)]
sphalerite_ has quit [(Client Quit)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
pie_ has quit [(Ping timeout: 240 seconds)]
yegods has quit [(Remote host closed the connection)]
Isorkin has joined #nixos
newhoggy has joined #nixos
orivej has quit [(Ping timeout: 240 seconds)]
pie_ has joined #nixos
<sphalerite>
Gravious: sorry about that, had some difficulty accessing the ssh session I normally irc from there. But yes, it works correctly for me with that minimal example there
orivej has joined #nixos
newhoggy has quit [(Ping timeout: 255 seconds)]
bennofs has quit [(Ping timeout: 240 seconds)]
mudri has joined #nixos
newhoggy has joined #nixos
simukis has quit [(Read error: Connection reset by peer)]
<Gravious>
sphalerite, luascrypt has the propagated input, gitano does not
<Gravious>
oh
<Gravious>
i just spotted the issue >.>
ryantrinkle has joined #nixos
Itkovian has joined #nixos
<Gravious>
sphalerite, ah well, thanks for asking me to produce the test case :D
<sphalerite>
hahaha
<sphalerite>
typojijaisd
<Gravious>
>.>
<Gravious>
it's been a long day....
<Gravious>
:p
<sphalerite>
ugh, cconnection problem again
cpennington has quit [(Remote host closed the connection)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #26775: ghcHEAD: Actually split docs into their own output (master...ghc-head-docs) https://git.io/vQthw
NixOS_GitHub has left #nixos []
Infinisil has joined #nixos
bennofs has joined #nixos
bennofs has quit [(Client Quit)]
<Gravious>
hrm, seems nix doesn't setup the LUA_PATH to check in places specified by propagated-user-inputs :/
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
<Infinisil>
In which phase of a nix build are produced executables wrapped? specifically python. I'm trying to turn this phase off (for now at least)
<Infinisil>
Reason is that I can't run the wrapped ones, but can run the non-wrapped ones, throws a syntax error somewhere
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 closed pull request #26775: ghcHEAD: Actually split docs into their own output (master...ghc-head-docs) https://git.io/vQthw
NixOS_GitHub has left #nixos []
<Gravious>
LnL, that looks promising, thanks :)
yegods has joined #nixos
newhoggy has joined #nixos
pietranera has quit [(Quit: Leaving.)]
bennofs has quit [(Ping timeout: 276 seconds)]
newhoggy has quit [(Remote host closed the connection)]
<dweller>
sphalerite: thanks :)
<sphalerite>
np :)
<sphalerite>
Infinisil: I'm not sure but my guess is fixupPhase
ertes has joined #nixos
newhoggy has joined #nixos
bennofs has joined #nixos
digitalmentat has joined #nixos
digitalmentat has quit [(Quit: Leaving)]
<Infinisil>
Ah yes
<Infinisil>
Man, I don't get this python fixup thing
<Infinisil>
It just doesn't work
newhoggy has quit [(Ping timeout: 268 seconds)]
<Infinisil>
Every .py file gets written to .<name>.py-wrapped, while the original file gets turned into a bash script that invokes the original file with the correct python env
<sphalerite>
and the issue is..?
<Infinisil>
I don't quite understand it, but it seems that the package somehow references the original file locations (.py), expecting python code, not bash
<sphalerite>
ouch
<Infinisil>
Maybe all python files have #! at the beginning and are executable, gonna check now, that could be it
<Infinisil>
What I'm trying to package is an application that can automatically verify security protocols, it's called scyther
<Infinisil>
Backend is in C, I got that figured out and it's working, the GUI is written in python, that's where I'm now
bennofs has quit [(Ping timeout: 255 seconds)]
hiratara has quit [(Ping timeout: 246 seconds)]
hellrazor has quit [(Ping timeout: 246 seconds)]
hiratara has joined #nixos
orivej has quit [(Ping timeout: 240 seconds)]
newhoggy has joined #nixos
katyucha has quit [(Quit: Lost terminal)]
nckx has quit [(Quit: restarting my GuixSD server)]
nckx has joined #nixos
NightTrain has joined #nixos
<jbaum98>
is there a way to get $out not from the shell but within the nix derivation?
phinxy has quit [(Read error: Connection reset by peer)]
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
<jbaum98>
clever: so placeholder "out"? How does that scope? If I want to override an attribute of some derivation using the output directory of another derivation, will that work?
<pikajude>
wait
<pikajude>
why would you do that
<pikajude>
afaik the interpreter yells at you for including full store paths in string literals
eliaslfox 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
<jbaum98>
pikajude: i'm trying to deal with alsa plugins. alsa has a compile time constant plugin directory so i was gonna recompile alsa with it pointing at my new derivation with the plugin
<avn>
justanotheruser: does it use cffi (or any other ffi doing dlopen)?
<pikajude>
jbaum98: if you just interpolate a derivation, it will expand to the store path
<justanotheruser>
avn: not sure linking to the library is an issue
<justanotheruser>
avn: I had the same issue with libstdc++.so.6, but that was resolved. I may be wrong, but I think the file it's looking for now might just not exist.
<jbaum98>
pikajude: this looks great why isn't it in alsa anymore?
elninja44 has joined #nixos
<pikajude>
dunno
<avn>
justanotheruser: was just a attempt to guess. Never try build/use this library
<clever>
jbaum98: if you just want the output of some other derivation, use that derivations value
<clever>
jbaum98: "${pkgs.hello}/bin/hello"
<pikajude>
clever: jbaum98 wants the output of a package that depends on the one in question
<clever>
ah
<clever>
thats a circular reference, nix doesnt allow it, ever
<pikajude>
could be an elliptical reference to be fair
<jbaum98>
clever: i just learned this. i'm trying to deal with alsa plugins and the fact that it looks in a directory fixed at compile time
ris has quit [(Ping timeout: 240 seconds)]
<clever>
it would need to be patched to either look in a directory relative to home, in /etc, or in a directory set in an env variable
<clever>
then create a wrapper that merges the chosen plugins, sets the right variables, and then makes the right wrappers/configs
<pikajude>
i'm having deja vu
<justanotheruser>
avn: ok thanks
yegods has quit [(Remote host closed the connection)]
<Infinisil>
Finally, got it working, almost without problems
<simpson>
Stupid question: Is there a tool for managing sets of packages in a way that lets me specify the packages by name every time I enter the package-set? I basically want presets for nix-shell.
<clever>
simpson: make a shell.nix containing this: with import <nixpkgs>{}; runCommandCC "dummy" { buildInputs = [ foo bar baz ]; } ""
<slabity_>
Can I retrieve an overlay via a fetch* command in configuration.nix? For example, the mozilla-overlay: `mozillaPkgs = pkgs.fetchFromGithub { "..." };`
<simpson>
clever: Right. I want a few dozen of those, and a tool for managing them.
<clever>
simpson: you can also optionaly add { arg1 ? "defaultval" }: and then use "--argstr arg1 foo" to change it
<clever>
simpson: ah, then you would want the file to return an attribute set of those runCommandCC's, and use -A to switch between them
<slabity_>
And then I can do something like `mozillaOverlay = pkgs.callPackage mozillaPkgs {};` since it has a default.nix in that repo, right?
<clever>
slabity_: you may need to use (import <nixpkgs>{config={};}).fetchFromGithub
<clever>
slabity_: otherwise, it will have a circular reference, where the value of pkgs depends on the overlays, which depend on pkgs.fetch...
<Infinisil>
Is there some way to disable the buildPhase without having to list all other phases?
<clever>
Infinisil: set buildPhase=":"; which causes bash to just do nothing for some reason
<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
<clever>
Infinisil: oh, and i found a better answer
<Infinisil>
clever: Haha, I thought about something like this
<simpson>
clever: Maaaaaaaybe. This all feels a little too clever.
<simpson>
Er, sorry, pun not intended.
<Infinisil>
clever: Oh that's nicer, documentation is sparse
digitus has quit [(Quit: digitus)]
<slabity_>
clever: It says attribute fetchFromGithub is missing
<clever>
slabity_: and the H in Hub has to be in caps
<slabity_>
:(
<clever>
i can never remember which way it goes and used your question as an example
<clever>
i just open nix-repl '<nixpkgs>' and tab-complete fetchFrom
MP2E has joined #nixos
<slabity_>
clever: So then after I do the `mozillaPkgs = fetchFromGitHub {...}'` and the `mozillaOverlay = pkgs.callPackage mozillaPkgs {};` how do I access a package in that repo? When I try mozillaOverlay.firefox-nightly-bin it gives me an error that an anonymous function was called with an unexpected argument 'channel'
<clever>
slabity_: i dont think callPackage is the right thing to use there
<clever>
what repo did you give to fetch from github?
<slabity_>
mozilla/nixpkgs-mozilla
tv has quit [(Ping timeout: 255 seconds)]
<clever>
slabity_: try adding --show-trace, and figure out which file is complaining
Wizek_ has quit [(Ping timeout: 240 seconds)]
<MP2E>
hi. getting an odd issue here, I have a nixos laptop and a nixos desktop and want to copy a closure with nix-copy-closure. If I copy over ssh using 'nix-copy-closure --from user@localip /nix/store/52fad..network-manager-1.6.2' works, however, if I try to access it from outside my network, it just says 'error: path /nix/store/...-network-manager-1.6.2/ is not found in the nix store'
<simpson>
clever: Do you happen to know how easy it is to control the shell prompt in nix-shell?
<clever>
simpson: you can probably alter PS1 in the shellHook
<MP2E>
thing is though, I can ssh into the desktop outside the local network just fine and use scp. and I've confirmed the path i entered for the package I want exists on the remote machine
<MP2E>
so... not sure what i'm missing :(
<clever>
MP2E: there is both --from and --to, to let you switch the direction its moving the package
catern has quit [(Ping timeout: 255 seconds)]
marcinkuzminski has quit [(Ping timeout: 255 seconds)]
<MP2E>
indeed, I had just tried --from in this case
<clever>
MP2E: so if you can ssh in either direction, you can get the copy to work
<MP2E>
I can try --to as well though
<MP2E>
ah
primeos has quit [(Ping timeout: 240 seconds)]
Wizek has quit [(Ping timeout: 255 seconds)]
mitchty has quit [(Remote host closed the connection)]
spion_ has quit [(Ping timeout: 255 seconds)]
pareidolia has quit [(Ping timeout: 255 seconds)]
fiddlerwoaroof has quit [(Ping timeout: 255 seconds)]
DavidEGr1yson has quit [(Ping timeout: 255 seconds)]
hotfuzz has quit [(Ping timeout: 255 seconds)]
DavidEGrayson has joined #nixos
pareidolia has joined #nixos
mitchty has joined #nixos
marcinkuzminski has joined #nixos
spion has joined #nixos
fiddlerwoaroof has joined #nixos
tv has joined #nixos
hotfuzz has joined #nixos
catern has joined #nixos
<slabity_>
Also, the github repo has another overlay, except it's called rust-overlay.nix instead of default.nix. Any way to access that?
<clever>
"${mozillaPkgs}/rust-overlay.nix"
<clever>
passed to either callPackage or import, depending on what arguments it needs
<clever>
or possibly directly to the overlays list
ebzzry has joined #nixos
<slabity_>
Overlays list?
<clever>
i havent used them before, but you can configure a list of overlays somewhere
<slabity_>
So I think I found it: `nixpkgs.overlays = [ mozillaOverlay ];`. But that gives an infinite recursion error
<clever>
yeah
<clever>
2017-06-22 20:22:06 < clever> slabity_: you may need to use (import <nixpkgs>{config={};}).fetchFromGithub
<clever>
2017-06-22 20:22:37 < clever> slabity_: otherwise, it will have a circular reference, where the value of pkgs depends on the overlays, which depend on pkgs.fetch...
<slabity_>
I did use that
<clever>
can you gist your config?
<slabity_>
Sure, I'll try and simplify it
sigmundv__ has joined #nixos
<simpson>
dash: So far, things that I have put back into my nix-env because they apparently aren't global: nix and nix-repl.
<dash>
o.o
markus1189 has joined #nixos
<simpson>
I guess nix-repl is optional, but c'mon, what is the point of Nix without nix-repl?
<dash>
heh
markus1219 has joined #nixos
<Infinisil>
I'm using nix-repl very rarely, maybe I should
<dash>
yeah nix-repl isn't a core requirement, so yeah it goes in my user env too
<simpson>
Infinisil: It is my preferred way to examine nixpkgs, since I don't have to guess which file goes where.