<nh2>
or does it? It booted but looks strange and there's nothing else in `/boot` but `EFI`
<nh2>
and the kernels are as copied files in there
<clever>
nh2: that matches up with how it worked for me
<clever>
i may be mis-remembering some bits, id need to experiment in qemu to confirm
<nh2>
clever: but what I have now is certainly not what you described: The kernels are still copied to the ESP, just that the ESP is now mounted in a subdirectory of /boot instead of /boot itself
selfsymmetric-mu has joined #nixos
ris has quit [Ping timeout: 272 seconds]
<nh2>
so essentially everything in /boot moved into /boot/EFI now, otherwise maintaining same properties including non-raidedness
<clever>
i may be mis-remembering what effect that has
o1lo01ol1o has quit [Read error: Connection timed out]
o1lo01ol1o has joined #nixos
<o1lo01ol1o>
I have one derivation that unpacks a bunch of libraries and binaries from an archive. Another derivation needs access to one of the binaries at compile time and runtime. How is this handeled? Do I explicitly get the needed binaries from some attribute in the first and then thread those as inputs to the second?
<clever>
o1lo01ol1o: you could just have them in your $out, or you could make a split output derivation
<o1lo01ol1o>
is there a special way to add a non-haskell buildInput into a haskell derivation created by cabal2nix? I get: called with unexpected argument 'buildInputs'.
<{^_^}>
[nix] @schrislambert opened pull request #2911 → Allow tab usage in indented strings → https://git.io/fjE1B
Supersonic has quit [Ping timeout: 258 seconds]
drakonis has quit [Quit: WeeChat 2.4]
justanotheruser has joined #nixos
<o1lo01ol1o>
If I export an environment variable in a derivation install command, is that variable made available to down stream derivations?
MinceR_ has joined #nixos
justanotheruser has quit [Read error: Connection reset by peer]
Supersonic has joined #nixos
<gchristensen>
no
justanotheruser has joined #nixos
<gchristensen>
the install phase is run during the package's build, it is not like an "install hook" which runs when the package is used
MinceR has quit [Ping timeout: 272 seconds]
<o1lo01ol1o>
so if in foo.drv I need FOO = $out/foo to be available to a downstream derivation that used foo.drv as a build input, how could I do that?
dnetr has joined #nixos
<clever>
o1lo01ol1o: add FOO = "${thing}/foo"; to the attrset of mkDerivation
<dnetr>
does anybody have any resources for porting .service files into nix expressions?
<dnetr>
I'm trying to install guix, but I can't copy the service file over
<clever>
emptyflask: but you probably want to build the ruby package properly, with nix-build, and then import that expression
Elon_Satoshi has joined #nixos
InFlames has quit [Ping timeout: 258 seconds]
Copenhagen_Bram has quit [Ping timeout: 252 seconds]
<emptyflask>
ah, got it. however home-manager is complaining: The option value `systemd.user.services.cart.path' in `/home/jon/.config/nixpkgs/home.nix' is not of type `attribute set of boolean or signed integer or string or list of boolean or signed integer or stringss'.
<clever>
emptyflask: ah, .path is a nixos option, not a home-manager option, adjusting it...
lambda-11235 has quit [Quit: Bye]
<emptyflask>
I'll have to look into building it I suppose. I figured that was only for releases, not active development
<tobiasBora>
I'd like to deploy on my small NixOs server a django server. However, I'm not sure what is the best way to do that. I was thinking to write a nix expression that runs a service starting the server, making migration of database, copying static files... (if you have some code already please let me know) However I'm not sure to know how I should deal with the fact that my code is changing... What is the
<tobiasBora>
recommended way to deal with that?
<srhb>
tobiasBora: What do you mean your code is changing?
<srhb>
tobiasBora: It sounds like you just want normal revision control..
<srhb>
And a completely regular nix package as well.
Notkea has quit [Read error: Connection reset by peer]
Notkea has joined #nixos
<clever>
yeah, you confirmed that at the end, its not making routes
<clever>
also, this now makes a seperate systemd service for each peer
<clever>
you need to check more files to see the whole picture
<hyper_ch2>
clever: and it doesn't: wg set [ifname] peer [pubkey] endpoint [remote server] persistent-keepalive [xx] allowed-ips [subnet]
<hyper_ch2>
that wg set and the ip route are missing in the generated files
<hyper_ch2>
when it's a "client/peer" and not a "server"
<clever>
there is no real difference between client and server in wireguard
<hyper_ch2>
running the commands in the shell manually makes it work again
<delroth>
can NIX_PATH entries point to a tarball instead of a directory? I've tried -I nixpkgs=/path/to/foo.tar but afaict it tries to parse the tar file as a nix expression
<hyper_ch2>
except when it's a "client" and you don't tell where the "server" or "endpoint" is, then you won't have a connection
<clever>
hyper_ch2: what wireguard related files are in /etc/systemd/system/ ?
<hyper_ch2>
clever: ? I already told you that the "client unit files" miss those two commands
bahamas has joined #nixos
<clever>
hyper_ch2: both the client and server should have 2 unit files now
<hyper_ch2>
Failed to restart wireguard-wg_ons-peer-enDIyyZaperJVAk-GxsTEHx-VlxCEZ9PM1uCvoO-Km8x3d.service: Unit wireguard-wg_ons-peer-enDIyyZaperJVAk-GxsTEHx-VlxCEZ9PM1uCvoO-Km8x3d.service not found.
<hyper_ch2>
the backslash in there is really, really annoying
<hyper_ch2>
still, after reboot, it doesn't work anymore
Soo_Slow has joined #nixos
<clever>
hyper_ch2: sounds like the peer units just need more wantedby flags, which would be a bug
<hyper_ch2>
all I can say: after I added my fix, it worked... now with the "improved" fix it doesn't anymore ;)
kraem has quit [Quit: WeeChat 2.4]
kraem has joined #nixos
kraem has quit [Client Quit]
<bahamas>
I have this file generated with cabal2nix https://bpaste.net/show/957589270a37. what does the sha256 attribute refer to? a commit in nixpkgs?
kraem has joined #nixos
phreedom has quit [Ping timeout: 256 seconds]
<typetetris>
In a haskell project of mine, hie calls cabal and there a folder dist comes into existence. How can I specify for nix, to ignore this folder and don't treat it as source?
<bahamas>
typetetris: set the src attribute explicitly
<clever>
typetetris: lib.cleanSource can also be used to clean the src up
<typetetris>
thanks, I look into those
<{^_^}>
[nixpkgs] @justinwoo opened pull request #62580 → purescript: upgrade to 0.13.0 → https://git.io/fjEDK
<tobiasBora>
so I was thinking to write directly in my configuration.nix a link to the release.nix, so that at every "nixos-switch", if my project changes, my website is updated
hexa- has quit [Max SendQ exceeded]
pbb has joined #nixos
jasonk000[m] has joined #nixos
valwal__ has joined #nixos
marko[m]1 has joined #nixos
greenerworld[m] has joined #nixos
das-g[m] has joined #nixos
wucke13 has joined #nixos
wak-work has joined #nixos
atopuzov[m] has joined #nixos
olejorgenb[m] has joined #nixos
roberth has joined #nixos
MayeulC_backup has joined #nixos
craige[m] has joined #nixos
hke has joined #nixos
dmj` has joined #nixos
SyrupThinker has joined #nixos
Orbstheorem has joined #nixos
zaphar_ps[m] has joined #nixos
codezero has joined #nixos
aterius1 has joined #nixos
aw has joined #nixos
nikivi has joined #nixos
EB[m] has joined #nixos
spacefrogg has joined #nixos
orbekk has joined #nixos
anton_ has joined #nixos
megfault has joined #nixos
MerlinGttlinger[ has joined #nixos
saikrishi1109[m] has joined #nixos
stramble-M has joined #nixos
j4m3s__ has joined #nixos
cocreature has joined #nixos
sputny[m] has joined #nixos
ghedamat has joined #nixos
aither has joined #nixos
nand0p has joined #nixos
rajivr___ has joined #nixos
p_l has joined #nixos
mudri has joined #nixos
nbardiuk has joined #nixos
BinkyTheClown has joined #nixos
drvirgilio has joined #nixos
vaninwagen has joined #nixos
elvishjerricco has joined #nixos
nocent has joined #nixos
sppky has joined #nixos
stigo has joined #nixos
grahamc[m] has joined #nixos
smove_ has joined #nixos
edcragg has joined #nixos
lemonpie has joined #nixos
Athas has joined #nixos
raoul has joined #nixos
Kim has joined #nixos
<immae>
bahamas: still working on your sparkle? :p Your error comes from the fact that the command you run in your derivation tries to create a .class in another derivation. Probably java is trying to compile the file next to the .java file? If so, then you should compile that while building that other derivation (inline-java-494a37a), not later
<bahamas>
tobiasBora: I don't know about nixos-switch, so I can't comment on that solution
<{^_^}>
[nixpkgs] @vcunat pushed 474 commits to staging-next: https://git.io/fjEyK
<bahamas>
immae: yeah, still on the sparkle :) the thing is that I don't want to build the inline-java derivation. I want to build jvm-batching which is found inside the inline-java repo
Shoubit has joined #nixos
<immae>
bahamas: then I think you’ll need to copy the content of inline-java (something like cp -a ${inline-java} ./inline-java && chmod -R u+w inline-java), since the build is trying to create files in an already-built derivation, which cannot happen. If you find a way to put those built file in another location it’s better, but not always feasible
MmeQuignon has quit [Ping timeout: 245 seconds]
<bahamas>
immae: sorry, I don't understand where I would do the copying. you're saying nix doesn't know how to build a package that is a subdir in a repo?
<immae>
no, I’m saying that you’re trying to modify the content of a derivation B while building a derivation A, which is not allowed
<immae>
bahamas:^
<immae>
(when I say "you", I mean the command you’re running is trying to do that, maybe you’re not doing it intentionnally)
<bahamas>
immae: so, all I did was create a nix file with cabal2nix, like this: cabal2nix --subpath jvm-batching https://github.com/tweag/inline-java > jvm-batching2.nix
<bahamas>
immae: then I'm calling that file in my shell.nix
<immae>
and what do you do in this shell.nix ?
<bahamas>
I assume nix build derivation inline-java when it fetched the source?
<immae>
is that a nix shell? what does sessionizer do?
<bahamas>
immae: yes, it's a nix shell. it's derived from the cabal file, so it's a standard file that uses mkDerivation
<immae>
ok, then one of the built derivation is trying to modify inline-java, while not being allowed. Maybe the derivation has an issue
<bahamas>
immae: so, here's what I think is going on. I want to build this `jvm-batching`. in order to do this, I fetch inline-java using fetchgit, because `jvm-batching` is a subdir inside inline-java. so when nix tries to build `jvm-batching`, it tries to write in the dir, hence inside inline-java
<bahamas>
so I think the question is if nix can build a subdir in a repo
<immae>
I cannot answer to that question since I have no idea, but my proposed workaround (copying that subdir to the build directory) could work
<bahamas>
immae: I think you're suggesting something like cp -r "${inline-java}/jvm-batching" ./jvm-batching. and then set the source to ./jvm-batching. right?
<immae>
yes
<bahamas>
immae: where would I run the cp command?
vidbina has joined #nixos
<immae>
Before the building, maybe in a preSomething
<immae>
note that you’ll need to "chmod -R u+w jvm-batching" too since the folder will be read-only
<bahamas>
immae: I have a chicken-and-egg problem. I want to refer to ./jvm-batching in my src attribute. but nix expects that path to exist, before it runs, it seems
phreedom has joined #nixos
<immae>
I think there was a misunderstanding, nix shouldn’t know about ./jvm-batching :p can you share what you have?
<immae>
bahamas:^
<immae>
(I mean: nix shouldn’t look for a ./jvm-batching directory, only the script you’re using, so you probably wrapped it too much)
<immae>
bahamas: yep, there was a misunderstanding. This is what I meant: https://paste.ee/p/KcYQI
<ar1a>
does the nixos iso use network manager yet
<ar1a>
or is it still wpa supplicant
<immae>
and actually, now that I look closer, I understand where your issue comes from: in src you should keep inlineJavaSrc, and in preConfigure you should instead put: export CLASSPATH="$src/jvm-baching/src/main/java
m0rphism has joined #nixos
<bahamas>
immae: ok. I'll try that
<{^_^}>
[nixpkgs] @abbradar merged pull request #62065 → systemd-boot service: don't remove directories from EFI dir → https://git.io/fjBj7
<{^_^}>
[nixpkgs] @abbradar pushed to master « nixos/systemd-boot: don't remove directories from EFI dir »: https://git.io/fjESu
<bahamas>
immae: $src is a special variable available in the shell, right?
<goibhniu1>
ar1a: hasn't the iso used nm for years?
<immae>
it’s a variable that points to the downloaded/untarred/anything_needed src
talqu has quit [Ping timeout: 258 seconds]
<immae>
Your issue was that the src was "${something}/foo", which forced nix to build a derivation for "something", and *then* set src of your derivation to "${something}/foo", which makes that src points to a readonly folder (while usually src is a read-write folder where your error wouldn’t happen)
<immae>
bahamas: I don’t know if I’m clear, I can go into more details about the build process if not
<tobiasBora>
Hum... I can't find how to package a full django website. I tried to write a setup.py that includes scripts=["manage.py"], the build seems to run fine, but when I type 'result/bin/manage.py runserver', I have a syntax error: https://pastebin.com/w6f90E4T
arjen-jonathan has joined #nixos
<tobiasBora>
on the line export PATH='/nix/store/y2jqsq63bhf3rz51hrg8pb78fjgwzwvv-python3-3.6.8/bin:/nix/store/dgcsv3bcw4v39r79hik6ws80qh1pakag-python3.6-mydjangowebsite-1.0/bin:/nix/store/345p44wgp556fygvyxmay65jygbmh2nk-python3.6-Django-1.11.18/bin:/nix/store/158j5bzslaxhgq4s93ljslgd4b3y6kjb-python3.6-setuptools-40.6.3/bin'${PATH:+':'}$PATH
<bahamas>
immae: yes, I think I understand. nix first builds a derivation for ${inlineJavaSrc}, because it's something I get with fetchgit I assume. it if was just a dir on the filesystem, it wouldn't have done it, right?
Jetien_ has joined #nixos
<bahamas>
anyway, your solution made the error go away. thank you!
<immae>
( bahamas: I hope this sparkle is worth the time you’re spending on it :p )
knupfer has quit [Ping timeout: 258 seconds]
<tobiasBora>
note that the error occurs only when I add parameters
<tobiasBora>
that's super strange
<tobiasBora>
./result/bin/manage.py works, but './result/bin/manage.py runserver' fails with a syntax error
<lucus16>
probably in a conditional import then
<bahamas>
immae: well, I'm getting paid to spend all this time on it. but I hope it's worth it for the client
mkoenig has quit [Ping timeout: 272 seconds]
<dkibi>
question: I'm trying to build a software and it fails because configure can't find sigaltstack. Works fine on a debian maschine. Anyone has an idea what could be the reason for this?
<bahamas>
dkibi: is that library specified as a dependency in your derivation?
<bahamas>
dkibi: maybe add it to buildDepends or equivalent attribute
<tobiasBora>
basically after the build, you can run "result/bin/manage.py shell", but not "result/bin/manage.py runserver" because of a syntax error. Any idea why??
Soo_Slow has quit [Remote host closed the connection]
<immae>
tobiasBora: as lucus16 suggested, maybe manage.py is importing a file which in turn imports manage.py, which provokes that error
<tobiasBora>
lucus16: sorry I missed your comment
Neo-- has quit [Ping timeout: 258 seconds]
<tobiasBora>
hum...
<tobiasBora>
interesting
<tobiasBora>
but annoying.
<immae>
you should check that it’s the case :)
<tobiasBora>
immae: the only reference to manage.py is in the setup I just wrote:
<tobiasBora>
otherwise if it's not the case I guess it's some black magic of django
<immae>
It may very well be
<tobiasBora>
How does people deal with that case then?
<bahamas>
tobiasBora: if you put the "export PATH=..." in your manage.py, that's not valid Python
<immae>
bahamas: actually the export is because manage.py gets wrapped by nix into a shell script
<tobiasBora>
yep, nix does that wrapping
<immae>
so tobiasBora : you should prevent that one way or another, but I cannot help you to do that
<bahamas>
but the error says it occurs in a Python file or I'm misunderstanding
<immae>
manage.py is a pythong file, which gets renamed into .manage.py-wrapped and replaced with a bash script that calls this file by nix
<tobiasBora>
bahamas: nixos creates automatically a wrapper file "manage.py" that is in fact a shell script
<bahamas>
ok, I see
<timor>
When adding a package to python-packages.nix, what is the correct commit message: "pythonPackages.foo: init at ..." or "python.pkgs.foo: init at ..."?
Shoubit has quit [Ping timeout: 252 seconds]
Shoubit has joined #nixos
<dkibi>
bahamas: I'm not an expert, but this seems to be not a library, but part of glibc? at least I couldn't find a derivation for it
<Shados>
What was the helper command to open the local html nixos manual again?
<yorick>
Shados: nixos-help
<yorick>
looks like my default browser is internet explorer in wine... again
<Taneb>
yorick: I've ended up with my default browser being Discord, which can't even open web pages
* hyper_ch2
still fails to see the appeal of Discord
<Taneb>
I like discord pretty much entirely because it's what some of the people I want to talk to use for talking to people
genesis has joined #nixos
<Shados>
hyper_ch2: For lay people: ease of setting up a "server", ease of getting new people to connect to your "server"s, ease of getting new people to use it at all. For nixos people, probably only that everyone else is using it >.>. Networking effect is strong.
<Taneb>
I definitely don't see its appeal as a default web browser, though
<Shados>
I don't know if you've ever run or admined a chat system/server used by lay people, but it inevitably involves a ridiculously large number amount of carefully helping people through connecting to servers to begin with. There's just too much that can go wrong in terms of having to manually plug in connection information, network issues, etc.
<Shados>
yorick: Thanks. Are there no installable nix/nixpkgs manual packages with similar helpers?
<Taneb>
(I think it comes from Gnome getting all electron apps mixed up with chromium for me for a while)
<yorick>
Shados: I think niksnut wanted to keep the nixos executables non-packages for some reason
<Shados>
yorick: Eh. I guess I'll just go write a couple of writeScriptBin derivations, then...
<yorick>
Shados: it just does xdg-open
<Shados>
Yeah I figured
<Shados>
But having vaguely-memorable helpers is nice
<{^_^}>
[nixpkgs] @cstrahan opened pull request #62595 → dropbox: fix tray menu with StatusNotifierItem trays → https://git.io/fjE9S
ilmu has joined #nixos
<azazel>
what happened to fetchTarball ? I've a client that is facing some has issues (wanted: foo, got: bar) while downloading nixpkgs channels (old) releases
<alexarice[m]>
azazel: It appears the variables are set in the mate desktop module which makes things a bit more difficult
<alexarice[m]>
might try to write a wrapper
andi- has joined #nixos
<Shados>
hyper_ch2: was in respons to: [19:57:11] -*- hyper_ch2 still fails to see the appeal of Discord
<gchristensen>
hyper_ch2: I saw your bug report, I think the solution shouldbe trivial ... looking.
<{^_^}>
[nixpkgs] @peti pushed 0 commits to haskell-updates: https://git.io/fjEQn
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fjEQc
domogled has quit [Read error: Connection reset by peer]
andi- has quit [Ping timeout: 252 seconds]
domogled has joined #nixos
<gchristensen>
actually no I don't, hyper_ch2
<gchristensen>
hyper_ch2: wireguard's module has no "client" or "Server" mode
<gchristensen>
clever: requires = [ "wireguard-${interfaceName}.service" ]; after = [ "wireguard-${interfaceName}.service" ]; wantedBy = [ "multi-user.target" ]; is this insufficient?
asheshambasta_m has quit [Quit: Leaving.]
andi- has joined #nixos
<hyper_ch2>
gchristensen: (also, can that backslash be removed?)
<hyper_ch2>
Shados: ah, ok :)
<hyper_ch2>
Shados: I forgot about that remark was still at "wireguard" - that's why it made no sense to me
<gchristensen>
hyper_ch2: how did you find the wireguard peer unit which didn't start?
<hyper_ch2>
gchristensen: clever helped me :)
<hyper_ch2>
I was just looking at systemctl status wireguard-....
<kraem>
i managed to create an iso containing wifi drivers for my broadcom chip in my macbook using this expression: https://bpaste.net/show/018d65fe3fc8 can i somehow make the install inherit the expression the iso was made with?
<hyper_ch2>
gchristensen: why public key? I just added more info. Don't really know hwat else to add
<aveltras>
does nixops support deploying multiple applications to the same nixos server ? As in you have completly separate apps and only one server which then serve apps depending on the domain name.
rprije has quit [Ping timeout: 248 seconds]
<gchristensen>
hyper_ch2: because the public key is used to generate files
<goibhniu1>
kraem: is this mainly to install NixOS for yourself? USB tethering might be a simpler option
<hyper_ch2>
gchristensen: still fail to see the reason for the public key
<kraem>
goibhniu1: yes it is. hmm alright. think i'll have to google that - is that builtin in the install iso?
<gchristensen>
okay well you already posted them for what it is worth, so if you want to delete them, now is the time :)
domogled has quit [Ping timeout: 245 seconds]
<goibhniu1>
kraem: cool, if you have an android device, you can plug it in, enable usb tethering and then you should be online
<goibhniu1>
AFAIK you can do it on iPhones too, but only via mobile data (not wifi)
<kraem>
goibhniu1: iOS - can't find anything labeled 'tether' in the manual nor the options
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage2nix: disable broken builds to fix evaluation errors »: https://git.io/fjE7v
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjE7J
bahamas has joined #nixos
domogled has quit [Read error: Connection reset by peer]
domogled has joined #nixos
<kraem>
goibhniu1: yeah i have a functioning ISO - i just want to copy the expression it was built with into the configuration.nix expression the nixos-install command runs
<gchristensen>
look in /etc/nixos on the livecd, is it there?
<kraem>
guess i could just put the expression i built the iso with on github - clone it within the live environment and then just paste the contents into the configuration.nix which is used during the install
<kraem>
gchristensen: will check. give me a minute or two to reboot :)
Ariakenom has joined #nixos
<tobiasBora>
Hum...
<tobiasBora>
In my shell.nix, I have a line (python36.withPackages (ps: with ps; [ django setuptools ])). However, when I run nix-shell, I do have django-admin cli, but when I run a python file like manage.py I get an error about django nox existing
<kraem>
gchristensen: nope `/etc/nixos/configuration.nix` is basically empty
<talqu>
hi, maybe this is not the most appropiate place for this question, but I will try. I am playing with two nixos servers deployed with basics apps. I run nginx and only allowedTCPPorts = [ 443 80 ]; I connect via ssh using openssh.authorizedKeys.keys. I got a message from spamhaus: my-ip is listed in the XBL. Doing `netstat -nputw | grep ESTABLISHED` I can always see my an ip I dont know with different port(every time
<talqu>
I execute this command). Does ssh got compromised? Why the port changes every time? How could I have prevented this?
<immae>
talqu: ESTABLISHED can be a port for an outgoing connexion
<immae>
the allowedTCPPort only forbids entering connexions
<talqu>
immae: you mean allows?
<immae>
yes
<immae>
it only sets rules for incoming connexions
<sphalerite>
talqu: it's more likely that your IP address was previously assigned to someone doing nasty things, for it to end up on the blocklist. Or have you had the IPs for a long time?
<immae>
outgoing is always accepted
<talqu>
sphalerite: no for long
civodul has quit [Remote host closed the connection]
<tilpner>
talqu: "no, for long", or "not for long"?
<talqu>
when enabling opensshd in configuration it automatically opens port 22?
<immae>
you have it by default if you enable openssh
<sphalerite>
talqu: then that's the most likely reason it's on a blocklist. You could have a look at the logs to see if there are successful connections that aren't you, `journalctl -u sshd`
<sestrella>
Hi, new NixOS user here. I'm trying to create a Nix derivation based on a list of files that looks like as follows `srcs = [ ./package.json ./package-lock.json ]` however, I'm getting the following error `do not know how to unpack source archive /nix/store/n1w10ai78i5bj375xpaw4yn90z15wrfr-package-lock.json`. According to "Nixpkgs manual" `srcs / src The list of source *files* or directories to be unpacked or copied. One of these must be set.` perhaps
<sestrella>
@infinisil - thank you for replying my message. I'm going to try that out, although I think `src` is a mandatory field, therefore, I guess I should point to the whole directory for now `src = ./.`
<Xyliton>
infinisil: it also says something about overwriting allowBroken. Wouldn't that just allow me to attempt a broken package?
<dminuoso>
Mmm, how do I get a reference to a working program interpreter for patchelf?
<infinisil>
Xyliton: Exactly, the error message includes how you can still attempt it
<infinisil>
Xyliton: it might work, or it might not
<pie_>
dminuoso, if you really want to do it imperatively you can probably use nix eval
<dminuoso>
pie_: nah Im fine writing a derivation for it
<sestrella>
manveru: got it so as, @infinisil pointed out I could set `unpackPhase` to "true" instead. You guys give a couple of ideas to test out, thank you!
<pie_>
dminuoso, i think fixupphase might already do that then
<pie_>
dminuoso, maybe you could try searching in setup.sh for it
<pie_>
otoh no idea, maybe its handled by cross compilaiton stuff in which case its probably easier to just have someone else that knows say how xD
<dminuoso>
pie_: wait a moment, setup.sh?
<pie_>
(or find it somewhere)
<pie_>
dminuoso, its part of the stdenv infrastructure
<pie_>
that does all the phases and stuff. its the builder for mkderivation (unless i remembered wrong)
<dminuoso>
pie_: Okay I should be careful. This package seems to be extremely brittle, so I think Im gonna prepare this manually
<pie_>
dminuoso, i would have reasoned the exact opposite way >.>
<pie_>
if its brittle, easier to deal with it consistently
<hyper_ch2>
gchristensen: what more info do you need?
fusion809 has joined #nixos
<pie_>
Xyliton, most of that isnt the error it chokes on, just debug stuff. the error is just the last line and you can pass --show-trace for a traceback. however you probably dont want the entire package, in your place i'd try to find out if theres some kind of version attribute
iqubic` has quit [Ping timeout: 245 seconds]
<manveru>
dminuoso: one neat trick is: `patchelf --print-interpreter $(readlink -f $(which patchelf))`
dustinm has joined #nixos
<pie_>
i bet thats on a wiki page somewhere
hmpffff has joined #nixos
ivan has joined #nixos
<hyper_ch2>
grahamc[m]: the problem occurs if you use wireguard as client and not as server
<gchristensen>
hyper_ch2: wireguard doens't have a "client" or "server" mode, so what do you mean by that?
<Xyliton>
infinisil: this is kinda weird. The broken package is only broken because of a version discrepancy of one of its dependencies. Checking the version of said package and the changelog on their github this dependency shouldn't even be depended on anymore
<Xyliton>
Only solution now would be using my own expression?
domogled has joined #nixos
<infinisil>
Xyliton: What's the error exactly?
<hyper_ch2>
gchristensen: if you define an endpoint, then wg acts as peer
<hyper_ch2>
as client
<Xyliton>
infinisil: it is cabal complaining about a missing dependency. `tasty >=1.1.0.3 && <1.2`. nixpkgs only has tasty 1.2.0. Although this shouldn't depend on tasty anymore
<gchristensen>
hyper_ch2: okay, so to debug I need you to reboot so you're back in the buggy state
<hyper_ch2>
what to debug?
<gchristensen>
I want to send you commands to run, and have you send me the output
<infinisil>
Xyliton: Did you check the right version of the package?
<hyper_ch2>
gchristensen: rebooting, it'll take a little while
<gchristensen>
ok
<Xyliton>
infinisil: according to `nix eval nixpkgs.haskellPackages.summoner.version` it is at 1.2.0, which, according to the changelog, doesn't depend on tasty anymore
domogled has quit [Remote host closed the connection]
<infinisil>
Xyliton: You can `nix build nixpkgs.haskellPackages.summoner.src` (I think) to see the source of it. If the cabal file of it still has tasty in it then it still depends on it
hyper_ch has joined #nixos
<lem0n>
Hello, I would like to ask a question. I am trying to install Nvidia Legacy 390 driver. It seems to collide with nvidia package that bumblebee uses.
<pie_>
i would have figured the version of the package in the nix haskell repo thing hasnt been updated
<pie_>
infinisil, Xyliton ^
<pie_>
i mean the one thats trying to pull in tasty
<lem0n>
How can I install legacy driver with bumblebee.
<hyper_ch2>
gchristensen: ready
domogled has joined #nixos
<infinisil>
Xyliton: pie_: Ah no, very likely it's not an direct dependency, but a transitive one
<gchristensen>
hyper_ch2: okay, send me the rust of `sudo wg`
<pie_>
im mostly unfamiliar with the haskell infra.
<hyper_ch2>
gchristensen: they can't ping the actual endpoint for those interfaces
<hyper_ch2>
because the wg set endpoint and the ip route commands were never run
<Xyliton>
pie_: the package "lists" are different from language to language?
<pie_>
Xyliton, if i understand you correctly, sadly yes
<pie_>
im working on something that *might* improve that a bit
<gchristensen>
hyper_ch2: sorry, this is not helping. in that output, which interfaces are missing peers, and how many?
<hyper_ch2>
gchristensen: why are you about peers?
<Xyliton>
I'm talking about the way they work/are made/are maintained/etc
<gchristensen>
because that is the thing that matters
<pie_>
Xyliton, yeah theyre basically all separate implementations (afaik=
<gchristensen>
wg is all about peers. client / server is unrelated. it is always peers.
<hyper_ch2>
gchristensen: client --> connects to an endpoint
<Xyliton>
I've peeked at the giant list of haskell packages ones and I really hope that those weren't written manually
<hyper_ch2>
gchristensen: server --> has wg peers connect to itself
<gchristensen>
it connects to a peer's endppoint
<Xyliton>
*once
<pie_>
Xyliton, which in a way makes sense, because all the package managers and stuff work different. but at least it would be nice if the interface to the user was consistent.
<pie_>
Xyliton, i dont think it was done by hand but i honestly dont know how they do it
<infinisil>
Xyliton: They're generated with `hackage2nix` once a day automatically on the haskell-updates nixpkgs branch
<pie_>
infinisil, do people add system dependencies by hand as they run into issues?
<hyper_ch2>
gchristensen: I define as "wg client" when the config says it should connect to an endpoint.
<infinisil>
Xyliton: Which takes packages from stackage if they're in stackage, and latest hackage versions otherwise
<hyper_ch2>
because a server does not itself connect to peers.... but client peers connect to the server
<infinisil>
pie_: I think the common ones are included by default, and there might be a cabal field for that. Not sure about it
<hyper_ch2>
I can't ping the endpoint over the wg vpn
<hyper_ch2>
becuase the wg set endpoint and ip route commands were never run for the wg_hb interface
<gchristensen>
hyper_ch2: so in that config snippet at the end, where you define endpoint = "${mySecrets.wg_hb_end}";
<gchristensen>
is that defined in a list of "servers", "clients", or "peers"?
trevorriles has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hyper_ch2>
I don't what you mean by defined in a list of severs, clients or peers
<infinisil>
pie_: Yeah there's a cabal field for system deps, which hackage2nix uses
<gchristensen>
the Nix code puts the endpoint in to an attribute set inside of the list of peers.
<gchristensen>
peers = [ {
<infinisil>
Wait
<hyper_ch2>
yes, that defines this interface being a "client" because it seeks a connection to an endpoint
<gchristensen>
I don't care about clients or servers. I only care about peers.
<pie_>
infinisil, isnt cabal non-nix-specific though...how does that work...
<gchristensen>
in the output, `wg_hb` has no listed peers?
<hyper_ch2>
gchristensen: and that's the problem because you call it all peers
<hyper_ch2>
I gave you the output
<gchristensen>
okay
lem0n has quit [Quit: Page closed]
foo84724 has joined #nixos
<infinisil>
pie_: Ah yeah there is, extra-libraries it's called apparently
knupfer has joined #nixos
<hyper_ch2>
gchristensen: it should run wg set wg_hb peer [pubkey] endpoint [endpoing]:51820 persistent-keepalive 25 allowed-ips 10.100.200.0/24
<hyper_ch2>
gchristensen: and also ip route replace 10.100.200.0/24 dev wg_hb table main
<infinisil>
pie_: Not sure how the mapping is done, it might be good enough most of the time
<foo84724>
hey -- perhaps this is more of a generic linux question, but since it seems to work on other distros i thought i'd ask here:
<infinisil>
pie_:Like, the names already corresponding to attrs
knupfer has quit [Client Quit]
<hyper_ch2>
gchristensen: becuase it doesn't run it, it never connects to the endpoint, so the interface is up but useless
<gchristensen>
hyper_ch2: don't run those commands. did you run those commands?
trevorriles has joined #nixos
<hyper_ch2>
I did not
<foo84724>
i'm trying to install on an x1 carbon 6th gen with an nvme disk, but i can never see the disk
<gchristensen>
good
<foo84724>
i've tried booting in both efi and legacy modes
<foo84724>
anyone have any suggestions?
knupfer has joined #nixos
<gchristensen>
is quHqlmRZb2J+g2V5GgOXqERaVLYjx5vAUMgYLIgqo2U= the public key of wg_hb's peer?
<infinisil>
Xyliton: Oh and btw, while building summoner myself: The error is not during the summoner build, but its dependency tomland (for my nixpkgs version at least), which depends on tasty
<infinisil>
And summoner depends on tomland
<gchristensen>
hyper_ch2: ^
<pie_>
infinisil, most cabal users probably use debian
<hyper_ch2>
gchristensen: it is
<pie_>
infinisil, well, maybe theres a semi-mechanical translation.
<infinisil>
pie_: Why you think so?
<pie_>
infinisil, because most people in general use debian?
<pie_>
though maybe all the haskellers have migrated to nixos at this point :P
endformationage has joined #nixos
<yorick>
pie_: then why would we have stack
<pie_>
bleh i was thinking of stack actually
<gchristensen>
hyper_ch2: okay, and what does `systemctl status 'wireguard-wg_hb-peer-quHqlmRZb2J\x2bg2V5GgOXqERaVLYjx5vAUMgYLIgqo2U\x3d.service'` say?
<pie_>
yorick, to be pedantic i didnt say most people use cabal (as opposed ot stack)
<pie_>
but i mean transitively its still true right :P people that use stack are transitively using cabal right
<yorick>
pie_: well stack just imports the cabal lib
<infinisil>
Xyliton: You can use a `doJailbreak` on tomland to try the build anyways, even though our tasty is newer than it what it wants
<foo84724>
...d'oh, it's at /dev/nvme0, how did i miss that
<foo84724>
sorry for the noise!
<yorick>
pie_: but that's The Haskell Way of using things
<gchristensen>
then the bug is not at all what you and clever found. it is running the commands.
<infinisil>
Xyliton: And if it still doesn't build, try `dontCheck` on it, which will disable the tests, which is where the tasty dependency comes from
<infinisil>
Xyliton: Both dontCheck and doJailbreak come from pkgs.haskell.lib, and you need to apply them in a haskell overlay
schjetne has joined #nixos
<gchristensen>
start[4576]: Name or service not known: [endpoing]:51820'
<hyper_ch2>
it's a domain name
<pie_>
infinisil, every time i disable tests i feel like im killing puppies, sometimes its necessary
brejoc has quit [Read error: Connection reset by peer]
<hyper_ch2>
gchristensen: so, in the train now
<hyper_ch2>
anything else you need to know?
brejoc has joined #nixos
drakonis_ has joined #nixos
filedesless has quit [Ping timeout: 258 seconds]
filedesless has joined #nixos
brejoc has quit [Ping timeout: 252 seconds]
dansho has joined #nixos
toppler`` has quit [Ping timeout: 252 seconds]
domogled has quit [Quit: domogled]
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
erasmas has joined #nixos
filedesless has quit [Quit: leaving]
ambro718 has joined #nixos
toppler`` has joined #nixos
arjen-jonathan has quit [Ping timeout: 248 seconds]
<eddyb>
does anyone here work on GCC?
<eddyb>
I tried to do a local build, using: `nix-shell -E 'with import <nixpkgs>{};gcc8.cc.overrideAttrs (gcc: { nativeBuildInputs = (gcc.nativeBuildInputs or []) ++ [ flex ]; })' --run 'buildPhase && checkPhase'`
<lucus16>
Since it tells you where it finds every single shared library it uses
<lucus16>
In the last part before the failure it should tell you where it looks I think
<nobody96>
probably a stupid question, but is there an easy way to look up the store location of a package? (eg. rust-src -> /nix/store/hn1q4m58fmbjvsvfzg6ffav65slm9y4i-rust-src)
<nobody96>
eddyb, I know. But isn't there only one linked to a profile?
<nobody96>
s/a profile/the active profile/
<eddyb>
nobody96: oh, that. yeah you should be able to get that... from somewhere
<lucus16>
nobody96: Run nix repl '<nixpkgs>' and then type e.g. toString hello
Neo-- has quit [Ping timeout: 268 seconds]
<matthewbauer>
eddyb: maybe check whether crti.o is being built correctly. it's possible some purity related thing in the cc-wrapper is breaking libgcc bootstrapping
WizBright has joined #nixos
<eddyb>
matthewbauer: it doesn't work without `--pure` either
<eddyb>
but let me try again in case I messed something up
<eddyb>
lucus16: there is no mention of crti except in the error message :/
<eddyb>
there are lines like `find library=libbfd-2.31.1.so [0]; searching` but nothing about crti
<lucus16>
Oh right
drakonis has quit [Ping timeout: 252 seconds]
<nobody96>
lucus16, thanks. I think I have to read up more about 'nix rpl'. It does work for hello, but not for rust-src.
<Taneb>
Question: what's the easiest way to have a derivation which runs patchShebangs on a local file and adds it to the store?
<matthewbauer>
actually it doesn't look like you are using cc-wrapper at all!
<matthewbauer>
i would try `nix-shell --pure -E 'with import <nixpkgs>{};gcc8.overrideAttrs (gcc: { nativeBuildInputs = (gcc.nativeBuildInputs or []) ++ [ flex ]; })' --run 'fixupPhase && configurePhase && buildPhase && checkPhase'` to get crti.o
<matthewbauer>
it probably needs it for building some local tool
<Ankhers>
What is the purpose of using autoreconfHook over just having autoconf in a derivation?
<eddyb>
matthewbauer: i.e. remove the `.cc`?
<eddyb>
that doesn't work at all, it fails very early on
<matthewbauer>
yeah that gives you the crt*.o objects in your library path
<matthewbauer>
what's the error without .cc?
<eddyb>
something in configure, I think? I'm waiting for the current run to fail
<eddyb>
(and it did, so just removing --pure doesn't help)
<lucus16>
nobody96: How do you identify the rust-src you're talking about?
<eddyb>
matthewbauer: `configure: error: no acceptable C compiler found in $PATH`
<nobody96>
lucus16, `ls -d /nix/store/*rust-src*`
drakonis has joined #nixos
<nobody96>
lucus16, but that is not aware of the environment I am in. Its probably do to it being installed via the mozilla overlay
<nobody96>
s/do/due/
<lucus16>
nobody96: So yes, there could be any number of those in the nix store, so you need some other way to be specific about which one you're looking for
schjetne has joined #nixos
<lucus16>
nobody96: If you have a binary in your PATH for which you'd like to see the relevant source,
<lucus16>
nobody96: And then look through the inputDrvs section for something with source in the name
<matthewbauer>
eddyb: ah yeah nevermind, you definitely want gcc9.cc
<nobody96>
lucus16, the problem is, that I need to set the RUST_SRC environment variable. I have the `rust-src` package installed and in the source. I just need to bring them both together...
<eddyb>
matthewbauer: so... why is it broken Q_Q
Ariakenom has joined #nixos
wfranzini has quit [Ping timeout: 250 seconds]
<matthewbauer>
maybe try genericBuild? this will unpack the custom source for you, but at least should work close to nix-build
<nobody96>
but after about an hour of searching, all I learned is that this is no common task and I don't know enough about nix to make it work myself.
<eddyb>
matthewbauer: I need my own build dir because apparently GCC regression tests are a diff of two test runs :(
<lucus16>
nobody96: right, so what command did you use to install that rust-src package?
<kraem>
one (last i hope) thought before migrating to nixOS completely and wiping my ssd: are ALL options abstracted? would i be able to run nvidia reverse prime (using my discrete nvidia card in my laptop as the primary gpu) as per http://us.download.nvidia.com/XFree86/Linux-x86/375.26/README/randr14.html
<tilpner>
kraem: No, not all options will be at the highest level of abstraction, and there are things you can do with Linux, that you can't easily do with just using predefined options
<azazel>
kraem: configuration is always a work in progreass ;-)
<kraem>
forgot the actual question: would i be able to create a `xorg.conf` in /etc that nixOS will listen to?
<CapsLock>
Hi everyone ; I try to execute some python script in a nix-shell (nix-shell -p libjpeg) ; but I get "ImportError: libjpeg.so.62: cannot open shared object file: No such file or directory" - I don't know why it has stopped working - it used to work. Any idea to solve this please ?
<tilpner>
kraem: Dual graphics are a pain on any distribution, especially when you require CUDA or Vulkan
MmeQuignon has quit [Ping timeout: 245 seconds]
<tilpner>
kraem: I have primusrun working, but it depends a lot on the hardware you have
<kraem>
tilpner: yeah i've encountered that. have a functional setup in arch and want to know if i can run this setup in nixos as well
<matthewbauer>
you might need to source it somehow... can't remember if there is a path to it. maybe $builder?
<tilpner>
kraem: Probably™
drakonis has quit [Ping timeout: 250 seconds]
<lucus16>
nobody96: Right, so nix repl '<nixpkgs>' will open a REPL with all the attributes in pkgs, the same ones you use in rust.nix to specify what should be installed
<lucus16>
nobody96: latest.rustChannels.nightly.rust-src is the exact rust-src package you're looking for, entering it will show you the derivation path
<lucus16>
nobody96: Use toString latest.rustChannels.nightly.rust-src to get the location where that package is stored in the nix store
v0|d has joined #nixos
<nobody96>
lucus16, it failed with error: undefined variable 'latest' at (string):1:10 - I assume its due to the overlay configuration that isn't put into nixpkgs
<lucus16>
nobody96: In that case it surprises me that your system configuration works
<lucus16>
nobody96: Or is it not one you've switched to yet?
<nobody96>
it is
tilpner has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #62619 → julia: strip out gfortran refs → https://git.io/fjExk
<nobody96>
lucus16, I just found out that /run/current-system/sw/lib/rustlib/src is the exact thing I was looking for
<lucus16>
Ah, cool
drakonis has quit [Ping timeout: 248 seconds]
<nobody96>
lucus16, but I am still curious why it didn't work. I have to dive deeper into nix and its oddities
drakonis has joined #nixos
<lucus16>
nobody96: I can't figure out where the latest attribute comes from in the file you linked me if it's not in your pkgs
<kraem>
tilpner: thanks - i'm not interested in the switching of gpu since i'd rather run with the discrete gpu as main for deterministic behaviour - i'll just have to take the plunge and try it - remember the plunge i took to get this working though T_T
<nobody96>
lucus16, its set in the mozilla-overlay
<tilpner>
kraem: If you recorded all the workarounds you needed on Arch, it should be fairly quick to implement all of them in your configuration
<wucke13>
How would one edit the java.security file in nixos?
<lucus16>
It's strange that they expose it under such a generic name
<kraem>
tilpner: yeah I basically just run nvidia proprietary drivers with the xorg.conf from nvidias website - that's why I wondered if i could just cp that xorg.conf to nixos and have it working :)
<nobody96>
lucus16, I don't know whtat the implications are of exposing it under latest. I really have to learn more nix ;-)
<tilpner>
kraem: The syntax looks fine now, no idea if the content is correct of course
nschoe has joined #nixos
<kraem>
tilpner: that i understand :) well that's the exact (with my busid of course) content of the xorg.conf i'm writing this from :)
<tilpner>
kraem: I suggest you disable xserver autostart and use services.xserver.exportConfiguration to debug the resulting configuration
schjetne has joined #nixos
<kraem>
tilpner: oh cool - that's nice - do you suggest i boot into nixos for the first time without Xorg, set up the xorg.conf and then start x manually with startx?
<tilpner>
kraem: Almost. Don't use startx, use systemctl start display-manager
<infinisil>
Because I wanted to, but didn't get to it yet
<infinisil>
Or are you gnidorah perhaps?
<stranger___>
yep
<kraem>
tilpner: ok sounds good. I don't quite follow the `Type: strings concatenated with "\n"` from the xserver.config option though - seems like the syntax i proposed is wrong?
<infinisil>
stranger___:Well I'd like if there would be at least another person who tested it, with different hardware and stuff
<tilpner>
kraem: No, I think it looks right
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #62622 → zoom-us: set LD_PRELOAD=.../v4l2convert.so → https://git.io/fjExy
orivej has quit [Ping timeout: 246 seconds]
<infinisil>
stranger___: But if there's nobody else, I guess we can merge anyways
<stranger___>
infinisil: maybe oxij, but I think he's usually too busy
<{^_^}>
[nixpkgs] @michaelpj opened pull request #62623 → localtime: set geoclue config → https://git.io/fjExS
<dminuoso>
I mean I could attempt to just symlink it to some .so.1 and hope everything works out, but it's basically asking for crashes and bugs to happen.
<gchristensen>
dminuoso: this isn't what you want to hear, but whatever you're using which needs an old version of jasper ... you don't want to use it. so many security vulns.
<gchristensen>
astra was built for the RU military, it'd be surprising indeed to have them pick NixOS :)
<hyper_ch>
well, it's modofied debian
<infinisil>
Everything is modified debian if you modify it enough xD
<hyper_ch>
I tend to think great zfs support, reproduciable builds, atomic upgrades and and granular control would be top priority
fendor has quit [Ping timeout: 244 seconds]
nDuff has quit [Ping timeout: 272 seconds]
ee1943 has joined #nixos
schjetne has joined #nixos
Fare has joined #nixos
<{^_^}>
[nixpkgs] @suhr opened pull request #62627 → strategies: init at 0.2.3 → https://git.io/fjEp7
nD5Xjz has quit [Ping timeout: 272 seconds]
<eddyb>
matthewbauer, lucus16: what the hell, I managed to replicate some of the logic and that brought `-Wl,-L/nix/store/c745s6cnnxy6c98bvhi0qsijrh3ikag1-glibc-2.27/lib` to the failing command, but that's not enough?!
<eddyb>
that is, I added `export set CFLAGS=-Wl,-L$(< "$NIX_BUILD_BINTOOLS/nix-support/orig-libc")/lib`
oida has quit [Ping timeout: 256 seconds]
<nschoe>
Hi everyone, I'm trying to create a derivation. Using fetchFromGithub I'm having the "ValueError: ZIP does not support timestamps before 1980". I've been redirecte to this github thread https://github.com/NixOS/nixpkgs/issues/270. From the issue thread this is supposed to be fixed, so I'm not sure how to proceed. There is an answer given "A temporary workaround is used by charon: https://github.com/NixOS/charon/blob/master/default.nix#L19" but
<nschoe>
the link if 404. At the very end, a user[matthew-piziak] shows a hack by unsetting SOURCE_DATE_EPOCH.
<{^_^}>
#270 (by cillianderoiste, 6 years ago, closed): Set zip_safe to false for python to avoid: "ZIP does not support timestamps before 1980"
<nschoe>
I'm not sure what's the correct solution.
<hyper_ch>
still banned from #wireguard
__monty__ has joined #nixos
oida has joined #nixos
<buffet>
hey, im running nixos on a thinkpad (X250), and im looking into getting TLP to run. is it necessary to install linuxPackages.tp_smapi myself, or does that get handled automatically?
<{^_^}>
[nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/fjEhe
nD5Xjz has joined #nixos
<eddyb>
matthewbauer, lucus16: what flag is needed to find `crti.o`?
ris has joined #nixos
d10n-work has joined #nixos
itorres has joined #nixos
<lucus16>
eddyb: I encountered the crti.o issue when trying to build gnat (which is part of gcc) and the issue then turned out to be I was using the stdenv gcc instead of the gnat bootstrap gcc
<eddyb>
uhhh okay?
<eddyb>
is `gcc9.cc` the wrong thing to get dependencies from?
<lucus16>
eddyb: And I'm fairly sure that was because it used the wrong wrapper which didn't add the right flags
<lucus16>
I don't know much more than that
<lucus16>
eddyb: Do you have a more complete example of what you're trying to do? Because the command you showed earlier didn't indicate a source
<eddyb>
the command starts with `/home/eddy/Projects/gcc/host-x86_64-unknown-linux-gnu/gcc/xgcc`, so I would think... it's using a locally built thing?
<eddyb>
lucus16: the source is gcc trunk
johnny101 has joined #nixos
orivej has joined #nixos
<{^_^}>
[nixpkgs] @mmahut opened pull request #62629 → walletwasabi: init at 1.1.5 → https://git.io/fjEhY
<lucus16>
eddyb: It would be helpful if you could give a nix file that e.g. overrides gcc9 with the source you're using and the extra buildinput so I can encounter your error with just a nix-build
<eddyb>
I guess, yeah
<nschoe>
Any idea for the 1980 timestamp thing?
gml8 has quit [Quit: gml8]
<lucus16>
nschoe: I guess the repository contains files with timestamps before 1980 and fetchFromGitHub downloads a source zip internally. Try a regular fetchgit variant I suppose
<lucus16>
or a fetchurl to a master tarball
zeta_0 has quit [Quit: break]
schjetne has quit [Ping timeout: 250 seconds]
hmpffff has joined #nixos
<eddyb>
lucus16: can I not omit sha256 in fetchgit?
Thra11 has joined #nixos
hmpffff_ has quit [Ping timeout: 252 seconds]
<lucus16>
uhh, I don't see there's anything to gain for me to look at an unpinned version
<lucus16>
Since it only makes it more likely that I get different results from you
<nschoe>
lucus16, Well I've cloned the it repo myself (as regular user) and I've check with `find` : there isn't a file before 1980. But I've entered a build env from nix-shell, and in this case, all files timestamps get reset to 1970. It's nix that does it.
johnw has joined #nixos
<nschoe>
I'm trying with fetchgit to see if this changes anything.
<eddyb>
lucus16: that would seem very surprising
<eddyb>
lucus16: maybe there's a much better way to do what I need to do... can I get `nix-build` to give me the build dir after `make check`?
<lucus16>
nschoe: Nix does that indeed, are you sure the error originates in the fetchFromGitHub call and not somewhere else?
nobody96 has quit [Ping timeout: 272 seconds]
<eddyb>
like, I need some `.sum` files from it
<lucus16>
eddyb: You can nix-build -K to keep the build dir in the temp directory after the build fails
<nschoe>
lucus16, I do not know, nor do I know hwo to check.
<eddyb>
lucus16: I doubt it's going to fail :P
<lucus16>
eddyb: So make it fail after the make check :p
<nschoe>
My plan was to enter a build env, and call the phases one by one.
* eddyb
tilts head
<eddyb>
lucus16: can I have it in case of success too?
<eddyb>
if I use nix-build then my life is much easier
<eddyb>
I can do it statelessly
<lucus16>
Hmm, not with nix-build :+
<lucus16>
eddyb: You could add an output and copy the working directory to it
<eddyb>
../../gcc/gcc/simplify-rtx.c:3120:21: error: 'int_mode' may be used uninitialized in this function [-Werror=maybe-uninitialized]
sestrella has joined #nixos
<eddyb>
oh wow it doesn't work
arjen-jonathan has joined #nixos
<eddyb>
amazing
mexisme_ has joined #nixos
brejoc has joined #nixos
<nschoe>
lucus16, I've jsut tried with builtins.fetchGit and it procudes the same error.
<lucus16>
nschoe: Probably not in the fetchgit part then. Can you show me what you're trying to do?
clacke_movim has left #nixos [#nixos]
<lucus16>
I think there was a utility to fix dates for zipping in nixpkgs, but I forgot what it was called
<nschoe>
I've included the definition of mkRosPackage. All of this is based on akru's work.
<nschoe>
qyliss, yeah I was hoping to try this next. But I'm not sure where to put it.
<qyliss>
oh yeah, sorry, missed you mentioning that
<nschoe>
What I don't understand is why I've getting this error: I've created lots of other .nix files on the same principle, always with fetchFromGithub and never had this tiemstamp error.
<nschoe>
qyliss, np :-) Do you know where in my .nix file I should put it?
<nschoe>
is there a buildHook or smth I can use?
<qyliss>
Are you trying to build this package with nix-build, or use a nix-shell?
<nschoe>
qyliss, nix-shell is just to try and debug (are you thinking shellHook = ''?), but this package is actually a dependency of a larger package I'm trying to build. And since I noticed this one failed, I set to build it.
<nschoe>
TL;DR: it should work even in non shell.nix
<eddyb>
lucus16: ugh, if I set a `rev` it downloads 2GB of history...
<eddyb>
I guess I don't know how to do shallow clones of the past, maybe find the right tag?
<nschoe>
Here https://nixos.org/nixpkgs/manual/ I see there's set-source-date-epoch-to-latest.sh which should be called. I'm wondering what happens here :/
<{^_^}>
[nixpkgs] @rycee pushed 2 commits to release-19.03: https://git.io/fjEj9
<nschoe>
qyliss, no idea where to put the `unset` statement?
<nschoe>
This is not really easy to understand what's called when, in which order, etc. when a derivation is being built. :/
clacke_movim has left #nixos [#nixos]
simon_weber has joined #nixos
<simon_weber>
Hi there! I'm relatively new and working on replicating an ansible setup for a service of mine in nixos. Right now I'm looking to get duplicity + pydrive working. duplicity is in nixos/nixpkgs, and I've made a custom package for pydrive with pypi2nix. When I ssh to my test vm, I can run python and import pydrive. But, the duplicity service isn't able to import it
<simon_weber>
presumably there's something I need to do so duplicity runs with that global python environment -- can someone point me in the right direction?
<nschoe>
lucus16, have you had time to take a look at my gist (sorry to bother again :/)
hmpffff has quit [Quit: nchrrrr…]
L31ra has joined #nixos
<qyliss>
nschoe: does putting it in preConfigure work?
<L31ra>
what's the idiomatic way to disable soft flow control in NixOS? I can add 'stty -ixon' in shell startup file, but I think there should be an option for that already
schjetne has joined #nixos
<nschoe>
qyliss, no. But I don;t even think preConfigure gets executed tbh
<qyliss>
Easy way to find out
<qyliss>
stick exit 1 in there and see what happens
<nschoe>
qyliss, I've tried using `sleep 10` or `echo "\n\n\n\n\nTEST"` and I don't have anything.
filedesless has joined #nixos
<qyliss>
oh
<nschoe>
Yep I've tried this too, nothign changes :/
<nschoe>
I literally have tried `preConfigure = "exit 1";` in my .nix file and nothing happens (well the 1980 error does)
<nschoe>
I'm missing something here and I don't know what this is.
<nschoe>
I mena I don't understand what's going on :/ I'd even settle for a dirty hack right now, but nothing I do, save for syntax errors in my .nix file, changes anything to the build
lordcirth_ has quit [Read error: Connection reset by peer]
<lucus16>
nschoe: The error is not in your derivation
<lucus16>
build of '/nix/store/nxaab10fwj1fzx3zfrhdvv0q1xgvn2rk-python_qt_binding-0.3.5.drv' failed
<lucus16>
nschoe: One of your dependencies is a python library for which the nix package seems to be broken
<lucus16>
nschoe: python packages should use buildPythonPackage instead of stdenv.mkDerivation, see in pkgs/development/python-modules for example usage
wfranzini has joined #nixos
<lucus16>
nschoe: e.g. python-modules/pyqt also combines python and C/C++
vidbina has quit [Ping timeout: 246 seconds]
stranger___ has quit [Quit: Connection closed for inactivity]
acarrico has quit [Ping timeout: 272 seconds]
zeta_0 has joined #nixos
<nschoe>
lucus16, thanks for that, I'll take a look now
<lucus16>
nschoe: Actually, I'm not sure that package compiles any C/C++, it might compile the library in a separate derivation
hmpffff has joined #nixos
<lucus16>
I don't have any experience with python C/C++ bindings
<nschoe>
I don't have either :/
<nschoe>
I can't get anything to work tbh.
<nschoe>
Also I'm unsure this is related to the 1980 error.
<nschoe>
It's not like I have path issues or python dependencies error or anything. It's just a SOURCE_DATE_EPOCH that is set god-knows-where and where and I'm trying to unset it.
<nschoe>
But to no result now.
<nschoe>
This is a bit frustrating :/ As it's this derivation is just one dependency for the actual derivation I'm trying to build, and I fear there are many many other issues. I've been at this for hours now, for a simple timestamp.
<nschoe>
I love nixOS, but I don't manage to understand hwo to do anything with its build system when something goes wrong :/
<symphorien>
There is a setup hook to solve 1980 timestamp issues
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjuvk
qyliss^work has quit [Quit: bye]
qyliss has quit [Quit: bye]
philippD has joined #nixos
Athas_ has joined #nixos
zeta_0 has quit [Quit: break]
Athas has quit [Disconnected by services]
Athas_ is now known as Athas
<ikwildrpepper>
colemickens: checking now
d10n-work has quit [*.net *.split]
L31ra has quit [*.net *.split]
fusion809 has quit [*.net *.split]
jmeredith has quit [*.net *.split]
wucke13 has quit [*.net *.split]
valwal__ has quit [*.net *.split]
GerdFlaig[m] has quit [*.net *.split]
kloenk has quit [*.net *.split]
morr has quit [*.net *.split]
pbb has quit [*.net *.split]
drvirgilio has quit [*.net *.split]
M0ddba11[m] has quit [*.net *.split]
exarkun1 has quit [*.net *.split]
zaphar_ps[m] has quit [*.net *.split]
EB[m] has quit [*.net *.split]
roberth has quit [*.net *.split]
grahamc[m] has quit [*.net *.split]
sputny[m] has quit [*.net *.split]
MerlinGttlinger[ has quit [*.net *.split]
das-g[m] has quit [*.net *.split]
marko[m]1 has quit [*.net *.split]
jasonk000[m] has quit [*.net *.split]
saikrishi1109[m] has quit [*.net *.split]
BinkyTheClown has quit [*.net *.split]
nocent has quit [*.net *.split]
atopuzov[m] has quit [*.net *.split]
MayeulC_backup has quit [*.net *.split]
olejorgenb[m] has quit [*.net *.split]
aterius1 has quit [*.net *.split]
nbardiuk has quit [*.net *.split]
craige[m] has quit [*.net *.split]
wak-work has quit [*.net *.split]
greenerworld[m] has quit [*.net *.split]
megfault has quit [*.net *.split]
stigo has quit [*.net *.split]
spacefrogg has quit [*.net *.split]
aw has quit [*.net *.split]
aither has quit [*.net *.split]
nikivi has quit [*.net *.split]
cocreature has quit [*.net *.split]
codezero has quit [*.net *.split]
SyrupThinker has quit [*.net *.split]
anton_ has quit [*.net *.split]
Orbstheorem has quit [*.net *.split]
smove_ has quit [*.net *.split]
lemonpie has quit [*.net *.split]
j4m3s__ has quit [*.net *.split]
hke has quit [*.net *.split]
stramble-M has quit [*.net *.split]
Guest65393 is now known as nikivi
Kim has quit [*.net *.split]
raoul has quit [*.net *.split]
edcragg has quit [*.net *.split]
jmeredith_ is now known as jmeredith
Haskellfant is now known as cocreature
d10n-work_ is now known as d10n-work
Syrup is now known as SyrupThinker
raoul has joined #nixos
edcragg has joined #nixos
codezero has joined #nixos
qyliss has joined #nixos
qyliss^work has joined #nixos
hke has joined #nixos
nkaretnikov has quit [Ping timeout: 248 seconds]
<ikwildrpepper>
colemickens: turns out I still have access indeed
brejoc has quit [Ping timeout: 252 seconds]
nkaretnikov has joined #nixos
jw358 has joined #nixos
greenerworld[m] has joined #nixos
das-g[m] has joined #nixos
L31ra has joined #nixos
roberth has joined #nixos
craige[m] has joined #nixos
wak-work has joined #nixos
stramble-M has joined #nixos
clacke_movim has left #nixos [#nixos]
GerdFlaig[m] has joined #nixos
M0ddba11[m] has joined #nixos
nocent has joined #nixos
Kim has joined #nixos
megfault has joined #nixos
BinkyTheClown has joined #nixos
EB[m] has joined #nixos
leotaku has joined #nixos
aterius1 has joined #nixos
sputny[m] has joined #nixos
marko[m]1 has joined #nixos
jasonk000[m] has joined #nixos
saikrishi1109[m] has joined #nixos
atopuzov[m] has joined #nixos
MerlinGttlinger[ has joined #nixos
nbardiuk has joined #nixos
olejorgenb[m] has joined #nixos
<simon_weber>
bumping from earlier: I'm looking to get duplicity + pydrive working. duplicity is in nixos/nixpkgs, and I've made a custom package for pydrive with pypi2nix. When I ssh to my test vm, I can run python and import pydrive. But, the duplicity service isn't able to import it.
<simon_weber>
presumably there's something I need to do so duplicity runs with that global python environment -- can someone point me in the right direction?
<ikwildrpepper>
colemickens: will be afk, please send me a direct message so I don't miss your message in the morning
tilpner has quit [Remote host closed the connection]
dansho has quit [Quit: Leaving]
xantoz has joined #nixos
<o1lo01ol1o>
What's the syntax for adding attribute (an environment variable) to a derivation produced by haskellpackages.callPackage?
mexisme_ has joined #nixos
<iqubic>
So, I just tried building haskellPackages.chessIO from unstable, and the build failed. The package was marked as broken, but I told nixos-rebuild to attempt to build it anyways. Here's the output from "nixos-rebuild switch" http://dpaste.com/3WWRSRX
<iqubic>
Anyone know if there's a easy way to fix that?
ddellacosta has quit [Ping timeout: 248 seconds]
<alexarice[m]>
iqubic: you could try a different nixpkgs revision and see if it has the right dependencies
<alexarice[m]>
iqubic: or supply the dependency yourself and hope it works
MmeQuignon has joined #nixos
<infinisil>
iqubic: Easiest way is to disable tests with `pkgs.haskell.lib.dontCheck pkgs.haskellPackages.chessIO`
<infinisil>
iqubic: Or `pkgs.haskell.lib.doJailbreak`
<infinisil>
Either of them might work
<iqubic>
Which one of those is better?
<infinisil>
The latter, but it might not always work
ashkitten has joined #nixos
<iqubic>
so, how do I do that if I'm pulling chessIO from unstable?
<iqubic>
In my configuration.nix I have a "let nixos-unstable = import <nixos-unstable> in ..." and then I pull chessIO as "nixos-unstable.chessIO"
<iqubic>
How do I jailbreak that?
<infinisil>
iqubic: You mean nixos-unstable.haskellPackages.chessIO?
<o1lo01ol1o>
You'll need to add an overlay for haskell packages
<infinisil>
No need to no
<infinisil>
Ah
domogled has quit [Quit: domogled]
<infinisil>
Well not needed no, but might be easiest
<infinisil>
> pkgs.chessIO
<{^_^}>
attribute 'chessIO' missing, at (string):254:1
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
<simon_weber>
I'm confused about overrides and overlays. From what I can tell, these apply more or less globally, being set in ~/.config. Would I still use this if I'm using nixops and just want to replace a package for one machine I'm deploying?
<iqubic>
clever: If you want to write an overlay that will fix o-clock for me, you can. I'll use it if it exists. If you don't want to do it, you don't need to. But for now, the thing infinisil gave me will work.
<clever>
iqubic: just replace purescript in the above example with o-clock
<iqubic>
Oh, actually... the test-suite of chessIO just failed.
<infinisil>
clever: That's not an overlay though, and .extend doesn't work correctly with .override
<infinisil>
OH, I guess it is an overlay in the haskell set yeah
<clever>
yeah
<iqubic>
I see now why this package is listed as broken.
<clever>
and .override doesnt compose well when you .override twice
<clever>
.extend can extend an extended set, so you can compose many of them together
<iqubic>
Because o-clock doesn't work, and the test-suite for chessIO just failed.
<infinisil>
iqubic: But o-clock works now
<clever>
iqubic: how are the tests failing?
<iqubic>
Let me get you a log. One sec.
<infinisil>
iqubic: Now you just need to add dontCheck to chessIO to make it not run the tests (screw the tests)
<clever>
iqubic: in that dir, run `find -name dist`
tobiasBora2 has joined #nixos
<tobiasBora2>
I was thinking, if on some computer I don't have nixos, but only nixpkgs, can I use as a user the systemd services defined in the modules?
<clever>
iqubic: just read it, look for the cause of the error
<iqubic>
It doesn't state the cause.
<clever>
iqubic: that looks like the wrong pastebin, read line 37
<iqubic>
I understand what line 37 states. This is the right paste.
<clever>
iqubic: is that the contents of dist/test/chessIO-0.3.1.1-perft.log ?
<iqubic>
Yes.
<iqubic>
Yes it is.
<clever>
cant think of anything else to check then
Fare has joined #nixos
schjetne has joined #nixos
<iqubic>
So what should I do here?
<clever>
try dontCheck, like infinisil said
ilmu has quit [Ping timeout: 258 seconds]
mexisme_ has joined #nixos
knupfer has joined #nixos
<tobiasBora2>
and second question, I tried to setup "services.weechat.enable = true;", but I don't get something: how am I supposed to use it? I can't "su weechat" because it's not a regular user, so I don't see how I can call the screen run by weechat
<gchristensen>
hrm. what _is_ it for ...
<gchristensen>
wow, that should probably not be a nixos service
andreas303 has joined #nixos
<o1lo01ol1o>
If I have a shellHook in a derivation foo, nix-shell -A foo should execute the commands defined there before dropping me in the shell, correct?
<reallymemorable>
where is the best place to ask questions about the package manager?
<gchristensen>
here
ambro718 has quit [Quit: Konversation terminated!]
<iqubic>
infinisil: dontCheck seems to have worked.
<reallymemorable>
my nix builders cannot access my ssh keys -- i have tried with my ssh keys in my user dir and also in Shared. I can clone the repo in question directly with my ssh creds, but when nix is trying to build it as a dependency, it can't
<reallymemorable>
the builder "failed with exit code 1"
<iqubic>
clever: dontCheck worked.
<gchristensen>
reallymemorable: best to use builtins.fetchGit, so your builders don't need to use your user's SSH keys
<iqubic>
Had to shut down Firefox because it decided to eat up a ton more ram than usual.
Fare has quit [Ping timeout: 272 seconds]
<infinisil>
tobiasBora2: Regarding the systemd services thing: You generally can't do that, because some services require setting NixOS options not available without NixOS. But there's home-manager which only contains modules available without NixOS
<reallymemorable>
ah yes
<reallymemorable>
thank you
<tobiasBora2>
infinisil: ok thank you. So if I want to help the nixos community/test some nixos modules, but don't have nixos with me, what is my best option? Can I use directly nixos containers or they also require a full nixos?
<infinisil>
tobiasBora2: Ah you can test them in a VM
<infinisil>
nixpkgs has some stuff that lets you build a VM very easily
<iqubic>
infinisil: Thanks so much for your help with chessIO.
* infinisil
tries to find the nix invocation for it
<infinisil>
clever: They won't have nixos-rebuild available without NixOS though
rfold has quit [Quit: WeeChat 2.4]
<clever>
nix-build '<nixpkgs/nixos>' -A vm -I nixos-config=./configuration.nix
<infinisil>
Yeah that one ^^
<tobiasBora2>
amazing, thank you so much!
<tobiasBora2>
nix is really an amazing software ^^
clacke_movim has left #nixos [#nixos]
clacke_movim has joined #nixos
reallymemorable has quit [Quit: Lost terminal]
gagbo has quit [Quit: I'm out !]
<exarkun>
my nixos laptop system crashes with depressing frequency. as far as I can tell, there is nothing in the system logs about the cause of the crash. is there some nixos option I can enable which will cause the system to capture more crash information in the future?
<gchristensen>
how are you checking logs?
<gchristensen>
and, what is the crash symptom?
markh[m] has joined #nixos
clacke_movim has left #nixos [#nixos]
<exarkun>
I looked at `journalctl` output, eg `journalctl --boot -1`
<exarkun>
I use graphical desktop. The crash symptom is that input is not longer acknowledged and ... probably the display is no longer updated (at the moment I can't remember if I ever waited long enough to be sure _something_ on the display should change if it the problem were only input handling)
<exarkun>
frequently the crash happens around the time the display configuration changes (eg I plug in an hdmi cable)
<clever>
exarkun: do you have a 2nd machine and the ability to ssh into the problem one?
<exarkun>
only very inconveniently. if that's the best route I can make it happen, I guess.
<clever>
exarkun: its possible that only the gpu drivers are crashing
<clever>
exarkun: so it may be fully working over ssh
<exarkun>
it would be cool to have such a crash dump a trace to a log file I could paste into a bug report :)
<clever>
exarkun: that will reserve a set amount of ram, and then in the event of a major kernel failure, it will basically reboot, and limit itself to the reserved ram
<clever>
exarkun: the missing part, is services to auto-dump the ram
<jlv>
I'm not sure how I would find the sha256 of a package I am trying to define. Using fetchFromGitHub.
Lears has quit [Ping timeout: 258 seconds]
mmlb6 has joined #nixos
clacke_movim has joined #nixos
<tobiasBora2>
clever: infinisil : I'm thinking to write more stuff on unix.stackexchange.com about nixos because when I google some question I rarely find the answer to my questions. Do you mind if I create a new question containing your nix-build -A vm trick? If you want I can let you answer it, or if you don't have time/don't want to I can fill the answer and give you the credits
<clever>
tobiasBora2: sure
<infinisil>
tobiasBora2: That would be great, feel free to answer yourself
<infinisil>
We should all do that more often tbh
<bendlas>
jlv: the solution, I most often use, is putting a fake sha, then using `nix-prefetch-url /path/to/nixpkgs/checkout -A <package>.src`. Alternatively, something like `nix-prefetch-url https://github.com/<owner>/<repo>/archive/<rev>.tar.gz` should be possible. Admittedly, neither are pretty. Maybe there is something else?
pie__ has joined #nixos
<infinisil>
We should have a --tofu flag that automatically replaces 52 0's with the correct hash upon building :o
<clever>
bendlas: this lets you import a .so file, and have it return a native nix value, which can optionally contain primops
tobiasBora2 is now known as tobiasBora
m0rphism has quit [Ping timeout: 268 seconds]
clacke_movim has left #nixos [#nixos]
<bendlas>
yeah, I've briefly looked at the plugin mechanism before. my question is rather, if the "reverse parsing" path - printing nix source code with some subexpression updated - has already been worked into nix' implementation.
<bendlas>
s/implementation/parser/
<clever>
bendlas: ah, thats not really possible with the current parser
<bendlas>
i see. afaik, the haskell nix parser can do this, but since, as you said, this use case involves evaluation, I think it would be less work, putting this into nix' parser instead of a plugin ..
<{^_^}>
[nixpkgs] @WilliButz opened pull request #62641 → grafana-loki: init at 0.1.0 → https://git.io/fjuUy
* pie__
looks at adamanti` expectantly :pp
toppler`` has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #62642 → emacsMac: use llvm6 to build → https://git.io/fjuUH
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #62642 → emacsMac: use llvm6 to build → https://git.io/fjuUH
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjuUQ
adamanti` has quit [Remote host closed the connection]
ddellacosta has quit [Ping timeout: 248 seconds]
iqubic` has joined #nixos
<tobiasBora>
For the services.weechat.enable, what is the recommended way to configure plugins? For now I wrote an override of weechat, with a custom init script that setup "/alias add /b /buffer" and "/server add epiknet irc.epiknet.org", but first I guess it's not the best way to proceed, and also I'd like to be able to copy some existing alias.conf files.
mbrgm_ has joined #nixos
mbrgm_ is now known as mbrgm
iqubic has quit [Ping timeout: 250 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
<clever>
tobiasBora: services.weechat.binary
<tobiasBora>
clever: well that's already what I update