<clever>
both root and non-root have a channel called nixos
<clever>
they are going to cause conflicts
<clever>
remove the nixos channel from the non-root user, and nix-channel --update
<infinisil>
clever: You think it could cause a 'error: attribute 'haskell' missing', when doing `nix-env -iE 'pkgs: pkgs.haskell.lib.doJailbreak pkgs.haskellPackages.clay'`?
<clever>
infinisil: nix-env isnt passing you a pkgs set
<clever>
infinisil: its passing you a set of channel name -> channel path
<infinisil>
Ah lol
<clever>
you dont have any channel called haskell, hence, the error
<infinisil>
Well not really
<infinisil>
It just passes what's in your ~/.nix-defexpr, converted a bit
martinb_ has quit [Ping timeout: 246 seconds]
<infinisil>
And for me that's just a normal nixpkgs, so I'm the cause of the error
<infinisil>
lol
<dckc>
do not know how to unpack source archive /nix/store/4xg10325b0dynncf47jxx6x8v4z3blyd-rxkbr5bv3cs3zkxcj36hzlm6g6djp9i2-instantclient-basic-linux.x64-12.1.0.2.0.zip
<jonreeve>
Ah
<dckc>
sigh. neither do I.
<infinisil>
Can't wait til we can get rid of nix-env..
<clever>
and due to defining custom defexprs, i can: nix-env -iE 'channels: (let pkgs = channels.foo {}; in pkgs.haskell.lib.doJailbreak pkgs.haskellPackages.clay)'
<infinisil>
I doubt the parens are needed though?
<clever>
likely not needed
<clever>
a left-over from when i was doing `import channels.nixos` and it failed, because nix-env had pre-imported the defexpr
Rusty1 has joined #nixos
aleph- has quit [Ping timeout: 245 seconds]
<dckc>
so... I goofed in a build step; how I do I tell nix something needs to be rebuilt?
<infinisil>
dckc: Start the nix build again?
<dckc>
nix build seems to think it doesn't need to be built again
<clever>
dckc: if the build instructions have changed, it will be a new build, and nix will redo whatever steps have changed
<clever>
dckc: then you havent changed the build instructions
<clever>
nix-env -iA nixos.newstuff, will install every value in that set
<{^_^}>
[nixpkgs] @dtzWill opened pull request #55065 → llvm-polly,clang-polly: Add llvm/clang variants w/polly support → https://git.io/fhSLs
<jonreeve>
Nice
Rusty1 has quit [Quit: Konversation terminated!]
<dckc>
what to do about stuff that's expected to be found via LD_LIBRARY_PATH?
rwe has joined #nixos
<clever>
dckc: use patchelf to add it to the RPATH
<dckc>
I'm not sure how to fit that into the structure of rPackages.ROracle.overrideDerivation ; got a clue? Or is there a way to add it to the list of libraries at compile time?
<clever>
dckc: after something is compiled, you can run patchelf to modify it, or use wrapProgram to prefix LD_LIBRARY_PATH
<dckc>
my expression so far looks like: let instantclient = ... in rPackages.ROracle.overrideDerivation (attrs: { configureFlags = [ "--with-oci-lib=${instantclient}" ]; })
<dckc>
I'm not sure where wrapProgram would fit in there.
<clever>
since your using overrideDerivation, you can just shove it into something like postInstall = '' ls $out/bin; '';
* dckc
checks to see if rPackages already has some facility for wrapping...
lassulus has quit [Ping timeout: 250 seconds]
dsiypl4_ has quit [Ping timeout: 245 seconds]
<dckc>
at the risk of being dense... I don't see how ls would help
<dckc>
strace ldd is showing: openat(AT_FDCWD, "/lib/x86_64-linux-gnu/tls/haswell/x86_64/libmql1.so", O_RDONLY|O_CLOEXEC)
<dckc>
etc.
<clever>
dckc: why is it looking in /lib/ ?
<dckc>
hellifino; isn't that where ldd usually looks?
<dckc>
(this is normal ubuntu ldd)
<clever>
you may want to use nix ldd
<dckc>
`nix-shell -p ldd` loses; got a clue?
<clever>
its part of glibc, which should be in the default env
<clever>
`nix-shell -p` is enough
gagbo has quit [Ping timeout: 272 seconds]
<dckc>
now I only get: openat(AT_FDCWD, "/nix/store/fivq0nbggp4y8mhy3ixprqd7qyn1hy2j-glibc-2.27/lib/libmql1.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT
<dckc>
it looks all over before finding this one: openat(AT_FDCWD, "/nix/store/bzx6cwbqgk2z5491nlf7wjyw7ymqw6lf-instantclient-12_1/libclntsh.so.12.1", O_RDONLY|O_CLOEXEC) = 3
<clever>
yeah, thats normal
<clever>
which library actually needs libmql1.so?
<clever>
is it ROracle.so or one of its deps?
<clever>
the rpath has to be fixed, on the right lib
<dckc>
I'm not sure how to tell
<clever>
lddtree
<clever>
,locate bin lddtree
<{^_^}>
Found in packages: pax-utils
<dckc>
`nix-shell -p lddtree` loses
<dckc>
thanks...
<dckc>
aha! it's libclntsh.so that wants libmql1.so and friends
<dckc>
what's the normal patchelf pattern?
<clever>
when ld.so is handling DT_NEEDED, it only obeys the RPATH on the ELF file that DT_NEEDED'd the thing
acarrico has joined #nixos
<clever>
for compiled things, there are gcc flags that just set it right from the start
<clever>
for pre-compiled stuff, you usually just patchelf every library with the same rpath
<clever>
and then the fixup phase will run --shrink-rpath, to remove un-needed things
<dckc>
right... but how? in installPhase?
lassulus has joined #nixos
<clever>
or preInstall, or postInstall
<dckc>
there isn't a norm?
<clever>
mostly preference, if you want to patch the copy in the working dir, before its copied to $out
<simpson>
I'm fixing up a derivation with optional Python support, and I'm getting this delightful combination of wrongness: https://bpaste.net/show/4fb08ee3fd60
eadwu has quit [Quit: WeeChat 2.3]
<clever>
simpson: looks like nuke-references
<simpson>
clever: My current thought is that I should patch that setup.py --root --record line a bit. Any idea what those flags do?
<clever>
no idea
psy3497 has quit [Quit: WeeChat 2.3]
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 240 seconds]
lassulus_ is now known as lassulus
<simpson>
I wonder if it's something wrong with Cython.
<CrazedProgrammer>
I have a feeling I should mention it in the release notes...
<MichaelRaskin>
Indeed
ambro718 has joined #nixos
CrazedProgrammer has quit [Remote host closed the connection]
obadz has quit [Quit: WeeChat 2.3]
mounty has quit [Remote host closed the connection]
mounty has joined #nixos
ambro718 has quit [Quit: Konversation terminated!]
obadz has joined #nixos
averell has quit [Ping timeout: 252 seconds]
silver has joined #nixos
daifa has joined #nixos
tilpner has joined #nixos
<tilpner>
Hi, does anyone happen to know the conditions for the initrd to advance to the next stage?
<tilpner>
I'm stuck in ssh-to-initrd, and I feel it should boot, but cryptsetup-askpass doesn't agree
<otwieracz>
Hm. I am using ssh to initrd and it works…
<tilpner>
Yes, it worked fine here too
<tilpner>
But then I replaced a disk, so the /dev/disk/by-id path doesn't exist anymore
<tilpner>
So cryptsetup-akspass can't unlock that device
<tilpner>
I can do it manually, but it doesn't advance the boot
<tilpner>
Maybe I should be using /dev/disk/by-partlabel instead
<tilpner>
But before I can switch to that, I need to get this booting at least once
averell has joined #nixos
<MichaelRaskin>
Do you actually need to boot?
<rnhmjoj>
is there an env variable or an option to control the nixos channel temporarily? i want to test building my configuration on a different channel without invoking nix-channel
<MichaelRaskin>
Mount everything by hand, chroot, Nix as root can build stuff even without daemon?
rprije has quit [Ping timeout: 250 seconds]
<ckauhaus>
rnhmjoj: nix-build -I nixpkgs=...
<ben>
rnhmjoj: my "test this config" thing is NIX_PATH=nixpkgs=...:nixos-config=... nixos-rebuild ...
<rnhmjoj>
thank you, does that support the <> notation?
Makaveli7 has joined #nixos
<tilpner>
MichaelRaskin: Maybe not, I've thought about that, but it seemed tricky too. I would need to copy the derivations into the chroot, and I don't know if that would mess up any state if done without the daemon running
<tilpner>
Do you think I can just nix-copy-closure to /mnt/nix and not break anything?
<MichaelRaskin>
I think if you nix-copy-closure from inside (so no need to ssh as root), that would be fine
<MichaelRaskin>
In my experience daemon is critical only for privilege arbitrage; multiple as-root no-daemon Nix invocations grab enough locks not to trample each other
<pbb>
tarballs should generally be preferred over fetchgit, because they are faster, right?
<MichaelRaskin>
Faster for both sides, yes
<MichaelRaskin>
In the sense that exactly the content you want is gathered and even pre-compressed
Daifa_ has joined #nixos
daifa has quit [Ping timeout: 256 seconds]
<pbb>
who can instruct OfBorg to build packages? is it allowed for all contributors, or only for selected ones?
<MichaelRaskin>
All committers + a whitelist of contributors
<pbb>
thanks
ambro718 has joined #nixos
<ambro718>
What are current possibilities for seamlessly running normal Linux binaries on NixOS?
<tilpner>
Yay, boot advances past cryptsetup-askpass. Thank you, MichaelRaskin :)
Judson has joined #nixos
Judson is now known as Guest28063
<MichaelRaskin>
Right, I forgot that on actual NixOS setting up networking after not-fully-booting might not be completely trivial, sorry
<{^_^}>
[nixpkgs] @vcunat pushed to staging-next « haskellPackages.servant: fixup build after 86f646da »: https://git.io/fhS38
hcs^ has joined #nixos
hcs^ has quit [Max SendQ exceeded]
hcs^ has joined #nixos
hcs^ has quit [Max SendQ exceeded]
alex`` has joined #nixos
<tilpner>
MichaelRaskin: The entire system was still in /mnt/nix, it only built a few config files, so it didn't any caches
Ariakenom has quit [Quit: Leaving]
<tilpner>
I still wonder what could have made this disk replacement smoother
<MichaelRaskin>
Yeah, normally just replacing disk ID should work without network-hitting builds
<tilpner>
Maybe it should have been replaced without shutting down? I don't know if Hetzner can even physically do that
Ariakenom has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
<tilpner>
But configuring luks by-id seems quite annoying
Ariakenom has joined #nixos
<tilpner>
So, uhh, any suggestions from experience? from-partlabel should work fine, from-path could probably eat data if not careful
Guest43281 has quit [Ping timeout: 240 seconds]
<Daifa_>
Hi. I'm trying to show an image in octave but it yields an error that there was something missing while building octave. A quick search reveals that probably graphicsmagick is missing and that this should be reported during building. In fact in nix log it is reported. default.nix for octave has graphicsmagicks in its buildInputs but I do not find it when printing $buildInputs in a nix-shell. I feel like it should find magicks there. Am
<gagbo>
If I want to use the nixpkgs-unstable version of one package (here, qtile), can I create a simple nix expression using the unstable channel in my home.nix ? I can't find anything about that in the manual for now
<tilpner>
laas: Aha, error[E0433]: failed to resolve: maybe a missing `extern crate nix;`?
simukis has quit [Remote host closed the connection]
<laas>
yeah, but I have no idea how to fix that
<laas>
what does it mean
<laas>
I was thinking it might be because `sd` is edition 2015, but it's 2018
<tilpner>
Yep, same thought
<tilpner>
I'll try it with a newer rust
<boogiewoogie>
hey, I want to install an old wine version that seems to not be in the repo anymore -- 1.9.6 specifically. how would you do this?
dermetfan has quit [Quit: WeeChat 2.3]
<gchristensen>
boogiewoogie: me? I'd find the .nix file in nixpkgs, `git log ./that/file.nix` and find where 1.9.6 was in there
<tilpner>
boogiewoogie: 16.09 had 1.9.16, if that works for you
upsaday has joined #nixos
eadwu has joined #nixos
<gagbo>
Is it normal that I only have nixos-unstable listed in nix-channels --list after adding the unstable channel ? I thought there would also be the stable channel used in /etc/nixos/configuration.nix
sondr3 has quit [Quit: sondr3]
<laas>
gagbo: root and normal users have their own channels
<laas>
`sudo nix-channel --list`
<gagbo>
I did use the sudo one
<tilpner>
laas: I can see your atomic_write error now too
<gagbo>
basically it went 1) have stable chan in etc/config and nixos-install 2) sudo add nixos-unstable channel and update it 3) sudo nixos-rebuild switch complains there's no nixos channel 4) sudo nix-channel --list doesn't show nixos
<gagbo>
I did not reinstall that VM yet to see what the output of sudo nix-channel --list is just after nixos-install and reboot.
<boogiewoogie>
gchristensen tilpner: thanks! yes, 1.9.16 would be fine! how would I access 16.09's packages?
<laas>
tilpner: maybe we should just ask the guy who made carnix
<boogiewoogie>
laas: since it's just executables, is there any functional difference between setting the lower priority one inactive and giving it a lower priority flag?
orivej has joined #nixos
<laas>
boogiewoogie: I don't think so
<laas>
I am not sure however
<laas>
I am myself quite a noob
<laas>
been barely one month since I started using nix
<boogiewoogie>
laas: alright. still, thanks! :)
delroth has quit [Quit: WeeChat 2.3]
delroth has joined #nixos
teehemka_ has joined #nixos
tikznutsa has joined #nixos
blankhart has joined #nixos
<pbb>
I want to define an nginx virtualhost location, but only if the virtualhost was defined in another module before. Is that possible?
<pbb>
I always get recursion errors, which makes sense since I want to set the attribute I'm checking
<clever>
pbb: not easily, would be simpler to define a custom option, then have both modules check that
boogiewoogie has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @dotlambda pushed 2 commits to staging-next: https://git.io/fhSsF
noonien has joined #nixos
knupfer has joined #nixos
<{^_^}>
[nixpkgs] @dtzWill opened pull request #55084 → compton-git: 5 -> 5.1-rc2, fix crashes and other regressions → https://git.io/fhSGf
dsiypl4__ has joined #nixos
<noonien>
hello folks
<noonien>
is it possible to list all files from a package?
<noonien>
or, find a file?
<gchristensen>
what is it you want to ccomplish?
dsiypl4_ has quit [Ping timeout: 268 seconds]
<noonien>
i want to find the equivalent of /usr/local/share/doc/polybar/config
<noonien>
i could do a find in /nix/store, however, i remember reading about a command that does just what i ned
<noonien>
need*
<tilpner>
tree $(nix-build --no-out-link '<nixpkgs>' -A polybar)
<clever>
nix-locate and nix-index
<tilpner>
Which leads to /share/doc/polybar/config
<clever>
you can also `nix-store -qR /run/current-system | grep polybar` if your current-system depends on it
<noonien>
clever: hmm, i've got neither
sicklorkin has joined #nixos
<noonien>
also, `command-not-found` seems to not work, i get `DBI connect('dbname=/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite','',...) failed: unable to open database file at /run/current-system/sw/bin/command-not-found line 13. cannot open database `/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite' at /run/current-system/sw/bin/command-not-found line 13.`
<clever>
noonien: do you have a channel called nixos on root?
<noonien>
i've never logged in as root on this install, without sudo
<clever>
noonien: `sudo -i` and then `nix-channel --list`
<noonien>
so, i don't know, it should have the defaults
<noonien>
yes, it appears to have it
<clever>
noonien: ls -lh /nix/var/nix/profiles/per-user/root/channels/nixos
pointfourone has left #nixos ["Leaving"]
<dhess>
I know there's home-manager for homedir management, what's the other one?
<{^_^}>
[nixpkgs] @timokau pushed commit from @roosemberth to release-18.09 « youtube-dl: 2019.01.17 -> 2019.01.30.1 (#55076) »: https://git.io/fhSGl
tikznutsa has quit [Quit: Page closed]
orivej has quit [Ping timeout: 268 seconds]
locallycompact has joined #nixos
<noonien>
what is an "overlay"? i see it used in quite a few configurations
Ariakenom has quit [Read error: Connection reset by peer]
<simpson>
noonien: Technically, an overlay is anything with a specific signature that can rewrite an object. In practice, they are extended package sets which can be composed onto ("overlaid onto") nixpkgs or other package sets.
<simpson>
,overlay
<{^_^}>
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
<noonien>
hmm, is the recommended way of adding your own packages? and not creating your own channel?
<clever>
noonien: yeah, i use overlays any time i add packages to my systems
<noonien>
i'm guessing this is so there are no surprises when having packages with different versions
<{^_^}>
[nixpkgs] @timokau merged pull request #55015 → kdevelop: 5.2.4 -> 5.3.1, bump llvm version used from 3.8 to 7 → https://git.io/fhyKH
<{^_^}>
[nixpkgs] @timokau pushed commit from @aanderse to master « kdevelop: 5.2.4 -> 5.3.1, bump llvm version used from 3.8 to 7 (#55015) »: https://git.io/fhSGa
upsaday has joined #nixos
<simpson>
noonien: It depends on your goals. For example, I have a goal to minimize my private package set, so I develop my derivations on nixpkgs directly and plan to send them upstream.
knupfer has quit [Ping timeout: 250 seconds]
<noonien>
i see, cool
teehemka_ is now known as teehemkay[away]
<noonien>
command-not-found seems to be working after a `nixos-rebuilt switch --upgrade`
<clever>
noonien: nix-channel --update, is what fixed it (and --upgrade runs that behind the scenes)
<noonien>
yeah, i wanted to update the pacakges as well
<noonien>
i have some weird issue sometime, the display just freezez, the mouse works, i can hear sound, the keyboard seems to work as well(ctrl+alt+f1 interrupts the sound, but the screens are still frozen, and sysrq+REISUB still works)
<noonien>
this might be because i've not installed the intel microcode yet, or perhaps the intel/nvidia driver, i guess this doesn't happen by default
<clever>
noonien: sounds like a gpu issue, not a microcode issue
<clever>
noonien: i would check `journalctl -b -1` to see the logs from the previous boot
<clever>
noonien: or ssh in from another machine, while its crashed, and read the journal
sicklorkin has quit [Ping timeout: 246 seconds]
<tilpner>
noonien: Did you get "station" running?
<noonien>
yeah, i'll give that a try, i can't see anyting relevant in the journal
eadwu has quit [Quit: WeeChat 2.3]
<noonien>
tilpner: not yet, sticked with rambox atm, will start working on that once i'm done with getting the OS in working order
<noonien>
appimage-run .AppImage did not seem to work
<noonien>
it was complaining about missing a dependency when ld-ing
<tilpner>
Sure, that can be fixed
<noonien>
and i'm unsure if ld works as with normal systems, can i just install the dependency system-wide and it'll work?
<tilpner>
No, you'd have to add it to appimage-run or appimageTools
<noonien>
yeah, that's what i figured
<tilpner>
Which can be done per-package
nbp_ is now known as nbp
<laas>
is there a way to get network access in build scripts?
<clever>
laas: what do you need network access for?
<laas>
cargo needs network access
<laas>
it's not actually a "functional" build then, I suppose
<clever>
laas: use the rust framework in nixpkgs, which will handle giving cargo network at the right time
<laas>
it doesn't work
<laas>
it doesn't work with 2018 edition just like carnix
<clever>
laas: the only way to get network access, is to define the hash of $out, and its best to do that on only the part that downloads source, or your going to have fun updating the hash every time you make a new compile
<symphorien>
laas: nixos-unstable has a recent enough rustc for 2018 edition
<clever>
fixed-output derivations have the following attrs, outputHashMode, outputHashAlgo, outputHash
teehemkay[away] has quit [Quit: ZZZzzz…]
<symphorien>
So buildRustPackage should work
<laas>
symphorien: that's not the problem though
<tilpner>
laas: Huh? I would have expected buildRustPackage to work there, given that it uses cargo instead of a Nix reimplementation
<laas>
it messes up with my dependencies
<laas>
tilpner: it can't find one of my dependencies
<tilpner>
Can you share your current working default.nix?
<laas>
I use the crate rename feature
<laas>
I don't have one
orivej has joined #nixos
<laas>
I'm trying to make one
<laas>
clever: how do I generate a hash?
<tilpner>
Not as in "it works", but as in "I'm working on this"
<symphorien>
It is using cargo-vendor under the hood
<clever>
laas: simplest answer is to just give the wrong one, and then let nix tell you what the right one is
<clever>
,tofu laas
<laas>
tilpner: my current script just does `env HOME=$(realpath .) cargo build`
<{^_^}>
laas: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<laas>
oh that's easy
<tilpner>
laas: So you're not using buildRustPackage?
<symphorien>
Check if cargo-vendor supports renamed dependencies
<laas>
yeah currently not
<tilpner>
You should try that
<symphorien>
^
<clever>
> let f = pkgs.hello.src; in "${f.outputHashMode} ${f.outputHashAlgo} ${f.outputHash}"
<noonien>
what happens if i do, `services.redshift.enable = true;` and `services = { openssh.enable = true };` in another file? will redshift be disabled?
<gchristensen>
no
<noonien>
i see, what happens if they're in the same file?
sicklorkin has joined #nixos
<gchristensen>
you can't have two definitions of `services` in one file :)
agander has joined #nixos
<ben>
generally either the parser will yell at you or it's going to do something reasonable
<gchristensen>
so you'dhave to do services.redshift.enable = true; services.openssh.enable = true; or, services = { redshift ... openssh... }
<jluttine>
Syncthing service failing to build on nixos-unstable. I can run `nix-shell -p syncthing` without problems, but enabling the syncthing systemd service fails to build syncthing. really weird.. any ideas what could cause this?
akapav has quit [Remote host closed the connection]
akapav has joined #nixos
<jluttine>
infinisil: my local checkout of nixpkgs
<infinisil>
Yeah, but like, version and stuff. That's the main thing that influences nix builds
hc1^ has joined #nixos
<jluttine>
infinisil: i put some info in that issue report. is there something more you'd like to see and how can i get that info?
<infinisil>
jluttine: I mean, at least the exact git version of the checkout, you didn't put that in the issue
<jluttine>
infinisil: ah true, that provided command doesn't print that info. my commit is: f2a1a4e93be2d76720a6b96532b5b003cc769312. it's current nixos-unstable
knupfer has joined #nixos
drakonis1 has joined #nixos
fusion809 has joined #nixos
knupfer has quit [Remote host closed the connection]
<infinisil>
Yeah so I can't reproduce it, there must be something in your setup that makes this fail
<jluttine>
infinisil: oohps, yeah, i figured it out... quite embarassing.. i had defined an overlay for syncthing in my service definition.. sorry for the trouble, and thanks for the help!
<infinisil>
jluttine: Np :)
<edef>
where are fosdem folk going for dinner? cc fpletz
daifa has quit [Ping timeout: 256 seconds]
<infinisil>
edef: #nixos-fosdem
mizu_no_oto has joined #nixos
<noonien>
hmm, is there a nordvpn package?
xkapastel has joined #nixos
<gchristensen>
looks like it is just openvpn, noonien
<noonien>
hmmm
<noonien>
it seems they only provide a .deb
<noonien>
gonna have to take a look inside, maybe it's just a simple binary
<noonien>
this is how google-chrome is also downloaded if i'm not mistaken
<noonien>
are there helpers to work with deb files?
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
<noonien>
i want to run factorio for the firs time, and i get an error, this is a strace of the run: http://vpaste.net/dylRJ
<dtz>
well FWIW I went through every commit between 4.20 and 5 that would have changed this (with various heuristics)-- I have notes on how that went but remember finding a commit where Linus was like "lol actually enforce the limit like we should have been doing oops this is so broken" and that commit (linked from PR) seemed like it? Anyway it's actually not a part of code that changes a lot ^_^ so shouldn't be too bad to chase down
<dtz>
+1 to VM test
<dtz>
(and bisect run)
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
kurimi has joined #nixos
<laas>
what was the effective limit before anyway?
<laas>
it just truncates it it seems...
<laas>
why does nixos even work then?
Makaveli7 has quit [Ping timeout: 252 seconds]
acarrico has joined #nixos
<gchristensen>
does our postgres auto-vacuum?
<{^_^}>
[nixpkgs] @zimbatm opened pull request #55094 → pkgconfig: rename to pkg-config → https://git.io/fhSn6
<gchristensen>
"yes"
<laas>
I'm trying to update the cargo-vendor package, but I can't get carnix to work of course...
<aszlig>
gchristensen: so for every revision, i update the rev and let it run on my build farm
<aszlig>
gchristensen: i'm using the github mirror here because the kernel.org git is very slow
_kwstas has quit [Ping timeout: 250 seconds]
ddellaco_ has quit [Remote host closed the connection]
<aszlig>
s/every revision/& in the bisect/
<aszlig>
gchristensen: i could have used "src = lib.cleanSource ~/linux" here as well, but that would take ages to upload to the build machines
<aszlig>
so it's only useful if you bisect locally
<{^_^}>
[nixpkgs] @samueldr pushed to master « linux: Removes the previously removed raspberry pi patch »: https://git.io/fhScE
upsaday has quit [Remote host closed the connection]
upsaday has joined #nixos
JosW has joined #nixos
cantstanya has quit [Ping timeout: 256 seconds]
griff_ has quit [Ping timeout: 244 seconds]
cantstanya has joined #nixos
_kwstas has joined #nixos
sicklorkin has joined #nixos
brejoc has joined #nixos
balsoft has joined #nixos
gagbo has quit [Quit: I'm out !]
sicklorkin has quit [Ping timeout: 240 seconds]
<simpson>
Any ideas on how to get opendht to have Python support? The door seems to be opened by adding `python3Packages.cython` to buildInputs, but the rest of the build doesn't work. Similar packages with bundled Python bindings haven't revealed useful hints.
<simpson>
I also have more fixes for this package, like a version bump and doc/manpage fixes, but this is a real stumper, and I'm not interested if I can't use the Python bindings.
<tilpner>
fosterop[m]: #nixos-fosdem is apparently a thing
_kwstas has quit [Quit: _kwstas]
<fosterop[m]>
Yeah, saw it. Thanks
<simpson>
ottidmes: What are you seeing in there? I'm not seeing anything relevant.
q6AA4FD has quit [Ping timeout: 246 seconds]
<ottidmes>
simpson: its stating both cpython, and python as optional dependency for the bindings, and I see an explicit -DOPENDHT_PYTHON=ON
<ottidmes>
assuming cython is cpython?
balsoft has quit [Ping timeout: 245 seconds]
<rain1>
gnu/stubs-32.h: No such file or directoryHow do I get a nix shell with 32 bit toolchain around? I tried some stuff but I keep getting the error
<rain1>
oops
<rain1>
the end of the message came at th estart
<simpson>
ottidmes: Cython is not CPython.
<symphorien>
rain1: do you want multilib or only 32bit support
<symphorien>
?
<fosterop[m]>
I am usinc riot. Is there still a way to join nixos-fosdem?
<simpson>
ottidmes: Cython is a language that compiles to CPython extension modules. By including Cython, the configure script decides to enable Python support. Without Cython, the configure script won't set up the Python module.
<ottidmes>
simpson: I noticed "configure: WARNING: Cython not found - continuing without python support"
<ottidmes>
simpson: I am suggesting just to reproduce what they have, I tried just now, but we are missing a dependency in Nixpkgs, its in it, but only as a subdependency of another package, not as a standalone package, the restbed dependency
werbitt has joined #nixos
werbitt has quit [Client Quit]
balsoft has quit [Ping timeout: 240 seconds]
domenkozar has quit [Ping timeout: 250 seconds]
domenkozar has joined #nixos
balsoft has joined #nixos
<fosterop[m]>
Tilpner, that string doesn't work.
laalf_ has joined #nixos
<tilpner>
You may want to get a proper IRC client setup, IME bridges from other protocols aren't much fun
shabius has quit [Quit: Leaving]
<ottidmes>
simpson: I got it building with cmake now (still in process)
shabius has joined #nixos
simukis has quit [Quit: simukis]
<ottidmes>
simpson: ok, got to the tests, which failed horribly due to a linker error, so I am disabling tests for now
q6AA4FD has joined #nixos
dermetfan has joined #nixos
agander has quit [Quit: Leaving]
s2mitrov has joined #nixos
upsaday_ has joined #nixos
<simpson>
ottidmes: Ah, that's an interesting idea.
<simpson>
I have no idea whether they intend for make or cmake.
shabius has quit [Quit: Leaving]
<s2mitrov>
so the current iterm2 available in nixpkgs (unstable channel) is pretty outdated - is that something I can update? or is it not really recommended to install iterm2 through nixpkgs
<ottidmes>
simpson: it keeps failing on libopendht.so.1.7.4: undefined reference to `TLSv1_1_server_method' and similar for me though, I thought to add maybe openssl to the buildInputs, but that does not seem to work, I probably have to explicitly list them in some parameter, its probably assuming openssl is installed
<ghostyy>
but id like for the display manager to use f10 and f1-f9 to be so i can log in at the console with them
<ghostyy>
is this possible in nixos?
<laas>
This probably isn't the response you want, but I think relying on the built-in console in Linux is a bad idea...
<laas>
you're not supposed to use that except when you have no choice
<simpson>
ottidmes: I'm really not sure whether the cmake build is viable. If you can get it working, then great.
<tilpner>
ghostyy: boot.extraTTYs
<ghostyy>
tilpner, thank you!
<tilpner>
ghostyy: Also: services.xserver.tty
<ottidmes>
simpson: since its in the official Arch Linux repos like that, I assume it is
<simpson>
Hypothetically, if I had a single-file JS application somewhere besides NPM, how would I arrange that into nixpkgs? How would I adapt the existing procedures?
<ghostyy>
this is perfect
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #55097 → all-packages: Just refer to `self`, not `super`, or `res` → https://git.io/fhSC7
upsaday_ has quit [Remote host closed the connection]
upsaday_ has joined #nixos
balsoft has quit [Ping timeout: 244 seconds]
<fpletz>
edef: sorry, saw your message about dinner just now
<simpson>
ottidmes: Oh, that's probably packaged somewhere. I was rather hoping that you had specific insights into building CPython extension modules, as that's seemingly all that's broken on the original Nix expression.
balsoft has joined #nixos
fragamus has quit [Read error: Connection reset by peer]
Laalf has quit [Remote host closed the connection]
<ottidmes>
simpson: not that I could find, I rather dislike Python, so I am afraid I do not have the insights you are looking for.
justanotheruser has quit [Ping timeout: 264 seconds]
locallycompact has quit [Ping timeout: 245 seconds]
eadwu has joined #nixos
JosW has joined #nixos
<gchristensen>
aszlig: nice!
<aszlig>
40 revisions left to test after this (roughly 6 steps)
bl1nk has joined #nixos
iddt has joined #nixos
sondr3 has quit [Quit: sondr3]
<neonfuz>
uh oh...
<neonfuz>
just rebooted and kernel panicking to can't find init
<neonfuz>
and I booted into live usb, mounted my root, and /etc/nixos is a symlink :/
<neonfuz>
where is my nixos config?
<neonfuz>
I was gonna just do a rebuild, is it possible running rebuild-switch could have nuked my config?
<tilpner>
neonfuz: It's possible, but should only happen if you asked it to. Do you have backups or git?
<neonfuz>
oh here, I Think I do have a backup
<neonfuz>
I'm lucky though, I used to store my config in /etc
<neonfuz>
and I do use git but I don't back it up anywhere like github
<neonfuz>
only to sync between my computers which I do infrequently
<tilpner>
Did you do anything weird that would cause all that (init and etc)?
<neonfuz>
no, besides a nix-store --optimise
<neonfuz>
nothing funny though
<neonfuz>
I remember not being able to find the window I ran nix-store --optimise in lol... I wonder if I accidentally closed it and corrupted something?
<neonfuz>
none of my older generations worked either
<tilpner>
That sounds very bad, and probably caused the "can't find init" thing
<neonfuz>
yeah, it's just a guess
sondr3 has joined #nixos
<neonfuz>
I think I can fix it, I found my config
<tilpner>
Keep more backups :/
<teeAyy>
odd question but does nixos have an os-tan yet?
<tilpner>
Is there a way to make hydra not keep a binary cache?
<tilpner>
I already use nix-serve, so I don't see any point in maintaining /var/lib/hydra/cache
<tilpner>
(Other than speed, which I don't think I need for just a few cache consumers)
evck has quit [Ping timeout: 250 seconds]
__monty__ has joined #nixos
Cale has quit [Ping timeout: 250 seconds]
sondr3 has quit [Ping timeout: 250 seconds]
<infinisil>
Oh my god, minecraft server is really bad at accepting a declarative config file
upsaday_ has quit [Remote host closed the connection]
<infinisil>
When it starts, it reads and parses server.properties, then writes to that exact file a newly generated config file, with all defaults filled out, and a timestamp at the top when it generated it..
upsaday_ has joined #nixos
realrokka has quit [Remote host closed the connection]
<ottidmes>
simpson: got it to build, I just hope you don't need the tools, but only the python bindings and shared library
<ottidmes>
simpson: yep it finished building succesfully and contains: lib/python3.6/site-packages/opendht-1.7.4-py3.6-linux-x86_64.egg/opendht.cpython-36m-x86_64-linux-gnu.so
<simpson>
ottidmes: Nice! Can you `import opendht`?
<simpson>
At this point, you could own this if you like. The newest version is 1.8.1.
<ottidmes>
simpson: not sure how :P guess adding it to python packages
<ottidmes>
simpson: no thank you, I rather have nothing to do with maintaining any python
<aszlig>
gchristensen: i'm going to finish the bisect, but i already have the suspicion that 8099b047ecc431518b9bb6bdbba3549bbecdc343 might be the commit that introduced the regression
<ottidmes>
simpson: how about that, simply `nix-shell -p opendht python3` and then `>>> import opendht` worked :)
knupfer has quit [Remote host closed the connection]
<tiksnut>
I have a question. I am currently working on creating a local nix package for my st configuration. Mainly also to learn how nix works
<neonfuz>
ugh, the only nixos iso I had around had nix < 2.0
<neonfuz>
and I have limited data here
<tiksnut>
So I create a nix script just like in the manual (with import ...). When defining buildInputs just like how nixpkgs/st does it nix-build keeps telling me 'undefined variable libX11'
<ottidmes>
could you share what you are doing in a paste?
<steveeJ>
so the nspawn settings do put "/etc/systemd/nspawn/webserver.nspawn" in place, but `systemctl cat systemd-nspawn@webserver` don't show the changes of that snippet
<ghostyy>
thank you but i am not that brave, so i will probably just use an lxd container :p
<steveeJ>
arianvp: may I bug you about systemd-nspawn containers? in https://github.com/NixOS/nixpkgs/issues/51076 it looks like you've thought about this for a bit. can you tell if the current state of these overrides is broken?
<{^_^}>
#51076 (by arianvp, 9 weeks ago, open): nixos/nspawn: Do not use makeUnit to create systemd.nspawn files, causes it to have bogus configuration options
<aszlig>
gchristensen: yep, 8099b047ecc431518b9bb6bdbba3549bbecdc343 is the commit introducing the regression
<infinisil>
tiksnut: How did you decide on that nick?
<infinisil>
Because it's oddly close to another certain someone
<tiksnut>
My motherlanguage is Dutch and I have been heavily playing with the tikz library in Latex
<drakonis1>
infinisil: the question we all wanted to ask
<infinisil>
Hehe alright
<tiksnut>
Is there something I need to know? ^^
<infinisil>
tiksnut: The person with the similar nick is niksnut, Eelco Dolstra, the creator of Nix
<tiksnut>
Damn
leothrix has joined #nixos
<infinisil>
And NixOS and more
<tiksnut>
Cool. Some time ago I setup an account under the name tikznut but I still need to install an irc client on my fresh install
<infinisil>
At least this doesn't mess up autocomplete, unlike the recent encounter with infinii
<tiksnut>
Yes. That was my main concern when choosing a nickname ^^
griff__ has joined #nixos
griff_ has quit [Ping timeout: 268 seconds]
griff__ is now known as griff_
<steveeJ>
could I use the containers.<name>.path option to pass a regular rootfs instead of using the systemd.nspawn option?
<steveeJ>
I can't get systemd.nspawn port mappings to work
<simpson>
Hm. Trying to locally hack on a Node package but just using a local src isn't working; the override doesn't do anything. Why? `pkgs.nodePackages_8_x.dht-storejs.overrideAttrs (_: { src = ./.; })`
<simpson>
Adding to the puzzle, if I change the src dir's contents, then the derivation hashes also change. But the built package is the same.
justanotheruser has joined #nixos
orivej has quit [Remote host closed the connection]
<aszlig>
simpson: you could try setting unpackPhase to null, which should work for specifying a different src
<ottidmes>
simpson: know that you can always make it work outside Nix, you just have to configure the global directory to something different than the /nix/store path, that is what I use for the few nodejs packages I need on NixOS, tried to package them all properly, but there was always a problem or another, just so you know that that alternative works
<simpson>
ottidmes: Nothing today has been of need. This is all exploration.
<simpson>
aszlig: Interesting idea. I'll give that a try in a bit.