sbdchd has quit [Remote host closed the connection]
ris has quit [Ping timeout: 240 seconds]
sir_guy_carleton has quit [Quit: WeeChat 2.0]
sbdchd has joined #nixos
sir_guy_carleton has joined #nixos
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
<Orbstheorem>
Hi, I'm trying to package a toolchain that uses `gcc -print-file-name=...` to vefiry if the libs are there: (https://paste.gnugen.ch/raw/iyqE). However libreries specified in buildInputs do not appear in stdenv's gcc default search path. Am I missing something or is upstream doing something wrong?
aanderse-laptop has quit [Ping timeout: 265 seconds]
mroutis has left #nixos [#nixos]
<zgrep>
On NixOS, if I install something with nix-env, or I change my configuration.nix to add a package and do nixos-rebuild switch, $XDG_DATA_DIRS doesn't seem to change for my currently running WM/DE/etc. I was wondering if there was a recommended way to do things, or if I should just log out and log back in for changes to take effect.
<zgrep>
I guess for nix-env, I could add on ~/.nix-profile/share/applications to my $XDG_DATA_DIRS.
andymandias has quit [Ping timeout: 260 seconds]
ericsagnes has joined #nixos
sbdchd has quit [Remote host closed the connection]
worldofpeace has quit [Remote host closed the connection]
andymandias has joined #nixos
andreabedini has joined #nixos
wpcarro has joined #nixos
worldofpeace has joined #nixos
unshackled has quit [Ping timeout: 245 seconds]
tusj has joined #nixos
nuncanada2 has joined #nixos
d1rewolf_ has joined #nixos
sigmundv_ has quit [Ping timeout: 248 seconds]
nuncanada has quit [Ping timeout: 240 seconds]
wpcarro has quit [Ping timeout: 268 seconds]
wpcarro has joined #nixos
<clever>
zgrep: for xfce, there is `xfce4-panel --restart` which will restart the panels, which then re-scan the original $XDG_DATA_DIRS
<clever>
the issue, is that it doesnt notice changes to old paths
sam__ has joined #nixos
wpcarro has quit [Ping timeout: 256 seconds]
sbdchd has joined #nixos
<zgrep>
Looking at what I currently have for $XDG_DATA_DIRS, it'd need to load the new one for changes to take effect. :(
instantepiphany has joined #nixos
<zgrep>
(And, uh, I don't use xfce, but that's not as important.)
<clever>
your DE may have its own reload option
<instantepiphany>
Quick question - inside a nix-shell, what is the best way to see all available shared libraries? $LD_LIBRARY_PATH doesn't show everything I think should be there.
<samueldr>
the libraries are made available to compiled software through their RPATH AFAIUI
<samueldr>
if you used nix-shell -p some -p attributes, $buildInputs will contain those
<clever>
the gcc wrapper uses $NIX_LDFLAGS to inject -L flags
<clever>
and yeah, $buildInputs will be all inputs
n0qqe has joined #nixos
<clever>
$NIX_CFLAGS_COMPILE is used to inject -I flags
<instantepiphany>
$buildInputs lists a path that contains `/lib/pkgconfig/libcurl.pc` which is the library I want, but how do I know that was linked in RPATH correctly? I don't remember what tool to use to inspect the binary
<clever>
instantepiphany: $NIX_LDFLAGS also sets gcc flags to configure the rpath for binaries it produces
d1rewolf_ has quit [Ping timeout: 256 seconds]
<instantepiphany>
If this helps I have packaged sciter which is a UI library, and I am using a rust binding for that in a new project. When I build/run the rust binary, a modal window appears saying libcurl could not be found. pkgs.libcurl is in my nix expression, and I can see it in my $buildInputs but I don't really know where to go from here.
<instantepiphany>
I'll have a look clever.
noqqe has quit [Ping timeout: 268 seconds]
n0qqe is now known as noqqe
<instantepiphany>
Yep `-L/nix/store/8d06cnyqpl7x91danmfaa76rr2cb2asb-curl-7.61.0/lib` is inside `$NIX_LDFLAGS`
<instantepiphany>
I also have `pkgconfig` in my buildinputs for the nix expression.
<clever>
the buildInputs stuff only handles compile-time linkage
<clever>
if you load things at runtime with dlopen, then you need to do custom stuff
wpcarro has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
blonkhart has quit [Ping timeout: 260 seconds]
<instantepiphany>
It might be using dlopen. Has some legend written anything on figuring out what "custom stuff" to do with packaging in general? I realise you can't write a guide for every package or you may as well just write every package, but any generic articles? Happy to google if not!
<clever>
instantepiphany: you need to generate paths yourself, and either re-add them to RPATH in postFixup, or wrapProgram with LD_LIBRARY_PATH
<clever>
it accepts a list and will give you a : seperated string
<instantepiphany>
Yeah I was about so say, I am sure I have already tried using `LD_LIBRARY_PATH` inline in my terminal
<instantepiphany>
Didn't know about `lib.makeLibraryPath [ pkgname ]`, thanks!
<clever>
the default fixupPhase will run patchelf --shrink-rpath
wpcarro has quit [Ping timeout: 264 seconds]
<clever>
which looks over everything in the DT_NEEDED field, and strips rpath entries you dont need
<clever>
but its not aware of dlopen
<clever>
oh, patchelf also lets you inject things into DT_NEEDED
blonkhart has joined #nixos
<instantepiphany>
Just solved it - I was loading an old html file that loaded a JS script from the internet, which then attempted to run an XHR call, which caused it to complain about missing libcurl as the UI isn't supposed to be used that way.
<instantepiphany>
Which is good because nix/nixos is reliable, and I learned more about dynamic libraries. Thanks guys!
<clever>
gentoo has also helped me learn similar things due to bugs years ago
<instantepiphany>
Thats a great way to spin gentoo! haha
<clever>
due to its flexibility, i was able to have a system without curl installed at all (though nix is better, because curl can be installed yet not exist)
<clever>
and the flash plugin in firefox opens curl with dlopen
<clever>
but, flash doesnt check for null pointers, and just segfaults all of chrome when it fails :P
<instantepiphany>
Lovely!
<clever>
and funnily enough, the "install script" just ran curl to download a naked .so file, and copied it to the right dir
<clever>
i lacked curl, so i used wget, and then it broke :P
<instantepiphany>
thats flash for you. I still enjoy coming across posts complaining "this game needs this library, this program needs another version of and setting `LD_LIBRARY_PATH` each time is annoying"
<clever>
and forum posts showed people installing curl, re-running the script, and being confused as to why curl gives a different binary then wget
<instantepiphany>
nixos makes that so easy. so would nix I guess.
<instantepiphany>
That's non-deterministic builds for you!
<clever>
curl and wget gave identical binaries
<clever>
the act of installing curl is what fixed it :P
<clever>
but nobody thought of that, and i was the only one to debug it far enough to figure that out
nuncanada2 has quit [Quit: Leaving]
<instantepiphany>
Nice work! Some of us are definitely more driven than others haha
instantepiphany has quit [Remote host closed the connection]
<clever>
a few months ago, i was building the opengl in /run/opengl-drivers from a custom checkout, and adding print statements to track down a segfault :P
unshackled has joined #nixos
jperras has quit [Quit: WeeChat 2.2]
<andreabedini>
https://github.com/NixOS/nixpkgs/pull/43972 broke the aws-sam-cli which relies on aws-sam-translator == 1.6.0 (which the PR updates to 1.6.1). I contributed the initial derivation for aws-sam-clie, how should I fix this now?
<{^_^}>
#43972 (by FRidh, merged): Python packages: major updates
Izorkin has quit [Ping timeout: 260 seconds]
Anton-Latukha has quit [Ping timeout: 264 seconds]
<clever>
angerman: it will basically just jam together "with import <nixpkgs> { }; (pkgs.runCommandCC or pkgs.runCommand) \"shell\" { buildInputs = [ ", the args of -p (wrapped in parens) and then a }; }
<worldofpeace>
ugh i did all the inital deployments and not it can't connect over ssh for nixops :(
sir_guy_carleton has quit [Quit: WeeChat 2.0]
noefk_ has quit [Ping timeout: 264 seconds]
simukis has joined #nixos
trylist has joined #nixos
noefk has joined #nixos
wpcarro has joined #nixos
<elvishjerricco>
angerman: These days I prefer `nix run` to `nix-shell -p`. It's still considered experimental, so it may change in the future. But it's been a lot more convenient.
wpcarro has quit [Ping timeout: 244 seconds]
<worldofpeace>
clever: Could nixops not work when not using port 22 for ssh?
jb55 has joined #nixos
<iqubic>
Is it possible to have two different versions of the same package installed in NixOS at the same time?
<angerman>
elvishjerricco: I've just tried to pin nix-shell to specific nixpkgs version because it kept breaking on macOS. quite annoying.
worldofpeace has quit [Quit: worldofpeace]
<elvishjerricco>
angerman: That sounds annoying. Never had such problems myself.
<angerman>
guess what I really want is to be able to set NIXPKGS_REV=<github.com/nixos/nixpkgs commit> and have all tools just accept that.
<angerman>
(unless they explicitly override it)
<elvishjerricco>
iqubic: It is. If you install two versions of e.g. GHC via `nix-env`, it will think it's an update, and will overwrite the old one. But you can freely put multiple versions of GHC in `environment.systemPackages` and it won't erase any of them. If you want to do it with `nix-env`, you'd just use `buildEnv { name = "ghcs"; paths = [...ghcs...]; }` and install that expression instead
<clever>
worldofpeace: and line 83 sets up the ssh -i flag to load the private
<clever>
worldofpeace: i would keep your own key as an extra backdoor, either set via configuration.nix extraUsers.root.authroized keys, or directly in /root/.ssh/authorized
wpcarro has joined #nixos
<worldofpeace>
clever: Yeah that makes sense to keep it. but I don't the ssh flags are there because the output with `nixops ssh blah -v` it's looking in my .ssh. Maybe it not being on port 22 is breaking it?
<clever>
worldofpeace: ive not tried changing the port, but you could abuse ~/.ssh/config to change the default port of that hostname
freeman42x]NixOS has quit [Ping timeout: 240 seconds]
Guanin has joined #nixos
<worldofpeace>
clever: hmm, I'm using targetPort. There's `deployment.keys`. But I think I fried my brain silly over this so I'm not so clear what to do :P
andreabedini has joined #nixos
fragamus has joined #nixos
andreabedini has quit [Client Quit]
<worldofpeace>
clever: I can see not that it's connecting on the right port but it's just looking in .ssh and obviously it won't find what it's looking for there
rodarmor_ is now known as rodarmor
<clever>
worldofpeace: try `nixops ssh -v`
<worldofpeace>
clever: * looking .ssh for the keys
<worldofpeace>
clever: that's how I found that out :D
<clever>
worldofpeace: check the cli args to the ssh process in `ps aux`
iqubic has left #nixos [#nixos]
andreabedini has joined #nixos
<worldofpeace>
clever: as expected no flags
fresheyeball has joined #nixos
<fresheyeball>
how can I delete a specific drv from the nix-store?
<fresheyeball>
actually
<fresheyeball>
got it
<clever>
fresheyeball: nix-store --delete
<fresheyeball>
ack nope
<fresheyeball>
it says its alive
<clever>
nix-store --query --roots
<clever>
what roots its finds will determine the next step
<Shados>
I've been looking at the chromium expression to try and find out if I can override the src for flash without just pointing to a nixpkgs w/ that done. Unfortunately, it looks like it's nested away inside its own little let expressions instead of being passed in, so I'm guessing I'm SOL on that front?
<{^_^}>
#44205 (by manveru, open): golangci-lint: init at 1.9.2
mariatsji has joined #nixos
periklis has joined #nixos
lassulus has joined #nixos
hyper_ch2 has joined #nixos
`_ has quit [Quit: WeeChat 2.1]
smolboye has joined #nixos
mariatsji has quit [Remote host closed the connection]
Ariakenom has joined #nixos
<manveru>
i guess there's still no way to fetchGit and keeping the .git :|
<clever>
manveru: what about switching to pkgs.fetchgit ?
dbmikus has quit [Ping timeout: 256 seconds]
<manveru>
I wanted to use it via ./. so it honours the gitignore
smolboye has quit [Ping timeout: 245 seconds]
<manveru>
Guess it's back to filtering
<clever>
manveru: ah, why do you need to keep the .git?
<manveru>
I'd like to run a linter that checks for violations since the last commit
<clever>
ah
<manveru>
Trying to get Scylla to handle testing and linting as well as building
<Orbstheorem>
Anyone has an idea for my question? :) (~6h ago)
mariatsji has joined #nixos
<manveru>
Maybe ask again? ;)
koisell has joined #nixos
<Orbstheorem>
Hi, I'm trying to package a toolchain that uses `gcc -print-file-name=...` to vefiry if the libs are there: (https://paste.gnugen.ch/raw/iyqE). However libreries specified in buildInputs do not appear in stdenv's gcc default search path. Am I missing something or is upstream doing something wrong?
<Orbstheorem>
Well, the configure script uses a generic function to check all libs, I'd rather not modify every library check :c
<clever>
hyper_ch: unstable finally updated!
<clever>
iqubic: lowercase patch
<etu>
clever: Small though
* etu
is still hoping for unstable not small
<clever>
etu: that was also hung for some reason
<etu>
:)
<Orbstheorem>
clever: But thanks, I'll see if I can come up with something generic
tzemanovic has quit []
Tucky has joined #nixos
Ariakenom has quit [Quit: Leaving]
Ariakenom has joined #nixos
instantepiphany has joined #nixos
periklis has joined #nixos
<instantepiphany>
I am installing vim-racer, a vim plugin for racer, which is a completion/syntax engine for rust-lang. Part of the installation is adding a line to the vim config that points to the racer executable. I have racer listed as build input in a nix expression which I use with `nix-shell`. In my user overlays, I modify vim to use extra plugins, and thats
<instantepiphany>
where I need to specify the path to the racer binary. Am I doing this the wrong way? How do get the path for racer which may not even currently be in the nix-store?
igo95862 has quit [Remote host closed the connection]
igo95862 has joined #nixos
<manveru>
instantepiphany: i build my vim config with nix :)
<manveru>
don't use racer myself, but that'd also solve this issue
cdepillabout has joined #nixos
<instantepiphany>
If you mean your config is embedded in the expression mine is too - I am just still not sure how to pull that path from wherever. Wouldn't I have to specify racer as a dependency in my neovim override?
<instantepiphany>
I am trying to figure out how to do that now manveru.
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdepillabout has quit [Quit: Leaving]
andreabedini has joined #nixos
<Enzime>
gchristensen: is it possible to make OfBorg comment that it won't build a certain platform if it's building some other platforms
<elvishjerricco>
Anyone here familiar with typescript?
exadeci_ has joined #nixos
exadeci_ is now known as exadeci
smolboye has quit [Quit: WeeChat 2.0]
<{^_^}>
[nixpkgs] @eddyb opened pull request #44221 → Use the default for NIX_CXXSTDLIB_COMPILE even if defined (but empty). → https://git.io/fN2VU
<eddyb>
so that was a fun investigation :P
<eddyb>
(using clang through nix-shell broke again so someone suggested nix run, which works fine for C code, but can't find C++ headers)
<clever>
eddyb: what about nix-shell -E 'with import <nixpkgs> {}; clangStdenv.mkDerivation { name = "name"; }'
periklis has quit [Remote host closed the connection]
periklis has joined #nixos
<eddyb>
clever: that does make clang work
<eddyb>
clever: but I have a pretty complex setup and I threw away the nix-shell bits :(
<clever>
any time you want to use clang in nix, you need to use clangStdenv.mkDerivation instead of the normal stdenv
<eddyb>
maybe I should run nix-shell under nix run or something
<clever>
that deals with fixing all of the problems
<clever>
nix run shouldnt be used during development
<eddyb>
well
<eddyb>
this is complicated because I can't use a proper default.nix for it
<clever>
nix run is designed to skip all of the development based scripts that fix things
<clever>
why not?
Tiez has joined #nixos
<eddyb>
or hmm maaybe I could
<clever>
for most packages, you can use the same default.nix for both nix-shell and nix-build
<eddyb>
clever: I sort of need a combination, where I use nix run to get a session on the server to get some tools and then nix-shell to actually do some of the building
<eddyb>
clever: the thing is that this is not a Nix package or anything remotely resembling one
ersran9 has joined #nixos
ersran9 has quit [Changing host]
ersran9 has joined #nixos
<eddyb>
this is me hacking on a project with a convoluted setup using git snapshots to a NixOS server
<eddyb>
it's very convenient because I can keep all the dependencies in one (long and ugly) command in my text editor
<eddyb>
but it breaks from time to time
<clever>
any time you change your nixpkgs version, the path to all of those deps will change
<eddyb>
I've used default.nix files for smaller projects, especially those where OpenGL is involved
<clever>
and then everything breaks
<clever>
you need to use the env vars that nix-shell sets up to make sure it always works
periklis has quit [Ping timeout: 256 seconds]
<eddyb>
clever: I haven't had issues of that nature in ages, for me it's more "now I need this weird env var to unbreak things"
<clever>
and you should probably do a `make clean` any time nixpkgs updates
<eddyb>
or "this package got renamed/split/etc"
<eddyb>
clever: if it doesn't work with an inline nix-shell for clangStdenv I'll try to craft a default.nix and see how far that gets me
<eddyb>
for a while I had CC=clang CXX=clang++ and it seemed to work
<clever>
nix-shell will set those for you when using clangStdenv
* eddyb
is not sure what changed recently, but some libc includes were broken when using stdenv+clang+CC=clang
ThatDocsLady has joined #nixos
<eddyb>
clever: I don't plan on waiting for https://github.com/NixOS/nixpkgs/pull/44221 either way since I've been delayed a lot as-is, but I'll keep it open even if I find some solution that doesn't require it
<{^_^}>
#44221 (by eddyb, open): Use the default for NIX_CXXSTDLIB_COMPILE even if defined (but empty).
obadz has quit [Quit: WeeChat 2.1]
igo95862 has quit [Quit: igo95862]
__Sander__ has joined #nixos
obadz has joined #nixos
raynold has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @edolstra pushed to master « Revert "release/metrics: drop requiredSystemFeatures" »: https://git.io/fN2oY
__Sander__ has quit [Ping timeout: 245 seconds]
__Sander__ has joined #nixos
hph^ has quit [Read error: No route to host]
smolboye has joined #nixos
<ldlework>
lol "Actually, this convention causes trouble with packages like 3dmodels and 4Blocks, because these names are invalid identifiers in the Nix language. The issue of how to deal with these rare corner cases is currently unresolved.)"
<smolboye>
helo ok um
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
<smolboye>
my udev rule isnt working. can anyone help me out?
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
iqubic` has joined #nixos
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
hph^ has joined #nixos
iqubic has quit [Ping timeout: 260 seconds]
<ldlework>
On NixOS, for example, Nixpkgs does not exist in the top-level namespace by default. To figure out the proper attribute path, it’s easiest to query for the path of a well-known Nixpkgs package, i.e.: If your system responds like that (most NixOS installations will), then the attribute path to haskellPackages is nixos.haskellPackages. Thus, if you want to use nix-env without giving an explicit -f flag, then
<ldlework>
that’s the way to do it:
<tilpner>
smolboye - I have no idea if I can or want to help you, that depends on the issue you have. Generally it's better to ask your question instead of asking to ask the question.
<ldlework>
i will probably never understand nixpkgs completely
<smolboye>
im sorry i got busy
<smolboye>
i will post in a minute
i-am-the-slime has quit [Ping timeout: 264 seconds]
<ldlework>
the docs explain you can use nix-env -iA nixos.haskellPackages.cabal-install
<ldlework>
but don't explain how to accomplish the same with nix-shell
<ldlework>
doing nix-shell -p nixos.haskellPackages.cabal-install for example says "undefined variable nixos"
<manveru>
try it without the nixos. part?
<ldlework>
how am i supposed to reason about that
<ldlework>
its like git all over :)
<manveru>
:D
<the-kenny-w>
Is there something like `wrapProgram` as a derivation? I have a bunch of scripts I need to wrap for dependencies and don't want to write a full derivation for each.
lutzmor has joined #nixos
<manveru>
ldlework: not much related to `nix-env` is super easy to understand, unfortunately :(
kiloreux has quit [Ping timeout: 264 seconds]
<manveru>
i generally don't use it much anyway... but for some reason it seems to be the first thing shown to newbiews
<ldlework>
I feel like nix-env and nix-shell should have the same ui except for the parts they diverge or whatever
<ldlework>
i wonder if everytime you build ghc with different libraries if you accumulate multiple copies of unused ghc packages (which are huge)
<manveru>
shouldn't be the case, unless you build with a different ghc everytime
<manveru>
since ghc is an input into the library, the output hash of the library would differ
<ldlework>
everytime you do ghcWithPackages isn't it a completely new derivation?
<eddyb>
clever: welp, I'm back at this: /nix/store/lyd89mv72m8a0aw1a4idfimyi0rb2b13-glibc-2.27-dev/include/bits/stdlib.h:90:3: error: "Assumed value of MB_LEN_MAX wrong"
<ldlework>
so if you do it with package-foo first, then again with package-foo and package-bar don't you have two ghc builds in your store?
<eddyb>
clever: I got past that before by using nix run with no nix-shell (or at least I thought I did)
<manveru>
ldlework: well, you can try it, do you have a package-foo and package-bar to test with?
<ldlework>
the need to configure your system with package overrides just to specify libraries seems like not great ui as well
wpcarro has joined #nixos
<manveru>
true
<ldlework>
which means you better understand how packageOverrides work, which means you understand a lot about the module system and nixpkgs
<manveru>
not gonna defend haskell, since i don't even use it :P
<ldlework>
i'm in love with F#'s take on OCaml/ML, an absurdly beautiful language but it is so hard to run anywhere but windows
<ldlework>
and that toolchain, ugh
<manveru>
hmm
<ldlework>
F# on Erlang VM
<ldlework>
unghhh
<manveru>
it runs on BEAM?
<manveru>
since... when?
<ldlework>
manveru: no i wish
<manveru>
lol ok
<ldlework>
i'm denoting my ideal language ha
<manveru>
i like elixir too, just their dialyzer wasn't really good when i tried last time
<ldlework>
elixir seems cool but it also seems like a pathetic ml
<ldlework>
no currying
<ldlework>
|> pipes to first arg?
<ldlework>
wtf
<ldlework>
do end
<ldlework>
kill me
<ekleog>
my ideal language would be the guarantees of f*, the ease of writing of python, the redundancy-capability of erlang, and the low-levelness of rust
<manveru>
why do programming language names become worse and worse...
<ldlework>
cool, but it still requires F# toolchain
<eddyb>
clever: so this errors, but if I replace nix-shell with nix run it works: echo -e '#include <limits.h>\n#include <stdlib.h>' | nix-shell -E 'with import <nixpkgs> {}; clangStdenv.mkDerivation { name = "name"; }' --run 'clang -ffreestanding -x c -'
<ekleog>
tilpner: Oh? I thought it was coming tomorrow 😇
<manveru>
eddyb: does it work with --pure in nix-shell?
<eddyb>
manveru: nope
<ldlework>
ekleog: do you use F* with nixos?
<andi->
f* already has too many operators in their first example.. at least for my taste.. I still like C.
<ldlework>
ML's are all about those operators
<ekleog>
ldlework: not yet, that's somewhere on my todo-list
<ekleog>
haven't used F* with anything, btw, just something that looks just so cool
<andi->
ldlework: It always feels like some failing ASCII-Art-Artist ;)
<hyper_ch2>
question: on github I forked nixpkgs... now my fork is like many commits behind.... how can I update my github fork to latest nixpkgs one?
freeze_ has joined #nixos
<freeze_>
hi, I am playing with a local package and am able to add it direclty in my config using callPackage (or an overlay), but I would like to also add a custom/local module and can't figure how to achieve this (without cloning the nixpkgs repository and adding it in the tree)
sigmundv_ has joined #nixos
nckx has quit [Ping timeout: 265 seconds]
nckx has joined #nixos
iceychris has joined #nixos
sigmundv has quit [Disconnected by services]
sigmundv_ is now known as sigmundv
sigmundv_ has joined #nixos
simukis has joined #nixos
<ldlework>
The specified SDK version [2.1.4] from global.json [/home/ldlework/src/Fable/global.json] not found; install specified SDK version
<{^_^}>
[nixpkgs] @xeji pushed commit from @markuskowa to master « beegfs: 6.18 -> 7.0 (#44210) »: https://git.io/fN2Hy
Coyin has quit [Ping timeout: 248 seconds]
<etu>
srhb: My friends in Malmö work during the days and want to hang out in the evenings. I don't know about your schedules but I'm free during the days. And I'm not a big fan of beers so I can eat food and drink tea. And I don't come alone since it's vacation with my Wife:)
<{^_^}>
[nixpkgs] @Mic92 merged pull request #44088 → yed: version update to 3.18.1 → https://git.io/fNRiq
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @ua74e3dqka to master « yed: 3.17.2 -> 3.18.1 (#44088) »: https://git.io/fN2HQ
<srhb>
etu: I see. :) Well, I just thought it would be fun to meet a fellow Nixer. Might be a bit tricky this time around, as my schedule is usually 14-22 ish for work. Meh!
<etu>
srhb: May stay until Saturday even, we'll see. We don't have a fix plan of days yet. Don't know if it helps though:)
<{^_^}>
[nixpkgs] @xeji pushed commit from @dotlambda to master « python.pkgs.pytest-flake8: 1.0.1 -> 1.0.2 (#44215) »: https://git.io/fN272
<asymmetric>
hey, i'm trying to package a rofi plugin, that normally would end up in /usr/lib/rofi and be found by rofi
ericsagnes has joined #nixos
<asymmetric>
i thought i could use makeWrapper --add-args to invoke rofi with a custom plugin path, but the plugin itself is not an executable, so makeWrapper doesn't work, right?
rembo10 has joined #nixos
<srhb>
asymmetric: I don't see why not. The usual pattern is something like rofiWithPlugins [ ... ] where [ ... ] gets built into a symlink forest of all the plugins needed, and then the wrapper just adds --plugin-path that points at that forest.
<asymmetric>
srhb: is there an example i could look at?
<asymmetric>
srhb: do you mean that rofiWithPlugins would be an argument to the rofi expression? right now what i'm doing is creating a separate expression for the plugin, but maybe that's the wrong approach?
<srhb>
asymmetric: I don't know what the simplest example is, but both python.withPlugins, haskellPackages.ghcWithPackages, vim_configurable and terraform do something similar to this
<srhb>
asymmetric: I'd probably consider it a separate derivation entirely
<srhb>
asymmetric: But if you want to just keep it contained, then add a plugins argument to rofi itself, yeah.
<srhb>
asymmetric: And then the user of the derivation would use.. myRofiWithPlugins = rofi.overrideAttrs (oa: { plugins = [ ... ]; });
<Thra11>
In nixpkgs, is there a preferred style w.r.t. (!(a || b)) vs (!a && !b)?
tzemanovic has joined #nixos
asymmetric_ has joined #nixos
ng0 has quit [Quit: Alexa, when is the end of world?]
freeze_ has quit [Quit: Page closed]
asymmetric has quit [Ping timeout: 265 seconds]
ericsagnes has quit [Ping timeout: 264 seconds]
agander has joined #nixos
mmercier has joined #nixos
metalrain__ has joined #nixos
<asymmetric_>
srhb: i wonder if i could just use writeScriptBin and run `rofi -plugins-path` there, and somehow drop script that in $out
asymmetric_ is now known as asymmetric
Coyin has joined #nixos
orivej has quit [Ping timeout: 244 seconds]
<hyper_ch2>
how can I determine what packages are in a given channel and what version of the packages?
ericsagnes has joined #nixos
periklis has quit [Ping timeout: 265 seconds]
knupfer has quit [Ping timeout: 240 seconds]
<Ashy>
$ man nixos-container
<Ashy>
No manual entry for nixos-container
Tiez has quit [Quit: WeeChat 2.2]
<Ashy>
do i need to install an explicit docs package?
<gchristensen>
Enzime please open an isse on nixos/ofborg
<{^_^}>
[nixpkgs] @Profpatsch opened pull request #44228 → jq fix darwin build → https://git.io/fN2xt
UnAmazing has quit [Ping timeout: 265 seconds]
rardiol1 has joined #nixos
<hyper_ch2>
srhb: how can you find out if a given commit is already in a given channel (unstable small) or waht the current version of a packge is in a given channel?
<srhb>
hyper_ch2: For the latter: nix eval -f channel:nixos-18.03 hello.version
<srhb>
For the former it's a bit more tricky since backports change hash.
periklis has quit [Ping timeout: 256 seconds]
mmercier has quit [Read error: Connection reset by peer]
<hyper_ch2>
srhb: I will try
<srhb>
hello.version was a bad example, since it does not have a version attribute. hello.name will do it. :)
wpcarro has joined #nixos
<hyper_ch2>
srhb: do you also get 2.14.9? nix eval -f channel:nixos-unstable-small flexget.name
mmercier has joined #nixos
<hux>
srhb: working nicely with callHackage :) thanks
<srhb>
hyper_ch2: Yes.
<srhb>
hux: Great :)
<hyper_ch2>
yey... wasn't sure if it still listed from the local repo :)
<hyper_ch2>
time to update server then :)
<hyper_ch2>
I think I should make that a nix-expression
<srhb>
hyper_ch2: I'm not sure exactly which rules fire to decide if we haven't checked for channel updates recently. Probably the binary cache sqlite.
jdnavarro has quit [Remote host closed the connection]
<samueldr>
I'm only intersted when you'll be able to do $nextYear-03 and $nextYear-09 ;)
<hyper_ch2>
fixed it already :)
<hyper_ch2>
ah...
<hyper_ch2>
well, fixed xx-yy to xx.yy :)
<samueldr>
pretty sure it's impossible :D
<hyper_ch2>
give me a tardis and I'll make it possible - just for you
<hyper_ch2>
also, I just assumed - out of laziness - that it'll be 09 and 03 releases
<samueldr>
hyper_ch2: don't know if it could be useful to you curl https://nixos.org/channels/ | grep 'nixos-[^-]\+"' | sed -e 's/.*href="//' -e 's/".*//'
hux has quit [Quit: Page closed]
<samueldr>
nixos-[^-]\+ to ignore all -small
<samueldr>
you could | tail -n4
<samueldr>
(and not sure if there's a more appropriate API endpoint)
<hyper_ch2>
there's also the -small channel for 18.xx
<hyper_ch2>
samueldr: feel free to make a PR :)
jperras has joined #nixos
jdnavarro has joined #nixos
<nschoe>
Hi everyone, when I launch my Qt app from inside a nix-shell, I've got a warning on the console: "No XVisualInfo for format QSurfaceFormat(....)". And at the end, it talks about OpenGL. Does anyoen know how to fix this? Thanks!
<samueldr>
nschoe: a --pure nix-shell?
rardiol1 has quit [Ping timeout: 268 seconds]
rardiol1 has joined #nixos
Thra11 has quit [Ping timeout: 248 seconds]
ggp0647 has joined #nixos
knupfer has quit [Ping timeout: 268 seconds]
blankhart has joined #nixos
worldofpeace has quit [Quit: worldofpeace]
frem has joined #nixos
tusj has joined #nixos
worldofpeace has joined #nixos
joehh has quit [Ping timeout: 244 seconds]
tusj has quit [Ping timeout: 268 seconds]
derped has joined #nixos
Denommus has joined #nixos
<Denommus>
hey
nly has joined #nixos
<Denommus>
I'm looking for the documentation on how to use a fork of nixpkgs in my NixOS configuration, but I can't find it
<Enzime>
you can override nixpkgs in your configuration.nix
wpcarro has joined #nixos
<Denommus>
Enzime: thanks, I'll check
rardiol1 has quit [Quit: Leaving.]
wpcarro has quit [Remote host closed the connection]
<nly>
cool stuff hyper_ch2, does mguentner hang out on IRC? he has made a workable solution for ipfs-nixos.
<hyper_ch2>
don't know that nickname
<Denommus>
Enzime: it's still not clear to me if that could be used with nixops
<Enzime>
Denommus: I'm not familiar with NixOps so I'm not sure either
ersran9 has quit [Ping timeout: 260 seconds]
<Denommus>
maybe I should just override the specific package/service I need
<azazel>
sorry guys, nix newbie here... I'm trying to find out how to late-define the python version while learning how to do python packaging and I stumbled upon this "with self;" usage in the code example here: https://nixos.org/nixpkgs/manual/#handling-dependencies
<azazel>
anyone knows what this is? what is really referencing?
<azazel>
It doesn't seem part of an overlay, which is usually called with self: super:
<d1rewolf__>
anyone here running thelounge for irc?
<azazel>
thefloweringash[: thank for the link, I immagine that it is something a circurlar reference to the set itself... that i fail to understand how it's setup
dbmikus has joined #nixos
<biopandemic>
Does anyone know of an example of (somewhat sanely) recursively mapping an attrset of options for output to something like a file/json? Trying to export options to documentation. I know there isnt a sane way to do it with packages :( (unless I'm wrong??)
<biopandemic>
My attempts so far haven't worked as expected
<d1rewolf__>
any of you tried irccloud at all?
<manveru>
d1rewolf__: sure
dbmikus_ has joined #nixos
<azazel>
biopandemic: It's not clear to me what you mean
blankhart has quit [Read error: Connection reset by peer]
tusj has quit [Ping timeout: 265 seconds]
<d1rewolf__>
manveru, you're using irccloud? do you like it ok? trying to decide between it or self-hosting with thelounge, but I have so many other things to worry about than another self-hosted service ;)
<manveru>
d1rewolf__: "trying" it for the past 4 years or so (at least that's how long i've been paying for it)
blankhart has joined #nixos
<d1rewolf__>
manveru, ah, cool. if I used it, I'd have to use the pay-version as well, as I'd like to avoid timing out.
<biopandemic>
manveru: Ideally, I'd like to produce a JSON object with my custom options, their descriptions and perhaps their defaults.
<d1rewolf__>
any caveats/drawbacks you know of?
<thefloweringash[>
@azazel: there's a call to `fix' (extends overrides packages)` at the bottom of the python packages file, and a general explanation of the technique at http://r6.ca/blog/20140422T142911Z.html
wpcarro has joined #nixos
cryptomonoid has quit [Ping timeout: 245 seconds]
dbmikus has quit [Ping timeout: 244 seconds]
<worldofpeace>
ugh, no matter what I do nixops just won't use its ssh keypair for my machines. I've literally gone as far as taking the keys out of the .nixops file and putting them in .ssh/ because it only looks there for the keys.
<manveru>
d1rewolf__: well, you can't connect your own irc client to it really, so unless you better like their web interface
<d1rewolf__>
manveru, ok. I can probably handle that if it keeps me productive. thx :)
<manveru>
i love their android app :)
d1rewolf_ has joined #nixos
<manveru>
oh, also, searching logs isn't really a thing, you have to download the logs of the whole channel and search that
<d1rewolf_>
manveru: what...really? wow. that is sorta a killer feature
<manveru>
which might take a few minutes
<d1rewolf_>
so I had two wishes: 1. stay connected, and 2. easily search past messages :(
<manveru>
yeah, it's something i need once or twice a year, so not a big deal for me
<azazel>
thefloweringash[: oh, thanks so much for the reference!
<d1rewolf_>
manveru: if I stay connectedwith a pay account, can I search the scrollback easily? or would i have to download those logs as well?
<manveru>
but i can also imagine having a full-text index for every user might be expensive
<samueldr>
d1rewolf_: forget about quassel, it has the same issue, searches only through loaded scrollback
<d1rewolf_>
samueldr: :(
<manveru>
d1rewolf_: no, it unloads scrollback after some time
wpcarro has quit [Ping timeout: 256 seconds]
<samueldr>
(but in every other aspects I love quassel)
<manveru>
otherwise your browser would leak
<samueldr>
I semi-fixed my issues by providing public logs for the channels :)
<manveru>
you can scroll back manually as many days as you want, and search that, but well :P
<d1rewolf__>
manveru, oh well, better than nothing.
<d1rewolf__>
samueldr, once I have nixops down I might replace irccloud with a nixos+quassel server, but for now, I'd prefer to avoid another vm I have to manually manage
<d1rewolf__>
i'm looking forward to learning nixops more ;)
<manveru>
hehe
<manveru>
i decided on irccloud after accidentally deleting 10 years of irc logs or so ...
<d1rewolf__>
manveru, ouch...
agander_ has quit [Ping timeout: 265 seconds]
<manveru>
many are still hosted elsewhere, but still hurts
hakujin1 has joined #nixos
<d1rewolf__>
manveru, I hear you. I'd be lost without some of my old logs
<d1rewolf__>
well, at least, a little disoriented ;)
<d1rewolf__>
manveru, done...I'm a customer ;)
<d1rewolf__>
thanks
<biopandemic>
azazel: Oops, I tagged the wrong person (sorry manveru, I was rushing :P). Ideally, I'd like to produce a JSON object with my custom options, their descriptions and perhaps their defaults.
d1rewolf__ has quit [Quit: Leaving]
<biopandemic>
I was hoping somebody might have a more intelligent way to do it than what I've tried
<manveru>
biopandemic: well, it might help to see what you've tried :)
<manveru>
i've done a fair amount of JSON handling in Nix
<manveru>
but i gotta head out now
<azazel>
biopandemic: as i said in the query, using pkgs.lib.toJSON your_options doesn't work?
d1rewolf is now known as Guest49672
d1rewolf_ has quit []
d1rewolf_ has joined #nixos
<biopandemic>
azazel: didnt see the Q reply :( builtins.toJSON? I found it complained about a bunch of things including some values of `pkgs`
hyper_ch2 has quit [Quit: Page closed]
d1rewolf_ has quit [Client Quit]
d1rewolf_ has joined #nixos
Twey has joined #nixos
<azazel>
thefloweringash[: my brain grips reading that post :-)
<Twey>
I'm trying to build an application that uses GLFW. I have a Nix shell for it, but it doesn't match my driver version and I get segfaults when it starts up. On the other hand, it uses pkgconfig to find GLFW, so if I build it in my nix-env, it doesn't find GLFW. And if I build it in an impure shell with GLFW it links GLFW against the wrong libGL.
<Twey>
What do :(
<Yaniel>
do you have pkgsconfig in your nix-shell env
<Yaniel>
you also might need some xorg libs
<Yaniel>
can't remember which ones exactly
<Twey>
Yaniel: Yes
<Twey>
I have all the dependencies I need in the shell, but the shell has a pinned version of libGL which is apparently incompatible with mine
<Twey>
(from a pinned nixpkgs)
<Twey>
Yaniel: So I can build it in the shell, but then it crashes at runtime due to driver mismatch
worldofpeace has quit [Quit: worldofpeace]
<Twey>
Yaniel: And I can't build it outside the shell because nix-env and pkgconfig don't like each other
drbrule has joined #nixos
tusj has joined #nixos
wpcarro has joined #nixos
<d1rewolf_>
anyone managing vs code plugins with nix?
<drbrule>
I am attempting to get `nix build` to actually output all Haskell Spec tests.
<drbrule>
Anyone know how that might be feasible?
worldofpeace has joined #nixos
kiloreux has quit [Remote host closed the connection]
Ariakenom has quit [Ping timeout: 244 seconds]
tzemanovic has quit [Remote host closed the connection]
halfbit has joined #nixos
Twey has quit [Ping timeout: 248 seconds]
<coconnor>
morning all!
<drbrule>
coconnor: good morning!
drakonis has joined #nixos
Tobba_ has joined #nixos
Twey has joined #nixos
ersran9 has joined #nixos
ersran9 has quit [Changing host]
ersran9 has joined #nixos
<d1rewolf_>
coconnor: morning ;)
<coconnor>
so.. QT_PLUGIN_PATH...
Tobba has quit [Ping timeout: 264 seconds]
<coconnor>
;)
jrolfs has joined #nixos
<coconnor>
I have a fix for a bug. Tho now I'm curious about QT_PLUGIN_PATH and wanted to pick somebodies brain
<infinisil>
,qt
<{^_^}>
A common error, and known issue, is how the Qt integration with nixpkgs fails under some circumstances to provide proper plugin paths, leading to Qt failing to load Qt platform plugin "xcb". // See https://github.com/NixOS/nixpkgs/pull/44047 for a hopefully persistent fix. Meanwhile, install Qt apps from only one channel (and update accordingly)
<infinisil>
coconnor: samueldr is the person working on this ^^
<worldofpeace>
infinisil: You use nixops right with the none backend right?
<nly>
hey how does nix-env decide which path to pull? locally or by querying the cache?
<infinisil>
worldofpeace: yup
<samueldr>
coconnor: is your particular issue with a python-based qt app?
<worldofpeace>
infinisil: It just uses the key it automatically provisioned for your network correct? Because it's not for me :(
<samueldr>
(I have to investigate the behaviour of some of them which may exacerbate the issues)
<coconnor>
infinisil: excellent! I think that would cover this
phdoerfler has quit [Quit: Leaving.]
<coconnor>
haha awesome
<coconnor>
in my case it's kcm_pulseaudio. Looks like same cause tho
<infinisil>
worldofpeace: yeah it should
rihards has joined #nixos
<nly>
got it
<worldofpeace>
infinisil: Any ideas on what stupid thing a person(possibly me) could have done to break that?
<infinisil>
worldofpeace: nixops has a debug flag where it shows which modules it adds on its own (/tmp/...physical.nix or so), maybe check that. Or check the --export output
<coconnor>
samueldr: I'll give those changes a try. thanks!
<samueldr>
coconnor: I also have a hack for platform plugin issues
drakonis has quit [Remote host closed the connection]
<worldofpeace>
infinisil: I see public keys and private keys with `--export`. But for example I do `nixops ssh * -v` I can see it traversing .ssh for keys. And the process has no special flags when looking in like htop
drakonis has joined #nixos
__monty__ has quit [Quit: leaving]
<ejpcmac>
Hi! I can view system updates progress doing `nix build --no-link -f '<nixpkgs/nixos>' config.system.build.toplevel && nixos-rebuild switch`, but how could I do the same for `nix-env -u` or `home-manager switch`?
<infinisil>
worldofpeace: Hmm not sure..
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
orivej has joined #nixos
phreedom has quit [Ping timeout: 250 seconds]
phreedom has joined #nixos
<coconnor>
samueldr: cool! looking through those patches. Seems like a bulk of the nixpkgs code wrapping executables to set QT_PLUGIN_PATH would then become redundant.
<samueldr>
I hope it will be if the approach is deemed right
<samueldr>
it will need a bit more nudging for some things like dynamic languages using Qt (python)
<coconnor>
makes sense
<samueldr>
(right now the patch results in having no effect, positive or negative, when compared to the original behaviour)
wpcarro has quit [Ping timeout: 248 seconds]
<coconnor>
what is this? Proper refactoring? ;)
<coconnor>
haha that's great. I'll give them a try
__Sander__ has quit [Quit: Konversation terminated!]
worldofpeace has quit [Quit: worldofpeace]
<drbrule>
ok, so my solution is: `nix-shell --command "runhaskell Setup.hs configure --enable-tests; runhaskell Setup.hs build; runhaskell Setup.hs test"`
Tucky has quit [Remote host closed the connection]
wpcarro has joined #nixos
worldofpeace has joined #nixos
tusj has quit [Ping timeout: 244 seconds]
devx has quit [Quit: . .. ...]
devx has joined #nixos
<{^_^}>
[nixpkgs] @domenkozar pushed to release-18.03 « haskell: move yaml overrides to configuration-nix »: https://git.io/fNalw
Coyin has quit [Ping timeout: 260 seconds]
revskill has quit [Ping timeout: 276 seconds]
worldofpeace has quit [Remote host closed the connection]
iceychris has left #nixos [#nixos]
Twey has quit [Ping timeout: 240 seconds]
wpcarro has quit [Remote host closed the connection]
<borisbabic>
I want to add a python cli program to nixpkgs. It depends on some modules that aren't in nixpkgs. Should I make separate pull requests for each module and the cli program or should I put it all in one pull request?
asymmetric has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @peti pushed to master « hledger-lib: patch code to work around a regression in version 0.10 »: https://git.io/fNaav
<infinisil>
borisbabic: One PR, separate commits
alex`` has quit [Ping timeout: 256 seconds]
cryptomonoid has joined #nixos
<elvishjerricco>
cryptopsy: you probably just have to set substituters to nothing in nix.conf. I *think* that will cause everything to build from source.
<borisbabic>
infinisil: that seems sensible, thanks
<elvishjerricco>
Rebuilding everything you've already got is probably harder though
<elvishjerricco>
Actually that's probably pretty doable with a non NixOS VM.
<elvishjerricco>
Just install nix on some other Linux distro, set substituters to nothing, then build NixOS.
<elvishjerricco>
Oh you can even do it on your existing NixOS system with --store, now that I think of it
ris has joined #nixos
<elvishjerricco>
But overwriting existing paths that are in use by the current system with new builds may be hard
<{^_^}>
[nixpkgs] @xeji pushed commit from @etu to master « php71: 7.1.19 -> 7.1.20 (#44211) »: https://git.io/fNarq
orivej has quit [Ping timeout: 248 seconds]
<catern>
Denommus: I assume you added it to the buildInputs list? try using nix-instantiate to make sure it shows up it buildInputs, maybe
<catern>
cryptopsy: what do you mean by "compile from the start"? what do you want to compile, the Nix tool itself? and why?
<cryptopsy>
i want to compile my packages
<cryptopsy>
instead of grabbing precompiled ones
<cocreature>
Denommus: at runtime? buildInputs won’t help here. that’s for build dependencies
<catern>
cryptopsy: yes, that is quite straightforward. with an existing Nix installation, you can just set the "binary-caches" setting in nix.conf, to nothing, so that Nix won't use pre-compiled binaries
<cryptopsy>
i dont have an existing installation
<{^_^}>
[nixpkgs] @jfrankenau opened pull request #44238 → nixos/samba: allow dummy conf file to be overriden → https://git.io/fNar0
<catern>
cryptopsy: you can get a Nix installation using the script on nixos.org, or by just compiling Nix itself from source
<catern>
compiling Nix itself from source is like compiling anything else from source, just clone it and run the build system
<smolboye>
what is the "right way" to install python on nixos
tmaekawa has joined #nixos
halfbit has joined #nixos
<goibhniu>
smolboye: you have a few options, so it depends on what you want to use it for
<goibhniu>
smolboye: for development, you probably want to use nix-shell
tstat has joined #nixos
<smolboye>
i really dont get it
reinzelmann has quit [Quit: Leaving]
<d1rewolf_>
smolboye: use the Python section in the nixpkgs manual
<smolboye>
ive seen the wiki, im unsure what i want
<smolboye>
yeah im on there
<d1rewolf_>
that's the definitive source
<d1rewolf_>
no, don't use the wiki
<d1rewolf_>
us the python section of the nixpkgs manual
<smolboye>
yes thats where i am
<goibhniu>
smolboye: what do you want to use it for?
<d1rewolf_>
the wiki is confusing and incomplete
<smolboye>
it has multiple options
<smolboye>
i want it for writing some python scripts
<goibhniu>
iqubic: if your intention is to run it as your main OS, you should probably test it on your hardware. I don't think it supports unfree blobs at all, so that might be a blocker (or a feature)
<iqubic>
Well, yes. But I feel that switching will be a pain.
<{^_^}>
[nixpkgs] @Profpatsch pushed commit from @LnL7 to master « jq: fix tests on darwin »: https://git.io/fNaKj
<d1rewolf_>
iqubic: the main drawbacks of Guix as I understand them: no non-free software...even the kernel is a forked very vanilla linux kernel, no systemd, everything written in scheme
wpcarro has quit [Remote host closed the connection]
selfsymmetric-pa has quit [Remote host closed the connection]
wpcarro has joined #nixos
Dedalo has joined #nixos
david3 has joined #nixos
david3 is now known as DeltaEvo
wpcarro has quit [Ping timeout: 260 seconds]
<Denommus>
iqubic: infinisil: I had plenty of work in order for the deployment to be successful, now, even that it is successful, I'm getting connection refused
<Denommus>
I have no idea why
<Denommus>
but then, Hydra is also hard to setup
cryptomonoid has joined #nixos
keith_analog has joined #nixos
<{^_^}>
[nixpkgs] @xplat opened pull request #44242 → stdenv/build-support: support .tbz and .txz tarballs → https://git.io/fNaX1
<Denommus>
I'm getting an JSON parsing error because /var/lib/nixos/uid-map is empty and it shouldn't be
<keith_analog>
Hi All, I'm curious to know if there's a command or nix package that can easily manage adding a new user in a multi user nix package manager installation. Thanks!
<DeltaEvo>
Hello, is there a channel for Nixos on Arm (armv7) ?
<DeltaEvo>
(Or should i ask my questions here ?)
lutzmor_ has joined #nixos
<srhb>
DeltaEvo: There's nixos-aarch64 (which I don't know whether is the same as armv7?) but your question is probably fine here as well
smolboye has quit [Quit: WeeChat 2.1]
smolboye has joined #nixos
smolboye has quit [Client Quit]
mizu_no__ has quit [Quit: Computer has gone to sleep.]
smolboye has joined #nixos
d1rewolf_ is now known as d1rewolf
<DeltaEvo>
srhb: No it's not but, I will ask it here then, thanks
<lutzmor_>
evining :) is there someone how use 2bwm with nixos and can enlight me how to get my own config.h in there :D. Tried nearly everything in my configuration.nix but totaly lost (quite new to nixos)
<{^_^}>
[nixpkgs] @d3rped opened pull request #44243 → mpv: add lcms2 support → https://git.io/fNa1B
smolboye has quit [Client Quit]
smolboye has joined #nixos
smolboye has quit [Client Quit]
Neo-- has quit [Ping timeout: 256 seconds]
smolboye has joined #nixos
__monty__ has joined #nixos
<{^_^}>
[nixpkgs] @Ericson2314 pushed 151 commits to staging: https://git.io/fNaMe
cryptomonoid has quit [Ping timeout: 244 seconds]
ersran9 has quit [Ping timeout: 260 seconds]
smolboye has quit [Quit: WeeChat 1.6]
<DeltaEvo>
So, i'm trying to use Nixos on my Odroid HC1 (It's like an XU4), after debugging uboot, the kernel, now it's the turn of systemd to crash, well it's not systemd directly, it's when i load udev rules, it make the whole system crash and so uboot reboot it, I activated debug on systemd and systemd-udevd but i don't see nothing usefull on the debug logs (I think my serial conection don't show the interesting part
<DeltaEvo>
because logs are truncated and sometime droped). I'm using the nixos install armv7l image by Dezgeg. Here are the logs https://hastebin.com/duyamakume.makefile (I think there's a lot missing).
<Drakonis[m]>
ok what is the point of compiling all of your packages?
phdoerfler has quit [Quit: Leaving.]
phdoerfler has joined #nixos
hakujin1 has quit [Ping timeout: 248 seconds]
<infinisil>
Drakonis[m]: Huh?
<infinisil>
Not sure why anybody would want to do that
<Drakonis[m]>
someone earlier asked about it
<Drakonis[m]>
about a couple hours ago, someone asked about compiling all of their packages
smolboye has joined #nixos
klntsky has quit [Ping timeout: 250 seconds]
phdoerfler has quit [Quit: Leaving.]
smolboye has quit [Client Quit]
smolboye has joined #nixos
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #44242 → stdenv/build-support: support .tbz and .txz tarballs → https://git.io/fNaX1
<{^_^}>
[nixpkgs] @Ericson2314 pushed 2 commits to staging: https://git.io/fNayI
koisell_ has joined #nixos
<takeda>
How can I build x86_64-linux binaries on OS X? Basically I'm trying to generate docker image using dockerTools, but a proper docker image should contain Linux executables, how can I do cross compiling. I looked at nixpkgs manual but I'm still confused.
<kalbasit>
samueldr: do you know of any derivation that embeds a node app within another derivation? The case I'm looking for is a Go derivation that embeds a node app
<samueldr>
sorry kalbasit, no idea
wpcarro has quit [Remote host closed the connection]
<samueldr>
maybe you can make a derivation for the node app, and use it in another derivation for the go app?
<samueldr>
(they could even share the src through import?)
<samueldr>
(or a passthru)
<kalbasit>
samueldr: I'm probably going to build the node derivation in a `let` statement
wpcarro has joined #nixos
<samueldr>
I would bet that's the sane way to do it; have it handled as if it was its own thing
cryptopsy has quit [Quit: WeeChat 2.1]
<samueldr>
it just happens to be shipped alongside something else
klntsky has joined #nixos
<kalbasit>
yea I've seen examples but none that builds nodePackage so I have to look more
<kalbasit>
samueldr: I don't really want it to be installed separately because it ends up getting embedded in the binary anyway
jrolfs_ has joined #nixos
jrolfs has quit [Ping timeout: 268 seconds]
phdoerfler has joined #nixos
wpcarro has quit [Ping timeout: 256 seconds]
smolboye has quit [Quit: WeeChat 2.2]
<MasseR>
I'm trying to copy a closure to a machine that has a multi-user nix set up (not nixos). nix-copy-closure complains about the store not being writable, what should I change?
smolboye has joined #nixos
<sphalerite>
MasseR: since the destination machine doesn't do any authentication of the stuff that's being copied over, you need to be a trusted-user to copy stuff in
<sphalerite>
MasseR: note that trusted-user access is mostly equivalent to root
keith_analog has quit [Quit: Konversation terminated!]
smolboye has quit [Client Quit]
smolboye has joined #nixos
<MasseR>
So somehow getting 'NIX_REMOTE=daemon' wouldn't help?
drakonis has joined #nixos
infinisil has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
infinisil has joined #nixos
<clever>
MasseR: and NIX_REMOTE has to be set on the remote end, possibly via ~/.bashrc
worldofpeace has quit [Ping timeout: 240 seconds]
jrolfs has joined #nixos
<smolboye>
ok so i set my pi up to run weechat
<smolboye>
this is nice
wpcarro has joined #nixos
jrolfs_ has quit [Ping timeout: 264 seconds]
wpcarro has quit [Remote host closed the connection]
logzet has quit [Remote host closed the connection]
<sphalerite>
MasseR: no, NIX_REMOTE=daemon wouldn't help — with 2.0 NIX_REMOTE doesn't need to be set anyway and it will use the daemon as appropriate anyway
<kalbasit>
gchristensen: weird, it keeps coming on/off on my side, probably a CF issue
<ldlework>
is there a place in the docs that explain all the parts that can be in ~/.config/nixpkgs ?
jluttine has quit [Ping timeout: 264 seconds]
jmeredith has quit [Ping timeout: 256 seconds]
<ldlework>
nm i'll grep
jmeredith has joined #nixos
<sphalerite>
ldlework: there is not. \o/
<ldlework>
hi sphalerite
<{^_^}>
[nixpkgs] @kalbasit opened pull request #44244 → reportlab: remove test files that require network for the tests to pass → https://git.io/fNadF
<sphalerite>
(completely random: did I ever tell you I misread your name as "idlework" with a capital I for a long long time after first encountering you?)
<Denommus>
error: string '~/.gitlab/databasePassword' doesn't represent an absolute path, at /home/<user>/Projetos/gitlab-nixops/gitlab.nix:41:26
<Denommus>
that's what I get when I try to use ~
<clever>
Denommus: what did you put in the nix file?
tzemanovic has quit [Ping timeout: 248 seconds]
<infinisil>
You can't use "~/foo/bar", you need ~/foo/bar
<infinisil>
> { a = "~/."; b = ~/.; }
<{^_^}>
{ a = "~/."; b = /var/lib/nixbot/.; }
jluttine has joined #nixos
<clementd>
hi, I'm looking for a step-by-step explanation of how to package something for nixos / how to test it locally. I've read the nix pills articles a few times, but I can't follow along with nix-repl, I get permissions errors when I try to run it
<Denommus>
infinisil: oh
<infinisil>
,nix-repl clementd
<{^_^}>
clementd: To use nix-repl with Nix 2.0, either use the new `nix repl` or `NIX_REMOTE=daemon nix-repl`. Just using `nix-repl` gives an error because it is linked to Nix 1.x which requires NIX-REMOTE to be set correctly, while Nix 2.0 doesn't (and unfortunately it wasn't kept for backwards compatibility)
<clementd>
oh.
<clementd>
will try then
<clementd>
thanks
<Denommus>
infinisil: thanks!
<clementd>
I'm having a real hard time to go past basic nix-shell and nix-env use. I see there's a lot of material, but I just don't know where / how to start
<infinisil>
clementd: Anything specific?
<clementd>
infinisil: that's the issue, I don't really know what I want / where to go next
<infinisil>
Well I don't even know what you want to do/what you have tried, can't help much without knowing that :)
<clementd>
yeah, that's the issue
revskill_ has joined #nixos
<clementd>
it's a chicken-and-egg problem: I don't know nix enough to know where to go next
knupfer has joined #nixos
<clementd>
and by not knowing what to do, i have a hard time learning new things
<infinisil>
Huh, you must have an objective to struggle with it, because if you weren't having one you wouldn't be struggling with it
<clementd>
the two concrete use cases I'm looking for right now:
wpcarro has quit [Remote host closed the connection]
revskill has quit [Ping timeout: 265 seconds]
<clementd>
one of the packages I use is a bit out of date, I'd like to try to override the package and use a more recent version
wpcarro has joined #nixos
<infinisil>
Usually you'd override it like this: `hello.overrideAttrs (drv: { src = fetchurl { url = "..."; sha256 = "..."; }; })` to get a new version, fetched from that url.
<clementd>
another thing I'd like to do is to not have to list all the packages I use in /etc/configuration.nix (I'd like them to be user-only)
<clementd>
infinisil: what I lack is more concrete context: in which file to put it, which commands to run
cryptomonoid has quit [Ping timeout: 248 seconds]
<infinisil>
How are you installing packages right now?
<clementd>
infinisil: core packages are listed in /etc/configuration.nix
<clementd>
I'd like to put the list of user-only packages under version control
<infinisil>
You can use such an override like this in configuration.nix: `environment.systemPackages = [ (hello.overrideAttrs (drv: { ... })) ];`
hakujin2 has joined #nixos
<clementd>
infinisil: and for user-only config?
wpcarro has quit [Ping timeout: 264 seconds]
<infinisil>
Oh, an overlay might be better, will work for both configuration.nix and nix-env
wpcarro has joined #nixos
<infinisil>
,overlay clementd
<{^_^}>
clementd: 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
<symphorien>
clementd: use home manager for example
<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>
,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
<clementd>
overlays look like a good solution, again, I kind of don't know where to start.
<infinisil>
clementd: Read the linked manual section
hakujin1 has quit [Ping timeout: 265 seconds]
<ldlework>
clementd: i'm trying to figure out overlays atm too :)
<infinisil>
clementd: I guess it's a bit too pragmatic, you really just need to put a file with `self: super: { kakoune = super.kakoune.overrideAttrs (drv: { src = super.fetchFromGitHub { ... }; }); }` in ~/.config/nixpkgs/overlays/kakoune.nix
<drakonis>
what happened that home-manager wasn't updated in a while?
<infinisil>
drakonis: It's not meant to be used from nixpkgs
<drakonis>
i don't get it
<drakonis>
that doesn't quite answer the question
<ldlework>
lol
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #44089 → nixos/release: use real paths of netboot files → https://git.io/fNRP3
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fNaAF
<infinisil>
It has a fast development cycle, it would be inconvenient to always make PR's for changes
<drakonis>
what no
<drakonis>
the last update on the repo was months ago
<infinisil>
Oh hah, I guess it slowed down a bit
<infinisil>
That was the original reasoning
<drakonis>
february 16
<ldlework>
I mean, I'm not sure what work needs to be done to home-manager
<ldlework>
The work needed is to integrate it into nixos as a first-class thing
<infinisil>
drakonis: Most people just use it from the repo, not nixpkgs
<ldlework>
drakonis: good point. do users need to write nix? can't we generate nix?
<infinisil>
Nix is required if you need anything non-trivial..
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil>
Any GUI would constrain you in a way (unless you create a full-blown AST editor)
<drakonis>
its not that simple to "generate" nix
<ldlework>
infinisil: most people just want to install packages and use their computer
<clever>
clementd: environment.systemPackages doesnt work in an overlay file
<drakonis>
have the easy frontend for the common folks and retain the complex implementation
<drakonis>
the advanced tooling
<drakonis>
whatever you can call it.
<clementd>
clever: okay, can I declare a list of pkgs to be added?
<clever>
clementd: you can make a set of packages to be added
<drakonis>
its a small price to pay
<clementd>
the nixos doc on overlays only talks about overriding packages
<infinisil>
ldlework: Hmm yeah. Maybe a simple GUI would work. and when they need more power they can switch to manual editing mode
<clementd>
clever: cool
<ldlework>
drakonis: right. it kinda feels like nix ecosystem is so proud of the accomplishments of its design, that it exports the implementation straight to the end user
<drakonis>
the last time i asked about it, i was running nixpkgs as my default channel
<clementd>
clever: thanks!
<drakonis>
the answer i got was that it is supposed to mean that nixpkgs isn't supposed to be the default channel?
<clementd>
now I'll try overriding packages
revskill_ has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #44221 → Use the default for NIX_CXXSTDLIB_COMPILE even if defined (but empty). → https://git.io/fN2VU
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fNapc
<drakonis>
clever, my current setup is nixos-unstable-small on global
<clever>
drakonis: the warning is less about what your channels are called, and more that your non-root user has never ran nix-channel, so it lacks a channels directory
<drakonis>
oh hmm
<clever>
hence, running nix-channel --update
<clever>
even if you have zero channels on the user
<drakonis>
i ran it btw
<drakonis>
let's try this again
kyren_ has joined #nixos
<{^_^}>
[nixpkgs] @dotlambda merged pull request #44244 → pythonPackages.reportlab: remove test files that require network for the tests to pass → https://git.io/fNadF
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @kalbasit to master « pythonPackages.reportlab: remove test files that require network for the tests to pass (#44244) »: https://git.io/fNapE
<ldlework>
clever: now I get error: attempt to call something which is not a function but a set, at /nix/store/g26fs0jbfbvbcghr3vawi7ynpl5h3gaw-nixos-18.03.132405.ee80654b526/nixos/pkgs/stdenv/generic/make-derivation.nix:251:55
drakonis has quit [Remote host closed the connection]
<clever>
ldlework: .overrideAttrs expects a function
<clever>
(oldAttrs: { ... })
vcunat has quit [Ping timeout: 256 seconds]
<ldlework>
hmm, it seems to have still installed 2.0.3 strange
<clever>
that override wont change the name
<clever>
so you will have a new version, with the old name
<clever>
add name = "something"; to your override
<ldlework>
hmm, that indeed changed the name but i still suspect it is installing an older version