<simpson>
suzu: TBF the typical way to install Nix onto non-NixOS is with the upstream binary installer, which presumably has zero respect for anything Arch.
<clever>
hence, the sandbox just doesnt work, when nix isnt built by nix
thc202 has quit [Ping timeout: 245 seconds]
<suzu>
the arch install method isn't far off - it pulls the bins and does a make/make install
<suzu>
i guess no sandbox for me then :(
ottidmes has quit [Ping timeout: 272 seconds]
<suzu>
hopefully that doesn't end up breaking shit later down the road
<suzu>
thanks for your help clever
goibhniu has quit [Ping timeout: 244 seconds]
maximiliantagher has quit [Ping timeout: 240 seconds]
<clever>
yep
o1lo01ol1o has quit [Ping timeout: 244 seconds]
ericsagnes has quit [Ping timeout: 250 seconds]
endformationage has joined #nixos
selfsymmetric-mu has quit [Remote host closed the connection]
<suzu>
error: value is null while a set was expected, at /nix/store/c4gz9smq9grl437dzf0k5iib5zglkfgd-nixpkgs-19.03pre167327.11cf7d6e1ff/nixpkgs/pkgs/top-level/default.nix:63:5
<{^_^}>
#51858 (by YuMingLiao, 8 weeks ago, open): error: value is null while a set was expected, at pkgs/top-level/default.nix:63:5 (when nixops deploy)
<suzu>
perhaps if i make nix upgrade itself
<suzu>
nope
<suzu>
fk
maximiliantagher has quit [Ping timeout: 245 seconds]
eadwu has joined #nixos
fresheyeball has joined #nixos
<fresheyeball>
hey out there
<fresheyeball>
is there a clean way to reference systemctl with string interpolation?
<fresheyeball>
I need to use systemctl in a nix generated bash script
<clever>
and {^_^} just mentioned (about 30mins ago) that nixos-unstable-small had updated
erictape1 has joined #nixos
<suzu>
whats the -small mean?
<clever>
the channel can update before hydra has built every single package
<suzu>
ah i see
<clever>
so it can update faster, but you may need to compile some things
<suzu>
so that worked, i've got nixops 1.6.1 now
<suzu>
but it's still broken
<suzu>
> nixops info
<{^_^}>
attempt to call something which is not a function but a set, at (string):218:1
<suzu>
error: value is null while a set was expected, at /nix/store/9ljs47p13d9za6iacbpwa4wp8ancz159-nixpkgs-19.03pre167327.11cf7d6e1ff/nixpkgs/pkgs/top-level/default.nix:63:5
<fresheyeball>
if it takes a set as the first arg, not a sting, I am confused as to how my stuff ever worked
<clever>
fresheyeball: compare line 57 and 90 of the file i linked
Gohla has joined #nixos
<fresheyeball>
hmm
<fresheyeball>
ok
slack1256 has joined #nixos
brejoc has joined #nixos
Glider_IRC_ has quit [Quit: Leaving]
Glider_IRC_ has joined #nixos
<petersjt014>
hi: I got an ancient 32-bit desktop device and don't know how to cross-compile for it--the closest option I see is i686-embedded. Is on of the other ones more correct?
<clever>
petersjt014: dont need the cross-compile flags
<petersjt014>
Is there some way to specify 32-bit only then?
<{^_^}>
Homebrew/legacy-homebrew#41267 (by bfontaine, 3 years ago, closed): cdimgtools fails to build on 10.10.3
<{^_^}>
[nixpkgs] @grahamc opened pull request #55375 → Manual: make reproducible → https://git.io/fh95R
o1lo01ol1o has joined #nixos
maximiliantagher has joined #nixos
<abbafei[m]>
<abbafei[m] "trying to package [`cdimgtools`]"> should i package the old libdvdcss with a number suffix? or is there another, better way to do it? :-)
Drorcets has joined #nixos
Drorcets has left #nixos [#nixos]
o1lo01ol1o has quit [Ping timeout: 245 seconds]
maximiliantagher has quit [Ping timeout: 244 seconds]
slack1256 has quit [Remote host closed the connection]
vk3wtf has quit [Ping timeout: 252 seconds]
<Aleksejs>
Hello, after one more --upgrade I've got a bug that disables wifi after sleep/resume and even restarting networkmanager doesn't help. I haven't figured out how to get wifi back, so the only thing that helps now is restart
<Aleksejs>
so, at the moment, two things are broken - teamviewer and network manager
<Aleksejs>
I've also deleted old generations while cleaning up so there's no way to get them back I suppose
filterfish has quit [Ping timeout: 245 seconds]
<Aleksejs>
these bugs are very annoying. Is there anything I can do?
doyougnu has joined #nixos
fresheyeball has quit [Quit: WeeChat 2.2]
o1lo01ol1o has joined #nixos
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
o1lo01ol1o has quit [Ping timeout: 245 seconds]
<jackdk>
Aleksejs: after stopping networkmanager (I assume you're stopping the service and not just the applet), try a modprobe -r for your wifi module and re-modprobing it?
endformationage has quit [Ping timeout: 240 seconds]
ddellacosta has joined #nixos
Ridout has quit [Ping timeout: 246 seconds]
<Aleksejs>
jackdk: either I have to keep it in sleep mode for a longer time or the bug with wifi is fixed now but I cannot reproduce it now. Tried to keep it in sleep mode for 5 minutes and wifi is back up after resume
<Aleksejs>
btw I did another --upgrade right before sleep so maybe something was fixed
lassulus has quit [Ping timeout: 246 seconds]
teehemka_ has joined #nixos
iqubic` is now known as iqubic
Rusty1 has quit [Quit: Konversation terminated!]
slyfox_ has joined #nixos
slyfox has quit [Ping timeout: 240 seconds]
teehemka_ is now known as teehemkay[away]
lassulus has joined #nixos
irdr_ has quit [Remote host closed the connection]
irdr has joined #nixos
rprije has quit [Read error: Connection reset by peer]
rprije has joined #nixos
palo1 has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<daniele->
how do i get info about a package? like its dependencies
<daniele->
also, how do i get a list of the installed packages? `nix-store --query —installed` does not list the packages installeed via configuration.nix
filterfish has joined #nixos
<daniele->
i undertand that nix-env is for the user environment. how do i do the same for the system packages?
hph^ has quit []
Noughtmare[m] has joined #nixos
fusion809 has quit [Remote host closed the connection]
<daniele->
my php-apcu package seems to be being built with the wrong version of php. how do i investigate the issue?
maximiliantagher has quit [Ping timeout: 240 seconds]
<etu>
daniele-: I'm very sure it doesn't, which package do you pick?
<etu>
daniele-: And which version of php do you expect?
<daniele->
etu: well, when php loads the module it is unable to resolve a symbol nd the symbol seesm to be coming from php itself. i don’t know what else may cause that
<daniele->
and php-imagik has a similar problem. although the same fix does not work
<etu>
So that's all the packages that are within the phpPackages.<name> scope
<daniele->
i’m looking at it, but it is not very enlightening
<iqubic>
daniele-: No. That is the best way of doing that.
<etu>
Well, I haven't used apcu in nix because I haven't used nix for a production system since we don't use it at work. But from experience with for example composer from there it picks the right version of php
<etu>
So I'm very sure that apcu would pick the right version as well
slyfox_ is now known as slyfox
<daniele->
apparently not
<daniele->
otherwise i don’t see why the module would fail to load
<daniele->
apparently the version of php that uwsgi embeds is different
<etu>
You seem to use the package php-embed in one place
<daniele->
uwsgi “depends” on php-embed
<daniele->
at least that’s what i understand from the definition of the package
<daniele->
is there any way to expand the expressions in a .nix expression?
<etu>
I'm not sure that that's your problem, but maybe
Ariakenom has joined #nixos
<daniele->
i think that is right
<daniele->
php-embed does not provide a stand alone interpreter
<daniele->
I found the problem!
<daniele->
i was building one copy of php-acpu linked to php-embed, but then i was loading the one linked to php in the uwsgi configuration
ottidmes has joined #nixos
Tucky has joined #nixos
hyper_ch2 has joined #nixos
<sicklorkin>
nix-env -j4 -v -i nix-repl; nix-repl; nix-repl> :l <nixpkgs> ; error This version of Nixpkgs requires Nix >= 2.0; nix --version
<sicklorkin>
nix (Nix) 2.2.1
rauno has joined #nixos
<sicklorkin>
or, what is another way to look for packages? I want to see if mssql-odbc linux drivers exist
<ottidmes>
sicklorkin: with nix >= 2 you should be using `nix repl` rather than `nix-repl`
tzemanovic has joined #nixos
rauno has quit [Ping timeout: 246 seconds]
<sicklorkin>
ahh
<ottidmes>
sicklorkin: there is nix-index (thats the project name) that provides nix-locate and allows you to search through output paths of packages build of Hydra, like their /bin and /lib outputs, I just checked for mssql and it seems there are bindings for it in Ruby, Java, Python, and Perl, not sure if they are what you searching for though
<ottidmes>
sicklorkin: its also supported by the bot:
<ottidmes>
,locate mssql
<{^_^}>
Found in packages: ansible, lazarus, sickgear, sickrage, roundcube, freeradius, limesurvey, metasploit, ansible_2_4, ansible_2_5, ansible_2_6, grafana.bin, python27Packages.sqlobject, python27Packages.sqlalchemy, python37Packages.sqlalchemy
<sicklorkin>
,locate msodbcsql17
<{^_^}>
Couldn't find in any packages
hedning has joined #nixos
<sicklorkin>
noooo
<etu>
,locate msodbsql
<{^_^}>
Couldn't find in any packages
<etu>
May not be part of the binary name but nope :(
<hyper_ch2>
how can I find out why KDE slows down massively after a few days of uptime of my notebook?
<sicklorkin>
ottidmes: yeah - but that's sometjin i don't want to learn right now..
<srhb>
sicklorkin: unixODBCDriver.msodbcsql17
Makaveli7 has joined #nixos
<sicklorkin>
srhb: that's the one!
<srhb>
sicklorkin: nix-locate isn't perfect, and it has an unfree license, so we never build it and it doesn't get indexed.
<ottidmes>
right, should have just done a quick search through nixpkgs
<srhb>
Yeah, the ultimate fallback is grep. :-P
<sicklorkin>
ottidmes: yes, this was my Q above.. i have no idea wha tI'm doing.. just moving head first.
<sicklorkin>
I really appreciate the help you guys provide!
<sicklorkin>
great community
<srhb>
It really is. :)
<sicklorkin>
and now things just work.. F**ya!
<etu>
sicklorkin: That's just one of the reasons that I got stuck here and use NixOS:)
reinhardt has joined #nixos
<sicklorkin>
,locate odbc
<{^_^}>
Found in packages: dmd, fpc, ldc, root, lazarus, logstash5, opendylan, pltScheme, factor-lang, logstash6-oss, opendylan_bin
tzemanovic has quit [Remote host closed the connection]
<sicklorkin>
`* Missing (or bad) C library: odbc`
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
rauno has joined #nixos
tzemanovic has joined #nixos
<srhb>
sicklorkin: Is that supposed to be provided by the msodbc one?
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
bpa has joined #nixos
<sicklorkin>
unixodbc-dev
<sicklorkin>
ahh
tzemanovic has quit [Remote host closed the connection]
<sicklorkin>
I forgot to paste it in
tzemanovic has joined #nixos
<sicklorkin>
got too excited
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
zupo has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
wigust has quit [Ping timeout: 245 seconds]
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
civodul has joined #nixos
tzemanovic has quit [Remote host closed the connection]
wigust has joined #nixos
tzemanovic has joined #nixos
rauno has quit [Ping timeout: 240 seconds]
erictape1 has quit [Ping timeout: 272 seconds]
ericsagnes has quit [Quit: WeeChat 2.2]
tzemanovic has quit [Ping timeout: 246 seconds]
ericsagnes has joined #nixos
daniele- has quit [Quit: daniele-]
rauno has joined #nixos
tv has joined #nixos
Glider_IRC__ has joined #nixos
goibhniu has joined #nixos
daniele- has joined #nixos
Glider_IRC_ has quit [Ping timeout: 250 seconds]
<sicklorkin>
if I get an error ` { allowUnfree = true; }` do I need to rebuild again?
<ottidmes>
sicklorkin: yes, if it reports not allowing unfree, it means it will not have build it yet, so its not really rebuilding
<sicklorkin>
cat ~/.config/nixpkgs/config.nix
<sicklorkin>
{ allowUnfree = true; }
<sicklorkin>
but it refused to rebuilt
<sicklorkin>
s/rebuilt/rebuild
<ottidmes>
ah, you mean with nixos-rebuild, it does not use that config
<gunix>
is nixos a rolling release distro?
<sicklorkin>
no i'm using stack.
<sicklorkin>
i'm actually confused.. is allowUnfree supposed to be an argument I pass somehwere?
<ottidmes>
sicklorkin: you can do for example: nixpkgs.config = import /home/lorkin/.config/nixpkgs/config.nix; to make the config for nixpkgs the same as it is in nix-env for nixos-rebuild
<ottidmes>
sicklorkin: ^ that line would go into your configuration.nix
<sicklorkin>
i didn't explicity make a configuration.nix
<sicklorkin>
ottidmes: ideally i'd like to have this checked into my repo so the next developer building doesn't have to do the smae time
<sicklorkin>
s/smae time/same thing
infinee has joined #nixos
<ottidmes>
sicklorkin: I don't have much experience with Nix outside of NixOS, but it might be checking for config.nix under a different user. Personally I have it configured to point to the same config.nix everywhere
<sicklorkin>
ottidmes: thanks for the suggestion.. since nix is a programming launage I think i should e able to get a hold of the config somewhere and set allowUnfree
<sicklorkin>
it's problematic when you have to remind pople to set things in their env or home dir
<sicklorkin>
or worse yeet, you set up a new production machien an kaboom
<sicklorkin>
panic
<ottidmes>
gunix: it depends on what channel you are using (kind of like which branch), if you use nixos-unstable than it acts like a rolling release distro
daniele- has quit [Quit: daniele-]
<ottidmes>
sicklorkin: you can also set all these things in a pure way (i.e. not dependent on outside factors like a config file being there or environment variables)
GiGa has joined #nixos
GiGa has joined #nixos
GiGa has quit [Changing host]
<GiGa>
Hello, I'm trying to install androidenv.platformTools but keep getting told it's undefined
<GiGa>
I'm putting that in environment.systemPackages - appears to be wrong
<GiGa>
could someone advise what I'm doing wrong please?
<ottidmes>
GiGa: maybe you are missing an `with pkgs;`, otherwise, maybe paste your relevant config?
<talyz>
daniele-: to list the packages installed on your system via configuration.nix, you can use 'nix-store -q --requisites /run/current-system'
DeanGuss has joined #nixos
winem_ has quit [Remote host closed the connection]
reinhardt has joined #nixos
<GiGa>
If I nix search I cannot find androidenv.platformTools
<ottidmes>
GiGa: you would want to use programs.adb.enable = true; instead
<ottidmes>
GiGa: which sets environment.systemPackages = [ pkgs.androidenv.androidPkgs_9_0.platform-tools ]; and services.udev.packages = [ pkgs.android-udev-rules ]; for you
<GiGa>
Ah, so I don't need the platformTools bit at all?
<ottidmes>
well not if you set programs.adb.enable = true;
<GiGa>
I've got that specified
<ottidmes>
then you should be good
<GiGa>
Doing a rebuild switch now, thanks ottidmes, hopefully that should work
<GiGa>
I'm assuming that'll pull down the Android SDK too, or do I still need to do that?
<talyz>
daniele-: same for listing dependencies of derivations / installed programs; you can for example do 'nix-store -q --requisites $(which bash)', which will list all dependencies of bash recursively
<talyz>
daniele-: or you can use --references instead of --requisites to only list direct dependencies
<ottidmes>
GiGa: you would still need to add the SDK, for ADB support the SDK is not necessary it seems
<GiGa>
OK, thanks, I'll tell IntelliJ to go and get it
<GiGa>
as I didn't find the SDK in the repo
<ottidmes>
GiGa: androidsdk_9_0 is the name
<talyz>
daniele-: this doesn't really tell you why they're needed, though, so it might be better to read the source in many cases, if not all ;)
<GiGa>
ottidmes, I've not come across that, I'll have a look
<GiGa>
ottidmes, looks like that greps all of the packages repo and finds matches?
<ottidmes>
GiGa: not exactly, but it behaves like that yes
<GiGa>
OK cool
<ottidmes>
GiGa: I believe it should also contain some NixOS configurations of other people, but maybe that was another link that used the same search engine
<ottidmes>
,
<{^_^}>
Special commands: find tell locate - Commands sorted by use count, page 0 (use ,<n> to view page <n>): tofu IFD library unfree declarative escape'' -A paste libraries stateVersion help dnw profiling pr callPackage imperative unstable escape" which-channel exec fancy-uninstall overlay xy NUR channels home-manager loot nixlang++ ping howoldis jDwhat pills pinning xml cloak error gctest.html nixGL smart-questions tias upgrade wololo configsearch
<GiGa>
ottidmes, I'm hoping I can do my Android dev work directly in my nixos install, rather than in this Debian VM I've been using
hyper_ch2 has quit [Quit: Page closed]
<ottidmes>
GiGa: yeah I can imagine, I don't have any Android development experience, so I cannot help you much in that regard, but another tip might be just to look at the logs, I found that many of my questions had already been answered in the past, and I have seen some related Android questions before, so it might help: https://logs.nix.samueldr.com/nixos/
<ottidmes>
GiGa: and if that fails, just do this: find /nix/store -maxdepth 1 | grep androidsdk
<srhb>
GiGa: Referring to the store path in some application config sounds fundamentally wrong to me, as it'll change with every update or change. You should refer to its location in some profile instead.
ckauhaus has joined #nixos
<gunix>
ottidmes: can nixos-unstable be unsed as a desktop? how is it comparable to tumbleweed or sid or arch?
<GiGa>
gunix, I'm using Unstable on all my machines. Works quite well for me
<srhb>
gunix: We have a decent number of tests to ensure that the most fundamental things do work before the nixos-unstable channel bumps, but of course it's much less stable than the stable channels.
<ottidmes>
gunix: yes, plenty of people here are on nixos-unstable on their desktop I believe
<GiGa>
srhb, I agree with you, but not sure how to do that
<gunix>
is there a robot that I can query to see the versions of packages in nixos unstable?
<GiGa>
(Thanks everyone for the help by the way)
<srhb>
GiGa: Install it into your profile eg, and you'll know it's always in ~/.nix-profile
<srhb>
That produces a stable path.
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ottidmes>
GiGa: The problem described by srhb is a real one, so if a path is required and cannot be configured through different means (i.e. your configuration.nix somehow), you could probably just use a symlink to the path that is generated by your configuration.nix
<GiGa>
srhb, I'll confess to not knowing how to do that, sorry
<srhb>
GiGa: nix-env -iA nixpkgs.androidsdk_9_0
<GiGa>
oh, ok, that I know how to do
<srhb>
GiGa: Or if you're on NixOS, put it in your systemPackages -- that will place it in /run/current-system/sw
<GiGa>
srhb, I am indeed on NixOS
<srhb>
One of the points of these profiles is to produce stable paths.
ryantm has joined #nixos
<srhb>
(By doing a bunch of symlink trickery)
<srhb>
This allows non-nix-aware applications to find software of all kinds.
<ottidmes>
srhb: but it does this only for the things inside the package, right, you cannot use it to point it to the directory containing them?
zupo has joined #nixos
<ottidmes>
(depends on what path is actually requested)
<srhb>
ottidmes: In the end it uses pathsToLink (or whatever it's called) -- but you can ensure that arbitrary things are linked in place by just building a metapackage that contains whatever links you want.
<srhb>
ottidmes: So the default behaviour is something like joining share, bin, ... toether
<srhb>
Into the root of the profile, I mean.
<GiGa>
Just off to a meeting, but I'll read that all properly when I get back
<GiGa>
Many thanks all, as always
<infinee>
gunix: I just switched to unstable, looking for discord but I can't find it when I do a `nix-env -qa discord`. (Discord also not found). Do you see it in your channel?
<ottidmes>
srhb: yeah sure, so basically the same as my symlink suggestion, good to know
<gunix>
infinee: i think your last message was for GiGa :-D
<ottidmes>
infinee: its on nixos-18.09 at least, just under the name discord as you'd expect
<gunix>
i am just a noob at nixos. i am having a look at it to see if I want to switch from arch to nix.
<srhb>
gunix: I can barely remember, but I think the default package set in the bot is in fact unstable, but I'm not sure how often it's update (probably irregularly) so it's easier to do it from the command line
<srhb>
gunix: fwiw many people here actually came from Arch, I'm not sure what the common denominator is :-)
<ottidmes>
I came here from Arch too
<gunix>
srhb: probably the community.
<gunix>
and arch users are usually looking for some complex linux experience, and gentoo wastes too much of your time :-D
<srhb>
My gut feeling is the flexibility of Arch, but with the massively increased maintainability.
<immae>
I come from Arch too, and no not the community as far as I am concerned, mostly the functional aspect of nix
<srhb>
Once you've set up Arch for the umpteenth time, you start wondering whether you could automate this stuff...
<gunix>
srhb: i was looking for the packages to know how bleeding edge nixos is, meaning if I get the latest docker, ansible, kubectl, libvirtd, qemu... stuff i use daily.
<srhb>
gunix: One of the ridiculously cool things about NixOS is how easy it is to bump packages if they're NOT up to date, imo.
<immae>
gunix: nix is a bit late in general (I have to write my own derivations)
<srhb>
gunix: (I'm referring to what we call overlays here)
<ottidmes>
the functional aspect of Nix made me come over to NixOS, but the community allowed me to go through the learning curve, otherwise I would have probably stayed at Arch
<srhb>
gunix: I wouldn't know. It's a number of functions that modify your pakcage set
<srhb>
ottidmes: Indeed.
<srhb>
My first few weeks included a.. lot of flailing. #nixos was extremely helpful.
<Taneb>
I only got stuck in on my fourth or so try
<gunix>
srhb: do people that bumb their package versions also contribute that to upstream? cause that would get nixos from "a bit late" to "latest"
<Taneb>
(although on my first try Nix was a somewhat younger project)
<ottidmes>
it helped I had a friend that introduced me to NixOS and he was knowledgable about it, but still needed #nixos often enough
<srhb>
gunix: We try to encourage it for sure. Let me show you how eg. an ansible bump looks.
<immae>
gunix: there are tons of PR waiting approval in the nixpkgs repository
<ottidmes>
gunix: https://repology.org/ NixOS is doing pretty good with updating packages
<srhb>
I think that's an unfair characterization. We obviously can always use more help getting things from the review queue into the repository, and stuck PRs are demotivating, but we're definitely working on it, and I don't know of a lower-barrier-to-entry OS that's this functional.
<ottidmes>
gunix: a lot of them are created by update bots though
<immae>
srhb: we definitely don’t have the same experience in that aspect :p
<srhb>
gunix: But that's an example of a (trivial) ansible bump :)
<srhb>
immae: Well, I have a big green button on github, full disclosure.
gagbo has joined #nixos
<immae>
then that’s why
<srhb>
It's certainly part of the reason.
<srhb>
And I haven't had time to review lately, so I'm also part of the reason things are slow. Hopefully that will get better soon.
sigmundv_ has joined #nixos
<immae>
I actually hardly ever managed to get help in #nixos, and I gave up the idea of contributing to nixpkgs (even though I have some new packages that I know interest the community)
<srhb>
We are working towards automatic merges of trivial PRs.
<ottidmes>
this is the first distro I wanted to contribute too, and I found it pleasant enough, the hardship was learning how to package, not the PR process
<immae>
(Ok ,I’m a bit hard, I’d say more 80% of the time, my questions in #nixos got unanswered)
<ottidmes>
immae: could it be that your questions were highly specific?
<infinee>
immae: I have totally different experience in here.
<ottidmes>
infinee: maybe it is unfree, let me check
<immae>
ottidmes: it’s possible, to me they sound like common or newbie questions, but I may very well be wrong
<srhb>
I do notice people getting very few responses, and in my experience it's mostly caused by lack of knowledge of the topic.
<gunix>
srhb: i guess the contribute process is harder for packages that need to get compiled
<srhb>
I do notice when*
<srhb>
gunix: Nope.
<immae>
(I’m not harsh about it, just giving my experience, and usually finding the answers my own way is quite helpful even though it takes much more time)
<srhb>
gunix: The CI GrahamCOfBorg builds them automatically, and it works in the same way for compiled and interpreted packages (abstracted away by Nix)
<srhb>
brb
<ottidmes>
infinee: yep license = licenses.unfree; so that is why the search tools don't report it (I used `nix search discord`, which apparantly does report it, but maybe only after allowUnfree in the Nixpkgs config.nix, not sure)
<srhb>
ottidmes: Correct.
<infinee>
I've not come across 'nix' cmd yet. so far only been using nix-env, nixos-rebuild, nix-channel. Let me read up on that
<immae>
srhb: Maybe it’s also the time of day which is "wrong" time for asking :p
<srhb>
infinee: It's an experimental new interface. It has pros and cons
<srhb>
infinee: Like git, it uses the command style model (nix FOO)
<ottidmes>
immae: it does not have a manpage yet, but there is `nix --help` and the subcommands have their own help too, e.g. `nix search --help`
<ottidmes>
infinee: ^
<srhb>
infinee: The most useful ones currently are `nix eval` and `nix repl` that are almost always superior to the "old" commands
<srhb>
immae: It might be. :/
<infinee>
so far I've only installed stuff via nix-env and nix-os. is that why I don't have a ~/.config/nixpkgs directory yet?
<srhb>
infinee: No, that is something you hand-craft once you need it.
<infinee>
kthx
<ottidmes>
immae: that is definitely a factor, and sometimes when there are too many people active, your questions might get lost in other peoples conversations
<{^_^}>
[nixpkgs] @danbst pushed commit from @andrew-d to master « m2crypto: fix build with libressl (#53537) »: https://git.io/fh9b6
<infinee>
ahh yeah unfree. `env NIXPKGS_ALLOW_UNFREE=1 nix-env -qa discord` finally sees it
<immae>
ottidmes: I know about that, don’t worry. And again, I’m not harsh or unhappy, and people are not at my service. I was just giving my experience (which in that regards is completely different from the one I have in #archlinux )
<immae>
(well, actually I don’t ask much question in #archlinux so it’s hard to make a comparison :p )
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ptotter[m]>
I'm having trouble with ipv6 on a hetzner vps
<ptotter[m]>
it works on one, created a couple of months ago
<ptotter[m]>
I tried following the same steps but it still doesn't work
<srhb>
ptotter[m]: Can you elaborate on what you did, what you expected, what happened instead?
<ptotter[m]>
so I added networking.interfaces.ens3.ipv6.addresses and networking.defaultGateway6
<ptotter[m]>
can't ping to the vps
<ptotter[m]>
and not from it either
<ptotter[m]>
ip -6 r and ip a look good
<ptotter[m]>
I can connect with ssh -4 to the vps
<ptotter[m]>
but ssh without -4 tries ipv6 first and fails
DrLambda has quit [Quit: Leaving.]
DrLambda has joined #nixos
<ptotter[m]>
or acutally just hangs
<ptotter[m]>
I wonder if there was some step that would not end up on configuration.nix, but I can't think of a reason why that would be
<immae>
ptotter[m]: what is the state when you run "ip addr" on the server? is it correctly defined?
<immae>
(also, if you run it via nixops, the "initial" configuration is a bit outdated as far as networking is concerned, and may - not sure - not allow to have several ip6 addresses defined)
<immae>
sorry I missed one of your line. If "ip addr" is good, then did you check that the ip address was actually routed in hetzner?
<ptotter[m]>
I only need one address for now, not using nixops
<ptotter[m]>
ip a looks good
<ptotter[m]>
compared to the other with working network
<ptotter[m]>
I've opened a support ticket over at hetzner
<ptotter[m]>
the configuration interface gives me that ipv6 address (/64, but I just took ::1)
zupo has joined #nixos
<immae>
Ok, so you’re configuring ip6 "from scratch", you don’t already have one configured?
hyper_ch2 has joined #nixos
<ptotter[m]>
I just created that server yesterday, the default configuration.nix didn't include ipv6
<immae>
Do you have a firewall, and could it be that it’s enabled only for ipv4 ?
<immae>
ok
infinee has quit [Quit: rebuild switch]
<ptotter[m]>
nixos does have firewalling, it's at default settings
<ptotter[m]>
but since ssh works with ipv4 I assumed it would be open on ipv6 as well
<srhb>
ptotter[m]: It should, yes.
<ptotter[m]>
and ip6tables -L seems to agree with me
<srhb>
The default behaviour duplicates exactly across 4 and 6.
<immae>
it depends, you have interface-specific rules too
<immae>
ok
<ptotter[m]>
maybe it's just a hetzner problem, but I wanted to check that I'm not forgetting anything
<immae>
To me it sounds like it should work
<ptotter[m]>
and hetzner is providing this with a high level of automation
<srhb>
ptotter[m]: For more eyes, maybe you could pastebin the output of the various ip utils?
<sphalerit>
Paul: for IPv6, you need to use ip6tables to check
<ptotter[m]>
automatically created vps, no manual setup
<srhb>
Might be something obvious.
<immae>
and `ip -6 route` correctly shows a default route?
<ptotter[m]>
it does
<immae>
Then it should work, I don’t see what else is missing
<immae>
(replace with `ping6 2a00:1450:4001:819::200e` if it’s a DNS problem)
ryantm has quit [Ping timeout: 250 seconds]
<ptotter[m]>
dns did resolve (over ipv4)
moriacat has quit [Quit: WeeChat 1.9.1]
<ptotter[m]>
address unreachable
<immae>
ok
<ptotter[m]>
so looks like I'm not forgetting something simple
<immae>
Just one difference to my configuration: I don’t have the `fe80::1 dev ens3 proto static metric 1024 pref medium` route
<ptotter[m]>
hetzner default gateway for ipv6 should be fe80::1, no?
<andi->
it does not have to be fe80::1
<immae>
No, I have three lines, and the one I quoted is absent on my side
<andi->
which others do you have?
<immae>
Exactly the sames as ptotter[m] pastebin
<immae>
(and it works, for me)
infinee has joined #nixos
<ptotter[m]>
so it works without specifying default gateway?
<immae>
it’s already specified by the fe80::/64 dev ens3 proto kernel metric 256 pref medium
<ptotter[m]>
so you don't have the same lines in configuration.nix?
<{^_^}>
[nixpkgs] @erictapen opened pull request #55380 → apvlv: fix build with poppler 0.73.0 → https://git.io/fh9Nt
infinee has quit [Client Quit]
<immae>
I don’t have them, I go through nixops, which does a series of "ip addr add"
<immae>
but the end result is the same as your except for the one I quoted (which should be harmless)
<immae>
you can try removing the line to test, but to me it sounds as if it should work at least as good as mine, so the problem is probably on hetzner router or an error in the ip6 address
DeanGuss has left #nixos ["Leaving"]
hedning has quit [Quit: hedning]
<ptotter[m]>
ok, thanks for the help
<ptotter[m]>
I'll wait for hetzner and see
ryantm has joined #nixos
<ptotter[m]>
or maybe just destroy the vps and recreate and hope it lands on a better node
<infinee>
GiGa: I got it as default. pretty simple. Just changed configuration.nix and ~/.config/i3/config
<srhb>
infinee: I just meant, that's sort of the philosophy of suckless :P
<infinee>
GiGa: let me know if u want to know what I changed
<srhb>
Configuration via patches.
<Taneb>
GiGa: solving the wrong problem, "users.defaultUserShell = pkgs.fish"
<infinee>
srhb: Yeah I understand and can agree when it comes to configurable stuff such as color/themes. But something a standard as scrollback should get into main branch at some point IMO. Regarding colors, not being able to change on fly presets kinda sucks
<infinee>
but I guess not coding all that configurability is what keeps the code base smaller which is what the author wants
<infinee>
GiGa: and to make i3 open it by default `bindsym $mod+Return exec st`
<srhb>
infinee: Not making a moral judgment here, just repeating their dogma. :-P
<srhb>
At least patching is easy in nixpkgs.
<infinee>
so far I've only been customizing st stuff at nixos level.
<infinee>
I suppose if I install it as a user level nixpkg, no need for rebuild switch and reboots??
<srhb>
You shouldn't need to reboot for that anyway?
<symphorien>
you only need to reboot for kernel and dbus updates
<infinee>
true. I realized that last night actually
<srhb>
Regardless, I'd certainly do it at the NixOS level if it's a system package :)
<srhb>
infinee: The process it the same anyway.
ryantm has quit [Ping timeout: 250 seconds]
<GiGa>
infinee, Ta, I'll add that. Presumably that'll then be what I use when I open Gnome's terminal
<GiGa>
?
<infinee>
GiGa: sorry I assumed you were using i3. i3 has a default hotkey to open terminals and I had to make that change to open st instead of what it used by default.
<symphorien>
infinee: iirc you can also set the environment variable $TERMINAL
<infinee>
GiGa: just open the ~/.config/i3/config file and look for that the bindsym for $mod+Return and see what it's set to now. Maybe i's gnome-terminal for you
<symphorien>
see man i3-sensible-terminal
<infinee>
symphorien: I tried that without success last night. maybe I was missing something
<symphorien>
ah ok
<infinee>
maybe b/c I set $TERMINAL and didn't really restart i3. Altho, I did think about it and tried a mod+R to restart it but still no luck
<zahary>
Is it possible to fetch multiple repos or tarballs in a derivation? The usual approach would be to say `src = fetchX {}`, but how do you express the additional fetches?
<{^_^}>
[nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Preview of 'c676d9153a7b6bd4dd5372d5466f5a27c2126c30' commit built by Travis-CI \#490009795 »: https://git.io/fh9Az
<{^_^}>
[nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Preview of 'df8a074e4a4f0a5c283499368279c105bca73e14' commit built by Travis-CI \#490011319 »: https://git.io/fh9Aa
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
q6AA4FD has quit [Ping timeout: 246 seconds]
<ottidmes>
zahary: in case you did not already found this after looking it up, some tips: most of the time with srcs you will want to have sourceRoot = "."; and give explicit names to the fetcher's via name = "src-name"; so that you end up with the sources being available under those names
<sicklorkin>
is nix turing complete?
<ottidmes>
yes
<sphalerite>
Anyone know a shorter variation on `nix ls-store -R --store https://cache.nixos.org/ $(nix eval --raw nixpkgs.hello)`?
doyougnu has quit [Ping timeout: 244 seconds]
<ottidmes>
sicklorkin: its easy to see that Nix can be mapped to lambda calculus, which is turing complete, so Nix is too
Makaveli7 has quit [Quit: Leaving]
<Taneb>
ottidmes: other way round, it's that lambda calculus can be mapped to *it*
rauno has joined #nixos
<sicklorkin>
can you show me KSI?
<Taneb>
let K = x: y: x; S = x: y: z: x z (y z); I = x: x;
<ottidmes>
Taneb: if you are being formal, sure
<sicklorkin>
i think he is
<ottidmes>
I kinda dislike those corrections, because it does not add to the conversion, my intention was clear, but I leave it at that
<symphorien>
and then the executable provided by the package is not usable
<sicklorkin>
% stack exec test
<sicklorkin>
test: hostname: readCreateProcess:
<ottidmes>
symphorien: seems like a bug, I found another bug in patchShebang, I have yet to take a look at it to fix it, but do you know if that means massive rebuilds?
<sicklorkin>
off hand does anyone know what's needed to get networking in nix-shell
<symphorien>
what do you mean ?
<sicklorkin>
i'm throwing punches in the dark here.. I just tried running my tests in nix0shell and got an error that hostname doesn't exist
<ottidmes>
Taneb: I have had whole conversations ruined, because someone kept focusing on how something was "strictly incorrect" and that if you wanted to be really correct you would have to add a lot of extra disclaimer and formal boilerplate, that basically ruined the conversation, because the actual content of the conversation got lost in all the formalities, hence my dislike. For me chat = informal context, so I
<ottidmes>
never assume someone is being formal.
<Taneb>
ottidmes: can we move this private?
<ottidmes>
Taneb: if there is more to talk, then sure
<ottidmes>
sicklorkin: nix-shell does not limit networking, it does not have sandboxing unlike nix-build
<sicklorkin>
got it
<ottidmes>
sicklorkin: hostname is in inetutils for me
<{^_^}>
Found in packages: byobu, bobcat, busybox, hostname, nettools, inetutils, bashCompletion, gettextWithExpat, unixtools.nettools
<{^_^}>
[nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Preview of '5419e20d31159cc36da7e7f3de5d0d1e5331c79a' commit built by Travis-CI \#490025946 »: https://git.io/fh9xf
<{^_^}>
[nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Preview of '4ed445e0cf007a7e9d4fff25a078a7cd6f371983' commit built by Travis-CI \#490029007 »: https://git.io/fh9xO
<sicklorkin>
[unixODBC][Driver Manager]Can't open lib '/opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.1.so.0.1' : file not found\"]"; file /opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.1.so.0.1; /opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.1.so.0.1: ELF 64-bit.. what could possibly be happening here..
<sicklorkin>
the file is there.. but the library cannot load it
<{^_^}>
[nixos-weekly] @domenkozar pushed 3 commits to production: https://git.io/fh9xn
<ottidmes>
sicklorkin: LD_LIBRARY_PATH maybe?
<{^_^}>
[nixos-weekly] @domenkozar pushed to master « Call for Content: 2019/03 »: https://git.io/fh9xc
<sicklorkin>
ottidmes: sounds liek it but where do I put these things?
<sicklorkin>
I'mnot sharing my env
<{^_^}>
[nixos-weekly] @domenkozar opened pull request #76 → Call for Content: 2019/03 → https://git.io/fh9xC
<gchristensen>
`ldd` that file, what does it show?
<sicklorkin>
lots of missing stuff
<sicklorkin>
ty
<{^_^}>
[nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Release of (commit '78eb4a47cdd2b19391cbd7dcc90f4f7ce33ba797') built by Travis-CI \#490032546 »: https://git.io/fh9x0
<sicklorkin>
unixODBCDrivers.recurseForDerivations what will this do?
<ottidmes>
sicklorkin: will make nix-env and hydra check for packages in that attrset
<ottidmes>
sicklorkin: so haskellPackages is an attrset of packages, but without that set, it would not look into that to see if there are packages there
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
<ottidmes>
sicklorkin: so its a marker to make it clear that its not just any attrset, but an attrset of packages
<sicklorkin>
so you can locaate these makers w/o traversing?
<ottidmes>
sicklorkin: no, it does need to evaluate the packages attrset in order to check for the existance of that attribute, that is why a naive search or install is so slow with nix-env
<ottidmes>
sicklorkin: `nix search` caches this
hedning has joined #nixos
<sicklorkin>
ahhh.. that explains it then..
hedning has quit [Remote host closed the connection]
<sicklorkin>
ottidmes: so i see that unixODBCDrivers.msodbcsql17 wasn't build Full.. is there a way to ask for its' depends?
<ottidmes>
sicklorkin: not sure what you mean, if I look at the package definition of msodbcsql17 it does not have any optional dependencies as part of the package definition, which is what the Full prefix tends to indicate (i.e. Full = all supported optional dependencies in the package definition are set to be enabled)
hedning has joined #nixos
<sicklorkin>
ldd shows missing libcrypto, krb5, curl, ssl, uuid, stdc which are all pretty standard... my question is, if i'm going to install unixODBCDrivers how can I know if i have the necessary libs
cswl has joined #nixos
<ottidmes>
if you install the package, it itself should make sure those will be available on your system, you are probably running into a common nix-shell library misunderstanding
<ottidmes>
,library sicklorkin
<{^_^}>
sicklorkin: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
fusion809 has joined #nixos
<sicklorkin>
I am using buildInputs
<sicklorkin>
I'll investigate
<ottidmes>
and nix-shell right?
<sicklorkin>
yes
simukis has joined #nixos
<ottidmes>
how do you run nix-shell, therein lies the problem probably
reinhardt has quit [Ping timeout: 240 seconds]
<sicklorkin>
stack!
<ottidmes>
ah right, you mentioned that, sorry
<sicklorkin>
but just now I was running it manually
<sicklorkin>
nix-shell /path/to/shell.nix
<ottidmes>
it would then depend on what is in your shell.nix
johanot has quit [Quit: WeeChat 2.2]
Makaveli7 has joined #nixos
yayforj has joined #nixos
brejoc has joined #nixos
<ottidmes>
sicklorkin: an simple example (random package taken when searching for one using openssl but not much of anything else), compare these: nix-shell --packages kore --run 'env | grep openssl' versus nix-shell '<nixpkgs>' --attr kore --run 'env | grep openssl'
bbarker_home has joined #nixos
<ottidmes>
sicklorkin: --packages "Set up an environment in which the specified packages are present.", while normal nix-shell starts a shell environment that mimicks how it is in nix-build (which is what you want to get access to the libraries)
reinhardt has joined #nixos
drakonis has joined #nixos
<joepie91>
so I'm considering building a new desktop -- does anybody know of a place to find data on which GPUs currently work well under OSS drivers on Linux?
<joepie91>
(I'm not just looking for benchmarks, stability is my main concern)
<Yaniel>
unfortunately there is no centralized place that collects such information AFAIK
<ottidmes>
joepie91: I generally agree with Yaniel, but I would add that this is just a generalization, if you find a card you really like after checking reviews/benchmarks/whatnot, be sure to take the official code name and search on standard Linux bugtrackers, I assumed my ATI Radeon card would be supported too, I was mistaken...
<ar>
joepie91: if you're fine with non-LTS distros, pretty much anything non-ancient from amd or intel that's been buyable for 3 months or more (to get updates for a given piece of hardware cought in latest kernel/mesa releases) should work. gpus from amd that are available now/soon that may not have support in all distros yet are rx590 and radeon 7
<joepie91>
ar: assume NixOS :)
<ar>
joepie91: 18.09 or unstable?
<joepie91>
stable, so currently 18.09
<joepie91>
I'm not necessarily looking for cheap btw, I do hope to get some decent performance out of it, just stability is more important overall :P
schjetne has joined #nixos
<joepie91>
the RX Vega 56 seems to perform considerably better than the RX 590 for example and isn't much more expensive
<joepie91>
(but haven't checked stability yet)
<joepie91>
"The open-source support for Vega isn't without some initial setup hurdles and some growing pains along the way, but it's looking very good for launch-day and the best DRM+Mesa support we have ever seen at-launch for the premiere of a new discrete GPU architecture."
<joepie91>
hm
<joepie91>
that seems like it might be worth a gamble
<etu>
joepie91: My Ryzen/Vega APU from last summer is very stable, but I don't remember exactly what card it is
q6AA4FD has joined #nixos
<etu>
joepie91: But I had to enable a kernel option, so it compiles the kernel on update.
<joepie91>
etu: any chance you could check? :) and which kernel option was that?
<joepie91>
(I'm generally okay with needing weird config options, this is NixOS after all, so long as they don't affect stability)
zahary has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « all-cabal-hashes: update to Hackage at 2019-02-07T00:36:21Z »: https://git.io/fh9pb
<{^_^}>
[nixpkgs] @peti pushed 5 commits to haskell-updates: https://git.io/fh9pA
<infinee>
Any st users here who patch their config.def.h? I get alot of rejects when patching the downloaded diffs vs st src tarball (and latest in git)
<{^_^}>
[nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/fh9ph
<etu>
joepie91: It was AMD Ryzen 5 2400G, the G means built in graphics. lspci tell me this: "VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] (rev c6)"
<joepie91>
ooh, integrated vega
simukis has quit [Quit: simukis]
ddellacosta has joined #nixos
<joepie91>
it's surprisingly difficult to find data on how those integrated graphics compare to a discrete AMD card...
<chrisaw>
Hey folks, what's the easiest way to add a line to /etc/protocols ?
<chrisaw>
I've got mono installed and it's complaining that "IP" isn't in /etc/protocols - easy fix but whilst I know exactly how to overwrite a file - I'm not sure how I can append to one?
<joepie91>
etu: anyhow, was that kernel setting you needed to change specific to integrated Vega, or would it apply for discrete Vega cards also?"
infinee has joined #nixos
<ottidmes>
joepie91: although I have always had AMD GPUs, my next desktop will probably have one of the Nvidia 20xx cards, since I want the GPU to be powerful for gaming, most old cards are sufficient for my Linux usage outside of gaming. My only fear is the closed source driver not working with future kernels, but there are probably enough Linux users out there with Nvidia that I am sure they will get patched to make
<ottidmes>
them work
simukis has joined #nixos
<joepie91>
ottidmes: I've been burned by AMD on that same assumption before :) before amdgpu was a thing
<joepie91>
(now amdgpu-pro is built on the same foundation so even if you use pro, it should remain possible to build it against future kernel/Xorg versions)
<ottidmes>
joepie91: meaning that its remains a chance no matter what manufacturer you take ;)
Makaveli7 has quit [Quit: Leaving]
<joepie91>
ottidmes: nah, AMD solved the problem
<joepie91>
they were on my "eh" list until amdgpu :)
<ottidmes>
well, I am still waiting on them to fix my issue :P
<ottidmes>
that is BTW also the bug tracker I would search on when you do find a card you like
<joepie91>
ottidmes: ah, right.
<joepie91>
etu: thanks!
<etu>
I know that we've talked about my usecase here before and concluded that we wasn't sure why it's not enabled by default
<joepie91>
ottidmes: random selection of some bugs that mention 'vega' suggest that the bugs tend to be broadly applicable to all AMD stuff, not specifically Vega
<joepie91>
so that's a... sort of... good... sign...?
drakonis has quit [Ping timeout: 240 seconds]
drakonis has joined #nixos
<chrisaw>
It looks like if I use environment.protocols.text = '' test ''; - /etc/protocols isn't overwritten with that after a rebuild so I'm guessing it can't be done via that method.
init_6 has quit [Ping timeout: 246 seconds]
<ottidmes>
chrisaw: environment.etc."protocols".text = "test"; did you meant that?
<GiGa>
Appreciate this will be more a development / Android question than a NixOS one, but if anyone has any ideas I'd appreciate it
<GiGa>
I have an app that I'm building in two different environments (one is a Debian 8 using IntelliJ, the other is Nixos Linux using Android Studio)
<GiGa>
The app makes an HTTPS call to a hosted web application and authenticates via OAuth and Google
<GiGa>
the apk built ("generate signed APK") on Debian works
<GiGa>
the same app, with the same code, built on NixOS does not
<GiGa>
It's the same signing key
<GiGa>
so I'm completely stumped
<GiGa>
any ideas folks?
hedning has quit [Quit: hedning]
<infinee>
I have no idea but to help others, what doesn't work?
Jetien__ has joined #nixos
<GiGa>
I can't explain it very well, as I'm not getting any stack traces
knupfer has joined #nixos
hedning has joined #nixos
<GiGa>
but essentially, communication with the web service auth's via Google
<GiGa>
I know if the APK isn't signed then the OAuth fails
<GiGa>
so my guess would be authentication is failing because there's a problem with the signature
<GiGa>
yet it's the same key
<GiGa>
the debian produced APK works fine
<simpson>
Does your tool include paths in the payload, perhaps?
<GiGa>
the one made under Nixos does not
<GiGa>
paths within the webservice simpson ?
<infinee>
how do you know it's not a problem between Android Studio and IntelliJ?
Jetien_ has quit [Ping timeout: 250 seconds]
<GiGa>
I know it's a problem between debian and Nixos environments
<GiGa>
because I can take exactly the same code (git checkout) on each machine, build an apk
<GiGa>
and one works, the other doesn't
<gchristensen>
tilpner: I reckon it'll break on 19.03 then :P
<tilpner>
gchristensen: I built my config around this feature. What do I do?
<gchristensen>
heh
<tilpner>
danbst doesn't seem to be on IRC, I guess I could open an issue and ping them?
<simpson>
GiGa: Paths into the Nix store, possibly?
<ottidmes>
thefloweringash: just curious, I wrote my own nix-prefetch'er and I was wondering whether it covers the use case of nix-prefetch-git too. Does nix-prefetch-git do anything that cannot be done via the builtin/nixpkgs fetchers?
<GiGa>
simpson, I don't understand why those would be in an APK produced for Android
<gchristensen>
tilpner: I don't know :
<simpson>
GiGa: Me neither.
<gchristensen>
tilpner: please do open an issue and ping
Guanin has joined #nixos
<thefloweringash>
ottidmes: the use case I'm trying to fix here is scripting around it, where a go program calls it for its json output, which it then uses to build a nix expression. Quickly trying builtins.fetchGit on the repl, it looks like it doesn't produce a sha256?
o1lo01ol1o has joined #nixos
<ottidmes>
thefloweringash: thats the "prefetch" part, but I was wondering in terms of feature set, I know some of the git fetcher's support submodules, do you know of a similar feature in nix-prefetch-git that cannot be achieved with nix-prefetch-git, but I doubt thats the case, otherwise it would be more than just a prefetch
<ottidmes>
thefloweringash: like the deep clone and keep .git, but I guess I can check the fetchers myself to see if they have equivalents for those
simukis has quit [Quit: simukis]
<thefloweringash>
ottidmes: ah, now I'm with you. It has more than builtins.fetchGit, since that doesn't have a leaveGitDir option, but I assume it's equivalent to the fetchgit fetcher, otherwise the resulting expression could never be built by nixkpgs. Would also have to check myself
<thefloweringash>
what motivated you to make a new prefetcher, and would it be an improvement over the existing one?
knupfer has quit [Remote host closed the connection]
noonien has joined #nixos
<WilliamHamilton[>
when using the `z3` haskell package via `nix-shell -p ...` I get `can't load .so/.DLL for: /nix/store/0y40m4nr38469nnsrm1d1yhwddkphmv9-z3-4.3.1/lib/ghc-8.6.3/x86_64-linux-ghc-8.6.3/libHSz3-4.3.1-LR6JuE4EIH0HFhFFZCYqR6-ghc8.6.3.so (/nix/store/0y40m4nr38469nnsrm1d1yhwddkphmv9-z3-4.3.1/lib/ghc-8.6.3/x86_64-linux-ghc-8.6.3/libHSz3-4.3.1-LR6JuE4EIH0HFhFFZCYqR6-ghc8.6.3.so: undefined symbol: Z3_get_parser_error)` Is it not
<WilliamHamilton[>
the case that the z3 haskell package automatically includes the necessary dependencies?
<noonien>
does steam work for anyone? i get a few `curl: (7) Failed to connect to abbradar.net port 443: Connection timed out` when trying to install it
sb0 has joined #nixos
<GiGa>
noonien, I was using Steam on Nixos the other day
<GiGa>
simpson, I'm not aware of any paths that could be in there
<noonien>
hmm, did you install it recently?
<gchristensen>
thanks, tilpner :)
<Taneb>
I've had other things going wrong with it for me, something to do with libgl or libgtk (I'm not at home right now, can't check)
<sb0>
hi. I want to use extraBuildCommands in buildFHSUserEnv, but the command I need to run has to execute inside the FHS environment (my source file extracts a ELF binary and runs it, so it's tricky to run patchelf on it in-between)
<GiGa>
I can try an upgrade tonight and report back, if that helps
<sb0>
how can I do that?
<ottidmes>
thefloweringash: https://github.com/msteen/nix-prefetch my motivation was that I needed a way to automatically update the openra mods (a game), and there was no tool that did what I wanted
<noonien>
well, i'm trying to install it now, it seems it's trying to get some dependencies from https://abbradar.net, which appears to be down
daniele- has joined #nixos
klntsky has quit [Remote host closed the connection]
klntsky has joined #nixos
<ottidmes>
thefloweringash: after seeing https://github.com/samueldr/nix-universal-prefetch I liked that idea, but it did not do exactly what I wanted too, so I made my own attempt at creating an universal fetcher
<noonien>
or rather, the downloader not retrying with a different mirror
amosbird has quit [Max SendQ exceeded]
amosbird has joined #nixos
troydm has joined #nixos
<Taneb>
Is there a way to say "copy these closures to this remote, and then do something, without risk of them being garbage collected before we start doing, so as to avoid a race condition"?
<ottidmes>
noonien: you can just modify mirrors.nix in your nixpkgs checkout, or I can give you a tricky overlay solution
<gchristensen>
Taneb: yikes, is it being GC'd during the copy?
<thefloweringash>
ottidmes: those are neat approaches to the prefetching problem, do like
<noonien>
ottidmes: i'm new to nixos, haven't setup an overlay, nor do i have a manually checked out nixpkgs
<{^_^}>
[nixpkgs] @dotlambda pushed to master « python.pkgs.telethon-session-sqlalchemy: only supports python3 »: https://git.io/fh9jr
<noonien>
is it not a bug to fail like this though?
duckonomy has joined #nixos
<Taneb>
gchristensen: not yet, I'm anxious about it being GC'd between copying and starting (or finishing) the "do something" part
<gchristensen>
clever: remember that IFD GC problem you were having? what if the evaluator stuck all the paths in its env before writing the .drv's to disk
<noonien>
mirrors should also provide availability, not just load balancing, no?
amosbird has quit [Max SendQ exceeded]
<Taneb>
gchristensen: and if there's a thing for this it might be neater than just doing the copy and then the action
amosbird has joined #nixos
<gchristensen>
Taneb: hrm... not sure, interesting question
<noonien>
i think fetchurl is where it fails (since it's a curl, this makes sense)
<Taneb>
gchristensen: I might just be being paranoid here
amosbird has quit [Max SendQ exceeded]
<Taneb>
(as in, this isn't a problem I'm seeing, it's just a problem I'm worried about)
<ottidmes>
thefloweringash: so all I have to do to update any of my packages is to figure out the new version information. nix-prefetch can also be used to get the current attrs passed to a fetcher. For example, the update script of those mods is still quite a few lines, but all of it is getting the right info, the actual update is this one liner:
<ottidmes>
noonien: I have never done anything with mirrors.nix myself, so cannot really help you there, in case you are interested in the overlay way to change stuff, which is probably too complex for you right now, but still here it is: https://gist.github.com/msteen/6741878f8919f8e2363869693e7ef085 you would be overwriting `steamrt` instead of `hashedMirrors` in the gist
amosbird has joined #nixos
daniele- has quit [Quit: daniele-]
amosbird has quit [Max SendQ exceeded]
amosbird has joined #nixos
lmat has joined #nixos
<lmat>
The about page says, "there is no /bin, /sbin...The only exception is a symlink /bin/sh to Bash in the Nix store." What does echo $PATH; look like?
<WilliamHamilton[>
clever: does the `z3` haskell package work for you? When running averything, I get an error relative to missing `.so` files
<gchristensen>
tilpner: mind sending me a PR? :P
<tilpner>
That was fast
<noonien>
ottidmes: thanks, i'll give that a try
amosbird has quit [Max SendQ exceeded]
<noonien>
should i perhaps also create an issue for fetchurl?
<tilpner>
gchristensen: I could send a PR, but I couldn't test it as well as you
<Taneb>
WilliamHamilton[: we've had to patch it in the past but I thought that's been in nixpkgs a while now
<gchristensen>
tilpner: that is okay with me :P....
amosbird has joined #nixos
<tilpner>
Fiiiiiine
knupfer has joined #nixos
<ottidmes>
noonien: yeah, that would make the relevant people aware of the problem existing, so please do
<noonien>
Geat, will do!
<WilliamHamilton[>
Taneb: could it be that the current version of z3 present on nix is `Z3 version 4.8.4` while the haskell library seems to be searching for bindings for the `z3-4.3.1` version?
<ottidmes>
noonien: the overlay is more like applying some ducktape to the problem, might help you solve the immediate problem, but the underlying issue remains ;)
amosbird has quit [Max SendQ exceeded]
<Taneb>
WilliamHamilton[: are you on 18.09 or unstable or otherwise?
amosbird has joined #nixos
<WilliamHamilton[>
Taneb: latest unstable, updated a minute ago
<Guanin>
Asked that one in the wrong channel: I had some problems with an AMD GPU around a month ago. I had no time to play around much more with it, but I still did not get it working. Is it appropriate to open an Issue? I tried to reach out for help in the #nixos channel and on reddit ( https://www.reddit.com/r/NixOS/comments/abphe8/amd_radeon_pro_wx3100_x_not_starting/ )
hedning has quit [Quit: hedning]
<{^_^}>
[nixpkgs] @dotlambda pushed to master « python.pkgs.future-fstrings: dependency tokenize-rt missing for python<3.6 »: https://git.io/fh9jd
amosbird has quit [Max SendQ exceeded]
amosbird has joined #nixos
<tilpner>
gchristensen: You get the indentation for free
goibhniu has quit [Remote host closed the connection]
amosbird has quit [Max SendQ exceeded]
<Taneb>
WilliamHamilton[: hmm, I don't know
<Taneb>
I'm using 18.09 and it works, so it must be some change since then
goibhniu has joined #nixos
npmccallum has joined #nixos
<WilliamHamilton[>
Taneb: what version of z3 do you have?
<Taneb>
And the z3 derivation hasn't changed since last July
<gchristensen>
aww thanks, tilpner
<Taneb>
z3 4.8.4
amosbird has joined #nixos
<Taneb>
haskellPackages.z3 4.3.1
<WilliamHamilton[>
Taneb: huh, that's strange, the version numbers coincide
<Taneb>
WilliamHamilton[: well, it might be I'm not using a shell?
Makaveli7 has joined #nixos
amosbird has quit [Max SendQ exceeded]
<WilliamHamilton[>
how do you compile your haskell code?
<infinisil>
Guanin: Yeah, it's always a good idea to open an issue, can't hurt
amosbird has joined #nixos
<WilliamHamilton[>
Taneb: cabal without nix-shell?
amosbird has quit [Max SendQ exceeded]
<Taneb>
WilliamHamilton[: just nix-build
zupo has joined #nixos
amosbird has joined #nixos
<Taneb>
Let me try...
<gchristensen>
I would love an emacs editor feature where I could say "edit the expression for the hello package"
<{^_^}>
[nixpkgs] @layus opened pull request #55396 → nixos/manual: warn on missing xml:id → https://git.io/fhHef
<gchristensen>
omfg, I just remembered, `nix edit nixpkgs.hello` works!
<infinisil>
Heh yes, mostly at least
DrLambda has quit [Ping timeout: 245 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
amosbird has quit [Max SendQ exceeded]
<Taneb>
WilliamHamilton[: I'm very sorry, I was mistaken, we're using the sbv package
amosbird has joined #nixos
amosbird has quit [Max SendQ exceeded]
o1lo01ol1o has joined #nixos
<WilliamHamilton[>
Taneb: I see, thanks for the warning, I was questioning my sanity :D
<Taneb>
WilliamHamilton[: but maybe the solution's the same?
<phdoerfler>
Hi all! I made a nix expression which makes a shell script. But nix doesn't like it. I am doing: let script = pkgs.writeScript … in { bla = script; }
<yayforj>
if it's the environment of a package, how can i import it or a extend it in say a shell?
<phdoerfler>
I don't care for the return value, I just want that shell script to be created
<manveru>
dmj`: looks like there's some thing in the Gemfile that bundix doesn't understand, can you share it as well?
<ottidmes>
phdoerfler: toString does not ensure its a valid name, it has to be a valid nix store name, which are limited to roughly alphanumerics
<phdoerfler>
alright alright
<manveru>
dmj`: put these into a directory by themselves, run `bundix -l; nix build; nix-env -i ./result`, and you should have the executable in PATH
Ariakenom has quit [Ping timeout: 244 seconds]
<ottidmes>
phdoerfler: if a package could write to another package just like that, it would break the purity of the whole system (i.e. I cannot just add a path to an arbitrary package from another package)
<phdoerfler>
ottidmes: That's exactly why I think I'm doing this wrong
<phdoerfler>
ottidmes: I figured. Well, thanks! I don't get the concept of a "package" apparently
o1lo01ol1o has quit [Remote host closed the connection]
<phdoerfler>
or how pkgs.runCommand would return a 'package'
acarrico has quit [Ping timeout: 240 seconds]
<phdoerfler>
ottidmes: Oh I see. Man. This naming throws me off a lot
hedning has joined #nixos
o1lo01ol1o has joined #nixos
<phdoerfler>
ottidmes: but apparently my hunch that stdenv.mkDerivation would be what I want, was correct
<ottidmes>
phdoerfler: you would best read the manual for more in depth info, but its not really a package, its a derivation, a derivation is a plan on how something in the Nix store can be realized (i.e. build)
<manveru>
dmj`: what about something like minio?
<phdoerfler>
ottidmes: the documentation said that environment.systemPackages is a list of packages. That's where I got "package" from
<phdoerfler>
ottidmes: but yeah, it all makes sense now
<phdoerfler>
ottidmes: thanks a bunch!
<dmj`>
manveru: woa
<dmj`>
manveru: you're blowing my mind here
maximiliantagher has quit [Ping timeout: 250 seconds]
<manveru>
well, what's the point of fakes3 if it's more expensive than s3 :P
<lmat>
The about page says, "there is no /bin, /sbin...The only exception is a symlink /bin/sh to Bash in the Nix store." What does echo $PATH; look like?
<lmat>
gchristensen: Thanks! What kinds of things are in /nix/var/nix/profiles/default/bin? System management I guess, like the package manager?
<dmj`>
manveru: hahaha good point
tzemanovic has joined #nixos
<lmat>
And I take it that /run/current-system/sw/bin is where grep, ls, chromium-browser, gnucash, irssi, etc. are? (assuming they're installed as system-wide software)
rcshm has quit [Ping timeout: 245 seconds]
<dmj`>
manveru: just need it for integration testing, and nixos modules don't let you do network IO outside of the qemu machine iiuc
<joepie91>
lmat: there's no /run/current-system/sw/lib though! or at least not one that contains anything meaningful
* joepie91
runs ldd on gchristensen's exec-as-a-service
<joepie91>
:P
<ottidmes>
phdoerfler: yeah the terminology is a bit confusing at times, all packages are derivations, but not all derivations are packages AFAIK. I guess the result of runCommand actually should be considered a package, since it does call stdenv.mkDerivation
<manveru>
dmj`: well, if it did, it'd also have to do it online i fear :)
<gchristensen>
graymatter.so (0x0000239487)
tzemanov_ has quit [Ping timeout: 252 seconds]
<dmj`>
manveru: good call :) I'd be screwed either way
<joepie91>
... I guess I should have been more explicit
<joepie91>
lol
<dmj`>
manveru: again, saving my life out here
<gchristensen>
statically linked, not friendly to being decompiled, joepie91
<lmat>
gchristensen: Yeah, regarding your listing of /run/current-system/sw/bin, that's where the meat and gravy is!
<gchristensen>
:)
<lmat>
gchristensen: but you're missing gnucash :P
<joepie91>
lmat: basically, linked libraries get hard-compiled paths in binaries, they're not found on runtime
<joepie91>
so there's no global set of libraries
<phdoerfler>
ottidmes: glad I'm not the only one who feels that way :)
<gchristensen>
lmat: hehe, I use ynab.. :)
<lmat>
joepie91: Oh, I see. I guess that's necessary if pretty difficult to orchestrate.
<gchristensen>
also I install only a select few programs globally, generally preferring nix-shell
<chrisaw>
I've got a bit of a problem - what I really need to do is modify /etc/protocols but I only need the modified version for one package. Is there any simple way to achieve that?
<gchristensen>
lmat: it is pretty easy with stuff we compile, actually! not so bad at all :)
<joepie91>
lmat: yeah, it's basically needed for the versioning thing; it makes it so that the dependencies of one package don't interfere with another
<joepie91>
lmat: similar for non-libraries; built packages are basically endless chains of hard-coded paths to other built packages, until it all eventually culminates into a "system environment" or "generation"
<joepie91>
and since the paths are deterministic, you still get sharing of things that are the same, but without requiring *everything* to be the same
justanotheruser has quit [Ping timeout: 250 seconds]
<joepie91>
not dissimilar to git branches really
maximiliantagher has joined #nixos
<lmat>
joepie91: So you're expecting to recompile often to bake in the correct dependencies as you upgrade stuff?
<lmat>
joepie91: For instance, if my libalsa (or is it libsnd :shrug:) changes, then my vlc, pulseaudio packages, mplayer, etc. will need to be recompiled, too?
<joepie91>
lmat: you'll rarely be recompiling *yourself*, but yes, to provide the guarantees that Nix does, a package with changed dependencies needs to be rebuilt (just that normally happens on NixOS' buildserver)
<gunix>
it must be really hard for german guys to tell their friends that they are using nix :))
<ottidmes>
infinisil: improving upon the current situation would at least be something from which the community as a whole would benefit
maximiliantagher has joined #nixos
<{^_^}>
[nixpkgs] @offlinehacker opened pull request #55403 → ###### Motivation for this change → https://git.io/fhHfK
peacemem_ has joined #nixos
<infinee>
is is direnv an alternative to nix-shell?
<das_j>
Is there a way to override a subpackage (if that is the proper name) in an overlay? I need to override pkgs.mysql.galera but I'd like to keep the rest of the attributes
<etu>
infinee: I've seen many using direnv with nix-shell by putting "use nix" in the .envrc file which will make the shell load a nix-shell of the shell.nix or default.nix in that directory
<infinee>
etu: I'm new to both. just wondering if they serve same purpose or simply a large overlap
<clever>
infinee: i think direnv just automates changing env vars when you run `cd`
<etu>
infinee: nix-shell can do more, like installing dependencies to your environment
<infinee>
so if I have no envvars in my dev project, there's likely no need for direnv?
maximiliantagher has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @offlinehacker opened pull request #55404 → hetzner-kube: support for bash completion → https://git.io/fhHf1
<infinee>
oh just read that if you use direnv with nix-shell. you can use shells other than bash
<infinee>
that seems like good enough reason to at least mix the two
<etu>
Well, I use direnv to load my nix-shell. So whenever I just cd into the directory I have my deps for that project
<etu>
And have direnv.el in emacs to have deps available to run from emacs as well
<ottidmes>
das_j: would it not just work to do: mysql = super.mysql // { galera = doStuffWith super.mysql.galera; }; ?
<das_j>
ottidmes: That's what I'm trying to build right now :) Hope it works
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<{^_^}>
[nixpkgs] @offlinehacker opened pull request #55405 → kube-prompt: build only main package → https://git.io/fhHfS
peacemem_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<das_j>
Well, it's ignored
<das_j>
Looks like this now: mysql = super.mysql // { galera = super.mysql.galera.overrideAttrs (origAttrs: { src = self.fetchFromGitHub {
<das_j>
Anything wrong with that?
<ottidmes>
das_j: seems right to me, one way to test it is to overlay fetchFromGitHub to return the arguments or any value really, and then do: nix eval nixpkgs.mysql.galera.src
<gchristensen>
it is really weird how galera is a subset of mysql
<lmat>
ottidmes: Does nixos have "versions" where all the packages have a set version or something? Or is it more like a rolling release system?
phdoerfler has quit [Quit: Leaving.]
<das_j>
ottidmes: Results in a *really* long string
<ottidmes>
das_j: if you did overwrite fetchFromGitHub, and still returns a big attrset, then it still points to the old thing, you sure your overlay is being picked up correct, just create foo = 5; and check `nix eval nixpkgs.foo`
<gchristensen>
lmat: every piece of software is pinned to a specific version in nixpkgs. the version of nixpkgs for nixos-unstable is rolling, but we also maintain a Stable fork for 6mo at a time
<das_j>
ottidmes: Results in a *really* long string
maximiliantagher has quit [Ping timeout: 250 seconds]
drakonis has quit [Quit: WeeChat 2.3]
drakonis has joined #nixos
fendor has joined #nixos
<jluttine>
i'm writing a python package derivation. any idea what this error is really about? "/nix/store/yax21ms90cwr2l4rygd60wfbpfwg5hip-stdenv-linux/setup: line 1307: pushd: dist: No such file or directory"
<ottidmes>
das_j: its working for me, at least, if I overwrite fetchFromGitHub, I get: { fetchSubmodules = true; owner = "codership"; repo = "galera"; rev = "release_25.3.23"; sha256 = "1yx3rqy7r4w2l3hnrri30hvsa296v8xidi18p5fdzcpmnhnlwjbi"; } with fetchFromGitHub = args: args;
<das_j>
hm so it cannot find fetchFromGitHub properly?
<jluttine>
that command is run in build-python-package-common.nix
<gagbo>
grahamc[m]: there's a new stable channel, I suppose the 18.03 should be updated in the gist
<ottidmes>
das_j: no, I just overlayed it to inspect the arguments passed to fetchFromGitHub, let me see what happens if I actually build it
<ottidmes>
das_j: than I get a hash mismatch error with the hash you assigned to it, so the overlay is working fine on my end
<das_j>
Weird...
rcshm_ has joined #nixos
<ottidmes>
das_j: what is the actual problem / error, you are facing?
<das_j>
ottidmes: It uses the old URL which 404s
<ottidmes>
das_j: how do you build it?
<das_j>
Aah, looks like my deploy script is broken
<jluttine>
a weird thing is that in that file there's no "pushd" calling at all, not on any line, and definitely not on line 1307..
<das_j>
And it uses wrong overlays
<ottidmes>
das_j: had to be something like that, great to hear you found the problem
<das_j>
Turns out I'm an idiot :/ Thank you
<das_j>
ottidmes++
<{^_^}>
ottidmes's karma got increased to 12
rcshm has quit [Ping timeout: 272 seconds]
<ottidmes>
jluttine: in that build-python-package-common.nix file you mentioned, I do have `pushd dist`, maybe paste your package derivation if you people to better be able to help you
<yayforj>
is there a way to include dependencies of a package as buildInputs, but not the package itself?
<jluttine>
ottidmes: yes, in that file it is, that's what i tried to say. but it's not in that nix store file that the error message is referring to. but yeah,i think i now understand the problem: there's no dist directory which is expected to be present. so something wrong in build phase.
<jluttine>
ottidmes: oh, yes, i was very inaccurate with my "that file" referring.. sorry. it was meant to refer to the nix-store file in the error message. but that was just a sidenote
<bachp>
I have a question regarding pinning of <nixpkgs>. What I am looking for is an easy way to specify the commit version that should be used when I'm doing a nixos-rebuild switch. I found https://nixos.wiki/wiki/FAQ/Pinning_Nixpkgs but I struggle on how to include this into my /etc/nixos/configuration.nix. My idea for the workflow would be: 1. Update the git hash of the nixpkgs revision to use in configuration.nix 2. Do a
<bachp>
nixos-rebuild. Does somebody have an example of a complet configuration.nix I can have a look at?
jannie has joined #nixos
yayforj has quit [Quit: WeeChat 2.2]
<infinee>
is it normal for my normal user to have nothing in nix-channel --list? only when I sudo it do I see nixos and nixpkgs-unstable
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @jluttine opened pull request #55408 → pythonPackages.assimulo: init at 3.0 [WIP] [Help needed] → https://git.io/fhHJE
<infinisil>
And then looking at the trace, should reveal what file it's missing
<ottidmes>
bachp: the easiest is probably just to make your own nixpkgs checkout and point <nixpkgs> to that via NIX_PATH=nixpkgs=/path/to/nixpkgs or via -I nixpkgs=/path/to/nixpkgs (as option to nixos-rebuild)
<jannie>
can i override `buildInputs`?
zupo_ has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @thoughtpolice pushed commit from @r-ryantm to master « libiio: 0.16 -> 0.17 »: https://git.io/fhHJX
szicari has joined #nixos
camsbury has joined #nixos
<bachp>
ottidmes: I also found that I can do NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs/archive/66dd4594ff2bb7c328a0566848b9a9e584f59847.tar.gz but that also doesn't feel very declarative to me.
<jluttine>
infinisil: i think it's dist directory that it's expecting to be present but not there for some reason.. :/
<jluttine>
if i understand correctly
<ottidmes>
jannie: what do you want to do with it, change the actual list, or override at thing in it?
<jannie>
add stuff to it
<jannie>
ottidmes: not sure if i need specifically `buildIntputs` for it, but i guess its all the same
<ottidmes>
jannie: you can probably use: pkg.overrideAttrs (origAttrs: { buildInputs = origAttrs.buildInputs ++ [ your stuff ]; })
<jannie>
ottimes: thank you
<ottidmes>
jannie: that produces a new package with the buildInputs changed, so you probably want to put it in an overlay if you plan to actually replace a package that is used by other packages too
<jannie>
ottidmes: there's a question i keep asking, but to no avail
<ottidmes>
jannie: ask again then, maybe I can answer
<jannie>
ottidmes: is it possible to use get dependencies of a package but not the package itself
<jannie>
ottidmes: sort of like `nix-shell -A cabal2nix.env` works
<jannie>
but in a derivation
<jannie>
i hope it makes sense
sigmundv has quit [Ping timeout: 246 seconds]
<ottidmes>
jannie: what kind of dependencies are you interested in, because that question in the context of runtime dependencies does not make sense AFAIK, those are determined automatically by Nix
zarel has joined #nixos
<ottidmes>
jannie: the attribute buildInputs is also only part of the picture when you talk about actual build time dependencies, since I might refer to a package in a string context, i.e. "${hello}/bin/hello" within my script
<ottidmes>
jannie: you can ask for buildInputs of a package, but like I said, that might be an incomplete picture:
<dmj`>
I have a nixos module defined for use with the nixos testing framework. I'm trying to connect to the minio service inside of the qemu machine that gets run from my binary that also is run inside the qemu virtual machine. I get a localhost:9000 is not present when attempting to curl, yet I'm calling machine->waitForUnit("minio.service")
maximiliantagher has quit [Ping timeout: 245 seconds]
<ekleog>
Do we have any easy way of re-calling a derivation from an overlay? I'm thinking something of `callPackageAgain` that'd call `.override` to override all the dependencies
apeyroux has quit [Ping timeout: 245 seconds]
Guanin has joined #nixos
Judson has joined #nixos
Judson is now known as Guest96086
bl1nk has left #nixos ["Be back later..."]
fendor has quit [Ping timeout: 246 seconds]
freeman42x has joined #nixos
<infinisil>
ekleog: Don't normal overlays handle that already?
<infinisil>
Like, callPackage uses the final results attributes
<infinisil>
So you just need to override those, and packages having them as dependencies automatically get the overriden version
<infinee>
ok finally got a semi working nix-shell+direnv setup for my golang project. Only problem is that it thinks GOPATH is a read-only dir in /nix/store/????go/share/go. Any Go programmers in here have a workaround?
<dmj`>
clever solved my issue, it was waitForOpenPort(9000), thanks clever
<ottidmes>
what if the options in a module depend on the package version it corresponds to. I thought to just base it on cfg.package.version, but that of course causes infinite recursion, I am thinking now to just wrap those options in a check, and throw an error if they are used when not supported by the version, any better way of doing so, any prior modules that do something like this (options dependent on package
<ottidmes>
version)
<ekleog>
infinee: Here I'm trying to use a package from nixpkgs-unstable with the dependencies from 18.09
<ekleog>
oops
<ekleog>
infinisil: Here I'm trying to use a package from nixpkgs-unstable with the dependencies from 18.09
<ekleog>
(because I'm using python packages and mixing between unstable and 18.09, and afair python dislikes having two versions of the same package in scope)
<ekleog>
symphorien: yup, that's what I'm using for now, but paths change and that's really not clean
Jetien_ has quit [Ping timeout: 250 seconds]
<ekleog>
(well, to be precise `callPackage (unstable + /tools/misc/foo) {}`, and `unstable = (import (builtins.fetchTarball { ... }) {}).path;`)
<infinisil>
Hmm..
<ekleog>
also, it doesn't work well for packages that aren't defined in a separate file (eg. some python packages are defined inline in top-level/python-packages -- or were at 18.09, can't remember, my actual use case mixes from more than just two channels)
rauno has quit [Remote host closed the connection]
jannie has quit [Ping timeout: 246 seconds]
<ottidmes>
ekleog: in that import unstable call, do you have overlays = []; ? if so, I have an idea
jasongrossman has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<ottidmes>
ekleog: I assume so, otherwise it would be a loop (maybe its ok, because all you use it for is the .path, but otherwise it would loop to define unstable)
Guest34677 has quit [Ping timeout: 268 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<hyper_ch>
how can I track this: Nixos/KDE/ZFS is writing every 5 seconds 15MB of data to my SSDs. No programms running except Konversation and Konsole.... also after a few days of uptime, it becomes terribly slow on my notebook
<gchristensen>
try sysstat?
<hyper_ch>
gchristensen: I run dstat -ta to see how much is being written... iotop wasn't so clear
<hyper_ch>
gchristensen: added sysstat as service but not really sure how to use it
<{^_^}>
[nixpkgs] @aanderse opened pull request #55410 → nixos/httpd: improve security in configuration file → https://git.io/fhHT8
<infinisil>
Argh, steam doesn't want to start properly on my system. It starts into big picture mode, but after the "Connecting to steam account ..." message I just get a blank screen without any buttons :/
<infinisil>
And I don't know how to exit big picture mode like that
<infinisil>
Can I tell steam to not start into big picture mode somehow? Does anybody else have this problem perhaps?
<infinisil>
I am on the latest nixos-unstable, but it's been happening in previous versions as well
<infinisil>
Which makes me think it's something stateful, could probably nuke my steam directory to fix it, but..
<infinisil>
Well I did a `mv ~/.local/share/Steam ~/.local/share/SteamOld`, so it's reinstalling now, let's see if this works
Church_ has quit [Ping timeout: 240 seconds]
<infinisil>
Yeah that worked
<clefru>
infinisil: I think there is also ~/.steam
<infinisil>
Darn it, even more state
<clefru>
and yes, I recently noted with a friend that for the amount of money that steam must make from its sales, the client is a pretty underwhelming piece of code.
<infinisil>
Ah, .steam is just a bunch of symlinks, a pid file, and some other unimportant things
<infinisil>
I'm somewhat hoping that Nix eventually gets some people that want to get it working well on Windows
<infinisil>
In the hopes that projects like steam could adopt it
<infinisil>
But I doubt that's gonna happen, both of those things
petersjt014 has quit [Read error: Connection reset by peer]
<petrkr>
Hi, quick question, trying find that already 2 hours>> Trying do some package for one software, but it calls external program "pinentry", my question is How I can specify runtime dependecies ? Like my packages "petrtest" will also install "pinentry" package as requierd dependency
<{^_^}>
petrkr: In order of preference: Patch source OR ((if it uses PATH -> wrap with new $PATH) AND (if it uses dlopen, (patchelf --set-rpath in postFixup OR wrap with new LD_LIBRARY_PATH)))
<petrkr>
{^_^}, I just need somehow tell to build system, if you will do nix-env -iA petrtest. It will also install pinentry nothing more
<petrkr>
when I will install it by hand, it works well, so I do need just dependency install
<petrkr>
something like at Arch linux I have "depends = (package1, package2)" in PKGBUILD
<infinisil>
petrkr: No that's not how it works in Nix
<infinisil>
Well, it would work, but it's really ugly and non-reproducible, you shouldn't do it
o1lo01ol1o has quit [Remote host closed the connection]
<infinisil>
petrkr: Just wrap your package with a different PATH that contains the binaries it needs (look at makeWrapper)
<clefru>
infinisil: didn't iohk recently publish an article on how they crosscompile their binaries to windows from nix? :)
yayforj has joined #nixos
<infinisil>
:O
o1lo01ol1o has joined #nixos
<simpson>
petrkr: Change your package so that it calls pinentry with an absolute path.
<petrkr>
but this library is used as lib in other library which is finally executable
<infinisil>
petrkr: Then wrap the final executable
ryantrinkle has joined #nixos
<petrkr>
something like "myscript.sh" and inside will be just export PATH=${pckg.pinentry}/bin/ originalExec?
doyougnu has joined #nixos
zupo_ has joined #nixos
<infinisil>
petrkr: Add `makeWrapper` to nativeBuildInputs, then do `wrapProgram $out/bin/myexec --prefix PATH : ${lib.makeBinPath [ pinentry ]}` in postInstall
<ekleog>
<ottidmes> ekleog: in that import unstable call, do you have overlays = []; ? if so, I have an idea <-- I do (sorry for the delay, got interrupted)
<ottidmes>
ekleog: how do you feel about scopedImports, because if I am allowed to use that, I am sure to make it work with roughly the same idea
schjetne has quit [Ping timeout: 245 seconds]
<ottidmes>
ekleog: the override trick could work too, let me first write that
ryantrinkle has quit [Ping timeout: 246 seconds]
sinner has joined #nixos
kenshinCH has joined #nixos
sinner is now known as Guest76686
<kenshinCH>
I would like to install hie-nix via Cachix, not via nix-env but in my default.nix for my nix-shell. How can I do that?
<ottidmes>
ekleog: something like this might be the easiest: overrideWithSelf = pkg: pkg.override (origArgs: builtins.intersectAttrs (attrNames origArgs) self);
<infinisil>
kenshinCH: Pass this to the nix command: --option binary-caches 'https://cache.nixos.org/https://hie-nix.cachix.org/' --option trusted-public-keys 'cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hie-nix.cachix.org-1:EjBSHzF6VmDnzqlldGXbi0RM3HdjfTU3yDRi9Pd0jTY='
<infinisil>
(For security you could verify those keys, make sure I'm not juking :P)
<ekleog>
ottidmes: never heard of scopedImports
<ekleog>
ottidmes: also, I think override doesn't give you `origArgs`, does it?
<kenshinCH>
infinisil: I can't put all of that in default.nix somehow. That's a mouthful I'd like to automate :P
<kenshinCH>
infinisil: I forgot a ? there
<ekleog>
ooh it does handle both cases
<ottidmes>
ekleog: I checked the manual and did not see it, but then checked the source code, and it does
<ekleog>
ottidmes: OK, the override trick should work then, thanks! :)
<infinisil>
kenshinCH: Not really, those settings are on a 'higher' level than a Nix expression
<kenshinCH>
infinisil: ah wait, I'm using direnv and apparently I can put parameters in .envrc. That would be a perfect solution
<infinisil>
Ah yeah that should work
<ottidmes>
aw, I don't like adding to ids.nix, I am always thinking, what if one of those > 1k PRs is also using the same number
<infinisil>
ottidmes: No need to in general :)
<zahary>
Have you seen some setups that use Nix to cross-compile programs to Windows. I care about the reproducibility of our build and Nix should be able to help me here I think. I imagine I'll have to create some mingw overrides in the stdenv environment and then try to load my existing expressions?
<infinisil>
zahary: 20:55:53 <clefru> infinisil: didn't iohk recently publish an article on how they crosscompile their binaries to windows from nix? :)
maximiliantagher has quit [Ping timeout: 250 seconds]
<kenshinCH>
infinisil: sorry, I still get `undefined variable 'hies'`. So I have to scope it somehow?
<infinisil>
kenshinCH: You never said you got an error before
<infinisil>
kenshinCH: How would that file know about hie-nix?
<infinisil>
Do you have it in an overlay?
<matthewbauer[m]>
zahary: yeah you can use ```crossSystem = { config = "x86_64-pc-mingw32"; }``` to get mingw builds
<kenshinCH>
infinisil: I'm calling nix-shell with the parameters you provided, but I have little idea what they mean :P
<infinisil>
kenshinCH: Ah, well those parameters only configure the hie-nix cache, I originally thought that's where you had trouble
<zahary>
matthewbauer[m], symphorien: thanks for the pointers.
<infinisil>
kenshinCH: You still need to actually import hie via the hie-nix repo
<kenshinCH>
infinisil: makes sense. I'll try, it should be easier than the rest :) Thanks
Glider_IRC_ has joined #nixos
<infinisil>
kenshinCH: Something like `hies = (import /path/to/hie-nix {}).hies;`
<zahary>
I'm very curious to see these checks 'hostPlatform.isWindows'. Does this detect running Nix in Cygwin or Windows's new Linux subsystesm or is there even more native Windows support that I'm not aware of?
Glider_IRC__ has quit [Ping timeout: 244 seconds]
maximiliantagher has joined #nixos
cswl has quit [Quit: Connection closed for inactivity]
agander_ has joined #nixos
maximiliantagher has quit [Ping timeout: 240 seconds]
agander has quit [Ping timeout: 250 seconds]
<petrkr>
infinisil, Thanks for that, I made it somehow works at system, now I need somehow introduce that to initrd
schjetne has joined #nixos
<petrkr>
hmm seems time to go home, disk ran space out and now I can not even log in
<kenshinCH>
infinisil: seems like it worked! Took a while to download all, but I don't want to think how long it would have needed to compile it :) Thanks!
<{^_^}>
[nixpkgs] @msteen opened pull request #55413 → bitwarden_rs: init at 1.4.0 → https://git.io/fhHII
<infinisil>
kenshinCH: Yeah hie takes a long time to compile
<ottidmes>
mdash: I finally made the bitwarden_rs PR ^
<{^_^}>
[nixpkgs] @costrouc opened pull request #55414 → pythonPackages.dask-mpi: init at 1.0.2 → https://git.io/fhHIq
<sicklorkin>
Could nix work if all libraries were statically linked?
drakonis has joined #nixos
schjetne has quit [Ping timeout: 245 seconds]
<camsbury>
ha john I was looking at that
<camsbury>
tryning to figure out the best way to integrate hist stuff
<camsbury>
your stuff*
<camsbury>
lol
<camsbury>
trying to grok your architecture, but most of your commits are either "changes" or "updates"
<camsbury>
any tips?
<camsbury>
:D
<johnw_>
yeah, i gave up on descriptive messages
<johnw_>
find a package you want to override, find something in my stuff that's doing a similar thing, and then copy it out
<Twey>
How does nix-collect-garbage --older-than decide how old a file is? I'm doing `--older-than 1d` on a box that hasn't even existed for a whole day, and Nix appears to be deleting basically its whole store
<johnw_>
it will also delete things not reachable from a root, such as intermediate build products and sources
<camsbury>
yeah it's fine - I've been curious about the state of your setup for a while... guess I just needed to look at the Makefile
fendor has quit [Ping timeout: 250 seconds]
<johnw_>
camsbury: the hardest part was getting 10-haskell.nix right, so that a single set of overrides has the same meaning in about 6 different contexts of use
<camsbury>
yeah I'm syncing my emacs across darwin-nix and nixos config for a laptop and desktop... so only 3 contexts thus far :D
<camsbury>
only now have I had to actually explicitly upgrade a package, which is nice... I think the darwin melpa just isn't up to date...
Makaveli7 has quit [Quit: Leaving]
q6AA4FD has joined #nixos
<pie___>
obadz, do you know anything about getting wxpython 4.0 to compile?
ckauhaus is now known as ckauhus[afk]
<pie___>
or FRidh[m] ^ ?
ckauhus[afk] is now known as ckauhaus[afk]
drakonis has quit [Quit: WeeChat 2.3]
_kwstas has quit [Quit: _kwstas]
<infinisil>
pie___: Well what's the error??
<infinisil>
Can't help if one doesn't even know the problem
<pie___>
tried to fix it myself for once, not much luck :c
<pie___>
weird linking errors
<infinisil>
Looks pretty bad
jackdk has quit [Remote host closed the connection]
vk3wtf has joined #nixos
<infinisil>
pie___: "WARNING: Building this way assumes that all generated files have beengenerated already." could this be a clue? Did you generate some files?
<pie___>
no idea, it just calls the ditutils (?) stuff
<pie___>
when i tried to build it manually according to the docs (IIRC) i got the same thing
<sicklorkin>
I have a very long list of missing shared librarys in my nix shell and I am wondering if there's a way to view the paths for a particular nix store
nikivi has quit [Quit: ZNC is awesome]
<sicklorkin>
I'm trying to vind the package for each of these missing shared libraries so that I can include them
<sicklorkin>
, locate wind
nikivi has joined #nixos
<{^_^}>
Invalid command syntax
<sicklorkin>
,locate wind
<{^_^}>
Found in packages: dirt, tuxpaint
<infinisil>
sicklorkin: So, does ,locate not work or?
<{^_^}>
[nixpkgs] @veprbl pushed commit from @jfrankenau to master « scid-vs-pc: 4.18.1 -> 4.19 »: https://git.io/fhHtO
o1lo01ol1o has joined #nixos
jasongrossman has quit [Ping timeout: 268 seconds]
zupo has joined #nixos
<ottidmes>
,locate nix-index
<{^_^}>
Found in packages: nix-index
<infinisil>
Meta!
<ottidmes>
mdash: I see that you are online again, did you see the bitwarden PR? I managed to package the vault with a different approach
<ottidmes>
,locate nix-locate
<{^_^}>
Found in packages: nix-index
<ottidmes>
infinisil: ^ probably more fitting
o1lo01ol1o has quit [Ping timeout: 250 seconds]
o1lo01ol1o has joined #nixos
<pie___>
is it just me or is nix-shell -p "python27.withPackages (pkgs: with pkgs; [wxPython])" broken
simukis has quit [Quit: simukis]
<pie___>
warnings.warn("wxPython/wxWidgets release number mismatch")
<pie___>
the beginning got cut off; /nix/store/3x5qzkivhadcaw54d9fm3jpk0407spcq-python-2.7.15-env/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629: UserWarning: wxPython/wxWidgets release number mismatch
tzemanovic has quit [Remote host closed the connection]
lsyoyom has quit [Ping timeout: 244 seconds]
<pie___>
doh...it doesnt actually break though
<pie___>
i guess something else is wrong with the application that uses it
lsyoyom has joined #nixos
<pie___>
i have an old version of wikidpad on my disk that I run via nix-shell -p python27Packages.wxPython --command "python2 ./WikidPadStarter.py" and I have no idea how the hell it works and stuff im downloading doesnt..