vaibhavsagar has quit [(Ping timeout: 246 seconds)]
<sophiag>
ToxicFrog: can you either describe the syntax for that or link me to an example? I'm currently defining my haskell env (with additional packages that aren't in LTS) in packageOverrides, but with no versions specified
<Sonarpulse>
LnL: you working on rustc for i686 to unstick nixpkgs-unstable?
<ToxicFrog>
sophiag: so, the big caveat here is that I've never done this to haskell packages, so if you already know how to use packageOverrides in general there's probably nothing new I can show you
vaibhavsagar has joined #nixos
<Sonarpulse>
good luck!
<ToxicFrog>
sophiag: but here's some packageOverrides specifying custom versions for things: http://ix.io/xrC
thc202 has quit [(Ping timeout: 240 seconds)]
<ToxicFrog>
sophiag: and here's a local-packages file using overrideAttrs to make a custom dosbox variant, so I can have both normal dosbox and debug dosbox installed at the same time: http://ix.io/xrH
<ToxicFrog>
The latter is used via something like:
<ToxicFrog>
let localpkgs = import ./localpkgs.nix pkgs; in { environment.systemPackages = [ ... localpkgs.dosbox_debug ... ]; }
<sophiag>
well, a lot of the battle would be figuring out how to specify a version for LTS (i think i can probably remain fast and loose with the additional packages i've added), but to be clear here's a recent copy of my configuration.nix: https://github.com/Sophia-Gold/configuration.nix/blob/master/configuration.nix
<sophiag>
would i just add something like "version = ... ;" after line 71?
pie_ has quit [(Remote host closed the connection)]
pie_ has joined #nixos
<drtop>
is there a way to bundle severalpackagesinto a single command? i want users to be able to install several tools by just typing nix-env -i thingPlatform
<gchristensen>
drtop: you could usee buildEnvv
<ToxicFrog>
sophiag: I honestly have no idea. I've never touched LTS/haskell at all.
<drtop>
gchristensen: where is buildEnv documented?
<sophiag>
ToxicFrog: ok, thanks anyway. i'll see if any haskellers drop in
<sophiag>
on a different note, does anyone know if there's been progress on the virtualbox problem delaying updates to the unstable branch?
eacameron has quit [(Remote host closed the connection)]
eacameron has joined #nixos
<ison111>
Is there any way to tell mod_wsgi (which is a module for httpd) to use the nix-shell instead of just calling python? I need it to call nix-shell so I can add some modules to python
lambdamu has joined #nixos
rjsalts` is now known as rjsalts
mudri has quit [(Ping timeout: 240 seconds)]
lambdamu_ has quit [(Ping timeout: 260 seconds)]
vaibhavsagar has quit [(Remote host closed the connection)]
vaibhavsagar has joined #nixos
MP2E has quit [(Quit: brb)]
eacameron has quit [(Remote host closed the connection)]
eacameron has joined #nixos
digitalmentat has quit [(Remote host closed the connection)]
digitalmentat has joined #nixos
johnsonav has joined #nixos
Supersonic112 has quit [(Ping timeout: 240 seconds)]
s33se has joined #nixos
Supersonic112 has joined #nixos
justan0theruser has joined #nixos
s33se_ has quit [(Ping timeout: 246 seconds)]
justanotheruser has quit [(Ping timeout: 240 seconds)]
mbrgm has quit [(Ping timeout: 240 seconds)]
mbrgm has joined #nixos
digitalmentat has quit [(Ping timeout: 240 seconds)]
orivej has quit [(Ping timeout: 260 seconds)]
ghs39ghsggf has joined #nixos
ghs39ghsggf has left #nixos []
justbeingglad has joined #nixos
justbeingglad has left #nixos []
justan0theruser has quit [(Quit: WeeChat 1.7.1)]
justanotheruser has joined #nixos
spinus has quit [(Read error: Connection reset by peer)]
Hoolootwo has quit [(Ping timeout: 245 seconds)]
spinus has joined #nixos
Hoolootwo has joined #nixos
zeus_ has quit [(Remote host closed the connection)]
thetet has quit [(Ping timeout: 255 seconds)]
zeus_ has joined #nixos
spinus has quit [(Ping timeout: 268 seconds)]
justanotheruser has quit [(Quit: WeeChat 1.7.1)]
justanotheruser has joined #nixos
zeus_ has quit [(Ping timeout: 240 seconds)]
leat has quit [(Ping timeout: 246 seconds)]
myguidingstar has joined #nixos
myguidingstar has quit [(Client Quit)]
justanotheruser has quit [(Quit: WeeChat 1.7.1)]
justanotheruser has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vH5Eu
<NixOS_GitHub>
nixpkgs/master fd2976b Peter Hoeg: syncthing: 0.14.29 -> 0.14.30
NixOS_GitHub has left #nixos []
kini has quit [(Quit: No Ping reply in 180 seconds.)]
kini has joined #nixos
cpennington has joined #nixos
jtojnar has joined #nixos
justanotheruser has quit [(Quit: WeeChat 1.7.1)]
<jtojnar>
How can I add gnomeExtensions.dash-to-dock to systemPackages? I set system.autoUpgrade.channel to https://nixos.org/channels/nixos-unstable but I still “get undefined variable ‘gnomeExtensions’”
endformationage has quit [(Ping timeout: 240 seconds)]
<jtojnar>
oh, I thought it was only meant for user profiles
<clever>
when ran as root, it can also manage the channel nixos uses
<jtojnar>
neat, thanks
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vH5ze
<NixOS_GitHub>
nixpkgs/master 773cc7c Josef Kemetmueller: pythonPackages.hug: Disable on python2...
NixOS_GitHub has left #nixos []
<catern>
wait so
<catern>
I'm still not sure what the best practice is to build a package from local source
<catern>
(package is emacs)
<catern>
should I copy the default.nix out of nixpkgs?
<catern>
and try to adapt it...?
digitalmentat has quit [(Ping timeout: 246 seconds)]
<MP2E>
catern: yep that's generally what I do. copy the default.nix out to its own folder and edit the src field to point to the directory on your local fs for some quick development then make sure to either override the existing emacs package in ~/.nixpkgs/config.nix or put it under a new derivation name
<catern>
seems like it's easier to just clone nixpkgs and modify it
<catern>
MP2E: yes, but that's not working properly
<catern>
I started off trying to fix errors by adding "with import <nixpkgs> {};"
<catern>
but that seems insufficient?
<catern>
currently I get "cannot auto-call function without default value (stdenv)"
justanotheruser has quit [(Quit: WeeChat 1.7.1)]
justanotheruser has joined #nixos
justanotheruser has quit [(Client Quit)]
<MP2E>
going to need some more context, what commands are you running ? what file is "with import <nixpkgs> {};" in?
justanotheruser has joined #nixos
<MP2E>
also what are you trying to do to emacs? just build as a nixos package except off of a local source directory instead?
<MP2E>
just making sure i understand
<catern>
yeah I have some local patches
<MP2E>
ah
<catern>
I'm running nix-build
<catern>
I've just copied default.nix into my emacs checkout
<catern>
and replaced src with a fetchgit of ./.
<MP2E>
patches make it even easier, in that case, I'd recommend cloning nixpkgs and going into the emacs default.nix file and adding 'patches = [ ./your-patch-name-here,patch ./you-can-add-more-than-one ]
<MP2E>
and just putting the patches in there
<MP2E>
same directory as default.nix
<catern>
yeah I mean, right now I'm just tweaking the package in my local nixpkgs clone
<catern>
that seems very easy
<catern>
I wish software came with a default.nix :)
<MP2E>
ah! yeah me too, nix is very nice to work with
calvertvl has joined #nixos
schoppenhauer has quit [(Ping timeout: 246 seconds)]
<calvertvl>
is there a good example package I can look at for an application with optional X11 support ? preferably something that on nixos would use the state of services.xserver.enable
<clever>
calvertvl: packages with nixpkgs cant detect what nixos options you have enabled
<clever>
calvertvl: you would need to either make 2 versions and have the user pick the right one, or make a nixos module
<clever>
or make it an argument, and let the user .override it later
schoppenhauer has joined #nixos
hellrazo1 has joined #nixos
hellrazor has quit [(Ping timeout: 240 seconds)]
moet has joined #nixos
moet has quit [(Client Quit)]
<calvertvl>
clever: thanks
philipwhite has joined #nixos
leat has joined #nixos
cpennington has quit [(Remote host closed the connection)]
<davidak>
why is the linux kernel only compiled on one core? it would be much faster to use all
philipwhite has quit [(Quit: Page closed)]
NextHendrix has left #nixos ["ERC (IRC client for Emacs 25.2.1)"]
<clever>
davidak: what is build-cores set to in /etc/nix/nix.conf?
* clever
heads to bed
hellrazor has joined #nixos
hellrazo1 has quit [(Ping timeout: 240 seconds)]
marusich has joined #nixos
qewzee has quit [(Ping timeout: 260 seconds)]
Olgierd has quit [(Ping timeout: 260 seconds)]
pmeunier has quit [(Ping timeout: 245 seconds)]
iMatejC has quit [(Ping timeout: 240 seconds)]
pmeunier has joined #nixos
<davidak>
clever: build-max-jobs = 4
<davidak>
build-cores = 1
Olgierd has joined #nixos
qewzee has joined #nixos
iMatejC has joined #nixos
<davidak>
so i should change nix.buildCores
vaibhavsagar has quit [(Ping timeout: 240 seconds)]
Mateon3 has joined #nixos
Mateon1 has quit [(Ping timeout: 268 seconds)]
Mateon3 is now known as Mateon1
johnramsden has joined #nixos
reinzelmann has joined #nixos
digitalmentat has joined #nixos
endforma1 has quit [(Quit: WeeChat 1.7)]
slabity has quit [(Read error: Connection reset by peer)]
proteusguy has quit [(Remote host closed the connection)]
vaibhavsagar has joined #nixos
MercurialAlchemi has joined #nixos
MP2E has quit [(Quit: brb)]
<unlmtd>
has anyone done self-signed kernels for secure boot yet?
<unlmtd>
nixos could actually make the whole thing a lot smoother than other distros
Itkovian has joined #nixos
proteusguy has joined #nixos
Intensity has quit [(Remote host closed the connection)]
uralbash has joined #nixos
leat has quit [(Ping timeout: 255 seconds)]
FRidh has quit [(Quit: Konversation terminated!)]
xeviox has joined #nixos
uralbash has quit [(Ping timeout: 255 seconds)]
ericsagnes has quit [(Ping timeout: 255 seconds)]
roconnor has quit [(Quit: Konversation terminated!)]
Itkovian has quit [(Read error: Connection reset by peer)]
jgertm has joined #nixos
xeviox has quit [(Quit: Leaving)]
katyucha_ has joined #nixos
katyucha is now known as Guest11804
katyucha_ is now known as katyucha
uralbash has joined #nixos
YellowOnion has joined #nixos
MichaelRaskin has quit [(Remote host closed the connection)]
uralbash has left #nixos []
<YellowOnion>
anyone family with the steam package, and could help me make a package for steamcmd?
<YellowOnion>
familiar*
Intensity has joined #nixos
<YellowOnion>
IDK why I get "bad interpreter", I think it's the lack of 32bit support in nixos
digitalmentat_ has joined #nixos
digitalmentat has quit [(Ping timeout: 246 seconds)]
orivej has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] garbas pushed 1 new commit to master: https://git.io/vH5i6
<NixOS_GitHub>
nixpkgs/master cc0ce6b Rok Garbas: rofi-pass: 1.4.3 -> 1.5.0
NixOS_GitHub has left #nixos []
Itkovian has joined #nixos
trikl has joined #nixos
MP2E has joined #nixos
calvertvl has quit [(Quit: leaving)]
digitalmentat_ has quit [(Ping timeout: 258 seconds)]
FRidh has joined #nixos
<ison111>
YellowOnion: I just tried running it, are you talking about "/bin/bash: bad interpreter"? If so then you should just have to change the shebang at the beginning of the script to "#!/usr/bin/env bash"
<YellowOnion>
ison111, Oh right
Wizek_ has joined #nixos
<YellowOnion>
ison111, nevermind, linux32/steamcmd is a 32bit binary that doenst run
<YellowOnion>
"no such file or directory"
marsel has joined #nixos
<LnL>
is it a precompiled binary?
<YellowOnion>
yes
<YellowOnion>
not having multilib is annoying
Wizek__ has joined #nixos
<ison111>
I think you can fix it with "patchelf". I just got it to run and start updating. Seems to give another error though
jgertm has quit [(Ping timeout: 246 seconds)]
<ison111>
YellowOnion: Yeah it looks like you can get it to work but then the updater overwrites "steamcmd" again and then tries to run it so it reverts the fix. There might be some way to stop that though
<YellowOnion>
probably checksums the file to check its up to date.
<YellowOnion>
ison111, what do I do with patchelf?
ison111 has quit [(Ping timeout: 240 seconds)]
<trikl>
How can I do so that cmake's FindQt4 module finds QtCore? I've tried adding kdelibs and qt4 as propagatedBuildInputs, without success
<trikl>
Other applications in pkgs/applications/kde/ don't seem to have this issue
<sphalerite>
YellowOnion: Steam works a bit differently from most other packages. It creates an environment where /usr exists and is bound to the libraries in the nix store
<sphalerite>
YellowOnion: steamcmd would probably need to run in a similar environment
<YellowOnion>
sphalerite, yeah that was my though, currently using wine with the windows version becuase there wasn't a linux binary until recently
<YellowOnion>
of the game that is.
ericsagnes has joined #nixos
<sphalerite>
I don't know the details of how it's set up but you can probably draw inspiration from steam's package
<YellowOnion>
yeah, it's very complex, and I'm not sure what half of it does.
civodul has joined #nixos
isHavvy has quit [(Quit: Computer Restarted or Restarting IRC)]
<LnL>
YellowOnion: then you have to patch the glibc interpreter
<sphalerite>
trikl: http://ix.io/xsm generates successfully for me in 'nix-shell -p cmake qt4 gcc'
<sphalerite>
And putting qt4 in buildInputs should be enough
<sphalerite>
I think
indi_ has quit [(Remote host closed the connection)]
<LnL>
YellowOnion: use stdenv_32bit.mkDerivation with something like patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/bin/foo
indi_ has joined #nixos
indi_ has quit [(Remote host closed the connection)]
<YellowOnion>
LnL, I don't think you can patch the binary, they check the checksum.
indi_ has joined #nixos
<sphalerite>
trikl: Any chance of an MCV example of your problem?
Havvy has joined #nixos
<LnL>
YellowOnion: and you can't build it from source I assume
<YellowOnion>
LnL, considering moving to a more familiar OS to be honest, too much work for just a hobby server.
<YellowOnion>
I cant even get wine to work at the moment, says I have the wrong version
<YellowOnion>
dispite it working with another exe
tmaekawa has joined #nixos
<sphalerite>
YellowOnion: Moving to a different OS is probably easiest, given that there doesn't seem to be any "prior art" on running SteamCMD in nixos. I tried it at one point as well but can't remember how far I got, just that it definitely wasn't working fully
<YellowOnion>
I've had a few issues with nix that has made downtime worse like for example nginx just silently fails if theres an error in the config dipsite nginx having tools for validation
filterfish has joined #nixos
Wizek_ is now known as Wizek
<trikl>
sphalerite: Here is what I'm trying to do http://ix.io/xsp
thc202 has joined #nixos
johnramsden has quit [(Quit: Leaving)]
<sphalerite>
trikl: How do you compose it? callPackage doesn't work on it
<trikl>
You must use the callPackage defined in pkgs/applications/kde/default.nix
leat has joined #nixos
goibhniu has joined #nixos
<sphalerite>
trikl: I believe the applications in there use qt5 and not qt4
<sphalerite>
oh wait no you specified qt4
jacob_ has joined #nixos
jacob_ is now known as Guest1449
tmaekawa has quit [(Quit: tmaekawa)]
pie_ has quit [(Remote host closed the connection)]
thetet has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vH597
<NixOS_GitHub>
[nixpkgs] volth opened pull request #26566: nixos-artwork: do not leak nix hashes to filenames /share/artwork/gnome/ (master...artwork-fix) https://git.io/vH5NT
NixOS_GitHub has left #nixos []
michas has joined #nixos
xadi1 has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra pushed 1 new commit to master: https://git.io/vH5N1
vaibhavsagar has quit [(Ping timeout: 260 seconds)]
<GlennS>
ah, thanks
filterfish has joined #nixos
<GlennS>
so it looks like what I actually need is just the appropriate import statement then
<gchristensen>
sorry?
freusque has joined #nixos
<gchristensen>
GlennS: what is your end goal?
<GlennS>
I have one machine which I am deploying via nixops
<GlennS>
I want to lock it to 17.03 stable
<GlennS>
or just 17.03 I suppose
<gchristensen>
do you have more than one machine in the nixops network?
<GlennS>
no
<gchristensen>
ah!
freusque has quit [(Quit: WeeChat 1.7)]
<gchristensen>
NIX_PATH=nixpkgs=foo nixops deploy will do it
ertes has quit [(Ping timeout: 240 seconds)]
<GlennS>
oh that's an easier way
<gchristensen>
my problem in that issue is I want some machines on stable and some on unstable
YellowOnion has quit [(Ping timeout: 268 seconds)]
<nixy>
How can I test if distributed builds are working as intended? I seem to be having some trouble getting them to work, but I am not getting any helpful errors
mudri has joined #nixos
fiddlerwoaroof has quit [(Ping timeout: 260 seconds)]
<gchristensen>
nixy: on your remote box, do you see any login attempts?
<gchristensen>
in the sshd logs
<nixy>
No
<nixy>
I feel like I probably have this set up wrong but the Distributed Builds section of the manual is a little fuzzy for me
<gchristensen>
that's okay, it is rough on everybody
<gchristensen>
(1) are you using the nix daemon?
fiddlerwoaroof has joined #nixos
<nixy>
No, and NIX_REMOTE is unset
<MoreTea>
gchristensen, could you (idempotently) create an issue for having multiple nixos releases in nixops?
<MoreTea>
I think that it's an artificial limitation
<gchristensen>
MoreTea: LOL
<gchristensen>
nixy: have you created a machines file?
<gchristensen>
nixy: if you need an actual example, I can provide one of course :)
<nixy>
So looking at the documentation I was able to create something like that in my home directory that the NIX_REMOTE_SYSTEMS variable points to
<nixy>
Something like `user@example.com x86_64-linux /Users/user/.ssh/id_rsa 1 1`
arianvp2_ has joined #nixos
<gchristensen>
might want to add 2 trailing spaces to the end therefor the supportedFeatures and mandatoryFeatures
<gchristensen>
not sure if you have to, but it is what nixos does
<nixy>
I did that, but it didn't make a difference so not sure if that matters
<nixy>
So right now, I have NIX_BUILD_HOOK, NIX_REMOTE_SYSTEMS, and NIX_CURRENT_LOAD all set. This should be all I need right?
<nixy>
I don't think it matters, but I am also doing this on Darwin not on NixOS
YellowOnion has joined #nixos
<nixy>
Hmm, wait. Would it fail if my ssh key has a passphrase?
georges-duperon has joined #nixos
indi_ has joined #nixos
<MoreTea>
gchristensen, nixe
<MoreTea>
*nice
fiddlerwoaroof has quit [(Ping timeout: 260 seconds)]
<MoreTea>
haha, we should use nixe as nice nix!
ertes-w has joined #nixos
<nixy>
gchristensen: What nix commands should these settings affect anyways? I am trying to use this with NixOps which prints a message acknowledging them but are there any other commands that respect this?
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
k2s has joined #nixos
indi_ has quit [(Ping timeout: 240 seconds)]
jbgi has joined #nixos
<nixy>
Oh. It works if I give nix-build `--argstr system x86_64-linux` it will work.
jbgi has quit [(Ping timeout: 260 seconds)]
ericsagnes has quit [(Ping timeout: 255 seconds)]
<LnL>
gchristensen: you don't need the spaces, it's just because of the interpolation in the nixos module
iyzsong has joined #nixos
cpennington has joined #nixos
eacameron has quit [(Remote host closed the connection)]
eacamero_ has joined #nixos
darlan has joined #nixos
eacamer__ has joined #nixos
arianvp2_ has quit [(Quit: arianvp2_)]
darlan has quit [(Client Quit)]
eacamer__ has quit [(Client Quit)]
sophiag has quit [(Ping timeout: 268 seconds)]
eacamero_ has quit [(Ping timeout: 255 seconds)]
<nixy>
So it looks like NixOps isn't indicating that the build should be for x86_64-linux. Anyone have any idea how I could do that?
hellrazor has quit [(Quit: WeeChat 1.8)]
fiddlerwoaroof has joined #nixos
michas has quit [(Quit: Leaving)]
fiddlerwoaroof has quit [(Ping timeout: 240 seconds)]
reinzelmann has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] shlevy closed pull request #1409: Add support for the curl netrc file in nix-channel/nix-pull. (1.11-maintenance...1.11-maintenance) https://git.io/vH5GZ
NixOS_GitHub has left #nixos []
leat has quit [(Quit: leat)]
cpennington has quit [(Remote host closed the connection)]
<sphalerite>
clever: The image you helped me build recently works in a VM but doesn't seem to support EFI systems. Any idea how I could get it working with EFI as well, or is that uncharted territory?
<NixOS_GitHub>
nixpkgs/master 0032e55 Michael Raskin: Merge pull request #26568 from taku0/flashplayer-26.0.0.126...
NixOS_GitHub has left #nixos []
YellowOnion has quit [(Ping timeout: 255 seconds)]
<MoreTea>
I'm trying to create a tiny wrapper for glide. it's cloning git repo's perfectly fine, but fails on the ones that are supposed to go over HTTP
<MoreTea>
the error ==> [ERROR]Update failed for gopkg.in/tomb.v2: Cannot detect VCS
<domenkozar>
iirc there was an issue for that
<MoreTea>
yes
<MoreTea>
adding NIX_SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt"; to the environment makes it work
<S0rin>
I run a raid 1 on /boot but did upgraded succesfully before
<S0rin>
pbogdan: oh will check thank you
<S0rin>
pbogdan: Yes it look like it thank's
<S0rin>
An other question I come from gentoo and used a lot of personnal overlay to fix, upgrade, test things is it possible to do something similar in nix ?
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
lsix has quit [(Remote host closed the connection)]
mkoenig has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #26572: mplayer: Use system ffmpeg instead of vendored version. (master...fix/mplayer-external-ffmpeg) https://git.io/vHdEW
MercurialAlchemi has quit [(Ping timeout: 240 seconds)]
<dtzWill_>
S0rin: although I tend to hack on a local clone of nixpkgs for many things, but that's partially because overlays didn't exist when I started :).
<S0rin>
dtzWill_: Oh nice wil read that thank you :)
<dtzWill_>
no problem, GLHF! Come back if you have any questions or get stuck :)
<clever>
freusque: i saw somebody in here a few months ago that encrypted the nixops state file with gpg, and stored it in git
<freusque>
clever: yeah I'm considering tarsnapping it. But I don't really need the backup thing, its' more of a security concern here, and I will just start to use tomb
<kezepema>
I would like to convert NixOs for arm7 architecture. I know there are some projects around, but I would like to know if it is feasible. I am looking for a manual to accomplish it. Doe one of you have suggestions?
<simpson>
kezepema: I have heard of folks succeeding with ARMv7 but I believe that it is on a board-by-board basis.
<kezepema>
Thanks jgeerds! I'll check Triton
iyzsong has quit [(Ping timeout: 240 seconds)]
mkoenig has quit [(Ping timeout: 260 seconds)]
<jgeerds>
kezepema, to be honest I would rather see some arm7 work in NixOS and not in a fork :-/
<kezepema>
jgeerds: I suppose you mean build nixos arm7 from scratch instead of recompiling Nixos x86_64 to armv7?
ryanartecona has joined #nixos
<jgeerds>
kezepema, I mean that such great features like arm7 support shouldn't go in a fork of NixOS (or at least its a sad state). I think NixOS is a much bigger project than triton
<MoreTea>
hm, how does one set multiple env vars for systemd jobs?
<tilpner>
Mic92 - Hey, do you think it would be sensible to allow packages to specify a custom Rust registry commit instead of fixing it in all-packages.nix/rust-packages.nix?
<kezepema>
jgeerds sure, I think nixos support for arm7 is important because of all popular board like Banana, Rpi and so on. Do you think building NixOs from scratch to support arm7 is better than convert existing x86_64 Nixos to arm7?
<simpson>
kezepema: NixOS works on those popular boards but it's not well-documented.
<catern>
Failed to load interface for ‘Diagrams.Backend.SVG.CmdLine’
<catern>
and Hilbert.lhs:5:3: error: Failed to load interface for ‘Diagrams.Prelude’
<LnL>
catern: you have to use ghcWithPackages
<Mic92>
tilpner: mhm. Then you have to download the registry multiple times. Is your purpose to avoid merge conflicts?
digitus has joined #nixos
<catern>
LnL: ah thanks
<catern>
hmm...
<tilpner>
Mic92 - It's mostly because my applications always have a Cargo.lock that's too new, because I develop against the online crates.io, then use an ancient "05-15" registry which of course doesn't have the versions I need
<catern>
error: while evaluating the attribute ‘buildInputs’ of the derivation ‘shell’ at /nix/store/yqzcgsqa61z0dsay6vj70bz3v8kbw983-nixpkgs-17.09pre108299.ec9a23332f/nixpkgs/pkgs/build-support/trivial-builders.nix:7:14: cannot coerce a function to a string, at /nix/store/yqzcgsqa61z0dsay6vj70bz3v8kbw983-nixpkgs-17.09pre108299.ec9a23332f/nixpkgs/pkgs/build-support/trivial-builders.nix:7:14
<tilpner>
Mic92 - And it's quite painful to (or I have not found the correct way) generate a Cargo.lock against an older crates.io-index
<catern>
what's causing this?
bbarker has joined #nixos
Itkovian has quit [(Read error: Connection reset by peer)]
<Mic92>
tilpner: you use use this for development?
<LnL>
you need a function: haskellPackages.ghcWithPackages (p: [ p.diagrams])
<tilpner>
Mic92 - I don't use buildRustPackage for development, but I want to use it to install a version of that application anyway
<tilpner>
Mic92 - I wasn't aware of that PR, though I found the Pijul repo independently and tried to use generate-nix-pkg to package my application
<catern>
LnL: oh, right, of course!
MoreTea has joined #nixos
<MoreTea>
Is there a list of newer google compute bootstrap images?
<MoreTea>
Deploying the unstable breaks with the packages nixops on gce
<MoreTea>
I can't find where that is defined in the source code
<Mic92>
tilpner: you should be able to override fetchcargo and therefor rustRegistry of your package. We could also add an attribute to make it easier to specify a custom hash. But for nixpkgs I would default to a single registry, if no custom hash is provided. What do you think?
<Mic92>
MoreTea: I generated gce images myself using ./nixos/maintainers/scripts/gce/create-gce.sh
<MoreTea>
I wanted to do a presentation on nixops in an hour, and found out that my gce example broke...
<ikwildrpepper>
how does it break?
digitalmentat_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] qknight closed pull request #26572: mplayer: Use system ffmpeg instead of vendored version. (master...fix/mplayer-external-ffmpeg) https://git.io/vHdEW
NixOS_GitHub has left #nixos []
<viric>
niksnut: how far is nix to run in windows without cygwin? msys would give a single filetree (/ root), but no fork. Could nix have an implementation without fork()?
<Mic92>
MoreTea: It worked in my presentation a month or so ago
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] qknight closed pull request #26566: nixos-artwork: do not leak nix hashes to filenames in /share/artwork/gnome/ (master...artwork-fix) https://git.io/vH5NT
NixOS_GitHub has left #nixos []
riclima has joined #nixos
<Mic92>
MoreTea: if you use create-gce.sh you can also upload your image to a bucket using your google cloud credentials.
<ikwildrpepper>
MoreTea: we usually test nixops with the latest release (17.03) in this case
<MoreTea>
I'll give this a shot first
<Mic92>
MoreTea: default images are specified here: nix/eval-machine-info.nix
<Mic92>
in nixops
<ikwildrpepper>
ah, the default is still 16.03
<MoreTea>
yes :D
marsam has joined #nixos
ebzzry has quit [(Quit: WeeChat 1.7)]
<ikwildrpepper>
will move that to 17.03, and then move the image list to nixpkgs, like for ec2
<MoreTea>
broke on the setuid stuff
<ikwildrpepper>
MoreTea: ah
<MoreTea>
"rm: cannot remove '/var/setuid-wrappers': Device or resource busy"
<MoreTea>
viric, I don't think that many people care about windows support.
ibrahims has joined #nixos
<MoreTea>
Would be pretty cool if we _could_ run there.
<ibrahims>
hello, `nix-env -i pkgname` can't find the pkgname set in `packageOverrides` in `~/.nixpkgs/config.nix`. it used to work. am i missing something?
<MoreTea>
you can try the nix-env -iA $PKG_NAME with the attribute key name of the package?
<ibrahims>
oh yes. that was it. thank you :)
<MoreTea>
np!
jgeerds has quit [(Quit: Leaving)]
roconnor has joined #nixos
phinxy has joined #nixos
marsel has quit [(Ping timeout: 246 seconds)]
<Mic92>
tilpner: you are right. this has to explictly passed instead.
<viric>
MoreTea: I use it quite a lot on cygwin
<MoreTea>
viric, that's pretty cool :)
<Mic92>
viric: did you tried to run it on the new linux compatibility layer of windows?
<MoreTea>
ikwildrpepper, your unmount trick worked indeed, thanks!
<viric>
Mic92: nah
[0x4A6F] has joined #nixos
<MoreTea>
have got to run
MoreTea has quit [(Quit: Leaving)]
<Mic92>
viric: apt and pacman is already there.
ibrahims has quit [(Ping timeout: 260 seconds)]
<cyraxjoe>
shlevy: thanks for the merge
<cyraxjoe>
I guess it would be released at 1.11.12
sigmundv__ has quit [(Remote host closed the connection)]
sigmundv__ has joined #nixos
ixxie has quit [(Quit: Lost terminal)]
bennofs has joined #nixos
justelex has joined #nixos
ibrahims has joined #nixos
orivej has joined #nixos
phreedom has quit [(Ping timeout: 255 seconds)]
ibrahims has quit [(Ping timeout: 268 seconds)]
zeus_ has joined #nixos
Neo-- has joined #nixos
phreedom has joined #nixos
stallion has joined #nixos
mkoenig has joined #nixos
mbrock has joined #nixos
ibrahims has joined #nixos
orivej has quit [(Ping timeout: 240 seconds)]
<viric>
Mic92: with effort, can be done. Sure
orivej has joined #nixos
mizu_no_oto has quit [(Quit: ["Textual IRC Client: www.textualapp.com"])]
ibrahims has quit [(Ping timeout: 240 seconds)]
mudri has quit [(Ping timeout: 240 seconds)]
mudri has joined #nixos
leat has joined #nixos
sellout- has joined #nixos
ibrahims has joined #nixos
marsel has joined #nixos
digitalmentat_ has quit [(Ping timeout: 240 seconds)]
ibrahims has quit [(Ping timeout: 255 seconds)]
wak-work has quit [(Ping timeout: 246 seconds)]
goibhniu has quit [(Remote host closed the connection)]
MoreTea has joined #nixos
<MoreTea>
is there a way to GC just one derivation path?
k0001 has quit [(Remote host closed the connection)]
k0001 has joined #nixos
<gchristensen>
nix-store --delete <path> IIRC?
pie_ has quit [(Ping timeout: 240 seconds)]
jgertm has joined #nixos
hellrazor has joined #nixos
sigmundv__ has quit [(Read error: Connection reset by peer)]
sigmundv__ has joined #nixos
ibrahims has joined #nixos
hellrazor has quit [(Ping timeout: 240 seconds)]
wak-work has joined #nixos
orivej has quit [(Ping timeout: 240 seconds)]
hellrazor has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
riclima has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
pie_ has joined #nixos
ibrahims has quit [(Ping timeout: 260 seconds)]
k0001 has quit [(Remote host closed the connection)]
k0001 has joined #nixos
<MoreTea>
gchristensen, cool, thanks :)
<MoreTea>
Alternatively i'll just add some nonsense variable in mkDerivation
m0rphism has quit [(Quit: WeeChat 1.8)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rnhmjoj opened pull request #26575: ddcutil: init at 0.8.2 (master...ddcutil) https://git.io/vHFfx
NixOS_GitHub has left #nixos []
kthnnlg has joined #nixos
ibrahims has joined #nixos
k0001 has quit [(Remote host closed the connection)]
k0001 has joined #nixos
hellrazor has quit [(Ping timeout: 260 seconds)]
MoreTea has quit [(Ping timeout: 240 seconds)]
mudri has quit [(Ping timeout: 246 seconds)]
ibrahims has quit [(Ping timeout: 258 seconds)]
obadz has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
riclima has joined #nixos
<eacameron>
clever, or anyone: I need a lot of storage on the cloud, like maybe 1200TB. Any recommendations?
k0001 has quit [(Remote host closed the connection)]
<simpson>
eacameron: Google Cloud Storage buckets have effectively no size limit, as long as you can afford it.
obadz has joined #nixos
k0001 has joined #nixos
<eacameron>
simpson: I guess that's what I'm asking. What's a good cost-effective solution for that kind of storage?
<eacameron>
S3 would require like $15k/month for that.
<simpson>
Sure, and GCE would cost $12k. It's a non-trivial amount of stuff. What's your access pattern like?
hellrazor has joined #nixos
<eacameron>
simpson: Rare. It would be essentially keeping video originals for archival purposes.
ibrahims has joined #nixos
k0001 has quit [(Remote host closed the connection)]
<simpson>
eacameron: GCS Coldline would be $8.4k/mo. I don't know what the cost of owning the drives yourself is like, so I don't know how low it can go.
k0001 has joined #nixos
<eacameron>
simpson: Amazon Glacier would be $4.4k/mo
ibrahims has quit [(Ping timeout: 240 seconds)]
<simpson>
eacameron: Buying and owning the hard drives, back of napkin, requires a $110k capital investment and a $3k/mo upkeep.
<simpson>
Glacier sounds pretty impressive! I *still* don't know how it's affordable for them.
<simpson>
Like, the optical-drive theory sounded so solid, but apparently it's not the case.
<eacameron>
simpson: :O That's insane
<simpson>
eacameron: 1.1PiB of data is nothing to sniff at!
<eacameron>
simpson: Apparently!
k0001 has quit [(Remote host closed the connection)]
<eacameron>
I've been uploading 66GB to S3 for the last 12 hours. I thought 66GB was nothing. But now I'm thinking otherwise.
sigmundv__ has quit [(Ping timeout: 240 seconds)]
k0001 has joined #nixos
<eacameron>
Granted, I'm on residential upload speeds (6-8 Mbps) but S3 itself isn't terribly fast.
riclima has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
ryanartecona has joined #nixos
riclima has joined #nixos
bennofs has quit [(Ping timeout: 255 seconds)]
ibrahims has joined #nixos
ibrahims has quit [(Ping timeout: 255 seconds)]
jonte_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vHFtS
<NixOS_GitHub>
nixpkgs/master b7f4e04 Vincent Laporte: ocamlPackages.mparser: 1.2.1 -> 1.2.3
NixOS_GitHub has left #nixos []
marsel has quit [(Ping timeout: 255 seconds)]
<disasm>
eacameron: it's possible your being trottled by your isp because of the amount you've uploaded in a short period of time. You might potentially be down at like 256 kbps or something.
Itkovian has joined #nixos
<eacameron>
disasm: Good thought. I'm at 700kbps. It's abysmal.
k0001 has quit [(Remote host closed the connection)]
k0001 has joined #nixos
phreedom has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] pSub pushed 2 new commits to master: https://git.io/vHFqz
<mbrock>
anyone with experience of setting up a custom binary cache with both Linux and OS X builds?
<mbrock>
I'd like to do it in some simple way, especially because I don't have an OS X build server
ibrahims has quit [(Ping timeout: 260 seconds)]
<mbrock>
and I'd also just like to know what's the simplest way to do a custom binary cache
<Sonarpulse>
RIP channels
riclima has quit [(Ping timeout: 240 seconds)]
<mbrock>
ahh, I guess it's all just about `nix-push` into a wwwroot. That's really nice
ibrahims has joined #nixos
<vith>
how do i globally override nodejs with nodejs-8_x? so far i only figured out how to do it for one dependent package at a time like this: (yarn.override { nodejs = nodejs-8_x; })
peacememories has joined #nixos
sdhand has joined #nixos
orivej has joined #nixos
ibrahims has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rasendubi closed pull request #9242: Add support to postfix service for regexp-based alias files (master...postfix-regexp-aliases-master) https://git.io/v3PKG
NixOS_GitHub has left #nixos []
pxc has joined #nixos
MichaelRaskin has joined #nixos
<pxc>
is there a minimum kernel version for Nixpkgs?
<Mic92>
pxc: probably glibc sets the lower bound.
ibrahims has joined #nixos
<pxc>
Mic92: how do I find out what that is? look at the current version of our glibc package?
<Mic92>
pxc: glibc 2.25
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<Mic92>
pxc: But there could be other factors I am not aware of though.
<pxc>
Mic92: so Nix even though it packages its own glibc requires glibc 2.25 or newer because only one copy of glibc can be in memory at a time?
<Mic92>
pxc: because that is the version of glibc all current packages are compiled against it at the moment.
<Mic92>
You can try an older version, but than you have to compile everything on your own
bennofs has joined #nixos
<pxc>
Mic92: how do I do that? I want to use Nix on RHEL 6 because all the packages installed on it are super old
ris has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [(Changing host)]
vandenoever has joined #nixos
<pxc>
Mic92: also where should I look in the Nixpkgs source to see what version of glibc is in stdenv?
<Dezgeg>
`file` on a nixpkgs binary claims "for GNU/Linux 2.6.32", I can't recall though if that is to be trusted...
orivej has quit [(Ping timeout: 255 seconds)]
<pxc>
Dezgeg: that's the kernel this thing is running, so maybe Nix will just work. I want to install without root but I think I need at least Linux 3.8 for nix-user-chroot
<Mic92>
Dezgeg: sounds correct
<pxc>
maybe the old pivot_root method will work
<Mic92>
pxc: you have not permission to create /nix ?
<Mic92>
*no
<pxc>
Mic92: yeah, it's on a server used for development at my workplace. It's like my second week so I don't want to be mucking around as root
<Mic92>
pxc: you can run use it as user, once you have created /nix and chowned to your user
<pxc>
yeah, I used to use proot at my university before nix-user-chroot was available. Thanks for the link, I'll try that
<pxc>
eventually I want to convince the people here to have a multi-user Nix setup on that server for everyone to use but for now I just need to install newer versions of a few programs without breaking things for others or drawing attention to myself from the IT people lol
<Mic92>
pxc: are you in High performance computing?
<catern>
hey #nixos
<catern>
do I really have to run the nix-daemon as root?
<Dezgeg>
yes
<gchristensen>
catern: what about that leaves you concerned?
<pxc>
Mic92: I am not in HPC
ibrahims has joined #nixos
<pxc>
btw Mic92, I'd like to take a moment to give you props since we're chatting. You're really responsive on Github and I really appreciate it. It makes contributing nice
m0rphism has joined #nixos
<catern>
gchristensen: well having anything running as root is bad
<gchristensen>
hrm seems too black and white to be true
ibrahims has quit [(Ping timeout: 246 seconds)]
<catern>
gchristensen: yeah you're right
<catern>
gchristensen: but I'm trying to sell my company on using Nix
<catern>
and my industry is very extremely paranoid
<catern>
but also short-sighted :)
<Dezgeg>
well, in the nixos use case at least nix-daemon is the one who installs all the binaries on the systems, so compromising that will necessary allow compromising root
<catern>
so running nix-daemon as root is hard to sell, but nix-daemon as normal user, plus a setuid helper, is palatable
<gchristensen>
are you wanting to use _nix_ or _nixos_?
<catern>
is that possible to do?
georges-duperon has quit [(Ping timeout: 255 seconds)]
<catern>
gchristensen: just Nix, hosted on Debian
<Dezgeg>
I think it's actually possible run nix-daemon without root, but you lose build sandboxing
<LnL>
doesn't it also need root for the build users?
<gchristensen>
I imagine so
<catern>
but I thought there was a nix-setuid-helper?
<Dezgeg>
you can run the daemon but without the dedicated build users, I think
<clever>
eacameron: ah, they have changed the process a bit, they will basicaly ship you a micro S3 server, and you do the upload over the LAN, and then return the server back to them
ibrahims has joined #nixos
aneeshusa has quit [(Ping timeout: 240 seconds)]
bennofs has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ttuegel pushed 1 new commit to master: https://git.io/vHFzM
<NixOS_GitHub>
nixpkgs/master 98c38d5 Thomas Tuegel: dropbox: 27.4.22 -> 28.4.14
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ttuegel pushed 1 new commit to release-17.03: https://git.io/vHFzx
<NixOS_GitHub>
nixpkgs/release-17.03 2343b55 Thomas Tuegel: dropbox: 27.4.22 -> 28.4.14...
NixOS_GitHub has left #nixos []
ibrahims has quit [(Ping timeout: 260 seconds)]
<eacameron>
clever: Wow...now that's interesting.
<pxc>
huh. So I was able to get PRoot binary, but now I'm getting an error about a missing library
orivej has quit [(Ping timeout: 240 seconds)]
<eacameron>
Is there a generic file-watch tool? I want to effectively "watch '*.hs' 'rebuild'"
<clever>
eacameron: simplest thing i can think of is to make a nix expression for building, and then just "watch nix-build", nix will hash the sources, and only build if the hash changes
<clever>
eacameron: ah, and AWS has 80tb and 50tb models of the snowball, but you can connect several boxes at once
<eacameron>
clever: That's very interesting indeed. I assume you can then access those same files via an API after they've uploaded them internally?
<dash>
it also comes in truck size now I hear ;-)
<gchristensen>
yeah they'll also drive a truck to you
<clever>
eacameron: yeah, i believe it just becomes normal objects in S3 once you return the box
jbgi has quit [(Ping timeout: 260 seconds)]
bennofs1 has joined #nixos
<clever>
also interestingly, the shipping label is just an e-ink display
<tilpner>
Mic92 - Sorry, I kind of went away earlier... What's the plan now to get any registry version? Does this need further consideration, or can I just try and PR something?
<clever>
so the box can modify its own shipping label
<eacameron>
clever: That's nothing. Pretty soon the box will have four blades and actually fly itself to the facility ;)
<clever>
:D
ibrahims has joined #nixos
<eacameron>
clever: The irony is that internet speeds are too slow to just not use a box in the first place.
<gchristensen>
never underestimate the bandwidth of a station wagon full of tapes
YellowOnion_ has quit [(Ping timeout: 240 seconds)]
<eacameron>
gchristensen: LOOOL
<eacameron>
gchristensen: I see you optimize for throughput over latency
Neo-- has quit [(Remote host closed the connection)]
<clever>
sneakernet
Neo-- has joined #nixos
<eacameron>
I just had a billion dollar idea.
ibrahims has quit [(Ping timeout: 260 seconds)]
<eacameron>
Uber + snowball = internet
<clever>
:O
jbgi has joined #nixos
<dash>
eacameron: fill mine up with cat pictures please
<eacameron>
Now, enable runners to carry SSD drives and you've got some crazy stuff going on.
<eacameron>
dash: That'll be the default scrubbing algo after transfers finish
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vaartis opened pull request #26579: apache-httpd: fix mod_perl by refering to apacheHttpdPackagesFor (master...httpd-fix-mod-perl) https://git.io/vHFVf
NixOS_GitHub has left #nixos []
<clever>
eacameron: only issue will be the latency
<eacameron>
ISO-CATSCRUB: write random cat pictures over the drive 42000 times
<eacameron>
clever: If you run faster you get a bonus. Now you've got internet *and* a weight loss program
Filystyn has joined #nixos
<gchristensen>
cuba's internet is largely sneakernet
ixxie has quit [(Quit: Lost terminal)]
<eacameron>
I'm taking this to some VCs next week
<eacameron>
Cuban VCs
<eacameron>
Ok, I'm baffled that there is no all-purpose file watching utility.
<eacameron>
I just want something like xargs, but it watches some files and then runs a command instead.
<clever>
eacameron: maybe search for an inotify cli tool and that could be used
<Mic92>
tilpner: I think a pull request, to allow users to override the registry checksum for a single package (default to nixpkgs checksum if unset), sounds good to me.
<Mic92>
checksum an rev of course
<pxc>
Mic92: I think pivot_root install might be broken on systems that use LDAP auth. I get an error about a missing openldap-2.4.so.2 file (pastebin above). It doesn't appear to be in the Nix store that gets unpacked from the tarball for installation
<ben>
Is there a way to write in a nixos configuration that I definitely don't want a specific package to be installed, like preventing accidentally pulling in X on a headless system?
<eacameron>
clever: Ok so it works but it's hacky and still way more work than it should be: ```while true; do inotifywait -qr -e modify -e create -e delete .; echo Something!; sleep 1; done```
<Mic92>
pxc: please redo with strace -f
<clever>
eacameron: heh
<Mic92>
to follow forks
ibrahims has joined #nixos
<clever>
pxc: i also like makign heavy use of "strace -ff -o logfiles"
<clever>
the -ff makes it append the pid to the filename, so the logs dont get interleaved
<eacameron>
clever: This requires that you set up the watchers on each iteration. It's not very efficient that way. The sleep 1 is a debounce
<Mic92>
sysdig is even cooler, but requires a kernel module
<Mic92>
I use it for container debugging or weird buildsystems
<clever>
eacameron: yeah, it would help if there was a program that would run X on every event, and not quit
<Mic92>
eacameron: are you trying to automatically rebuild something?
<eacameron>
clever: I could easily make one but making it available to the masses would be hard
<eacameron>
Mic92: Yes
<clever>
Mic92: ive run the entire nix-daemon and a whole build under strace before
<gchristensen>
oh man clever
peacememories has joined #nixos
<tilpner>
Mic92 - Alright, I'll try, but I'm not really how to do it. I would like a function that gives me a rustRegistry for a given src. Is that okay to put into all-packages? It's not technically a package, so where would it go?
<tilpner>
*not really sure
<Mic92>
clever: well, try to debug a docker in a docker, which is doing docker's continous integration tests
<clever>
Mic92: oh god, lol :D
<LnL>
oh boy
<ben>
deploying to ec2 with nixops seems to involve a lot of downloading to and uploading from my laptop :(
<tilpner>
(So really just expose rust-packages.nix)
<clever>
Mic92: my case was pretty fun as well, programs claiming files dont exist, when they clearly do
<clever>
Mic92: turns out, the problem was inode numbers that dont fit inside 32bits
<ben>
I guess I need to start with a bigger instance to build the others on
<Mic92>
clever: 128bit is good enough for my life time
<clever>
Mic92: on 32bit kernels, there are seperate stat and readdir functions, for 32bit or 64bit ints
<clever>
Mic92: and many programs in nixos (and a lot of other distros) are compiled to only use the 32bit one, and also treat EOVERFLOW as "the directory is empty"
<Mic92>
clever: isn't fix in glibc with big files support for years?
k2s has joined #nixos
<clever>
Mic92: you need to compile with a -D flag, to transparently swap it over
<clever>
Mic92: but it also changes the bit size of a typedef in glibc
<clever>
Mic92: and if any program was relying on that typedef being 32bits for some internal on-disk data...
<Mic92>
clever: if you compile against musl, you do not even have to specify this
Itkovian has joined #nixos
<Mic92>
its the default
<clever>
Mic92: also, you must use that typedef if you want to copy an inode from a stat result to your own storage
<clever>
so if you dont do that, you loose bits
ibrahims has quit [(Ping timeout: 268 seconds)]
<clever>
Mic92: have there been any changes in the area of a musl stdenv?
<Mic92>
clever: I have to reinvent the will, when porting this to rust. As it uses libc wrapper to access all the system stuff
<tilpner>
I thought that might be unidiomatic, putting that much into the argument set. Shall I change it?
<Mic92>
I guess it is ok
pxc has joined #nixos
Filystyn has quit [(Quit: Konversation terminated!)]
<pxc>
Mic92, clever: is there any way for me to work around this without modifying /etc/nsswitch.conf? can I add openldap to the closure for installation as a one-off somehow? (sorry if I missed your answer; our net connection went down here)
<Mic92>
pxc: you could set LD_LIBRARY_PATH to point to libopenldap
<pxc>
Mic92: that sounds super obvious now that you say it :-( I'll give that a try
<pxc>
Mic92: like just add the path to the binary, or copy it somewhere?
<pxc>
Mic92: meaning add the full path to the .so file
<Mic92>
pxc: LD_LIBRARY_PATH must contain directories, you can symlink your library to a seperate directory
aneeshusa has joined #nixos
<pxc>
Mic92: I didn't think to check before. I saw now that LD_LIBRARY_PATH was already set. I unset it and now I'm getting a different error, this about the extended attrs on env-manifest.nix
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]