<{^_^}>
[nixpkgs] @veprbl opened pull request #52946 → sip: modify module name only for use with PyQt5 → https://git.io/fhTNI
cyounkin_ has quit [Remote host closed the connection]
cyounkins has joined #nixos
cyounkins has quit [Ping timeout: 250 seconds]
Guanin has joined #nixos
<ottidmes>
AppAraat: BTW I do have a shell function that does what you probably wanted: nux pkg-file unstable.tmux ~> /wheel/fork/nixpkgs-unstable/pkgs/tools/misc/tmux/default.nix
<AppAraat>
yeah, that results in file /wheel/fork/nixpkgs-unstable/pkgs/tools/misc/tmux/default.nix locally right? If so, then yeah that's probably what I was looking for.
<ottidmes>
AppAraat: /wheel/fork/nixpkgs-unstable is my nixpkgs checkout that points the nixos-unstable channel, so yes, it points to the local file, I could share it with your if you want, but a less complete implementation but something that probably would have worked is: nix-instantiate --eval --expr 'with import <nixpkgs> { }; tmux.meta.position' (which also includes a line number though) (and assuming <nixpkgs>
<ottidmes>
points to nixos-unstable)
<AppAraat>
aah so you already had that repo locally, it just points you to the file within that repo, interesting.
Rusty1 has joined #nixos
sigmundv__ has joined #nixos
<duairc>
builtins.tryEval doesn't seem to catch out of bounds errors, is that right?
itorres has joined #nixos
Ariakenom_ has quit [Ping timeout: 252 seconds]
dumbintel has quit [Quit: Page closed]
Synthetica has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @Ameliorate opened pull request #52948 → nmfd: init at 1.1.3 → https://git.io/fhTAH
<ottidmes>
duairc: these kind of things are best answered by just trying them in `nix repl`, but no, it does not catch them
<ottidmes>
infinisil: yeah, I just checked, I actually did remove all my tryEval uses and use what you suggest instead
<ottidmes>
in a lib function, so its just as convenient
<ottidmes>
infinisil: and I really would have preferred if the interface would have been to allow a default rather than this attrset, because you almost always want to use some fallback if it is not succesful
simukis has quit [Quit: simukis]
<AppAraat>
hmm, I think I discovered a bug on tmux-2.8 - when you open tmux and a long manpage, and use PgDn to scroll down, some text is not cleared. I've noticed it on an Ubuntu 16.04 VM and only over SSH.
<infinisil>
ottidmes: Did you also consider that <..> works with subdirectories?
<infinisil>
In your function
<AppAraat>
this doesn't happen when the package is compiled natively. Very strange.
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhTxu
<ottidmes>
infinisil: the way I used it, I only had to consider top-level directories, but I am not using that lib function any more in an effort to make my NixOS configurations less impure
lopsided98 has joined #nixos
mkoenig has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @orivej to master « pythonPackages.uranium: add missing dependency on shapely »: https://git.io/fhTx2
sammi has joined #nixos
drakonis has quit [Remote host closed the connection]
acarrico has quit [Ping timeout: 250 seconds]
Anton-Latukha has quit [Quit: Leaving.]
<{^_^}>
[nixpkgs] @agracie opened pull request #52950 → mkl: fix hash on Darwin → https://git.io/fhTxb
__monty__ has quit [Quit: leaving]
marsam has joined #nixos
sigmundv__ has quit [Ping timeout: 246 seconds]
ottidmes has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixpkgs] @orivej-nixos pushed 6 commits to master: https://git.io/fhTpi
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fhkeD
jD91mZM2 has joined #nixos
rprije has joined #nixos
ryantrinkle has joined #nixos
ryantrinkle has quit [Ping timeout: 250 seconds]
<paulvictor>
Is it possible that I can have a user specific version of configuration.nix where I can have a service of my own?
<paulvictor>
Without disturbing the general one in /etc/nix?
Rusty1 has quit [Quit: Konversation terminated!]
<jD91mZM2>
paulvictor: Check out home-manager. It's essentially what you want
<paulvictor>
jD91mZM2: Thanks. The service which I want to manage is based on a package which I built by myself and installed with `nix-env -i` is not something from the official repos.
<paulvictor>
jD91mZM2: Would it still help?
<jD91mZM2>
paulvictor: You can use home-manager to add custom nix packages instead of nix-env
tdbgamer has joined #nixos
<paulvictor>
ok. thanks a lot.
<jD91mZM2>
It's basically a replacement for nix-env -i where you add packages similarly to how you do it in the system config
<jD91mZM2>
And it has services and GTK configs and all that stuff
<paulvictor>
alright. thanks
justanotheruser has quit [Ping timeout: 252 seconds]
periklis has joined #nixos
justanotheruser has joined #nixos
palo1 has joined #nixos
endformationage has quit [Quit: WeeChat 2.3]
palo has quit [Ping timeout: 246 seconds]
palo1 is now known as palo
tzemanovic has joined #nixos
tzemanov_ has joined #nixos
tzemanovic has quit [Ping timeout: 252 seconds]
periklis has quit [Remote host closed the connection]
fusion809 has quit [Remote host closed the connection]
ambro718 has joined #nixos
tyang has joined #nixos
Havvy has quit [Read error: Connection reset by peer]
Havvy has joined #nixos
lokado has joined #nixos
vidbina has joined #nixos
Makaveli7 has quit [Quit: Leaving]
lokado has quit [Client Quit]
lokado has joined #nixos
dermetfan1 has joined #nixos
MichaelRaskin has quit [Quit: MichaelRaskin]
lokado has quit [Client Quit]
vidbina has quit [Read error: Connection reset by peer]
LysergicDreams has quit [Ping timeout: 246 seconds]
LysergicDreams has joined #nixos
<ambro718>
How do I set hardeningDisable in nix-shell?
Makaveli7 has joined #nixos
<symphorien>
export hardeningDisable=all
<ambro718>
it does not work, at least if done from inside nix shell
<ambro718>
still getting errors from gcc compile, like ../../gcc-8.2.0/libcpp/macro.c:3377:58: error: format not a string literal and no format arguments [-Werror=format-security]
<symphorien>
I am surprised. No idea, then, sorry.
<jD91mZM2>
ambro718: You can set hardeningDisable = "all"; in the shell.nix too
<ambro718>
thanks
<jD91mZM2>
[ "all" ];*
paulvictor has joined #nixos
<jD91mZM2>
It's a list
<ivan>
anyone else's lvm2 build failing on master with this? gcc: error: ../../device_mapper/libdevice-mapper.a: No such file or directory
Synthetica has joined #nixos
<Izorkin>
How to import all *.nix files from custom folders? imports = [ ./configs/example-*.nix ]; not worked
<Synthetica>
I don't think that's possible, what I do is I have a default.nix that only imports the other files in the folder, and then I can import the folder
<elvishjerricco>
Izorkin, Synthetica: You can use `builtins.readDir` to do that
<Synthetica>
elvishjerricco: Ah, cool, thanks!
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @tazjin to release-18.09 « nixos/journaldriver: import module in top-level module list »: https://git.io/fhkmA
<kklawikowski>
is there actually any place, where I can request meetup place to run it by myself?
<paulvictor>
How would I install a custom package with home-manager?
chaker has joined #nixos
[Leary] has joined #nixos
<chaker>
Hey, I'm trying to run build a derivation locally that have a required system feature that's not available in my local machine. However I want to build it nonetheless. Is there a flag or option that I can pass to nix-build in order to ignore that?
Lears has quit [Read error: No route to host]
<mr_noobs>
sphalerite, elvishjerricco: Thanks! I haven't yet really started using the nix-shell (I'm dipping my toes, nixos has loads of stuff, but so far I'm loving it), but it's a good time to start since I need (well, want) a python package that is not available as python37.pkgs.butterfly
<chaker>
Here's the error I get 'error: a 'x86_64-linux' with features {feature1, feature2} is required to build 'foo.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test'
<mr_noobs>
But I work as sysadmin/devops and so far nixos is super cool! (though not using it in production nor anything... yet)
<mr_noobs>
elvishjerricco: By the way, does your nick have to do with Pratchett?
<elvishjerricco>
mr_noobs: Probably not, considered I don't know what that is :P
<sphalerite>
chaker: stuff should build locally regardless of features…
<elvishjerricco>
paulvictor: You would add it to the `home.packages` option, I believe
<mr_noobs>
elvishjerricco: He's a writer, Discworld famous! But I got confused I think.
<sphalerite>
GNU Terry Pratchett
<chaker>
it doesn't :( BTW this happens when running nix-shell. One of the dependency of the shell fail with that error when being built.
<mr_noobs>
Also! collision between `/nix/store/8r3sc0dqvjhr1qvzifqqjbc6dmpcb1c2-systemd-239/bin/resolvconf' and `/nix/store/6rnjva0v7diwwn747ccbvmglib1dqgv8-openresolv-3.9.0/bin/resolvconf'
<sphalerite>
chaker: and you definitely don't have remote builds enabled?
<mr_noobs>
Is that bad or can I ignore it?
<sphalerite>
chaker: try with --builders '' as a trusted user to make sure
<sphalerite>
chaker: weird. Not sure I can help if you without more detailed information. Sharing the expressions you're trying to build should might help
<sphalerite>
kklawikowski: but I'd say a good start would be just announcing that you want to organise one on discourse and stuff to see if you can get enough people together to make it worth it
<kklawikowski>
thanks man, I'll also contact local hackerspace to rent their place to even try making this happen
<paulvictor>
elvishjerricco: That worked. And how would I be able to refer to the package in further services?
<elvishjerricco>
paulvictor: How familiar are you with Nix as a programming language?
<paulvictor>
elvishjerricco: Similar to how other packages like bash are referred as pkg.bash ?
<sphalerite>
Izorkin: then you put + "/" in
<paulvictor>
elvishjerricco: Just started on it last week. so am still trying to get a solid grasp
<mr_noobs>
services.znc.modulePackages --> I am trying to install backlog using this. Doesn't give any error with [ pkgs.zncModules.backlog ], but then again it doesn't use the module afterwards u.u
<mr_noobs>
Am I missing some step?
<paulvictor>
But I could write a basic derivation of the program I wanted
<mr_noobs>
BTW sphalerite, the page you sent me to the other day is extra cool
<elvishjerricco>
paulvictor: The most lightweight thing would be to just put it in a let binding in your file. So at whatever scope necessary, do `let myPkg = import ./my-pkg.nix; in ...`. For something more robust, you'd want to look into writing an overlay
<sphalerite>
mr_noobs: :)
<elvishjerricco>
paulvictor: Anyway, sorry I've got to go for now
<paulvictor>
elvishjerricco: Thanks. the import way seems to make sense
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @orivej to master « pythonPackages.sip: enable parallel building »: https://git.io/fhkZv
<Greaka>
i killed sda3 and used the free space to make more space in sda2, because sudo nixos rebuild switch always failed because of my boot is running out of space
<{^_^}>
[nixpkgs] @FRidh pushed 2 commits to release-18.09: https://git.io/fhkZT
<Greaka>
so every sdaX > 2 is now sdaX-1, which for some reason did not go well with nixos. even though its finding its partitions by uuid
<Greaka>
i couldnt boot into nix anymore
<Greaka>
so i ran nixos generate config from my arch onto /mnt (nixos partition)
<lokado>
Greaka: What happened now? I'm not sure if I can help with problems about filesystem and partitions..
<Greaka>
since i did this, nixos doesnt recognize my wireless card anymore
<Greaka>
i even booted up an ubuntu live image that recognized it and did the hardware config again, but no change in my hardware-configuration.nix
<Greaka>
i fear that something is missing in my drivers/kernel for the card and since im bloody new to nix, i dont know how to fix this
<ottidmes>
I have the problem that Samba on my server cannot bind on all interfaces, so I have to be explicit about to which interfaces it binds to, which includes the ZeroTier (a kind of VPN), the problem is, in order to let Samba bind to ZeroTier's network interface, it needs to be fully loaded, however I cannot get it to work via the obvious subjects (zerotierone.service, sys-devices-virtual-net-zt0.device,
<ottidmes>
network-online.target). How do other people deal with such things in systemd (waiting on something for which is no good callback in systemd)? The two workarounds I could think of are to use a delay in Samba or make it depend on a service that keeps checking for ZeroTier to be ready, any better ways?
<ottidmes>
Greaka: try this https://nixos.org/nixos/options.html#hardware.enableallfirmware and try updating to the latest kernel via: boot.kernelPackages = pkgs.linuxPackages_latest;
<Greaka>
zerotierone is a service itself. cant you depend on that being ready? how would you check for zerotier to be ready?
<Greaka>
ty, i will try
<lokado>
Does nixos recognize the wireless card before you killed sda3?
<ottidmes>
Greaka: like I said, I tried the obvious subjects, including zerotierone.service, so yes, I have tried it, but it unfortunately did not work (after starting it takes some time for it to initialize the device properly)
imdoor has joined #nixos
<Greaka>
ottidmes: systemd has some socket based health check feature if i remember correctly. maybe you can edit the service file to report back correctly
<Greaka>
anyway, thanks for now. am off for rebooting and trying out the suggested things
<ottidmes>
Greaka: good luck!
<Greaka>
ty ^^
<ottidmes>
Greaka: thanks for the suggestion, I will be looking at the healtcheck, could work
<Greaka>
dont forget to make a pr if you happen to find something useful :D
lokado has quit [Quit: WeeChat 2.3]
Greaka has quit [Quit: Page closed]
juhe has joined #nixos
juhe has quit [Remote host closed the connection]
juhe has joined #nixos
Baughn has quit [Quit: ZNC 1.6.2+deb1 - http://znc.in]
<bake[m]>
i've tried to use wireguard as described in https://nixos.org/nixos/options.html#networking.wireguard.interfaces (and the wiki), and it does not log errors, but i can't connect to any side (other than google.com after ~30s). are there some mandatory configurations i am missing?
<arianvp>
That table definitely does not exist
<arianvp>
I tried looking for it but it seems to be subsumed by anarchist village
<bake[m]>
arianvp: tables might got moved by assembies themselve
<arianvp>
Is anybody actually at the assembly right now?
<frigate_freedom>
Hello guys! Is it possible to use Nix to rule system packages (such as X, Gnome, KDE, GDM, etc) on CentOS?
pie___ has joined #nixos
<Yaniel>
sure
<frigate_freedom>
Have to use CentOS for some propritery software. And my plan is install it as core system -- kernel, systemd, network services and all the other software instal via Nix
<aristid>
after just 4 months of not updating my system due to awesomewm 3.5 being removed from nixos and i being too lazy to fix my config, i'm finally fixing it now *sigh*
<aristid>
frigate_freedom: that is possible but you will need to do some manual plumbing this way
<aristid>
frigate_freedom: it might be easier to run a centos container/vm on nixos
<frigate_freedom>
aristid: where can I read about such plumbing? I can't run it in vm because software needs maximum processor performance and good GPU to draw everything
<tilpner>
aristid: You *can* mix channels arbitrarily. Next time, keep updating your system, but pick an awesome from an older channel
<aristid>
tilpner: maybe i should've done that, yes
<aristid>
tilpner: or i should pick a WM that cares about backward compatibility
<tilpner>
frigate_freedom: That sounds like a lot of pain, might not be worth doing :/
<{^_^}>
[nixpkgs] @orivej opened pull request #52968 → pythonPackages.sip: do not build tools for non-default sip module → https://git.io/fhkWt
<tilpner>
NixOS + namespaces for your proprietary thing sound more fun
<tilpner>
(And even then, not easy)
<aristid>
frigate_freedom: container can give you that: the standard "steam" (the Valve games store) package uses a container that simulates an Ubuntu-like environment
<aristid>
and steam games definitely tend to use the GPU so that works :D
<frigate_freedom>
tilpner: yeah, I tried to do it, but I'm too noob to make it work
<frigate_freedom>
aristid: I tried to use systemd-nspown at first, but had some troubles (don't remember what exactly), then I tried LXC, but with no succes too
<tilpner>
frigate_freedom: I haven't tried it, but taming some hybrid NixCentOS monster sounds much harder, so in the interest of your sanity... maybe don't try that :/
<aristid>
frigate_freedom: the trick is "buildFHSUserEnv", which generates a pretend-standard linux "container"
<jD91mZM2>
Speaking of containers and steam, today I bought game recommended by a friend - Shenzhen I/O. It doesn't work in Nix sadly (but it works for my friend who uses another distro). Trying to run it (after patching it for nix) manually I get "System.DllNotFoundException: CSteamworks". I suspect some dynamic library for some reason doesn't load, because all the csteamworks libs are in a lib/ folder. Does anybody
<jD91mZM2>
have an idea of how to debug/solve this?
<aristid>
jD91mZM2: did you try to run it from within steam?
<jD91mZM2>
aristid: Indeed, and that does absolutely nothing. No error, no success
<aristid>
jD91mZM2: because it certainly _used_ to work, i ran shenzhen i/o from within steam like a year ago
<frigate_freedom>
aristid: interesting example, I definetely should try it. But at first install NixOS again :D
<aristid>
frigate_freedom: heh
<lokado>
Has anyone tried veonim on nixos?
<tilpner>
jD91mZM2: Those games sometimes come with a wrapper script that adjustes some environment variables. You need to replicate that if you want to run it manually
<tilpner>
jD91mZM2: Useful trick for debugging games inside steam: Add a terminal emulator to the FHS and add that as a game inside steam, then have steam launch the terminal, so that you can debug with the exact same environment as your games
<tilpner>
That way, you get stdout, strace, etc.
<aristid>
lokado: an electron-based wrapper around NEOVIM?
<aristid>
lokado: that sounds... RAM-intensive :D
<lokado>
But looks good :D
joepie91_to_go_ has joined #nixos
<joepie91_to_go_>
anybody at the assembly yet? :P
layus has quit [Ping timeout: 245 seconds]
<jD91mZM2>
tilpner: Oh, yeah, that's a nice idea, thanks
<lokado>
So, is there any examples about packaging an electron application?
<frigate_freedom>
aristid: so, i add demendencies in lightworks' .nix file, install it via nix-env. But how can I install my software in this environment?
<frigate_freedom>
dependencies*
<tilpner>
lokado: Check nix-tour, hyper-haskell, and rambox
<aristid>
frigate_freedom: do you know how to package regular packages for nix?
<frigate_freedom>
aristid: no, I just tried to add new version of Opera package once
<frigate_freedom>
that's all my experience
<lokado>
tilpner: thanks :P
<aristid>
frigate_freedom: i think it's best to learn that before packaging commercial software requiring a fake-centos container :-)
<aristid>
frigate_freedom: if you have some open source software you want but that's missing from nixos, that'd be the best way to get a bit of experience
joepie91_to_go has joined #nixos
<joepie91_to_go>
ottidmes: ah, thanks :) I'll drop by in a moment
<jD91mZM2>
tilpner: Rightio, so it looks like the real error is "rm: error while loading shared libraries: libGL.so.1: cannot open shared object"
<frigate_freedom>
aristid: thanks! I will learn it
rain1 has joined #nixos
rain2 has quit [Ping timeout: 240 seconds]
__monty__ has joined #nixos
joepie91_to_go_ has quit [Ping timeout: 268 seconds]
<frigate_freedom>
but, please, can you suggest where to read about installing commercial software with it's own installer in custom FHS environment
<{^_^}>
[nixpkgs] @vlaci opened pull request #52969 → material-design-icons: init at 3.2.89 → https://git.io/fhkWS
init_6 has quit []
<jD91mZM2>
tilpner: Another potential error is mkdir: cannot create directory '/nix/store/81y7n041js01l1q3m52pblfrdmz0z3sb-steam-fhs/steamrt/pinned_libs_64': Read-only file system
<tilpner>
jD91mZM2: I think you can disregard that last one, the first one sounds interesting though. Remember to strace, error messages can mislead easily
<jD91mZM2>
tilpner: Do I need to copy over the strace binar into the FHS also?
<tilpner>
Don't copy anything manually, add the strace package
<jD91mZM2>
nix-shell isn't available in the FHS
<jD91mZM2>
Never mind I can just copy over the $PATH
<tilpner>
Hold on
<tilpner>
Use steamPackages.steam-chrootenv.override { extraPkgs = p: with p; [ strace ]; }
<tilpner>
Launch that instead of your current steam. Also add a terminal emulator to that list
shibboleth has joined #nixos
juhe has quit [Quit: Leaving.]
agander has joined #nixos
tzemanov_ has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<jD91mZM2>
tilpner: Btw, first error is from running a wrapper script, second is from running binary directly
orivej has quit [Ping timeout: 268 seconds]
pie___ has quit [Ping timeout: 246 seconds]
<jD91mZM2>
Could "ERROR: ld.so: object '/home/user/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored" also be an error?
<jD91mZM2>
That's spammed over and over so it feels like it's just a warning
<jD91mZM2>
Can't find anything in strace
tzemanovic has quit [Ping timeout: 250 seconds]
juhe has joined #nixos
betaboon has joined #nixos
<dsx>
>ssh nixhost cat .xprofile
<dsx>
zsh:1: command not found: cat
<dsx>
How to fix this?
juhe has quit [Remote host closed the connection]
<dsx>
I gather some ~/.bashrc et al aren't read for non-interactive shells
<__monty__>
That's correct. I think .profile is always loaded.
<infinisil>
dsx: Works for me
juhe has joined #nixos
sigmundv__ has joined #nixos
<dsx>
Probably I should break things one by one, not all at once.
<dsx>
Thanks guys
betaboon has quit [Ping timeout: 240 seconds]
Jackneill has quit [Remote host closed the connection]
agander has quit [Remote host closed the connection]
<ottidmes>
infinisil: not sure if sure if I should be reporting this to your, but I just ran into a systemd cycle issue since the way ZFS targets are structured. I am not sure what the correct fix would be, maybe a pre-zfs-import.target, but I used zfs-import.target to say that my decryption script should be run before trying to import the ZFS pools, however that gives it the same priority as the import pools and somehow
<ottidmes>
still works, but does cause the cycle reported by systemd.
kenardes has joined #nixos
<ottidmes>
infinisil: so instead of { requiredBy = [ "zfs-import.target" ]; before = [ "zfs-import.target" ]; } I had to use { requiredBy = config.systemd.targets."zfs-import".requires; before = config.systemd.targets."zfs-import".requires; }
<infinisil>
Did it show the cycle?
<ottidmes>
yes
<infinisil>
And what was it??
<ottidmes>
infinisil: https://gist.github.com/ottidmes/686eda279f6e9729491c8a58c787673b but its not really a bug, more like an assumption made on my side that was wrong, its more of a feature request, because doing something to make the disks ready for ZFS import seems not uncommon to me
<infinisil>
Ah :P
<infinisil>
I don't have too big of an idea about this stuff, maybe worth filing an issue
<ottidmes>
and you cannot expect people to analyze the systemd graph to figure out they have to use what I ended up using to do something before the ZFS pools are imported
<ottidmes>
infinisil: ok, I will put it on my TODO
hyper_ch2 has quit [Quit: Page closed]
<{^_^}>
[nixpkgs] @delroth opened pull request #52979 → [18.09] wget: disable feature responsible for CVE-2018-20483 → https://git.io/fhk4w
<{^_^}>
[hydra] @dasJ opened pull request #628 → Support $X-Request-Base for the Logo → https://git.io/fhk4H
kenardes has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
dermetfan1 has quit [Ping timeout: 268 seconds]
jluttine has quit [Quit: WeeChat 2.2]
jluttine has joined #nixos
<nwspk>
Hej everyone! I've got a quite strange problem with my NixOS-instalation
<nwspk>
Since the last update (which kind of failed with an auto-logoff and a killed xserver) my new generation wouldn't even run (kernel panic before entering LUKS passphrase)
<nwspk>
now, after switching to an older one, the rebuild kind of works, but the new generation is not useable: the most systemd-Units won't start becuase they are just empty files
<nwspk>
there are messages as the following for multiple units all over the logs: >nscd.service: Failed to execute command: Exec format error
<nwspk>
can anyone give me some hints for this? thanks a lot!
vidbina has joined #nixos
<nwspk>
If anyone has any ideas later, please just highlight me. Thanks (:
<delroth>
your nix store is probably corrupted due to unclean FS shutdown
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @orivej to master « k3d: fix build »: https://git.io/fhkEB
cnidario has joined #nixos
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @orivej to master « libs3: 2017-06-01 -> 2018-12-03 »: https://git.io/fhkEP
betaboon has joined #nixos
Makaveli7 has quit [Ping timeout: 244 seconds]
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @orivej to master « nix1: fix build with boehmgc 7.6.8 »: https://git.io/fhkuK
endformationage has joined #nixos
betaboon has quit [Ping timeout: 272 seconds]
Havvy has quit [Quit: Computer Restarted or Restarting IRC]
Havvy has joined #nixos
betaboon has joined #nixos
<pie__>
man.. the winepackages stuff is weird
IRCsum has joined #nixos
acowley has quit [Ping timeout: 272 seconds]
<pie__>
rnhmjoj, ping?
alex`` has quit [Quit: WeeChat 2.3]
alex`` has joined #nixos
pie__ has quit [Remote host closed the connection]
pie__ has joined #nixos
Guanin has joined #nixos
Guanin has quit [Remote host closed the connection]
Guanin has joined #nixos
leex has joined #nixos
<leex>
Hey I am trying to build alsa-lib with pkgconfig support so that I can get amethyst to work with it. How do I enable nativeBuildInputs = [ pkgconfig
<leex>
] for a single package?
orivej has quit [Ping timeout: 245 seconds]
aanderse has quit []
marsam has joined #nixos
Maxdamantus has quit [Quit: Back in probably a bit less than a month. Bye.]
<LnL>
not sure what that means, does it not generate the files if it's not available at build time?
<leex>
LnL: that's exactly the problem and when I try to build amethyst I get: value: "`\"pkg-config\" \"--libs\" \"--cflags\" \"alsa\"` did not exit successfully: exit code: 1\n--- stderr\nPackage alsa was not found in the pkg-config search path.
<leex>
infinisil: can I do that in my .config/nixpkgs/config.nix?
<LnL>
ah in that case what infinisil linked should do the trick
<{^_^}>
leex: 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
<Church_>
Hey samueldr you around?
<samueldr>
maybe
orivej has joined #nixos
<Church_>
Heh, got a rails question for yah if you wouldn't mind taking a look.
<Church_>
Got the app fully running with a db backend
<Church_>
Checking stderr, unicorn_rails is running
<Church_>
But it's not serving any content, not even listening on a prt.
<Church_>
port.*
<Church_>
Just listening on a socket and that's it.
<Church_>
About to push the changes to git, driving me batty. Curious if you could take a look and had any ideas?
<samueldr>
:/ it's been years since I deployed a rails app, any not with nixos, and not using unicorn; maybe it's a unicorn thing?
<samueldr>
you said "just listening to a socket", I gather a unix domain socket?
<Church_>
Maybe. I'll just wait for man to get on.
<Church_>
Yep
<samueldr>
AFAIK nginx should be able to use that if you desire
Guanin has quit [Ping timeout: 252 seconds]
pepesza has quit [Quit: ZNC 1.6.3+deb1ubuntu0.1 - http://znc.in]
<samueldr>
instead of putting unicorn directly in the path of the great web firehose
<samueldr>
(not sayiny it would be wrong, but pointing out that it might be useful to keep using a unix domain socket if you desire)
<trevthedev>
hi all, am wondering how i can get libGLU.so.1
<trevthedev>
am trying to do programming in Racket via an FFI and i need libGLU.so.1, though have no clue how to obtain it on NixOS, online doesn't seem to help either
<aristid>
shapr: i was briefly considering getting an x1 extreme and running it in purely-discrete mode too, but then i was like... dropping 3 grand on something that i'm not even sure how well it will work is a bit of a tough call :D - and i guess that's why you're asking too
juhe has quit [Remote host closed the connection]
<kyren>
actually, I just realized it is trivially easy to get the path to the current configuration.nix through itself by just referencing the file, and I just wasn't thinking...
<{^_^}>
Found in packages: libGLU, libGLU_combined, xorg_sys_opengl
<infinisil>
trevthedev: ^
cyounkins has quit [Remote host closed the connection]
Acou_Bass has quit [Ping timeout: 250 seconds]
cyounkins has joined #nixos
eadwu has joined #nixos
pie__ has joined #nixos
joepie91_to_go has quit [Ping timeout: 250 seconds]
Acou_Bass has joined #nixos
eadwu has left #nixos [#nixos]
<trevthedev>
oh shoot, thanks
<trevthedev>
so do i just install those like any other package?
<kyren>
as soon as I have access to my nixos machine again I can give you more details, but they're going to be in a directory in /var/run iirc
<kyren>
trevthedev ^
<trevthedev>
so how do i get Racket to detect them then?
<kyren>
er, actually now I'm not so sure about libGLU, let me check before I say more
<trevthedev>
hmm
<trevthedev>
no worries
tzemanovic has quit [Remote host closed the connection]
cyounkins has quit [Ping timeout: 250 seconds]
<kyren>
nope, I was totally wrong
erictapen has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
orivej has quit [Ping timeout: 250 seconds]
eadwu has joined #nixos
<kyren>
I was confused, some part of the opengl / vulkan libraries are in /var/run/opengl-driver/lib, but not libGLU*, I don't remember how it is all laid out so I'll stop giving advice on stuff I don't know about :D
dermetfan1 has quit [Ping timeout: 246 seconds]
teej has joined #nixos
<trevthedev>
fair enough
simukis has quit [Quit: simukis]
mmlb has quit [Ping timeout: 246 seconds]
simukis has joined #nixos
<simpson>
Add `pkgs.libGLU`. GLU uses GL as a library, same as your code; it's on "your" side of the magic GL linkage barrier, so to speak.
tzemanovic has joined #nixos
<trevthedev>
so just nix-env -iA nixos.libGLU ..? sorry i dont quite undestand
<siers>
Could any darwin users tell me whether this throws an error nix repl?: builtins.match "^\.stack-work/downloaded/zrAzVbT4hDDB/buildUtils/(.*/|)[^/]*\.hi" ""
<trevthedev>
did that already and it still doesn't detect libGLU
<kyren>
siers: error: invalid regular expression '^.stack-work/downloaded/zrAzVbT4hDDB/buildUtils/(.*/|)[^/]*.hi', at (string):1:1
<siers>
kyren, this works on linux :) horrible
<kyren>
there's no right side of that |?
<siers>
kyren, what about builtins.match "x(.*/|)x" ""
<siers>
kyren, yeah
<LnL>
builtins.match has different behaviour depending on clang/gcc
<{^_^}>
nix#1537 (by copumpkin, 1 year ago, open): Regex behavior differs across platforms
<kyren>
siers: also invalid
eadwu has joined #nixos
<kyren>
huh, bug in libstdc++
<siers>
LnL, thank you for the issue
<simpson>
trevthedev: I don't understand Racket's FFI well enough to give a complete answer. Absent any structural improvements to the Nix expression for Racket, I wonder whether it might be enough to have the path into the Nix store where libGLU lives.
shpx has joined #nixos
<trevthedev>
;-;
<trevthedev>
hm
<siers>
kyren, LnL, I could totally replace that with (.*/)?, right?
<LnL>
yeah I think so
<kyren>
I guess it depends on how libstdc++ interprets empty expressions, but I suspect so?
<{^_^}>
siers/nix-gitignore#14 (by mightybyte, 6 days ago, open): Certain file names result in a crash
eadwu has left #nixos ["WeeChat 2.3"]
hamishmack has joined #nixos
<kyren>
oh, hey LnL since you're right here, I am doing truly horrible things to get the 'nixPath' checks in https://github.com/LnL7/nix-darwin/blob/master/modules/system/checks.nix not to abort, I'm fine doing this, but I was thinking of opening an issue detailing my use case and why that check is not welcome, is this something that you'd like to hear about or for me to open an issue?
<leex>
Does anyone know where one can get either libglx or libEGL?
<kyren>
leex: *those* are in /var/run/opengl-driver, there is a lot of magic happening with them that I don't fully understand
<kyren>
also /var/run/opengl-driver-32
<LnL>
kyren: sure, we could make them configurable so they can be disabled for special cases
<kyren>
cool, I'll make an issue, thanks!
erictapen has quit [Ping timeout: 250 seconds]
<leex>
I have these two lines in my nix-shell config
<kyren>
not sure if that's the 100% super best way to do it, but that's where they are
trevthedev has quit [Quit: WeeChat 2.2]
<kyren>
OH, they should be in LD_LIBRARY_PATH already and it's being overwritten
<leex>
hmm, adding that to my ld_lib_path didn't help
<kyren>
and it's /run/opengl-driver/lib (obviously)
<leex>
didn't help either :/
<leex>
do I need libGL?
<leex>
there is no libegl/glx
<kyren>
oh, they're libEGL_mesa and libGLX_mesa, not libEGL / libGLX
<leex>
but not packages that I can install right, just libs that I need to put into the ld_lib_path?
<kyren>
sorry, I'm 0 for 2 for helping people with this :D, libGLX and libEGL are not in /run/opengl-driver/lib, libGLX_mesa and libEGL_mesa are in there, but you will probably ultimately need that in LD_LIBRARY_PATH, there's a lot of levels of indirection going on
<kyren>
I've done this recently with vulkan, not opengl so I'm not actually super helpful here
<leex>
I wanna get amethyst working
<leex>
hmm there is a libGLX_mesa.so@ in /run/opengl-driver/lib
<leex>
also EGL
<leex>
*egl_mesa
<kyren>
in the past when I've used libGL I've used something like glew or libglvnd, libglvnd has libGLX.so and libEGL.so in it and would maybe work?
erictapen has joined #nixos
erictapen has quit [Client Quit]
<leex>
I will give them a try
<kyren>
well, actually never mind glew and libglvnd are different things
<leex>
yeah they don't work :)
<kyren>
do you have a test crate somewhere on github that I can look at?
<duairc>
I see that NixOS has options for configuring nsd (DNS server) through Nix, including specifying the interfaces on which to listen. I'm wondering is it possible to configure two different instances of nsd, each listening on a different address with slightly different configurations, through Nix in this way?
<kyren>
I haven't touched the opengl library ecosystem in several years and clearly I don't know how this works anymore, but I'm interested in figuring it out with you
orivej has joined #nixos
<duairc>
Or maybe there's a better way to do what I'm doing... basically I want to give different answers to DNS queries depending on whether they come from inside or outside the local network (kind of like dnsmasq does on OpenWRT)
<leex>
kyren: you have a PM with my amethyst.nix
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<kyren>
leex: got it, give me just a moment
tzemanovic has quit [Remote host closed the connection]
<duairc>
I guess I could just make a local copy of /nixos/modules/services/networking/nsd.nix
tzemanovic has joined #nixos
cnidario has joined #nixos
<duairc>
and replace most occurences of "nsd" with "nsd.local" (or something) where it makes sense
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<duairc>
That way I could have two instances configured independently, and I could just write some functions to abstract out the bits that would overlap
<shapr>
aristid, I have a ThinkPad P52 with Ubuntu on it, but it's partitioned for NixOS
tzemanovic has quit [Remote host closed the connection]
<samueldr>
duairc: with `disabledModules` you could keep the names of the options, while having your custom module for your local configuration
<kyren>
I believe that works but I'm not sure it's minimal
waif has joined #nixos
heath has joined #nixos
<leex>
spawning a shell with that config
heath has left #nixos [#nixos]
<leex>
my wifi here is horrible...
<kyren>
you should also be able to get rid of libGL_driver
<leex>
now libx11 is missing :) but I have that one
<duairc>
samueldr: I don't really want to disable the current module, I actually want both it and a copy of it... the module is basically for configuring an instance of nsd, whereas I want to run two (mostly) independent instances of nsd
<samueldr>
oh, I see
<duairc>
Well, they're not really that independent... maybe I could keep the options mostly the same, maybe I do want to just replace it actually.
<duairc>
So that link is probably helpful either way, thanks
<kyren>
leex: I'm only testing this with nix-shell, I have a couple of similar shell.nix files but I only use these for local rust development, not producing actual derivations, if you're doing the same you can actually use mkShell rather than mkDerivation
<leex>
it works :)
<kyren>
er, not producing actual packages I mean
<leex>
I am not
<leex>
is that faster?
<kyren>
no, it's just slightly cleaner if you're not producing something designed to be instantiated / installed whatever
<kyren>
you don't have to give it a name, for example
<leex>
yeah just reading the docu about it
<leex>
thanks for helping me out :)
<leex>
I learned a lot about nixos today
<kyren>
no problem, I've partially redeemed myself at least