<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JJgUj
<disasm>
now I have an installer image that can boot from anywhere with an internet connection that I can log into remotely but no one can login locally :)
<disasm>
yay for wireguard and ssh :)
<DigitalKiwi>
ohhi clever what's the way to override a module (which is i think what mattlevan needs to do for gnome if they want to use nixos-20.03 for everything except that which they want from nixos-unstable)
<DigitalKiwi>
oh found this from the last time i asked
<DigitalKiwi>
07:44 <srhb> DigitalKiwi: If you literally mean module, mixing them might not be possible, but the way to do it is via disabledModules and imports.
<DigitalKiwi>
07:44 <srhb> DigitalKiwi: That is, you can disable the one from the channel your NixOS install uses and then manually import another.
nij has joined #nixos
<clever>
disasm: ive done the same before with toxvpn
* DigitalKiwi
has too
<DigitalKiwi>
;D
<nij>
Hello.. I'm still struggling with how to compile programs in nixos manually with nix derivation.
<DigitalKiwi>
clever++
<{^_^}>
clever's karma got increased to like 488, I think
<nij>
I decided to start understanding from scratch, so I write a plain hello.c.
<nij>
I realized it works even with `gcc hello.c -o hello`.. even while <stdio.h> is included.
<nij>
Why would `gcc` know where to find <stdio.h> in nixOS?
<clever>
nij: the stdenv sets up -I flags for you
<aaronjanse>
My understanding is that the location of <stdio.h> is hard-coded into the gcc compiler when it's built
<clever>
for everything in the buildInputs, plus glibc
<nij>
aaronjanse: That's my point. Isn't <stdio.h> in /nix/store by deafult in nixOS?
<aaronjanse>
Correct
<nij>
aaronjanse: If that's the case, `gcc` won't know where to look at?
<aaronjanse>
I don't think you ever need `-l` for standard library. But yeah, Nix adds it for stuff like `zlib`
<clever>
nij: run `gcc -v` and youll see what its doing
<aaronjanse>
One sec, I'll send you the derivation
<{^_^}>
nix#3799 (by jtojnar, 2 weeks ago, open): hash '' has wrong length for hash type 'md5'
jonringer has joined #nixos
<DigitalKiwi>
i'm not even sure they fix the ones on the build box since i can't update the build box and i think it's nix-daemon on the server side...
<nij>
aaronjanse: I entered the link. What is that supposed to show me?
rjm has joined #nixos
<aaronjanse>
It shows that libc paths are hardcoded into the gcc binary
<DigitalKiwi>
well and i couldn't do a nixos-rebuild with a version of nixpkgs that used an updated nixUnstable :/
<aaronjanse>
nij: Note that `gcc-wrapped` has a hard path to `gcc`, which has hard paths to your libc
<nij>
aaronjanse: I see. So this `gcc` is really different from the `gcc` I have, say, on archlinux.
<aaronjanse>
How so?
<nij>
It is customized to some extent for nixos, and knows the location of some basic libs.
rjmill has quit [Ping timeout: 244 seconds]
<aaronjanse>
Ah, correct
<nij>
aaronjanse: :D :D Thanks!
<aaronjanse>
nij: no problem! :-)
jonringer has quit [Quit: Leaving]
jonringer has joined #nixos
<nij>
aaronjanse: If the problem gets more involved, where not all libs are hardcoded into gcc, I suppose I will need to write derivation.
<nij>
aaronjanse: I didn't have x11 nor hb in the beginning, but `nix-build` complained about it. So I added `x11`. It complained about missing `hb.h`, so I include `hb`. But then it says it's not right.
<nij>
OH NO :O I did something wrong? leeme check what pastebin is.
<DigitalKiwi>
gist.github.com is ok i use that or dpaste.org usually
<aaronjanse>
^Agreed with DigitalKiwi
incognito9999 has quit [Quit: ZNC 1.7.2+deb3~bpo9+1 - https://znc.in]
incognito9999 has joined #nixos
<aaronjanse>
nij: try removing `configurePhase` and `buildPhase`. Nix has really good defaults for those based on your buildInputs etc
<DigitalKiwi>
or i put it on my server in /files/ ;D
<nij>
DigitalKiwi: .. I'm afraid I did not get it :S :D I'll use dpaste.org in the future
<aaronjanse>
No worries nij
<aaronjanse>
Ty
<nij>
DigitalKiwi: (By the way, why not using pastebin, but dpaste?)
<DigitalKiwi>
nij: Sigyn is a freenode thing (and others exist) that can ban/k-line (some channels have bots that will kick/ban) if you paste too much
<nij>
DigitalKiwi: Ah... I see :O
<nij>
Thanks for that info!
<{^_^}>
[nix] @illiusdope opened pull request #3879 → Prevent nix-build from accepting nix-shell flags → https://git.io/JJgTo
<DigitalKiwi>
from #archlinux Pastebin.com is swamped with advertisements and random captchas. Malware found on pastebin.com has resulted in it being blocked for some users. It injects CRLF line-endings. Please, use something else. Use something sane like https://gist.github.comhttps://bpaste.nethttp://ix.iohttps://paste.rs
<DigitalKiwi>
i like dpaste.org and the pastebin client i'm writing supports it :)
<DigitalKiwi>
i used to use wgetpaste and it didn't support a service i wanted and was hard to add so i wrote my own. there was one that was lua using native sockets (luapaste, i don't think it's public), one that was curl based, but had a lot nicer option system, and another that was lua sockets but had the niceness of curlpaste (Uppity), and then this haskell one. ompluad was based on luapaste and was a client for the defunct omploader (and was a lua version
<DigitalKiwi>
of ompload, thus the name)
<DigitalKiwi>
Uppity usurped curlpaste and apc will replace Uppity
<nij>
aaronjanse: error: cannot auto-call a function that has an argument without a default value ('stdenv')
<aaronjanse>
nij: Oh. I assume you're doing `nix-build default.nix`. The problem is that `default.nix` is a function that has arguments. You can provide those arguments by running the shell commend `nix-build -E '(import <nixpkgs> {}).callPackage ./default.nix {}'`
<DigitalKiwi>
omploader was a file host not only text site but people kept abusing it and it got too expensive so omp had to shut it off
h0m1 has quit [Ping timeout: 272 seconds]
<aaronjanse>
nij: `callPackage` is a special function that autofills function arguments with everything it cal be find (in this case nix packages)
proofofkeags has quit [Remote host closed the connection]
<aaronjanse>
DigitalKiwi: aaah, I should learn Haskell, shouldn't I?
<DigitalKiwi>
yes
<DigitalKiwi>
i'll do my best to help anyone if they want
<aaronjanse>
<3
proofofkeags has joined #nixos
<nij>
DigitalKiwi: (I'm learning too... and got distracted by nixos)
h0m1 has joined #nixos
<aaronjanse>
DigitalKiwi: Rust has taught me to love monads and generics. Any recommended learning resources for good use cases for Haskell apart from parsing?
<nij>
aaronjanse: sorry for the delay. I'm running nixos on virtualbox, so I have to literally type/copy/paste manually
<aaronjanse>
nij: Oh no, ha, no worries
<nij>
aaronjanse: xmonad!
<nij>
aaronjanse: in 500 lines. I wish I can understand that this year.
<aaronjanse>
nij: Oh nice! I currently use i3, maybe I should check out xmonad
<DigitalKiwi>
i'm a huge fan of programming in haskell by hutton (and he has a few videos on computerphile too, and is on twitter and is really nice)
<nij>
aaronjanse: I was learning haskell, and got hooked by the conciseness of xmonad, and I got hooked by nixos.
dbmikus has quit [Ping timeout: 240 seconds]
evanjs has joined #nixos
<aaronjanse>
DigitalKiwi: sweet, I'll check that out!
<nij>
aaronjanse: fatal error: hb.h: No such file or directory
<DigitalKiwi>
i have a program i wrote that lets me convert resistor values to/from color codes
<DigitalKiwi>
my paste client, obviously
<aaronjanse>
nij: Similar story here. Elm led me to Nix
<nij>
DigitalKiwi: I've checked the new book in 2020 "algorithm design in haskell"
<nij>
DigitalKiwi: Have you looked into that? I was intimidated within the first 3 chaps.
<DigitalKiwi>
i have a script i run that makes a bunch of urls for bing search to get my rewards in a few seconds
<aaronjanse>
nij: please send me a screenshot (because it's in a VM) of the full build logs
<DigitalKiwi>
no i have not
<DigitalKiwi>
is that the one by bird?
<nij>
DigitalKiwi: yep
rjm has quit [Remote host closed the connection]
proofofkeags has quit [Ping timeout: 240 seconds]
<nij>
DigitalKiwi: I quickly understand that haskell can be fast, but you gotta understand it (and ghc) very very very well.. so in usual cases expect that only to be used in cases where performance is not too required..
<DigitalKiwi>
i <3 bird but sometimes (i'm looking at you perls of functional algorithm design) it hurts my brain good
<nij>
aaronjanse: then this gives a working and simplie derivation :D thanks!
<aaronjanse>
nij: No problem!
<nij>
I can learn around it
<DigitalKiwi>
oh hledger is cool too if you want things written in haskell (and pandoc is like the defacto example alongside xmonad)
<nij>
DigitalKiwi: I wish there will be more haskell programs that shine
<DigitalKiwi>
nix search hledger (there are multiple parts, hledger-web is yesod i think) but i avoid snoyberg software myself so i'd look at snap if i wanted to build something hakyll wasn't good for ;P
<nij>
DigitalKiwi: But I find the next step I should do is to setup project developing environment... I can do easy problems in haskell syntax now, but I still cannot build a project.
<DigitalKiwi>
i have a shell.nix i will send that is useful
<DigitalKiwi>
i use cabal too so my shell.nix just sets it up so cabal works. i'm not advanced enough to build everything with haskell though haskell.nix https://github.com/input-output-hk/haskell.nix might start getting some usage
<DigitalKiwi>
nij: yes
<nij>
I wish I can setup my nixos asap so I can have my environment and get back to haskell
<DigitalKiwi>
with that shell.nix (though i have a Makefile to make it easier) i can use cabal commands as you would normally
<nij>
Useful :D Thank you! I archived our conversation today. There are a lot to learn, and I will gradually grasp them.
<DigitalKiwi>
you could use that if you wanted to use nix for dependencies but for some reason you needed to build something with cabal (e.g. it's broken in nixpkgs but will compile with cabal)
Guest38 has joined #nixos
<DigitalKiwi>
which i believe was the case at the time for shelly when i came up with it
rajivr has joined #nixos
mjrosenb has quit [Ping timeout: 260 seconds]
dbmikus has quit [Ping timeout: 240 seconds]
Guest38 has quit [Ping timeout: 264 seconds]
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
domogled has quit [Ping timeout: 260 seconds]
proofofkeags has quit [Ping timeout: 240 seconds]
<DigitalKiwi>
aaronjanse: oh and if you see my website i have a little set of programs i wrote to help me edit haskell imports ... i should probably put them on github in a way that's easier to use
<DigitalKiwi>
and there are libraries for writing arduino programs too
<keidax>
but if I actually try to systemctl enable it, I get "Failed to enable unit: File /etc/systemd/system/display-manager.service: Read-only file system"
o1lo01ol1o has joined #nixos
orivej has joined #nixos
orivej_ has quit [Ping timeout: 256 seconds]
bqv has joined #nixos
pjt_014 has joined #nixos
o1lo01ol1o has quit [Ping timeout: 240 seconds]
CMCDragonkai1 has quit [Ping timeout: 260 seconds]
domogled has quit [Quit: domogled]
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<ryantm>
keidax: Are you using NixOS?
<keidax>
ryantm: yes, should have mentioned that
<ryantm>
keidax: Can you share your nix expression for the service?
<x0r-255>
I am a manjaro user, and am wanting to switch to something more diy. I don't like gentoo, but am very interested in nixos and nix on artix. Is nix on an arch based system feasable?
bbennett37 has joined #nixos
eawsadads has joined #nixos
<eawsadads>
on macOS homebrew has functionality to enable services, e.g. `brew services start xyz`, does `nix` have similar?
<pjt_014>
x0r-255: I've run nix on macos and wsl (weird combo I know), and It's certainly feasable in those cases. Much more so with macos of course. And since arch is notably linux-ier I imagine it'd be even more feasible.
<pjt_014>
I would note though that native package managers usually are better integrated, though, but that's probably to be expected.
simba1 has joined #nixos
<ryantm>
keidax: and to add that service to nixpkgs you'd want to make a new NixOS module in nixpkgs for it.
<pjt_014>
Also I hope to got windows has fixed their symlink implementation because WOW was it slow last time I used wsl. Can you imagine how painfully slow a symlink-heavy package manager runs with that?
kir0ul40 has joined #nixos
<keidax>
ryantm: thanks, so there's no way to generate the nixos service config from an existing .service file? it has to be rewritten?
<pjt_014>
x0r-255: only thing I'd recommend would be to to keep pacman installed pkgs to a minumum to avoid duplicates
<ryantm>
keidax: Well things are different enough on NixOS that probably you can't reuse it, like you need to get the absolute paths for all the binaries and such.
iqubic` has joined #nixos
iqubic` has quit [Remote host closed the connection]
eawsadads has quit [Remote host closed the connection]
<ryantm>
keidax: Some things also don't directly translate like wantedBy does something different because it isn't declarative in base systemd.
iqubic has quit [Ping timeout: 244 seconds]
<x0r-255>
pjt_014 ok
waleee-cl has quit [Quit: Connection closed for inactivity]
<keidax>
ryantm: okay, I'll give that a try, thanks!
<DigitalKiwi>
x0r-255: replace your man in a jar with nixos
<x0r-255>
DigitalKIwI man in a jar?
<x0r-255>
wut
<DigitalKiwi>
lots of recovering arch users here
<DigitalKiwi>
manjaro
<DigitalKiwi>
it used to be what phrik would say about it
<x0r-255>
I'm so confused right now
alphy has joined #nixos
<DigitalKiwi>
#archlinux has a bot named phrik that at some point used to make a reference to manjaro about it being a man in a jar
<DigitalKiwi>
i guess you'd have to be there to get it :(
<x0r-255>
also is it possible to convert other package types to it?
<x0r-255>
well that looks promising
sjkelly1 has quit [Ping timeout: 256 seconds]
<x0r-255>
lol, me sitting over at the 1/6th mark being amazed at how easy it is to install and use things xD
<simpson>
Some sorts of packages can be imported from foreign systems, but generally folks repackage stuff for nixpkgs instead.
<x0r-255>
alright, and I looked at a setup guide for arch, is it always this complex?
<DigitalKiwi>
Error in file "/nix/store/s239jg1qv4vaw58pyr10dmx7sbrifq6h-system-path/share/applications/krita_jpeg.desktop": "jpeg/jfif" is an invalid MIME type ("jpeg" is an unregistered media type)
<DigitalKiwi>
Could not parse file "/nix/store/s239jg1qv4vaw58pyr10dmx7sbrifq6h-system-path/share/applications/meshlab.desktop": Key file contains line ?END_DESKTOP? which is not a key-value pair, group, or comment
<{^_^}>
[nixos-hardware] @Mic92 pushed 6 commits to master: https://git.io/JJgnR
<DigitalKiwi>
x0r-255: NixOS/nixpkgs is really good about accepting new packages too so if on the offchance there's something you want but doesn't exist yet...
<DigitalKiwi>
and depending on what you're doing it's not that hard
<DigitalKiwi>
like my first contributions were a few znc plugins that weren't packaged yet that were keeping me from switching my freebsd server to nixos (now almost all of my computers and servers are nixos)
<x0r-255>
yes, however if I attempt to combine both, then I'll have (basically) infinite packages, quite nice.
<ryantm>
:)
orivej has quit [Ping timeout: 246 seconds]
Rusty1 has quit [Quit: WeeChat 2.3]
<simpson>
x0r-255: We do have the equivalent of AUR, https://github.com/nix-community/nur, with all the normal caveats about trust. But the other thing to keep in mind is that that massive number of fresh packages is in the main nixpkgs repository, so you may not need to add NUR.
<srhb>
jtojnar: Just had a look at the failing gnome3 test again. It looks to me like the most common issue is that "Wait for GNOME Shell" doesn't actually. I wonder if we can wait for some of the systemd user units?
salentino44 has quit [Remote host closed the connection]
o1lo01ol1o has quit [Ping timeout: 260 seconds]
<typetetris>
If a qemu machine from the nixos tests hangs, how can I find out, what it is doing?
<srhb>
typetetris: If it's reproducible the easiest way is to run it with a head on, using the driver attr of the test
<{^_^}>
[nixpkgs] @vcunat closed pull request #94101 → qt5: Add the ability to optionally use NSS 3.44 → https://git.io/JJuOb
<srhb>
typetetris: That gives you a driver shell that you can use start_all() (python) or startAll (perl) to start the qemu machines, each of which you can log into and inspect. The tests themselves are ran with test_script() og testScript iirc
cfricke has joined #nixos
<{^_^}>
[nixpkgs] @danieldk merged pull request #93649 → glogg: enable on darwin → https://git.io/JJlqY
<graf_blutwurst>
Good morning. Anyone else having issues with electron apps lately? Both slack and spotify are broken for me at the moment. (on nixpkgs unstable that is)
<srhb>
graf_blutwurst: spotify works here, slack is indeed broken
<graf_blutwurst>
srhb: I wish i had the time to invest into learning how to properly put together a nixpkgs for official contribution rather than haphazardly slapping something together locally. sadly I'm drowning in work myself ^^'
<srhb>
Ah well. :) Someone will get to it I'm sure.
<graf_blutwurst>
but thanks again! I guess i'll just set that gist up for now. My browser of choice (qutebrowser) is also broken that's the next thing i have to hunt down. I was just surprised two electron apps broke for me at the same time so i thought maybe some dependency there is having issues
<srhb>
I _think_ it's unrelated, since my spotify appears fine, but I may be mistaken of course.
fendor has joined #nixos
o1lo01ol1o has joined #nixos
mpiechotka has quit [Quit: mpiechotka]
gthm has joined #nixos
mpiechotka has joined #nixos
o1lo01ol1o has quit [Ping timeout: 256 seconds]
D_ has quit [Remote host closed the connection]
michiel__ has joined #nixos
D_ has joined #nixos
<graf_blutwurst>
hmm seems to be something different. slack with your derivation still is complaining about no network connection. i guess it's something else. time to go bughunting
cjpbirkbeck has joined #nixos
mokulus has quit [Quit: WeeChat 2.9]
<srhb>
graf_blutwurst: That's exactly the problem it fixed for me.
<graf_blutwurst>
huh
stephaneyfx has quit [Quit: Leaving]
<graf_blutwurst>
srhb: just to make sure i didn't fuck up. how did you locally build it from the derivation?
<srhb>
graf_blutwurst: I put it in an overlay that overrides slack entirely, eventually getting installed from systemPackages
kalbasit has quit [Ping timeout: 240 seconds]
Izorkin has joined #nixos
<srhb>
graf_blutwurst: nix-build -e 'with import <nixpkgs> {}; callPackage ./the-thing.nix {}' should work too, if that's what you're doing. You may need to also install it though, not sure if it has other fun impurities
ylixir has quit [Remote host closed the connection]
cjpbirkbeck has quit [Ping timeout: 264 seconds]
<graf_blutwurst>
I went through nix-env but none make a difference. hmm
<lejonet>
Why is nix reaction on line 97 and 105 in this config: https://dpaste.com/DKUVCMB3V like the if expr then {} is nix-code, even tho it wasn't preceded with ${} in either case?
teto has joined #nixos
<lejonet>
I get a "unexpected THEN" error when trying to do nixos-rebuild switch with that config...
<chrismatheson>
has anyone set up emacs to use a nix-shell env for individual projects? im thinking like when switching projectile projects switch the shell in which sub commands / terminals etc started via emacs will use the local nix-shell env ?
nikita` has joined #nixos
<chrismatheson>
* has anyone set up emacs to use a nix-shell env for individual projects? im thinking like when switching projectile projects switch the shell in which sub commands / terminals etc started via emacs to use the local nix-shell env ?
<chrismatheson>
* has anyone set up emacs to use a nix-shell env for individual projects? im thinking like when switching projectile projects switch the shell in which sub commands / terminals etc started via emacs to use the local nix-shell env for that project?
o1lo01ol1o has joined #nixos
<lejonet>
Even if I try and escape the t, like ''\then, then I get "error: attempt to call something which is not a function but a string, at /etc/nixos/configuration.nix:51:23" where line 51 is the start of the multiline string
dermetfan has joined #nixos
<graf_blutwurst>
chrismatheson: I just use direnv-mode and lorri and that works out pretty neat
<srhb>
lejonet: You're terminating the string there
<srhb>
lejonet: if $!_UNIT = ''
<lejonet>
srhb: duh... I've been starring at the string too long, thank you for dumb checking me xD
<srhb>
lejonet: No problem, know the feeling :P
<clever>
lejonet: the '' on line 97 marks the end of a nix string
<clever>
,escape''
<{^_^}>
Escape this in '' strings with: '''
<{^_^}>
Escape this in " strings with: ''
<makefu>
,escape${
<{^_^}>
Escape this in '' strings with: ''${
<{^_^}>
Escape this in " strings with: \${
<lejonet>
Yeah, I know how to escape it, it just escaped me that I had to escape it! xD
Fare has quit [Ping timeout: 260 seconds]
plutes has quit [Quit: If you judge me now, you have judge me prematurely.]
<graf_blutwurst>
excellent, then i won't even bother overriding nss versions and just be patient for a bit. Slighlty tangential question. Are the packages immediatly available once hydra is through or am I missing a step there?
phreedom has joined #nixos
arjen-jonathan has joined #nixos
<symphorien>
,stuck
<dutchie>
you'll have to do `nix-channel --update`
<gthm>
I have a program I run as a systemd service. I've figured out how to package and build a nix package out of it, but how can I run that package in a systemd service managed by nixos? (It's not part of nixpkgs. This one is public and could be, but I'm generally interested in the same Q for private software)
<srhb>
gthm: The simpler the program, the simpler the systemd service will be too. I think the minimal definition is wantedBy (for autostart) and script or serviceConfig.ExecStart
<demize>
Notably though, my version only works if you don't actually want JSON out of it.
<thblt>
I'm trying to reinstall NixOS on an old laptop. the SSD fails smartctl -t long with a read failure. Is it just a bad block or is it an indication of a dying disk?
<demize>
Since you end up with a sequence of strings, rather than a list of strings.
<thblt>
This is a 2011 Macbook Air, so components reaching end of life wouldn't be unexpected.
<dminuoso>
demize: Hard to say without seeing the output
fendor has joined #nixos
<typetetris>
In a cabal file where I declare a test-suite, can I depend on an executable from the same package? Like for integration tests?
<dminuoso>
typetetris: cabal lets you have subpackages.
<dminuoso>
that is, sub-library components
<dminuoso>
you can treat them like a regular package
itshaydendev has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @sternenseemann opened pull request #94225 → lowdown: init at 0.7.2 → https://git.io/JJg1K
<typetetris>
dminuoso: I want the executable to build before the test suite is executed, because it will call the executable. Also it needs to be in path. Would sub-library help here?
<dminuoso>
typetetris: Yes. Your test suite also depends on your program/library already too, doesnt it?
Neo--- has joined #nixos
<typetetris>
dminuoso: Yes, it depends on the package itself. I thought, that was just a dependency on the library. It also declares dependencies to the executables?
<typetetris>
Sorry
<typetetris>
I am in the wrong channel. Of course with nixos-packages it works. Thought I was messaging in #haskell.
itshaydendev has joined #nixos
ap29600 has quit [Ping timeout: 264 seconds]
ap29600 has joined #nixos
<ikwildrpepper>
Mic92: have you ever used a go project that uses different version of modules that are located in the same repo? (e.g. we have some project that uses some go-autorest modules, but it seems to only use one of the versions for go-autorest in deps.nix)
<Mic92>
ikwildrpepper: no I mostly use buildGoModule so these days.
<Mic92>
ikwildrpepper: are you trying to replace dependencies?
<Taneb>
I've just switched my Hydra server to have store uri "daemon" rather than "local?secret-key=..." but this has lead to "possibly transient failure building '/nix/store/foo.drc' on 'nix@machine': cannot add path '/nix/store/foo' because it lacks a valid signature", for every step.
<Taneb>
Any idea how I can resolve this?
svantepolk has joined #nixos
tsujp has quit [Quit: WeeChat 2.9]
<svantepolk>
How do I find out when a package merged into nixos/nixpkgs get in the main channel?
graf_blutwurst has quit [Ping timeout: 272 seconds]
<{^_^}>
#93792 (by cab404, 5 days ago, open): Packaged SL1ToPhoton
<cab404[m]>
don't really want another good and reviewed PR to get stale)
<eyJhb>
Ehm cab404[m]
<cab404[m]>
y?
<eyJhb>
Wouldn't it be a new package? Shouldn't it then be `SL1ToPhoton: init at xxxx` ?
<eyJhb>
Damn it
<eyJhb>
You did that
<eyJhb>
Sorry, only looked at the PR title
<cab404[m]>
no pr name guidelines in contributing (or I skimmed past them as always)
<eyJhb>
Anyways, good luck! I can't really do anything soryy
<cab404[m]>
(renamed it nontheless) thanks)
<nij>
adisbladis: Woo.. I hope to use that after `startx`.. But cannot turn it on by `$ konsole`.. "ERROR: command not found".
<eyJhb>
Thanks ! Always nice to have that in the PRs as well
joem86 has joined #nixos
<joem86>
Hi folks, I'm using nix-env in Fedora, and I accidentally did `nix-env -i` and perhaps installed _all_ the nix packages. Luckily it stopped on one of the packges with an unfree license. Does that mean that the entire `nix-env -i` command was rolled back? Or do I have a few hundred packages to clean up on my system? :-)
<cab404[m]>
also, speaking of packaging: will there be any info on adding flake repos to builtin ones, or PRing flakes into those?
<joem86>
by stopped I mean threw an error
<exarkun>
joem86: nix-env -q
<joem86>
exarkun that answers my question :-)
<cab404[m]>
<joem86 "Hi folks, I'm using nix-env in F"> that means you have a lot of cache for those packages, and none of them are connected by a gc root. they will be swept by next gc run
ManiacOfMadness has quit [Ping timeout: 272 seconds]
sjkelly1 has joined #nixos
fendor__ has joined #nixos
<nij>
adisbladis: Hmm.. I mean the terminal we got in the minimal installation iso. Far before we login, there is a terminal already.
<nij>
adisbladis: We used that for installing, for logging in .. etc
<cab404[m]>
@nij you mean putty?
<joem86>
Alright, another question if you don't mind. Is there a way to subscribe to an unstable channel for only a certain subset of packages? Or is it an all-or-nothing prospect?
<cab404[m]>
<joem86 "Alright, another question if you"> yes there is.
<nij>
cab404[m]: Hm.. I don't really know what putty is after googling it.
fendor_ has quit [Ping timeout: 265 seconds]
<cab404[m]>
<nij "cab404: Hm.. I don't really know"> if you press Ctrl-Alt-F1, you'll get dropped in it. Ctrl-Alt-F7 to get back.
<nij>
cab404[m]: I don't use a GUI. After I launch my NIXOS, I was thrown into a minimal login interface.
orivej has joined #nixos
ManiacOfMadness has joined #nixos
<nij>
cab404[m]: Ah yes, I believe that's what I mean.
<nij>
cab404[m]: I am using nixos on virtualbox over archlinux, so C-A-F2 brought me to my archlinux putty. Never knew I could do that :O
<cab404[m]>
<nij "cab404: Ah yes, I believe that's"> if you need to configure it, just edit `console` section of your iso config
<nij>
cab404[m]: So yes.. the putty. Can I keep using that, with how it's configured, as my daily terminal emulator?
<cab404[m]>
yes you can, but character support is limited. and you can't zoom. and selecting is pain.
<cab404[m]>
tl;dr you can try
<nij>
cab404[m]: I see! That's why people don't use it daily.
<nij>
I guess what I'm into is superficial: its look, its font, its font-color.. etc.
<cab404[m]>
I just stole values from built-in Guake themes
<Taneb>
Crypto is bad for Haskell. There are several arguments to arrive at this conclusion but this is my preferred one. There are others.The Adjoint team is hiring ambitious individuals who have an interest in advancing the state of the art technology and changing the large-scale structure of markets. We're a diverse group of individuals from different backgrounds (finance, physics, medicine) who all believe in world-class engineering and product design through
<Taneb>
a strong team that values diligence, deep understanding and honesty.
<eyJhb>
Trying to execute a file - /nix/store/z44zkg1s193dkayn5hkn0cg330kjp7q6-Signal-gradle-project-env/com/google/protobuf/protoc/3.10.0/protoc-3.10.0-linux-x86_64.exe, but I get this using strace - https://termbin.com/ejqg
<cab404[m]>
copy/edit those, indexes are almost the same. I got my theme like that
<simonpe^^>
I write a nix expression to disk using `writeText "filename.nix" ''...expression...''`, how can I escape double hyphens to use in the inner expression?
dermetfan has quit [Ping timeout: 244 seconds]
<cab404[m]>
<simonpe^^ "I write a nix expression to disk"> ```
gnxlxnxx[m] has quit [Quit: Idle for 30+ days]
eoli3n has joined #nixos
<simonpe^^>
cab404[m]: thank you
<cab404[m]>
<simonpe^^ "cab404: thank you"> oops, there's a proper way
<eyJhb>
Nope, can't get `/nix/store/r043hxh0kwic172rjxlhlw2raygvxm09-Signal-gradle-project-env/com/google/protobuf/protoc/3.10.0/protoc-3.10.0-linux-x86_64.exe` working. Tried autopatchelfhook, but did not work...
<Mic92>
infinisil: it evaluates on the remote server
<Mic92>
So it works with shitty uploads
<Mic92>
all the other solutions try to build on my laptop and than upload a lot of stuff.
<palo>
ah this part, this is just an example. I see, I think nobody is doing that in real live :D
<Mic92>
infinisil: most people are just using a symlink there
<infinisil>
Mic92: Doesn't this have the problem that `imports` can't be resolved on the target host?
ddellacosta has joined #nixos
<Mic92>
infinisil: no because all the sources are specified in the krops file. symlink is relative to the upload directory in example /var/src
<Mic92>
nix also resolve symlinks before hand
<Mic92>
before computing import paths
ManiacOfMadness has joined #nixos
<infinisil>
If I write a krops.nix file as shown and do `nixos-config.file = builtins.readFile ./my-config.nix;`, in my-config.nix I have `{ imports = [ ./other-file.nix; ]; }`. And other-file.nix contains more config
<infinisil>
Mic92: How does krops then know to copy other-file.nix over?
<{^_^}>
[nixpkgs] @Sorixelle opened pull request #94235 → pebble-sdk: init at 4.5 → https://git.io/JJgA3
<infinisil>
Ah, so what I said wouldn't work, but if you specify your whole config as a source, then refer to the config within that source it can work
<Mic92>
krops is also flexible enough to just work with flakes already
<infinisil>
Ah I guess it doesn't use flakes to do the local eval, but because it does another eval on the target host, it can use flakes there
<infinisil>
Correct?
<Mic92>
Yes. Also you can use flakes locally with builtins.getFlake. Because all source is on the server you can just ignore krops and fix it on the machine itself.
svantepolk has left #nixos [#nixos]
<Mic92>
Which is sometimes neet if you have messed up a physical machine
<Mic92>
The only feature I am missing still is that it cannot deploy multiple things in parallel.
fendor has quit [Remote host closed the connection]
jlv1 has joined #nixos
eta has joined #nixos
<jlv1>
What package contains `gdb`? I'm trying to get a stack trace from a core dump.
<hexa->
,locate gdb
<{^_^}>
Found in packages: msf, glib, arduino, glib.dev, linux.dev, factor-lang, _389-ds-base, arduino-core, bashCompletion, gdb-multitarget, jetbrains.clion, linux-libre.dev, linux_mptcp.dev, gcc-arm-embedded, enlightenment.efl, linux_testing.dev, gcc-arm-embedded-6, gcc-arm-embedded-7, gcc-arm-embedded-8, linux_mptcp_94.dev, vimPlugins.caw-vim, gst_all_1.gstreamer, vimPlugins.nvim-gdb, linuxPackages_4_4.kernel.dev, and 11 more
<hexa->
ok, that is unhelpful, sorry :D
<hexa->
pretty sure the package is just called `gdb`
Fare has joined #nixos
<jlv1>
hexa-: Huh, for some reason, typing `gdb` without it installed doesn't tell you what package the command it in, like it does for other commands.
<hexa->
wfm
<hexa->
The program ‘gdb’ is currently not installed. You can install it by typing:
<hexa->
nix-env -iA nixos.gdb
<Mic92>
coredumpctl gdb is also helpful
fendor__ has quit [Ping timeout: 265 seconds]
x0r-255 has joined #nixos
<jlv1>
hexa-: Oh, looks like my command lookup recently broke for some reason. Other commands aren't looked up either.
stephaneyfx has joined #nixos
<jlv1>
Hmm, I'm getting a lot of "symbol table not found" . I guess I should enter a shell for the program?
<hexa->
puffnfresh_: are you still planning to continue your work on #89106?
ManiacOfMadness has quit [Ping timeout: 246 seconds]
Neo--- has joined #nixos
<evanjs>
now I notice that some packages use _pytestrunner_ instead of pytest....
<evanjs>
I noticed there's a decent lack of docs on testing stuffs lately. Like I understand if there is, just curious if there's a reference I'm missing or if it actually is documented somewhere
<evanjs>
erm... and I guess some packages use both disabledTests _and_ `--ignore`? x_x
<evanjs>
like which should I use lol
Jackie has joined #nixos
Jackie is now known as Guest33658
<Guest33658>
Hey, the install prompt said to come here if I had trouble installing Nix?
itshaydendev has quit [Quit: itshaydendev]
<evanjs>
yep. what seems to be the problem?
<evanjs>
and to clarify -- Are you trying to install _only_ Nix or NixOS?
<Guest33658>
nix-shell: command not found
<Guest33658>
mmm I want to start with just nix on ubuntu?
<Guest33658>
but maybe later add a nixos partition
<Guest33658>
The install program said "alright we're done! just run nix-shell [some stuff]" in a new terminal but I did that and the shell can't find nix-shell
jlv1 has quit [Remote host closed the connection]
<evanjs>
in a new terminal, right?
<Guest33658>
yeah
<armin>
so i generally stick with kernel 5.4 (the default) on servers and only go on kernel 5.7 on desktop machines. is that generally reasonable?
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<evanjs>
*shrugs*
<evanjs>
armin: I use latest whenever I can
<cransom>
i only switch to a newer kernel if there are features i need for the hardware or somthign i want to test out
<evanjs>
I'd say reasonable for desktops at least
<evanjs>
conversely, I only switch to latest on stable if e.g. any kernel modules fail to build :P
<Guest33658>
I'm guessing I should add something to my path in .bash_profile? but I'm not sure what
maier has quit [Ping timeout: 240 seconds]
<Mic92>
Guest33658: usually it does so automatically
<Guest33658>
ok. so... now what?
<armin>
evanjs: i mostly feel the same, yes.
<Guest33658>
would appreciate any next steps anyone might have
wnklmnn has joined #nixos
<x0r-255>
I only bother with LTS kernel releases, I'm staying on 5.4 until the next one (but with some of the new features it's becoming hard to resist)
<evanjs>
Guest33658: mrm, is the /nix/store present and everything?
<evanjs>
often times I just try and relog lol
<Mic92>
Guest33658: did you perform a single-user or multi-user installation?
<evanjs>
lemme see what my WSL has (if anything) in my profile
<Mic92>
Guest33658: what did say in the end?
<Mic92>
If you have not specified any option it is a single user one
<Guest33658>
yes /nix/store/ is present with many files
<Mic92>
And you should have /home/nix/.nix-profile/etc/profile.d/nix.sh
<Mic92>
where nix is your actual username
<Mic92>
ls -la $HOME/.nix-profile/etc/profile.d/nix.sh
<Guest33658>
I tried single user first then uninstalled that and tried to install multiuser and that didn't work
<Guest33658>
I will try relogging in a minute
<slabity>
Hey guys, I have a Nix flake that provides an 'overlay' and an 'overlays' output. How can I create a nix shell that loads with a package from that overlay?
<Mic92>
slabity: you can describe it in the devShell attribute
<evanjs>
my .profile on windows has "if [ -e /home/evanjs/.nix-profile/etc/profile.d/nix.sh ]; then . /home/evanjs/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer"
<Mic92>
and use nix develop
<Guest33658>
.nix-profile does not exist in my home directory
<evanjs>
Guest33658: does your .profile have anything similar?
<slabity>
So just to be clear, I have a very simple flake that produces a single ouput: An 'overlay', but even if I have the flake registered I cannot use that overlay?
<slabity>
I'm trying to understand this more, but that doesn't seem right... I find it hard to believe I can't grab it via something like `nix shell myflake:wine` or some other similar syntax
<Mic92>
You also cannot use normal overlays directly
<Mic92>
you need to apply them to nixpkgs for example
<slabity>
To load `wine` from this in a simple `nix shell` I need to create a completely new flake and expose it in a `devShell` or something? I can't just use it directly?
<buckley310>
I'm currently syncing some nixos configs around using git. are there any obvious issues with just pointing a channel at it instead, and then specifying `imports = [ <mynixconfig/configuration.nix> ]` to call it?
<slabity>
Well let me put it this way... Let's say I wanted to run a `nix shell` using a package (hello) from a specific nixpkgs flake (nixpkgs/master), Then I would run `nix shell github:NixOS/nixpkgs#hello`
<slabity>
That would drop me into a shell with the `hello` package from `Nixos/nixpkgs`
kraeXen is now known as kraeZZZ
kraeZZZ is now known as kraeXen
simba1 has joined #nixos
<manu12[m]>
can anyone using sway share its config
lunik1 has joined #nixos
kraeXen has quit [Quit: Konversation terminated!]
<slabity>
Now if I had an flake that provides an overlay that provides its own `hello` package, then there should be a way for me to `nix shell` into that as well, correct?
<buckley310>
manu12[m]: i've been playing with sway lately, this is the sway-specific bit from my config http://ix.io/2sHR
<slabity>
Thanks for sharing your configs Mic92++
<{^_^}>
Mic92's karma got increased to -2147483648
<slabity>
Uhh... I think I broked it
kraeXen has joined #nixos
<makefu>
slabity: {^_^} is trying to be funny again :)
K900 has joined #nixos
<K900>
Hey guys
<K900>
Question: what's the process for some random internet person to get an update into nixpkgs?
<K900>
Do I just send a PR on Github or is there anything else?
<slabity>
K900: PR to Github is pretty much the only thing
shabius has joined #nixos
<dutchie>
isn't there a patch category on discourse or something
<dutchie>
(for people who don't use github)
<K900>
I'm fine with Github
<K900>
Mostly just making sure there's no special maintainer status required or w/e
<dutchie>
i have yet to meet a foss project that won't accept patches/PRs from non-maintainers (as long as they are of sufficient quality/in keeping with the direction of the project)
<K900>
Uhh
<K900>
Debian?
<K900>
lol
alp has joined #nixos
<K900>
I mean, they'll accept patches, but you have to go through the maintainer to get anything in
<dutchie>
yeah that's normal, right
<dutchie>
you can't just get something in unreviewed, and the maintainer is the person to do that
<ajs124>
nixpkgs's maintainer model is much weaker than that
<K900>
Yeah, that's what I've been noticing too
<K900>
Pretty new to the whole thing if you haven't already guessed :)
<ajs124>
for half my PRs to packages, the maintainer didn't even show up
<dutchie>
also woo nixos-unstable got updated
* dutchie
can remove the nss overrides for all those electron apps
<{^_^}>
[nixpkgs] @FRidh pushed commit from @K900 to staging « Cython 0.29.19 -> 0.29.21 »: https://git.io/JJ2Jd
<tyrion-mx>
Hello, I am trying to define the "options" for a nixos module. Is it possible to have an attrset where only some keys have a specified type? i.e. an attrset where the "type" key must be an enum, and the other values can be anything
<{^_^}>
[nixpkgs] @romildo opened pull request #94249 → untrunc-anthwlock: init at 2020.07.18 → https://git.io/JJ2UC
<infinisil>
jlv: Can't say because I don't use it. But note that command-not-found relies on you getting nixpkgs from the channels
<infinisil>
So if you don't get nixpkgs from channels (that is, chanels.nixos.org) then it won't work for sure
seku has joined #nixos
<tyrion-mx>
infinisil: very cool, thanks! I will check it out
<armin>
any vivaldi users here? i installed vivaldi-ffmpeg-codecs but still get a media support missing warning on startup - anyone a hint?
<hexa->
armin: how did you install them?
<armin>
hexa-: added vivaldi and vivaldi-ffmpeg-codecs to environment.systemPackages and ran "nixos-rebuild switch --upgrade".
<jlv>
infinisil: nixpkgs is from the channels. `https://nixos.org/channels/nixos-20.03` to be precise. It worked until recently. I can't say exactly when it stopped working, but I think it was after I updated NixOS (as in `--upgrade`).
<hexa->
brrr, the link to the pkg source vanished from the website <.<
<hexa->
armin: vivaldi has a proprietaryCodecs variable that you need to override
<infinisil>
jlv: Does `/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite` exist?
<infinisil>
jlv: Or you could also try overriding command_not_found_handler with some `echo` or so to even see whether it's being called when you think it should
<jumper149>
But, when I follow this approach, ghc isn't in my PATH when running the program
<armin>
hexa-: tried with your one in environment.systemPackages (had to add a ";" after true) but still no dice.
wnklmnn has joined #nixos
<infinisil>
jumper149: xmonad's source is patched to use the NIX_GHC env var. I don't recommend doing this for your project, but instead wrap the binary with makeWrapper using `--prefix PATH : ${lib.makeBinPath [ pkgs.ghc ]}`. This will add GHC to the programs PATH, so it should find it
<jlv>
infinisil: I ran `command_not_found_handler vlc`, and the result was "vlc: command not found".
<infinisil>
jlv: I mean to run the functions within command_not_found_handler
<infinisil>
Like the command-not-found binary itself
<jlv>
I ran `$p "vlc"` and the result was "vlc: command not found"
<jlv>
infinisil: Working on it :)
knupfer1 has joined #nixos
<jlv>
`if [ -x $p -a -f /nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite ]` is also true
<infinisil>
I guess next you could inspect the command-not-found script itself
<infinisil>
See what kind of things it does that could make it fail
<infinisil>
jlv: Oh and try different binaries too, can it find `hello` or `ripgrep` perhaps?
<bqv>
was there someone who had a script to autoinstall missing programs as part of the command-not-found handler
<bqv>
i was against that idea at first but i'm warming to it
<infinisil>
bqv: I'm just looking at it, and it apparently does that if you set NIX_AUTO_INSTALL
<bqv>
hmm
dermetfan has joined #nixos
<bqv>
so i get that working with flakes it could do
<infinisil>
Or alternatively NIX_AUTO_RUN starts a nix-shell with it
<bqv>
ah nevermind, i remember why i gave up on command-not-found
<bqv>
it's built around nixexprs.tar.xz
proofofkeags has quit [Remote host closed the connection]
<jlv>
infinisil: It can find `hello`, `traceroute`, and `convert`! It cannot find `gdb`, `vlc`, `glxgears`, `grim`, `slurp`, `wofi`, `spectral`, `i3lock`.
bqv has quit [Quit: WeeChat 2.9]
proofofkeags has joined #nixos
<jlv>
I'm not seeing the pattern, but it can find some things.
<infinisil>
Ah so it has to be a problem with the database itself
<infinisil>
jlv: You could now even do `sqlite3 <database path>` and do some sql queries to see what it contains
<jlv>
infinisil: The database is 812K btw. What is it usually?
proofofkeags has quit [Remote host closed the connection]
ris has quit [Ping timeout: 256 seconds]
<infinisil>
No idea
knupfer1 has quit [Ping timeout: 240 seconds]
proofofkeags has joined #nixos
cole-h has quit [Quit: Goodbye]
<jlv>
My sql is a little rusty XD
<jlv>
Regardless. Two different machines, both updated to the latest 20.03, have this issue. I'm inclined to think it is an issue with NixOS itself.
<infinisil>
Yeah it looks like something must've gone wrong in the database generation
<jlv>
Although, I'm not sure how the database is constructed.
<evanjs>
I know recursive nix isn't something I can do, but how about `nix build` (nix @ the commit I need) and then e.g. `result/bin/nix build <my-expression>`?
<infinisil>
evanjs: "get something"?
<infinisil>
Not sure what you ask
<evanjs>
sorry lol
<evanjs>
get a nix binary with fetchSubmodule support :P
<evanjs>
maybe `nix build '(with import <nixpkgs> {}; nixUnstable.override { src = ./.; })'` in the repo will be enough :P
mattlevan has quit [Ping timeout: 244 seconds]
<evanjs>
reallllly hoping this is released in time for 20.09 or something, thooo
<infinisil>
Possibly `nix-build channel:nixpkgs-unstable -A nixUnstable` works
<infinisil>
(or the nix build equivalent)
nDuff has joined #nixos
gv has joined #nixos
<bqv>
wouldn't recursive nix need to be enabled in the daemon, not just at eval
<bqv>
so you'd need to either not use the daemon, or replace it too
dbmikus has joined #nixos
<infinisil>
I have the suspicion that the daemon doesn't do the evaluation
<infinisil>
That the client does that part
<evanjs>
omg I like the error messages in nix unstable
<evanjs>
soooooo much different
<evanjs>
or whatever I'm testing, 2.7?
<bqv>
it's certainly more verbose
rajivr has quit [Quit: Connection closed for inactivity]
<evanjs>
reminds me of rustc/cargo, yeah
<evanjs>
all the colors
<evanjs>
but yeah, -f channel:nixpkgs-unstable and etc only give 2.4pre*
davidv7_ has quit [Remote host closed the connection]
alp has joined #nixos
mattlevan has joined #nixos
<Izorkin>
,locate capable
davidv7_ has joined #nixos
<{^_^}>
Found in packages: linuxPackages.bcc, linuxPackages_4_4.bcc, linuxPackages_4_9.bcc, linuxPackages_5_5.bcc, linuxPackages_4_14.bcc, linuxPackages_4_19.bcc, linuxPackages-libre.bcc, linuxPackages_hardened.bcc, linuxPackages_xen_dom0.bcc, linuxPackages_latest-libre.bcc, linuxPackages_latest_xen_dom0.bcc, linuxPackages_testing_bcachefs.bcc, linuxPackages_testing_hardened.bcc, linuxPackages_latest_xen_dom0_hardened.bcc
<LouisDK>
I want to patch the source of a new package which requires libhdhomerun.so from the pkg: libhdhomerun. I'm just unsure which path to use or if I should specify it with a variable.
<jotaru>
any opinions on ... guix?
kenran has quit [Quit: Lost terminal]
<kaliumxyz>
pretty cool package manager.
nsnc has joined #nixos
<jotaru>
ikr
kenran has joined #nixos
kenran has quit [Client Quit]
<bqv>
pretty loaded question
<kaliumxyz>
?
kenran has joined #nixos
justanotheruser has quit [Ping timeout: 272 seconds]
simonpe^^ has quit [Remote host closed the connection]
Thra11 has joined #nixos
<nsnc>
I'm fairly new to nix, I've been trying to package something (https://tmux.reconquest.io/pkg/tar/tmux-autocomplete_2.0.5.gc0658bf.tar), and was having a bit of trouble. It's looking for packages in /usr/share, and I'm not quite sure how to have nix patch it to look in the right directory instead. Can someone drop me a link to docs that explain it p
<nsnc>
lz?
<simpson>
jotaru: There are folks here who use both. You may have to ask a more specific question to get a better answer. What are you working on?
<Izorkin>
,locate pscap
<{^_^}>
Found in packages: libcap_ng
slack1256 has joined #nixos
<{^_^}>
[nixpkgs] @mkg20001 closed pull request #78648 → users-groups: add skel support via environment.etc.skel → https://git.io/Jvm7e
LouisDK has quit [Remote host closed the connection]
<eyJhb>
Do we have any examples of modules/packages where we parse all the dependencies, make a list/attrset of them, and then allow for them to be overriden?
<eyJhb>
Something like vim-plugins, but just.. With dependencies I guess?
wnklmnn has quit [Read error: Connection reset by peer]
<nij>
I did that.. but seems that unifont is not called automatically on Chinese/Japanese.
<widmanstatten>
Hi, been trying to install nix on catalina 10.15.4 using //$ sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume// gives me -> "(23) Failed writing body" . Can you help?
<nij>
I'm also viewing this in alacritty.. so maybe alacritty overrides secretly..
<widmanstatten>
Found here //https://nixos.org/nix/manual/#chap-quick-start//
<{^_^}>
[nix] @edolstra merged pull request #3689 → Substitutions from different store dirs → https://git.io/JfHRM
<hodapp>
trying to build some old-ish software, and autoreconf is complaining about dnl, AC_DEFINE, AC_MSG_WARN, AM_PATH_GTK, AM_GNU_GETTEXT, and AM_PATH_ESD being undefined; anyone good at software archaeology and have a clue what simple fix I'm overlooking?
marsh has quit [Remote host closed the connection]
Neo--- has quit [Ping timeout: 246 seconds]
drakonis has joined #nixos
jbgi has quit [Ping timeout: 265 seconds]
davidv7_ has quit [Quit: Konversation terminated!]
alp has quit [Ping timeout: 240 seconds]
davidv7_ has joined #nixos
jbox has quit [Quit: WeeChat 2.9]
sybrand has quit [Quit: WeeChat 2.9]
eoli3n has quit [Ping timeout: 256 seconds]
<sshow>
I have multiple network interfaces and I want to set a custom metric to the routes. Any tips?
<aaronjanse>
You want to measure bandwidth usage to each interface?
<aaronjanse>
If so, check out `bandwhich`
<sshow>
no, I just want to set the preferred interface for traffic
<{^_^}>
[nixpkgs] @Ma27 pushed commit from @ivan to release-20.03 « hydra-unstable: 2020-06-23 -> 2020-07-28 »: https://git.io/JJ2cJ
arjen-jonathan has quit [Ping timeout: 260 seconds]
<Athas>
How do I roll back my Nix channels to exactly the version that was used for the NixOS revision (or whatever the thing I pick from my bootloader) I'm currently running?
<Athas>
Rollback doesn't really work if the channels don't follow...
<ashkitten>
Athas: you can't, really
<ashkitten>
well
<ashkitten>
you can rollback the channels
<aaronjanse>
This should at least tell you which channel your NixOS generation is using nix-shell -p nix-info --run "nix-info -m"
<Athas>
ashkitten: do the channel generations have any correlation with the NixOS generations?
<ashkitten>
the channels are stateful and not part of the system generation
<ashkitten>
the channel generations correspond to when you ran nix-channel --update
<Athas>
aaronjanse: how do I change my nixos-unstable channel state to point to a specific commit?
<Athas>
I can only find information about how to import specific commits directly in .nix files.
<pikajude>
hi, the networking.nat.forwardPorts option appears to do nothing
<pikajude>
how do i figure out why
<pikajude>
haha ignore me i used the wrong port number
<Athas>
"host os: `Linux 5.6.16, NixOS, 20.09pre228622.029a5de0839 (Nightingale)`" means that 029a5de0839 is the commit I built from, right? It looks plausible, by looking at the commit timestamp.
Thra11 has quit [Quit: WeeChat 2.8]
sikmir has joined #nixos
<evanjs>
Not seeing many (if any) packages replacing git dependencies for rust packages... how would one typically handle this? sed/substituteInPlace?
<aaronjanse>
Athas: I'm not sure, sorry
<aaronjanse>
evanjs: You mean, replacing git dependencies in Cargo.toml? May I ask why?
<aaronjanse>
*If so, may I ask why?
<Athas>
I guess I can just edit the data files directly.
<infinisil>
Athas: Yes
<infinisil>
(the commit question)
<evanjs>
aaronjanse: I'm using fetchGit (w/submodule support) for private repos. I have all the deps pulled in, but it doesn't seem to take depsand complains that it can't clone things using git
sikmir has quit [Remote host closed the connection]
<evanjs>
getting a bunch of 'Unable to update ssh://git@<repo>#<commit>' messages
<evanjs>
mmm I wonder if it has something to do with out of sync lockfiles, tho...
shibboleth has joined #nixos
<{^_^}>
[nixpkgs] @tinahbu opened pull request #94263 → updated qds_sdk version to 1.15.2 → https://git.io/JJ2cB
erasmas has quit [Quit: leaving]
fendor has quit [Read error: Connection reset by peer]
<virus_dave>
hey folks! If i have a python package derivation from `buildPythonPackage`, and it has a `buildInput` of (say) `which`, or `nix`, is there a reason why this wouldn’t be on my PATH if i `nix-shell -A my-python-derivation` ?
<virus_dave>
i guess “is there anything special about python derivations that change how nix-shell works” ?
marsh has joined #nixos
<virus_dave>
i’m wondering if this is related to `meta.platform` for it
<Guest65220>
Is there something in nixpkgs to make a LUA_PATH compatible string / folder for ngx_lua lua_package_path?