<tertle||eltret>
whats the flag to search for packages?
markus1199 has quit [Ping timeout: 260 seconds]
<samueldr>
ah, found it
<samueldr>
nix search 'linuxPackages.*\.kernel$'
<samueldr>
(I was trying with nix-env -qaP first)
<samueldr>
as there are no non-linux kernels in (yet?) this works too: nix search '\.kernel$'
<tertle||eltret>
oho k
<samueldr>
all kernels end up being "wrapped" insiede a linuxPackages attribute set with packages depending on the kernel being compiled for that kernel
<samueldr>
things like acpi_call
r3m8 has joined #nixos
<r3m8>
Hey, I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
r3m8 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<abueide>
clever, so are you out of ideas? also thank you for all of your help so far, I really appreciate it
Jason_Grossman has quit [Remote host closed the connection]
tenten8401 has joined #nixos
<tenten8401>
Anyone have any idea on how I'd call wrapProgram on a python package? I'm looking at PR #42075, but I'm not actually convinced that makeWrapper is being called at all despite the makeWrapperArgs in the lutris .nix file
<samueldr>
hm, why do you say it can't be wrapped since it's not an executable?
<tenten8401>
Builder called die: Cannot wrap '/nix/store/0a61xlp1291vby8jzqrfb7j422lacr9d-lutris-v0.4.18/bin/lutris' because it is not an executable file
<clever>
tenten8401: and if you `ls -lh` that file, what does it say?
<samueldr>
well, that's explicit
<samueldr>
ninja'd by the cleverest again :)
<tenten8401>
it clears out the build directory I'm pretty sure
<clever>
tenten8401: it doesnt
* samueldr
bets on a symlink
<tenten8401>
the entire $out doesn't exist apparently after the build fails
<clever>
also, i think by setting installPhase, you stopped it from being installed, so the file no longer exists
<clever>
tenten8401: because you overwrite installPhase, and its not even making $out now
<tenten8401>
all i get when running rebuild switch is a logfile that says setting up /etc
<tenten8401>
this is what I'm so confused about though, when I wrap a program in one of my other files, I get this large LD_LIBRARY_PATH environment variable in the script: https://hastebin.com/aciruhejoj.bash
<tenten8401>
atlauncher is the one I can verify is getting wrapped, and then there'sl utris
<clever>
tenten8401: break the problem out into a simpler nix file that doesnt involve all of nixos-rebuild
<clever>
then you can test with nix-build
<tenten8401>
lutris-init doesn't contain any LD_LIBRARY_PATH variables either
<tenten8401>
but I suppose I can try
<clever>
oh also
<clever>
run `nix-store -l /nix/store/foo` on the storepath
<clever>
that gives you the full log
<clever>
redirect that into a file, upload to a pastebin
stoner193 has joined #nixos
<stoner193>
Hey, I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
stoner193 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
programmer2 has joined #nixos
deedra27 has joined #nixos
deedra27 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
programmer1 has quit [Ping timeout: 240 seconds]
<clever>
tenten8401: the problem i think, is that your set -x build "passed"
<clever>
so when you re-ran it with redirections to a log file, it didnt build anything
<clever>
so it produced no logs
<tenten8401>
I altered the file when I did to get it to rebuild
<clever>
but since it passed, `nix-store -l` can get a copy of the log
<c_wraith>
Oh, I know I'm safe. I just had to tell my AV to ignore my IRC logs, as they aren't a virus. I just was wondering if it was an intentional part of the spam attack, or just a coincidence
programmer3 has quit [Ping timeout: 240 seconds]
justan0theruser has quit [Ping timeout: 260 seconds]
lambdamu has quit [Ping timeout: 256 seconds]
<tenten8401>
if anyone has any ideas on why a Lutris-installed version of Wine can't find it's libraries at all, it'd be greatly appreciated. I had a look at the playonlinux package since that also installs their own wine versions, but I didn't find anything useful in there I don't think, beside a patchelf on some random binary that I can't find in Lutris...
justan0theruser has joined #nixos
programmer4 has quit [Ping timeout: 260 seconds]
programmer4 has joined #nixos
<drakonis>
tenten8401, linker?
<tenten8401>
drakonis: ?
<drakonis>
c_wraith, intentional
<c_wraith>
drakonis: thanks
<drakonis>
its an malicious script that exploits javascript execution
pie_ has quit [Ping timeout: 240 seconds]
programmer4 has quit [Ping timeout: 244 seconds]
pie_ has joined #nixos
programmer4 has joined #nixos
sbdchd has quit [Remote host closed the connection]
mounty has quit [Ping timeout: 248 seconds]
Unode has quit [Ping timeout: 256 seconds]
sbdchd has joined #nixos
freeman42x]NixOS has quit [Ping timeout: 256 seconds]
Jason_Grossman has quit [Remote host closed the connection]
Unode has joined #nixos
mounty has joined #nixos
argas has joined #nixos
sbdchd has quit [Ping timeout: 256 seconds]
lord| has quit [Quit: WeeChat 2.1]
lord| has joined #nixos
<ldlework>
very strange C-m inserts enter for me globally
Guest73516 has quit [Read error: Connection reset by peer]
<clever>
foo
<clever>
ldlework: it also does that for my in xfce-terminal
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rprije has quit [Remote host closed the connection]
<pie_>
whoops s/scroll to ...//
rprije has joined #nixos
<tenten8401>
what's ctrl q do?
graphene has quit [Remote host closed the connection]
<tenten8401>
as in why is there an extension needed for it
<drakonis>
close firefox
<drakonis>
everything
sir_guy_carleton has quit [Quit: WeeChat 2.0]
graphene has joined #nixos
<pie_>
today is like the third time i accidentally closed it ( i have way too much crap open, luckily that gets saved), i finally remembered to look into this
andreabedini has joined #nixos
programmer4 has quit [Ping timeout: 256 seconds]
fossxplorer8 has joined #nixos
<fossxplorer8>
Hey, I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
<fossxplorer8>
or maybe this blog by freenode staff member Matthew 'mst' Trout https://MattSTrout.com/
alter-schjetne has quit [Ping timeout: 264 seconds]
<carlosdagos>
anyone know what to do about the error "all build users are currently in use; consider creating additional users and adding them to the 'nixbld' group"? is it a matter of just adding more users (doesn't seem like the case)? or how else can I debug this. I'm trying to build a cabal project using cabal2nix in case that helps
<tilpner>
Recently generated configs have a big warning above it
<noqqe>
Alright. I go with 18.03 as its current default in configuration.nix
<noqqe>
yeah that makes sense.
eskytthe has joined #nixos
<trebuh>
OK NixOS, let's see. I like the idea of a full declarative distribution. I have a server with 2 disks. I want each to be encrypted using LUKS. I want to use BTRFS "RAID" on 2 partitions (each from 1 disk) to host /. I come from Archlinux, do you think what I want to achieve is reachable with no major hiccups?
nly has joined #nixos
joemaro has joined #nixos
<tilpner>
trebuh - I have done software raid and luks individually (not combined). I don't expect btrfs to be a problem either
<trebuh>
OK OK. Cool, I'll try tonight. Additional question is there support for OpenRC or is NixOS full systemd?
<Izorkin>
tilpner: add that variant - https://pastebin.com/sw2XZdW7 - nix build -f ~./nur-packages nginx - package builded without overlays.
<tilpner>
There is currently only support for systemd. There was interest in alternatives, but not enough has happened there
<trebuh>
Alright.
<tilpner>
Izorkin - What's the error?
<Izorkin>
tilpner: not error. package builded with default options
<tilpner>
Izorkin - How did you enable that overlay?
<tilpner>
Izorkin - That is the same paste as before
<joemaro>
Hello! i need help with getting Nix to run on my manjaro system. I installed it both via AUR and via the script from the homepage but there are many errors that i can't resolve. Currently for example when doing `nix search firefox -u` it just says nothing. Would really love to get this running.
<tilpner>
joemaro - Does nix-shell -p hello --run hello work?
nlyy has joined #nixos
<joemaro>
tilpner, error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:13
<tilpner>
What's the output of "echo $NIX_PATH"?
<goibhniu>
joemaro: you probably need to add a channel
<joemaro>
i'm using the fish shell btw, might that be the problem?
<tilpner>
Doesn't it add a default channel though?
<Izorkin>
tilpner: I do not know how to turn on overlays with "nix build -f ~./nur-packages"
<goibhniu>
joemaro: then `nix-channel --update`
* goibhniu
also thought it added a channel
<tilpner>
Izorkin - The idea is that with overlays enable properly you won't need to mention nur-packages at all
<tilpner>
Izorkin - nix-shell -p nginx would fetch your custom nginx
<tilpner>
,overlay Izorkin
<{^_^}>
Izorkin: Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
<joemaro>
ok it created 2 symlinks in user environment, but nix-shell -p hello --run hello throws the same error as before
<joemaro>
tilpner, the output of echo $NIX_PATH is blank
<tilpner>
That's not good, and fish might be at fault
<tilpner>
I had a workaround for this when I was using fish
<tilpner>
RetardedOnion - They couldn't do anything
civodul has joined #nixos
<nlyy>
"x86_64-linux" tilpner
<RetardedOnion>
they can ban these bots, right?
Sufixx_ has joined #nixos
<tilpner>
nlyy - Until that value looks right, it can't work
<tilpner>
RetardedOnion - They already do
ericsagnes has quit [Ping timeout: 256 seconds]
<guest_>
hello. I have a very small patch to create cross compilers for for powerpc and sparc. is it possible that someone take care of it? https://pastebin.com/raw/d004ByhK
<tilpner>
nlyy - You could try something weird like nixpkgs.pkgs = import <nixpkgs> { system = "i686-linux"; };, then check again
<tilpner>
guest_ - Why don't you create a PR for it?
<RetardedOnion>
guest_: do you want someone to test it or to submit it? both can be done by you
<guest_>
tilpner: because i don't want to create a github account?
<guest_>
RetardedOnion: it's already tested by me to build openbios for qemu vm, so i'm more searching someone to submit it
<{^_^}>
[nixpkgs] @jdanekrh opened pull request #44118 → jetbrains.editors: 2018.1.x -> 2018.2 (upgrade using the script) → https://git.io/fNEBk
pie__ has joined #nixos
schjetne has joined #nixos
graphene has quit [Remote host closed the connection]
<etu>
Izorkin: Was it you that use php56?
graphene has joined #nixos
<Izorkin>
etu: yes
<etu>
Izorkin: If it was I'd suggest you look into upgrading to 71 or 72 before december. Because both 70 and 56 will go end of life and stop getting patched at that point :p
<{^_^}>
[nixpkgs] @ikervagyok opened pull request #44119 → wine{Unstable,Staging,-mono,tricks}: update to latest version → https://git.io/fNEBM
stanibanani has joined #nixos
the has joined #nixos
the has joined #nixos
the has quit [Changing host]
<cocreature>
how long does it usually take for a channel to update after the hydra build was successful? it looks like there was a successful build more than 24h ago but at least according to howoldis the channel still hasn’t updated
<gchristensen>
Izorkin: before September ideally so we can delete it from stable
<philipp[m]>
Why is unstable stuck for 12 days? Can I help in any way with this?
joemaro has quit [Quit: Leaving]
<etu>
gchristensen: That's not a bad idea, otherwise it's entierly unmaintained for that stable window
<gchristensen>
issues with the cache, more often than not, are issues in your local network / ISP
<gchristensen>
with your cache off, it works?
<etu>
gchristensen: yo, you know how the tests must pass for a channel to move forward. How do I find which packages it needs to build for the channel to move?
<gchristensen>
don't actually ... dev ... much anymore
<nly>
:D nice
<etu>
gchristensen: How does that tell me what needs to be built for the last rounds of tests to move the channel?
<gchristensen>
etu: which channel?
<{^_^}>
[nixpkgs] @timokau opened pull request #44123 → Fetch spotify from snapcraft → https://git.io/fNEgw
<etu>
nixos-unstable which is nixos:trunk-combined:tested (I think)
<gchristensen>
yea
<gchristensen>
etu: now click the Constituents tab
<gchristensen>
looks like it passed and will update soon
<nico202>
andi-: thanks :)
genesis has quit [Quit: Leaving]
<etu>
gchristensen: Yeah, I've seen that the tests passed. That's why I'm asking how to see how the necessary builds are going for the update to happen :)
<gchristensen>
from here to the update is opaque unfortunately
<gchristensen>
but it can take several hours to generate the command not found db and what-not
<etu>
From what I could find out, this build is based on the same git-commit as the latest tests: https://hydra.nixos.org/eval/1470905 -- but that didn't tell me much either :D
Comstock_ has joined #nixos
<Comstock_>
Hey, I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
Comstock_ was banned on #nixos by the [Comstock_!*@*]
Comstock_ was kicked from #nixos by the [PM gchristensen to dispute this]
genesis has joined #nixos
humanoyd has quit [Quit: WeeChat 2.2]
xy2_ has quit [Ping timeout: 244 seconds]
the has joined #nixos
the has joined #nixos
the has quit [Changing host]
the has quit [Remote host closed the connection]
the has joined #nixos
the has joined #nixos
the has quit [Changing host]
ng0 has quit [Quit: Alexa, when is the end of world?]
<{^_^}>
[nixpkgs] @grahamc opened pull request #44124 → systems: Allow detection of powerpc and sparc → https://git.io/fNErf
patrl has joined #nixos
nly has quit [Remote host closed the connection]
nly has joined #nixos
<ajs124>
I'm trying to update ejabberd right now, but they moved from imagemagick to eimp at some point, so now I'm wondering what's the best way to have that run with libpng, libjpg and libwebp in its LD_LIBRARY_PATH. just modify the systemd service? or wrap the program somehow?
iceychris has quit [Ping timeout: 255 seconds]
ng0 has quit [Quit: Alexa, when is the end of world?]
<etu>
ajs124: It should be enough to have them as buildInputs so the program is linked to those libraries
<ajs124>
I think it doesn't get linked, it's written in erlang and uses some kind of ffi. so it probably trys to dlopen them.
<etu>
Oh
<etu>
wrapProgram might help you then
<ajs124>
probably, but I'm not sure how exactly that is supposed to be used.
<tilpner>
I need to assemble closures into a single directory, but can't use cp -l because /build is on a different filesystem than /nix
<tilpner>
Is there a way to do that efficiently, without using symlinks or relying on autoOptimiseStore?
<trebuh>
Is having a knowledge of functional language necessary (or a plus) to build up a system with NixOS?
d1rewolf_ has joined #nixos
<goibhniu>
trebuh: it would be interesting if you want to do fancy things, but you can definitely survive without knowing one
<tilpner>
trebuh - It's definitely a plus. If you want to understand how nixpkgs works, you'll have to learn Nix either way, and experience makes it easier
hakujin1 has joined #nixos
* goibhniu
has been using NixOS happily for years, without any functional programming background
<trebuh>
damn, that's one of my big lack when it comes to computing languages.
<tilpner>
But it depends on your usecase. You may find that all you require is supported and works without issues, in which case you may not need to look under the hood
<gchristensen>
trebuh: it ins't a big deal, I didn't know any FP before using Nix
<qyliss^work>
I have very limited functional programming knowledge aside from what I've picked up from Nix, and an intro to programming Haskell course years ago
<etu>
trebuh: But you can see the config as a config file with a weird syntax. :)
<goibhniu>
the configuration looks a bit like JSON
<Izorkin>
tilpner: now to need to restart travis-ci check?
<trebuh>
:-P I like to understand things
<tilpner>
Izorkin - I think it will restart automatically
<etu>
trebuh: Get started first, understand later:)
<trebuh>
that's planned for tonight
<steveeJ>
is someone using minikube and could verify if 'minikube service --url kubernetes' is working for them? it should print a URL, for me it returns nothing
<etu>
trebuh: Good luck and have fun. Don't hesitate to ask if you have questions:)
<trebuh>
I probably have, BTRFS RAID over LUKS is not trivial
Anton-Latukha has joined #nixos
* etu
wouldn't use btrfs-raid, but that's just a personal taste
hakujin1 has quit [Ping timeout: 256 seconds]
palo has quit [Ping timeout: 268 seconds]
<tilpner>
Izorkin - Oh, right, it won't restart. Force push that branch again, maybe
<nly>
i should use the CLI 'nix search pkg' instead of the gui
<{^_^}>
[nixpkgs] @7c6f434c merged pull request #44090 → Cherry-pick commit that fixes libreoffice wrapper to release-18.04 → https://git.io/fNRDI
<{^_^}>
[nixpkgs] @7c6f434c pushed 3 commits to release-18.03: https://git.io/fNEiA
programmer4 has joined #nixos
<brodul>
I have problems with OpenGl on NixOs
<brodul>
on Lenovo x260
<sophiag>
well, i've officially broken the ability to rollback generations. rebuilds now telling me a bunch are corrupted and, similarly, they don't show up in grub. those include the only builds in which i'm able to launch a display manager :(
jperras has joined #nixos
dbmikus has joined #nixos
<nly>
tilpner the build is failing...
endformationage has joined #nixos
<tilpner>
nly - Not here
<nly>
error: getting status of '/nix/store/4wvjp1fa7n9j3ws3a2wbsiz6x67cxrk5-password-store-1.7.2/lib/password-store/extensions': No such file or directory
<nly>
tilpner what command do you run to install it?
<tilpner>
nix-build --no-out-link "<nixpkgs>" -A passExtensions.pass-import
<brodul>
tilpner: I don't have an nvidia card
cryptomonoid has quit [Ping timeout: 240 seconds]
<brodul>
if i start __GLVND_DISALLOW_PATCHING=1 glxgears
<brodul>
it crashes
<brodul>
the same way as in dpaste snippet
<tilpner>
brodul - I don't know if that matters. It might be completely unrelated, but it fixed a similar error
<brodul>
ah, ok
<brodul>
tnx
<{^_^}>
[nixpkgs] @eadwu opened pull request #44126 → opencollada: include pcre.h (KhronosGroup/OpenCOLLADA#570) → https://git.io/fNEP4
orivej has quit [Ping timeout: 248 seconds]
<sophiag>
i'm trying `nixos-rebuild switch --repair` now. last thing happened before this was being dropped into a tty and then trying to switch from lghtdm to gdm for diagnostic purposes, upon which gdm would segfaul immediately upon launch...
<clever>
ajs124: add this to your configuration.nix, temporarily disable the usage of haskell in configuration.nix, and nixos-rebuild switch
<clever>
if you are able to stop using haskell for 5 mins
<clever>
if your too addicted, i can perscribe an alternative solution
eskytthe has quit [Quit: Leaving.]
<ajs124>
I can also just manually create a swapfile or get more ram, since this is running on "other people's computers".
<clever>
ah
<clever>
manually creating the swap file was the alternative solution :P
<clever>
but its also nice that nixos can fully automate it
halfbit has joined #nixos
<{^_^}>
[nixpkgs] @johanot opened pull request #44127 → nixos/cfssl: Add new module for cfssl → https://git.io/fNEXz
<ajs124>
true, but I kind of don't want to keep this swapfile around forever.
<clever>
can always undo the change, though you will need it every time ghc has to download
<ajs124>
I also don't want to do that :D I'm just downloading ghc, because I'm deploying some software (biboumi), that's quite outdated in nixpkgs master
the has quit [Excess Flood]
devx has quit [Quit: . .. ...]
<ajs124>
hm, although that actually seems to be written in C++. I wonder why it pulls in ghc. Maybe pandoc.
cryptomonoid has joined #nixos
devx has joined #nixos
Denommus has joined #nixos
<Denommus>
hey
<Denommus>
how do I use my private ssh key with nix-prefetch-git?
the has joined #nixos
the has joined #nixos
the has quit [Changing host]
<brodul>
can somone dpaste the output of nix-channel --list
<brodul>
tnx
<LnL>
Denommus: you don't, only builtins.fetchGit can access user credentials
<Baughn>
Denommus: You don't. If you need a private ssh key then it can't be pushed to nixpkgs anyway, so you should download the git repository *before* doing whatever nixy thing with it.
<Baughn>
Aka, put the nix code in the repository.. or tell us why you need that.
<Denommus>
Baughn: I don't need it, it would just be nice
SOO7 has joined #nixos
d1rewolf_ has quit [Ping timeout: 244 seconds]
<Baughn>
Denommus: Well, builtins.fetchGit, but you'd have to put the ssh key itself in a location accessible from the Nix code. Usually that's the wrong thing to do.
<Baughn>
Denommus: (Keep in mind, if you refer to an SSH private key by path it'll be copied into the Nix store -- which is *world-readable*.)
<brodul>
for those who are on nixos unstable
<brodul>
does glxgears work for you ?
<brodul>
master does not count
<sophiag>
ugh, --repair still tells me most of my system profiles are corrupt :(
<clever>
brodul: perfect 60 fps with 18.09pre145679.dae9cf6106d
<clever>
sophiag: can you pastebin the errors?
<goibhniu>
brodul: also fine here, I have an nvidia card FWIW
<brodul>
clever: intel card ?
d1rewolf_ has joined #nixos
<sophiag>
clever: all it says it "skipping corrupt system profile entry: ..." for most of my generations
<sophiag>
all those that where the version doesn't match the current channel if that tell you anything?
counting1ort has left #nixos [#nixos]
<tilpner>
brodul - Works fine here too
sbdchd has joined #nixos
<tilpner>
(Curiously intel gets 1240 fps, while nvidia gets 360)
<maurer>
tilpner: glxgears fps is not actually a meaningful benchmark past 60 or so
<tilpner>
Because it's not primarily measuring the cost of rendering the frame?
<sophiag>
clever: i think the "corrupt" generations may just be those from before there were per-user profiles. i have no system profiles in root, some under my own user, and many above the per-user level
<clever>
sophiag: do you know what caused the corruption?
iMatejC has quit [Remote host closed the connection]
guest_ has quit [Ping timeout: 252 seconds]
<sophiag>
clever: not sure. i've been having problems with graphics switching for over a year. gdm on 16.09 with the nvidia driver is the only thing that seems to work
__monty__ has joined #nixos
the has quit [Excess Flood]
iMatejC has joined #nixos
<sophiag>
but google is telling me it could be due to bumping my stateVersion to see if it would help with that (i know you're not suppose to do that, but theoretically rollbacks should work as well)
the has joined #nixos
the has joined #nixos
the has quit [Changing host]
the has quit [Excess Flood]
<clever>
sophiag: stateVersion cant corrupt the nix store
sir_guy_carleton has joined #nixos
<sophiag>
is there a way to repair it?
the has joined #nixos
the has joined #nixos
the has quit [Changing host]
<sophiag>
changing the stateVersion back doesn't seem to have helped
<clever>
sophiag: can you pastebin all of the errors?
npmccallum has quit [Ping timeout: 240 seconds]
halfbit has quit [Ping timeout: 256 seconds]
johanot has quit [Quit: Leaving.]
<Baughn>
sophiag: Changing the state version is the one thing you can't roll back.
joelpet has joined #nixos
joelpet has quit [Changing host]
joelpet has joined #nixos
betaboon has joined #nixos
<betaboon>
hello #nixos, can someone point me in the right direction on how to use iamroles with nixops ?
<betaboon>
maurer: yeah. how do i actually use that/pass it to an ec2 instance eg
<betaboon>
is it as simple as using deployment.ec2.instanceProfile with resources.iamRoles.{}.name ?
<clever>
maurer: there is also the problem that having permission to create iam roles, basically gives you complete admin
<d1rewolf_>
rebuilding has slowed down for me and seems to hang up on "restarting the following units: polkit.service". is there a way to track down speed hogs in the build process?
the has quit [Excess Flood]
<clever>
d1rewolf_: its no longer building anything at that point, check `ps -eH x`
<d1rewolf_>
clever, x, thanks
the has joined #nixos
the has joined #nixos
the has quit [Changing host]
alex`` has quit [Quit: WeeChat 2.1]
<d1rewolf_>
clever, what's the "x" in that context?
<clever>
an argument to ps
<clever>
a literal x
<d1rewolf_>
clever, I realize that. -e for select all, -H for hierarchy, but was curious what the x did
the has quit [Remote host closed the connection]
<clever>
i dont remember how i figured out those args, i just mashed random things together over a decade ago and memorized what worked, lol
the has joined #nixos
the has joined #nixos
the has quit [Changing host]
<d1rewolf_>
clever, yeah, ps options are always so dense
sigmundv_ has quit [Ping timeout: 244 seconds]
jD91mZM2 has joined #nixos
eric1 has joined #nixos
<eric1>
Hi there! :-)
<eric1>
Greeting you from my brandnew Nixos install!
<d1rewolf_>
eric1, welcome ;)
<eric1>
Thank you
<goibhniu>
eric1 congratulations \o/
<eric1>
Thanks! :)
<eric1>
I am in dire need of some support, hoping you can help me. Did any of you run into issues with composer on NixOS? As in composer seeing a different version of PHP than I'm seeing? (5.6 instead of 7.2)?
tenten8401 has quit [Quit: Konversation terminated!]
<eric1>
There is an issue on the composer github that matches this, but the thread went to "this has to be your environment".
<eric1>
As far as I can see (and I'm a total newbie) the Nixos composer package does nothing but download a phar.
<eric1>
Why is the php in my environment different from what composer sees? Is there an option I can set so it uses a different version?
drakonis has joined #nixos
iceychris has left #nixos [#nixos]
patrl has quit [Quit: WeeChat 2.2]
<sophiag>
sorry, phone call. so i'm bricked because i tried to change the stateVersion to see if it could prevent me from running 16.09 for all eternity :/
<sophiag>
i guess that means i have to actually solve the muxless graphics issue or see if i have enough room to partition my boot disk and reinstall
<goibhniu>
you're struggling to get bumblebee working?
<sophiag>
bumblebee doesn't work for me
<sophiag>
at least not with the configs i've tried. the issue actually seems to be intel
<eric1>
Well thanks anyway. I will try again another time.
rihards has joined #nixos
<goibhniu>
oh, is there another way? I also failed to get bumblebee working reliably
<sophiag>
although i'm uncertain the difference between services.xserver.videoDriver and hardware... configs
<sophiag>
goibhniu: what do you mean by reliably? my problem is all display managers segfault
<tilpner>
goibhniu, sophiag - Have you tried the acpi_osi tricks?
eric1 has quit [Quit: WeeChat 2.0]
<sophiag>
i don't think so
<tilpner>
My display manager would blackscreen without acpi_osi=! acpi_osi="Windows 2009"
<sophiag>
ah. lightdm for me is black screen with a blinking cursor in the corner!
__Sander__ has quit [Quit: Konversation terminated!]
<sophiag>
gdm is frozen cursor
<tilpner>
No promises
<tilpner>
There are also other variants
<sophiag>
that's assuming i can boot into them. launching from tty usually segfaults immediately
<goibhniu>
I can get it working by booting a generation that doesn't have bumblebee enabled, then nixos-rebuild switch with bumblebee enabled ... it locks the kernel if I boot directly with bumblebee enabled
<sophiag>
goibhniu: that sounds like what happened to me as well
* goibhniu
hasn't tried the acpi_osi tricks
<tilpner>
That sounds familiar-ish? sphalerite?
<sophiag>
so you think if i try enabling bumblebee from tty i can then launch a display manager?
<goibhniu>
it would be interesting to see if that works
<sophiag>
yeah, except it's kind of nice to be able to turn off your machine...ever
the has quit [Remote host closed the connection]
<goibhniu>
indeed :D ... but the acpi_osi option would be interesting too (if you haven't tried already)
<sophiag>
i try to keep mine on indefinitely whenever something like this happens since i'm likely to burn a couple days if it crashes
<sophiag>
tilpner: it's just that line you pasted?
<Thra11>
If I'm using a local checkout of nixpkgs at /path/to/nixpkgs, why is it that some commands accept "-f /path/to/nixpkgs" but others need "-I nixpkgs=/path/to/nixpkgs"?
<d1rewolf>
clever, you remember I mentioned rebuild hangs at polkit? I checked, and nothing of note is happening (via top) at that time
<d1rewolf>
it's slowed to taking about 45 seconds
<Akii>
interesting, all files on my nixos server are dated "Jan 1 1970" anyone knows why that is?
<clever>
d1rewolf: you want to see what the child proccesses of nixos-rebuild and nix-daemon are with `ps -eH x` and find one that is blocked on something
<gchristensen>
Akii: everything in /nix/store is set to the date of 1 second
<clever>
Akii: nix doesnt allow any timestamps in the store,all files are last-modified at unix epoch + 1
<Akii>
damn
npmccallum has joined #nixos
ambro718 has quit [Quit: Konversation terminated!]
<gchristensen>
damn?
<Akii>
that kills default caching when serving files with nginx
<d1rewolf>
clever, ah, k. thank you
<gchristensen>
ah yes it does
<Akii>
that explains it though.. now for the solution.. that's going to be tricky
<Lisanna>
Akii best solution I found for that is to construct an etag based on the file's hash in its /nix/store path
<Akii>
now let's see if my nix-fu is strong enough to make that work for the whole folder
ng0 has joined #nixos
betaboon has quit [Quit: WeeChat 2.1]
sophiag has quit [Remote host closed the connection]
<logzet>
symphorien: I can't find callPackagesI686, not even a usage in nixpkgs
<Akii>
nope, probably not since the etag is probably static in your case :D
johanot has joined #nixos
<davidak[m]>
why is /nix/var/nix/profiles/default/bin/chromium used instead of /run/current-system/sw/bin/chromium (which is 2 major versions newer)?
<davidak[m]>
i don't see it in [davidak@X230:~]$ nix-env -q
hakujin3 has joined #nixos
Cypi has quit []
<samueldr>
davidak[m]: sudo nix-env -q ?
<symphorien>
logzet: indeed it was removed by c491a99362af31a53d9be6220e268d5b594bae29
<symphorien>
logzet: "This has been replaced with pkgsi686Linux.callPackage"
<davidak[m]>
samueldr: yes, that's it. many thanks!
<{^_^}>
[nixpkgs] @nicknovitski opened pull request #44133 → yarn: add yarnpkg bin alias output → https://git.io/fNEpH
hakujin2 has quit [Ping timeout: 256 seconds]
Sonarpulse has joined #nixos
jperras has joined #nixos
<Akii>
I assume there is no built in way of getting the current date?
palo has joined #nixos
palo has quit [Changing host]
palo has joined #nixos
<Akii>
since that would also be a side effect
<Lisanna>
Akii builtins.currentTime
<samueldr>
> builtins.currentTime
<{^_^}>
1532625691
<Akii>
because your etag approach isn't very practical
<samueldr>
you *can* break the purity, though it will always cause rebuilds
<Akii>
that's also impractical
<Akii>
so I get it that using the date this file just happens to be written is not really a nice way
<srhb>
Akii: Every file is written in 1970, clearly. :P
<Akii>
what would be the idk "perfect" solution: somehow use the packages version
<Akii>
because the version really dictates caching
<Akii>
so I think I could perfectly use the version as etag?
<Akii>
okay here is the question: if there was no IRC, where would I search for how I can get the version of a package inside a nix function I think is what an override is D
<Akii>
:D
<srhb>
> hello.version
<{^_^}>
"2.10"
<Akii>
and now without irc :D
<srhb>
Hmm, that's harder
<srhb>
Look out the window, I will try smoke signals.
<Akii>
haha
<srhb>
Can we at least agree on an encoding first?
<Akii>
no.
<srhb>
... welp.
init_6 has quit [Ping timeout: 260 seconds]
<srhb>
Akii: If your question was really "why are docs so bad" I would say that we often run into the problem that Nix is a programming language and documenting every possible solution is a bit tricky. :D
<logzet>
symphorien: Thanks that worked.
<logzet>
On to the next problem: the installer wants root privileges and has no flag to disable the check for that
<Akii>
srhb I didn't want to say that but ye, that's the issue I run into a lot :P
<Akii>
stuff like "foo.version"
* srhb
nods
<Akii>
this foo thing has to be documented somewhere
<srhb>
I was being a bit facetious :P
<srhb>
Maybe we should document _that_ process instead
<srhb>
Because people hit it all the time
<srhb>
And we should be teaching people how to put the pieces together, not how every possible line of Nix could look.
<srhb>
Of course, that sounds like a "why no nix book"
<Akii>
absolutely
<srhb>
So get cracking. :-P
<srhb>
All y'all
<Akii>
things got a lot better since I somehow got an idea what goes on
<joepie91>
a lot of missing documentation concerns 1) common solutions/approachs/mental-models to common problems, and 2) current solutions being used in practice and why the work how they work
<joepie91>
it's difficult to find direction
<joepie91>
the lack of an easy navigable reference of everything in nixpkgs, builtins, etc. (utility methods and such) doesn't help with that either
<srhb>
inb4 One Manual To Rule Them All
<joepie91>
quite opposed to that concept actually
<joepie91>
:)
* srhb
isn't
<joepie91>
like, you're not going to solve this just by writing a manual, it's something that needs ongoing ecosystem support
<joepie91>
and for different situations you need different forms of documentation
<srhb>
Ah, but I meant combining the three manuals into one
<srhb>
Possibly four
<srhb>
A meta-manual
<srhb>
Sometimes people are confused by nix/nixpkgs/nixos/(nixops)
<joepie91>
I don't think the solution to that is necessarily 'combining' them
<joepie91>
what is missing is mostly cross-referencing
<joepie91>
and a clear explanation of what the responsibilities of each part are
<srhb>
I think that sounds like a technically harder solution. :-P
<joepie91>
you're kind of expected to know what utility exists in which of them based on their undocumented separation of responsibilities, and if you guess wrong even once, there are zero pointers to get you back on track
* srhb
nods
nuncanada has quit [Quit: Leaving]
<joepie91>
ie. the problem is navigation, not where the information lives
<Akii>
a big problem is googling for solutions imo
<Akii>
you find nothing
sophiag has joined #nixos
<RetardedOnion>
Akii: you sometimes find old configuration.nixs which teach you stuff that is getting deprecated
<joepie91>
that's one aspect of that, yeah
<Akii>
(the above thing says "attribute 'version'" missing)
<Akii>
yeah I don't think I've found one Nix file that just worked out of the box
<srhb>
Akii: Then it would appear it doesn't have a version attribute.
<Akii>
but I guess that's because nix/nixos is still evolving quickly?
<RetardedOnion>
i dont need one file that works, i want help on creating my own.
<Akii>
srhb yeah but that package has a version
<srhb>
Can't say, I don't have the same experience at all...
<srhb>
Akii: What do you mean "package"
<drakonis>
i don't see why it is a problem that things are getting deprecated
<drakonis>
there's a lot to improve right now
<RetardedOnion>
how old is nix? i just feel like because there arent many users, noone is interested in doing docs
<drakonis>
15 years plus
<sophiag>
tilpner: it worked!! i had to use lightdm, though. both sddm and gdm were wonky
<tilpner>
sophiag - Yay!
<srhb>
RetardedOnion: 2003, 2004. Thereabouts.
<Jason_Grossman>
sophiag: \o/
<drakonis>
RetardedOnion, someone has to do them
<sophiag>
i seriously cannot believe i fixed a year+ hardware problem
iyzsong has quit [Read error: Connection reset by peer]
<sophiag>
i'll still probably order a new laptop as soon as i get paid...lol
<RetardedOnion>
yeah i know. i will help when i am ready. i am less than a week on nix. and havent even moved my desktop.
<drakonis>
nix has seen its biggest growth in the past few years
<Akii>
srhb I mean the thing that yarn2nix somehow spits out after I feed it my default.nix... idk, is it called derivate? Every thing in nix has a version
<goibhniu>
sophiag: awesome! what did youdo?
<sophiag>
tilpner: do you know why the substantive part of this patch works? i get not knowing what every kernel module you need to account for does, but i'd like to be able to document this so it's less cargo cult-like for others who may need the same fix
<RetardedOnion>
i feel like removing a patch from a package and adding a few shouldnt be as difficult as it is
<srhb>
Akii: I don't know how yarn2nix expressions looks. I'm assuming this is somehow in an overlay? Sorry, I'm not sure exactly what the snippet relates to. If it just doesn't have a version attribute, maybe you can just use its path for caching purposes, since it includes a sha256 anyway
<sophiag>
tilpner: i was just clarifying whether the bumblebee issue was linked to in the related nix issue
<srhb>
Woops
<Akii>
this mkDerivate.. probably has the magic
<srhb>
Akii: No version attribute there, indeed.
<srhb>
Akii: Will .outPath do the thing for you? :)
<Akii>
srhb but every derivation has a version O.o
<{^_^}>
[nixpkgs] @dasJ opened pull request #44134 → nixos/iperf: Init the module → https://git.io/fNuek
<cocreature>
so I thought I understood channel updates but apparently I still don’t. hydra shows that there was a successful build for nixos-unstable more than a day ago but there still seems to be no channel update. does the cron job that does the actual job run this rarely?
<srhb>
Akii: Nope.
<Akii>
oooohhhh
humanoyd has quit [Quit: WeeChat 2.2]
<Akii>
welp there we have it
ghasshee has quit [Ping timeout: 264 seconds]
<Akii>
okay, I need the hash then without the /nix/store
<srhb>
cocreature: It's a bit misleading, because the evaluation has to be done as well, and nixpkgs.metrics was running for hours before it was cancelled.
<srhb>
gchristensen: But it has updated. And all jobs finished at 10 this morning
<srhb>
So I'm confused. :)
<gchristensen>
o
fresheyeball has quit [Remote host closed the connection]
<acowley>
The current mystery of why the channel hasn't advanced aside, we should probably update the howoldis page to better indicate when there are queued jobs
<srhb>
acowley: And miss out on the weekly "how do channels even" talk? :)
<srhb>
It's call socializing, you know.
<acowley>
Well, having the system actually work as we all think it does is probably step 1. But step 2 is having the visual indicators reflect things.
<acowley>
lol
<Jason_Grossman>
srhb++
<{^_^}>
srhb's karma got increased to 11
<acowley>
It really is our favorite conversation
<srhb>
:-) I agree with you
<acowley>
Would it make sense to have a number next to the build along the top of the grid?
<acowley>
Or perhaps the problem is the slight disconnect between the build ID of the aggregate job and the evaluation of which it is a part.
<Profpatsch>
Someone up for a simple review of a documentation PR?
<Profpatsch>
acowley: Oh, thanks for noticing. I didn’t want to push that function in that PR
<acowley>
Profpatsch: I also had to read to the setFunctionArgs docs a few times for no deep reason. I think I would have found it easier if the docs started out with an example usage `setFunctionArgs f metadata` to further clarify that the metadata you're talking about is the `Map String Bool`. This is a nitpick.
<acowley>
I just saw "metadata" at the start and my subconscious started thinking about what that might include. That it's just whether the argument has a default value is a lot more specific than "metadata" in general.
<acowley>
I do understand how it is written now.
johnw_ has joined #nixos
<acowley>
I also didn't connect default values with "expected function arguments" on first reading.
<acowley>
I would say, "Add metadata about function arguments with default values." as the first sentence.
<acowley>
Although at that point it seems curious to not make it a Map String Any where the value of the map is the default value.
<Profpatsch>
acowley: Yes, these functions need better documentation for shure
<Profpatsch>
*sure
<Profpatsch>
The module is kind of a kitchen sink anyway.
iqubic has joined #nixos
johnw has quit [Ping timeout: 256 seconds]
<acowley>
I appreciate you doing this, btw.
<iqubic>
I'm having an issue.
<iqubic>
This USB that I just mounted is being mounted "Read-Only"
<iqubic>
How can I fix this and make it "write-able"?
<clever>
iqubic: what does blkid say about the device your mounting?
<Profpatsch>
acowley: Thanks
<iqubic>
nothing out of the ordinary.
<clever>
iqubic: can you paste it here?
<acowley>
samueldr: My loose understanding of the problem was that integrating applications with a Plasma desktop was one of the breaking points. If the app insists on the plugins it was built with, and someone updates their desktop bringing in new plugin versions, then the two won't coexist happily. If the app relies on the environment for the plugins, then updating the desktop updates everything.
<iqubic>
termbin.com/mm70
<clever>
iqubic: 404
<acowley>
samueldr: Does that sound correct?
<iqubic>
clever: Yeah sorry
<iqubic>
termbin.com/mm7o
<iqubic>
o and 0 look similar.
<samueldr>
acowley: is that your understanding of the current situation?
<iqubic>
I'm trying to mount /dev/sdb1
<samueldr>
acowley: if so, sounds about right
<clever>
iqubic: TYPE="iso9660"
<Profpatsch>
acowley: Maybe you can improve the docs for setFunctionArgs after I merge these changes? I haven’t used this yet.
<samueldr>
acowley: it's not only KDE, all Qt apps right now *depend* on the environment to work (18.03+)
<clever>
iqubic: that filesystem doesnt support write
<iqubic>
Oh. How do I reformat the disk?
<acowley>
samueldr: Yes, but I'm unsure. I encountered this problem doing things on darwin, and saw ttuegel say things to that effect as to why it was difficult for everyone else.
<clever>
iqubic: mkfs
<samueldr>
acowley: this can be easily faked by using nix-shell --pure (or if no Qt apps are installed in a profile, simply nix-shell) with a Qt app
<acowley>
samueldr: Right, that's the frustrating bit. But it seems that the alternative caused worse breakage for KDE users than those of us who just got a missing plugin message.
philippD has joined #nixos
<iqubic>
Thanks clever.
<samueldr>
acowley: I'll have to test using KDE apps *me weeps for the heat the compilation will cause*
<acowley>
Profpatsch: Sure
<acowley>
samueldr: It'd be ideal if Thomas could chime in. I know he's taken a couple runs at this.
<sophiag>
wow, so i looked up the bumblebee hack that worked for me and apparently it's just lying to bios that i'm running a decade old version of windows?
Jason_Grossman has quit [Remote host closed the connection]
<samueldr>
acowley: Thomas → ttuegel?
<acowley>
samueldr: Yes
<sophiag>
except most people who use this hack seem to use efi so i assume the issue is with both
<iqubic>
And this isn't working.
<iqubic>
k3b isn't accepting my USB.
<samueldr>
acowley: and it's also why I'm asking for comments, I'm not sure this fixes everything, but for every issues I personally faced or saw, it seems to be the right kind of approach
<clever>
iqubic: why are you using k3b on a usb stick?
tmaekawa has joined #nixos
<iqubic>
To create a LiveUSB that I can boot from.
<samueldr>
acowley: that is, explicitely prefixing all plugin paths *per app* in a non-environment way
<clever>
iqubic: you can do that with just dd, and it must not be mounted when doing so
<acowley>
samueldr: What you've done seems well thought out to me, too. But this issue with the desktop environment needing its plugins to be identical to those used by apps does sound like something that could be very awkward.
<iqubic>
clever: That didn't work for me.
<clever>
iqubic: what dd command did you previously use?
tmaekawa has quit [Client Quit]
Jason_Grossman has joined #nixos
<iqubic>
I think the issue wasn't the command.
<samueldr>
acowley: do you think there is an issue with more details about *that* problem? ideally I would like to repro the issue before playing with kde apps
<clever>
iqubic: did you use sdb1 or sdb previously?
<iqubic>
clever: I don't recall.
<iqubic>
What should I have used?
doyougnu has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #44124 → systems: Allow detection of powerpc and sparc → https://git.io/fNErf
<acowley>
I guess you'd want to test ttuegel's comment by using your patch, then running tribler directly from a result path, and installing it as a menu item in KDE and running it that way.
<symphorien>
domenkozar: would a line about nix-du in the tooling section qualify ?
cryptomonoid has joined #nixos
<domenkozar>
yes! :)
<{^_^}>
[nixos-artwork] @samueldr opened pull request #31 → Adds logo for nixos-weekly → https://git.io/fNuTo
<domenkozar>
symphorien: it would be really cool if it behaved like ncdu
camsbury has quit [Ping timeout: 240 seconds]
<symphorien>
what do you mean ?
<Akii>
Lisanna once I verify it's working I'd add another entry to the wiki and explain how to add a etag based on the derivative's version. Does that sound good?
<domenkozar>
symphorien: do you know how ncud works with ncurses?
<clever>
symphorien: one UI element for each gc root, showing the total size of its closure, how much it shares, and how much is unique to that root
<symphorien>
domenkozar: yes
<clever>
symphorien: and being able to open the root and see its full dep tree
<samueldr>
Akii: (I'm on the wiki team) this does sound good :)
<domenkozar>
yeah so you'd have a list of top-level roots
<domenkozar>
with size
<domenkozar>
and you can go deeper to inspect it
<clever>
symphorien: and maybe some options to delete a root and run a gc cycle
<symphorien>
I mostly interested in how you display shared size
<clever>
symphorien: nix-store --gc --print-roots
<symphorien>
+am
orivej has joined #nixos
<symphorien>
I thought a lot about the current visualisation
<clever>
symphorien: in ram, you get the -qR of every root, then you have a std::list on each storepath, denoting what roots point to it
<clever>
symphorien: any storepath with >1 root is shared
<clever>
give a total of all storepaths, all paths with 1 root, and all paths with >1 root
<clever>
and if your using the nix protocol, you can bulk-query for sizes with a single connection, which is far far faster then running this on each
<symphorien>
the problem that is for example your current system has 3 roots: /run/current-system /run/booted-system and the "regular" system-root
<symphorien>
clever: yes I use libnixstore.so
<clever>
add an option to exclude certain roots from the shared computation
<clever>
maybe always exclude current and booted system, since you typically have 3 duplicates of that
<clever>
oh, or group all roots that point to the same path
<logzet>
Nice, this "<insert complimenting adjective here>" has no switch to disable its check for root permissions, it is a binary and fakeroot does not work. How do I even package software like this?
reinzelmann has quit [Quit: Leaving]
<clever>
then booted, current, and generation are considered a single root
<{^_^}>
#42846 (by ambrop72, open): nixos/xserver: Implement configuration of NVIDIA Optimus via PRIME
<ambro718>
Multiple people have confirmed this makes their laptops graphics finally work right.
<logzet>
clever, samueldr: fakeroot seems to work outside the build, my chroot-and-some-symlinks-to-run-the-installer-there setup seems to break fakeroot
<Lisanna>
Akii *shrugs* derivations don't really have "versions" - that's just an arbitrary convention used in nixpkgs.
<Akii>
yup, today I learned :D
<ldlework>
johnw_: you should probably assign some ops to #org-mode if you're not going to hang out there
CcxWrk has quit [Excess Flood]
doyougnu has quit [Ping timeout: 255 seconds]
<Denommus>
hey
<Denommus>
is there any way to have a nixops step that performs some impure task?
<Akii>
Lisanna just now I get what you did with the file example.. clever
<Akii>
not meant to highlight you lol
<Denommus>
or should every impure task be performed manually?
logzet has quit [Ping timeout: 265 seconds]
logzet has joined #nixos
FRidh has quit [Quit: Konversation terminated!]
<Akii>
so yeah this is perfect
<Denommus>
in this specific case, what I need is to setup ACME, so I want to create /var/www/challenges and chown nginx:nginx if it doesn't already exist
<Denommus>
what is the usual approach for that?
<symphorien>
Denommus: impure things can be done either by a systemd service or an activationScript
<symphorien>
here your task can be achieved with systemd-tmpfiles
programmer4 has quit [Ping timeout: 260 seconds]
doyougnu has joined #nixos
tenten8401 has quit [Read error: No route to host]
Jason_Grossman has quit [Remote host closed the connection]
knupfer has quit [Ping timeout: 240 seconds]
lambdamu has joined #nixos
hakujin4 has joined #nixos
jD91mZM2 has quit [Quit: WeeChat 2.0]
hakujin3 has quit [Ping timeout: 240 seconds]
<clever>
Denommus: acme is already supported in nixos, just set enableACME=true; in the right nginx block
selfsymmetric-pa has joined #nixos
rihards has quit [Quit: rihards]
baconicsynergy has joined #nixos
<Denommus>
clever: yeah, I eventually noticed, thanks
TronDD-w has joined #nixos
johanot has quit [Ping timeout: 265 seconds]
<symphorien>
I have a derivation which does not depend on apache, if I add disallowedRequisites = [apacheHttpd]; the build fails at the end with error: path '/nix/store/dw5rb1znd1piv6a5ydwapwxrvyr63ff9-php-7.2.7' is not valid
<symphorien>
even with -vvv I don't get any further insight
<clever>
symphorien: can you gist that derivation?
<dtz[m]>
yeah it'd be neat if why-depends worked on failed paths (for that reason, honestly), as well as drv's :D
<Henson>
Hi everyone, I've got a question about naming and versions in nixpkgs. If I specify in a derivation that I want to use "glibc" which "nix-env -qaPA nixpkgs.glibc" tells me is is "glibc-2.27", will that ever change. Will "nixpkgs.glibc" eventually change to a newer version? I suspect not, as that would result in non-determinism in the Nix expressions used for building packages.
<clever>
Henson: nixpkgs.glibc can change every time you do nix-channel --update
Fare has joined #nixos
<Henson>
clever: then how do I specify in a derivation that I want to use a specific version of a package?
aanderse-laptop has joined #nixos
<clever>
Henson: why do you need to do that?
toby1851 has quit [Ping timeout: 264 seconds]
<ldlework>
some package licecap pls
<Henson>
clever: for building a package, I would like to have a known and fixed environment. If I build a derivation one day and it uses a certain set of derivations and work,s but then I do a "nix-channel --update" and build again and it uses a different set of derivations and doesn't work, then that seems to be contrary to the design of Nix.
<clever>
Henson: you can use a specific version of nixpkgs instead of <nixpkgs>
<Henson>
clever: at least from my beginner's perspective.
civodul has joined #nixos
<clever>
Henson: then nothing can ever update on its own
<tenten8401>
ahh yeah that was it, set it to 12 now
<clever>
you can override most nix.conf things with --option
<clever>
symphorien: added a comment
<infinisil>
clever: which ones can't be overridden via args?
<clever>
infinisil: if you are a trusted user (which root is), then i believe you can override everything
<infinisil>
Ah
programmer4 has quit [Ping timeout: 256 seconds]
<clever>
infinisil: you can also override things that dont make sense to change, and cause problems, --option system x86_64-linux
the has quit [Ping timeout: 244 seconds]
<clever>
this tricks a darwin machine into thinking it is a linux box, so nix tries to run an ELF file...
<infinisil>
Yeah, well you never know, maybe somebody actually needs this flag
<clever>
infinisil: ive used it to change the value of builtins.currentSystem with nix-instantiate :P
<clever>
but then IFD tries to run a mach-o binary on linux, and everything explodes
Neo-- has quit [Ping timeout: 256 seconds]
<infinisil>
Maybe there's a usecase to only eval stuff for different arches
<infinisil>
Oh right, IFD..
<infinisil>
Can't eval!
<clever>
i was trying to see if the docker image build process correctly forced linux when being ran on darwin
<sophiag>
is anyone here use opam2nix? a lot of ocaml packages aren't up to date in a way that has breaking changes and some popular ones aren't packages. i'll likely end up updating/writing these packages myself when i have the time (although in the broken case they're largely from jane st, so not sure how i feel about devoting work to that) but in the meantime am thinking of opam2nix as an option. i'm just finding it a bit confusing because
<sophiag>
examples aren't written from a nixos perspective and i've never had a need to use similar tools, e.g. cabal2nix
<sophiag>
wow, it's like irc turns off my sense of grammar
chessai has quit [Remote host closed the connection]
<symphorien>
I have used it a bit in the past
<symphorien>
I had to fix some things
<sophiag>
symphorien: i may have spoke too soon. i think i was just looking at the wrong file to pull it from github. presumably i can just copy that into my configuration.nix and then just list opam packages as in their example?
<das_j>
I'm currently building a package and a script hangs. I wanted to edit the script as it lays in the FS, so I took the binary from htop and tried to edit it. However, as it turns out, the file does not exist, neither does any parent directory. The only thing that exists is a lock inside the nix store with the name of the target derivation. Where can I find the file?
Barnabas[m] has joined #nixos
<clever>
das_j: look at /proc/<pid>/root with `ls -l`
patrl has joined #nixos
<das_j>
it's /
<_d0t>
I just got sound, but then it disappeared again
<das_j>
Oh okay
<das_j>
Yes, that makes sense, thank you!
<nek0>
hi folks. quick question: How do I force nix to use gnumake instead of cmake for compiling?
shabius has quit [Quit: Leaving]
<symphorien>
don't put cmake in nativeBuildInputs ?
<clever>
nek0: nix itself, or a derivation being built with nix?
kyren has quit [Ping timeout: 260 seconds]
<nek0>
clever, a derivation
Fare has quit [Ping timeout: 260 seconds]
<clever>
nek0: then do what symphorien said, dont put cmake in the inputs
selfsymmetric-pa has joined #nixos
cryptomonoid has joined #nixos
<nek0>
thanks!
wigust has joined #nixos
erasmas has quit [Quit: leaving]
dbmikus has quit [Ping timeout: 255 seconds]
sigmundv_ has joined #nixos
wigust- has quit [Ping timeout: 244 seconds]
selfsymmetric-pa has quit [Remote host closed the connection]
wchresta has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
<infinisil>
joebobjoe: You mean listing packages? Use the new `nix search` instead of `nix-env -qaP`
<joebobjoe>
infinisil: no I mean upgrading. nix-env --upgrade nixpkgs.\* is slow
* chreekat
just spent about 3 seconds trying to figure out what the ,-A emoticon represents
hakujin2 has quit [Ping timeout: 256 seconds]
<infinisil>
joebobjoe: Why do you expect upgrading everything would be fast?
<joebobjoe>
infinisil: there was nothing to upgrade
<clever>
--upgrade is just applying -i to every currently installed package
<clever>
and -i is already slow
<joebobjoe>
ok so my question is then, why is -i so slow
<clever>
-iA is faster, but there is no way to make --upgrade use -iA
<clever>
joebobjoe: the link above explains that
<joebobjoe>
there is no way to patch nix-env?
<infinisil>
You could of course just abandon the (imo) awful nix-env and have declarative packages, fast upgrades, and some more cool stuff
<joebobjoe>
I'm just using nix-env because that was in the tutorial
<joebobjoe>
are you telling me there is a better alternative?
<infinisil>
,nix-env-r
<{^_^}>
A simple way to install all your packages declaratively is to use `nix-env -ir default.nix` with the file of the form `with import <nixpkgs> {}; { inherit hello; }` to install hello. Note that with the -r switch this removes all your previously installed packages
<infinisil>
I guess it's still nix-env, but the good side of it :P
<infinisil>
This essentially makes a composite package you declare in a nix file, and installing it means to install all the packages it consists
<infinisil>
of
<joebobjoe>
so the everything is a package route
<infinisil>
,home-manager
<{^_^}>
home-manager allows you to manage your per-user configuration similarly to NixOS' configuration.nix: https://nixos.wiki/wiki/Home_Manager
<infinisil>
Or this ^^
<infinisil>
(Personally using home-manager)
<joebobjoe>
infinisil: so if those are the better ways to do things why aren't they the default
<infinisil>
home-manager is rather new
<joebobjoe>
so nix is slow for noobs, fast for experts
Fare has joined #nixos
<infinisil>
And nix-env -r is just a flag that may be a bit less used, because it essentially makes things declarative, which is not the norm with package managers. Everybody expects it to be imperative
<infinisil>
Hmmm but yeah, I think the speed of nix-env could be improved
<joebobjoe>
wow. ok I didn't realize nix was from early 2000s
<infinisil>
joebobjoe: home-manager and nix-env -r doesn't require "expert" level to use :)
dbmikus has joined #nixos
<joebobjoe>
right it but just doesn't make sense that nix-env --upgrade \* can't be fast
<joebobjoe>
how slow do you have to be to find all installed packages and check for upgrades
<infinisil>
Is that such big of a problem for you?
<infinisil>
Yeah Nix isn't perfect, but the advantages is has sure are superb
jrolfs has quit [Ping timeout: 248 seconds]
vcunat has quit [Ping timeout: 256 seconds]
<nek0>
another question: How do I query the location in the store of a dependency?
<infinisil>
nek0: nix-store -q --tree /nix/store/... would give you the tree of dependencies of a derivation, you mean something like that?
dbmikus has quit [Ping timeout: 260 seconds]
<infinisil>
Or nix-store -q --references prints the immediate dependencies
<nek0>
infinisil: not really. I'm trying to build a new derivation for gmic and would like to have the location of "openexr"
tzemanovic has joined #nixos
<nek0>
I'm trying to query it from inside the default.nix
<infinisil>
nek0: Ah, just "${pkgs.openexr}" in a string
<clever>
${openexr}
<nek0>
oh.
<chreekat>
joebobjoe: I think it's fair to say the nix UI needs work. There is a new utility, just called 'nix', that makes some things better
<clever>
pie_: this will apply an override to enable debug symbols
<sophiag>
symphorien: as expected, i ran into a little trouble trying to drop ocaml2nix directly into my configuration.nix. i have the let at the top, and `opam2nix = ..` in `nixpkgs.config = {..}` but that scoping is clearly wrong based on my call to `opam2nix.buildPackage`
<pie_>
clever, the thing is, this is something i didnt compile with nix, just plain ghc, do you think that could still help?
<clever>
pie_: i dont think ghc can put line-numbers that gdb can use into files
<pie_>
then again, im looking at the debug info in the file right in front of me
<sophiag>
more general question (demonstrating my ignorance of the nix language despite a couple years with it): does it make any sense to have stdenv.mkDerivation in configuration.nix?
<clever>
_d0t: only lines 19,20, and 27 are really needed, the rest is specific to this app
jackdk has joined #nixos
<clever>
and getting the JS for rawapp is a different matter, and will depend on the package
<_d0t>
interesting
<clever>
_d0t: originally, this nix expression was unpacking a darwin package, ripping the JS out of it, then running it with the nixpkgs electron
<clever>
but yarn2nix has since been added, and now the JS is "compiled" directly in nix
<tenten8401>
would anyone here know why I'd be getting a "not an ELF binary... don't know how to load it" error when using wine? I think it's related to the 64-bit wine
<tenten8401>
I have an override set to build a version of wine from a different github repo
<clever>
_d0t: so just make a derivation that unpacks this tar, copies some things to $out/share/whalebird, and then generates a bash script under $out/bin
<_d0t>
yup
<pie_>
clever, i think i figured out that something is wrong with my nix environment..., i can run glxgears outside it but not in it
<pie_>
ok it might just be broken on unstable
<_d0t>
I guess it's only app.asar and sounds that has to be copied
ericsagnes has quit [Ping timeout: 248 seconds]
alexteves has quit [Remote host closed the connection]
<tenten8401>
this is so dumb... now I'm getting a random "file not found" error inside of wine for a file that clearly exists
hakujin4 has quit [Ping timeout: 256 seconds]
Fare has quit [Ping timeout: 264 seconds]
hakujin4 has joined #nixos
Fare has joined #nixos
<tenten8401>
nope, back to the "Not an ELF binary" error