<MmeQuignon>
Actually, I have an "atypic" profile. I started my studies as an adminsys and forked after as a developper. That's why I never made assembly before.
<MmeQuignon>
But people in my class did.
ng0 has quit [Quit: Alexa, when is the end of world?]
<jasongrossman>
I still think real programming is entering a boot sequence using hardware toggles on the front panel of a mainframe.
<gchristensen>
I'd love to give that a go, jasongrossman
dbmikus has quit [Ping timeout: 246 seconds]
<azazel>
jasongrossman: that I'm sure none of MmeQuignon colleagues did it ;-)
<MmeQuignon>
I'm not sure that somebody alive did. :D
mmlb39491 has joined #nixos
jasongrossman has quit [Read error: Connection reset by peer]
jasongrossman has joined #nixos
LogicAside has joined #nixos
<jasongrossman>
gchristensen: I very much doubt that there are any of those old mainframes still working. You can stare at their front panels in awe online though (and in a couple of IRL computer museums).
<jasongrossman>
MmeQuignon: I have friends (living friends!) who used to do that.
<jasongrossman>
In fact I have friends who developed the first ever commercial operating system (arguably), and I've met people who worked on one of the first ever computers. The whole history of computing is not very long.
<jasongrossman>
Which is weird, right?
slowz has quit [Ping timeout: 258 seconds]
<gchristensen>
jasongrossman: seen the pidp11?
<jasongrossman>
Have I? Yes, I used to have a PDP11 front plate. I think I threw it away in a fit of being tidy, or some other way I lost it.
<jasongrossman>
(But I was talking about older computers than that.)
<MmeQuignon>
Not that weird ^^
<gchristensen>
of course
<jasongrossman>
This makes me feel old, but actually I'm not old! (He screams into the aether.)
<azazel>
:-)
<gchristensen>
though I'm not sure if you know my "i" was not a typo?
<jasongrossman>
gchristensen: Oh! I did not know that.
<jasongrossman>
Just in case anyone doesn't already know, this is what front panels used to look like in the days when you had to enter instructions on them (actual low-level instructions) before the computer would boot: https://hooktube.com/watch?v=WS-WtjwAAO0
<gchristensen>
now *that* is a computer
<MmeQuignon>
I have a question
<MmeQuignon>
Is the nix(os) API stable between versions ? Do you have to update your config files when you update ?
<aanderse>
MmeQuignon: usually little changes here and there, documented in the release notes
<aanderse>
depending on which modules you use
dftxbs3e has quit [Quit: Leaving.]
<MmeQuignon>
jasongrossman: what is the keyboard layout ?
dbmikus has joined #nixos
<MmeQuignon>
Wow, the box is made of wood, nice !
ris has quit [Ping timeout: 260 seconds]
<gchristensen>
MmeQuignon: may I ask who is the teacher who recommended nixos?
<nand0p>
infinisil: thanks for merging... let me take you out for beers when im in Zurich :)
<MmeQuignon>
It's Julien Dehos, from the university of Calais (France)
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjZie
nkaretnikov has quit [Read error: Connection reset by peer]
Wizek has quit [Read error: Connection reset by peer]
adelbertc has quit [Read error: Connection reset by peer]
manveru has quit [Ping timeout: 250 seconds]
heatm1s3r has quit [Ping timeout: 264 seconds]
pointfree has quit [Read error: Connection reset by peer]
metalrain has quit [Ping timeout: 250 seconds]
<tbenst>
any nix python users out there? Getting an error for pytest, `Collecting pluggy<0.7,>=0.5 (from pytest==3.3.1)\n Could not find a version that satisfies the requirement pluggy<0.7,>=0.5 (from pytest==3.3.1)`
<{^_^}>
Found in packages: perl, perldevel, perl528Packages.podlators, perldevelPackages.podlators
jeregrine has quit [Ping timeout: 252 seconds]
englishm has quit [Ping timeout: 258 seconds]
<simpson>
tbenst: Hm, that's surprising to me too; I'm not sure what's causing that for you.
pointfree has quit [Ping timeout: 250 seconds]
valwal_ has quit [Ping timeout: 240 seconds]
silver has quit [Read error: Connection reset by peer]
<tbenst>
simpson: I see a message during the build (`nix-build -A python3Packages.deeplabcut`) that says `source root is pytest-3.3.1`, but when I do `nix-build -A python3Packages.pytest` I get `pytest-4.2.1`
jasongrossman has quit [Ping timeout: 246 seconds]
<simpson>
tbenst: Won't happen for fixed-output derivations, and apparently fetchPyPi has entered that illustrious club.
<clever>
tbenst: if the hash is for something you already have, nix believes you, and uses that source directly
<clever>
i flip my editor over to replace mode, and 0 out a few digits of the hash, to make sure its wrong
<tbenst>
clever: makes sense, ty.
<tbenst>
simpson: now I'm back to the problem I thought I had ;). deeplabcut requires scipy~=1.1, but nix store only has 1.2, is there a general solution to this problem?
mexisme has joined #nixos
<simpson>
tbenst: Usually I tell the Python package in question to suck it up and stop whining, often with lots of sed.
<tbenst>
simpson: hm do yuo have an example by chance?
<simpson>
It doesn't *really* care if there's a newer scipy, it just wants to whine and have opinions.
<tbenst>
haha
jasongrossman has joined #nixos
<tbenst>
it might though for the other 19 hardcoded versions, eg skimage changes the module for a function sometimes
<simpson>
grepping through nixpkgs, maybe pkgs/development/python-modules/mwlib/default.nix
<dminuoso>
parsnip: You need to look at the sentence from a meta level.
<dminuoso>
parsnip: He doesn't mean strings as data types in nix, but the strings that themselves form nix expressions.
<dminuoso>
Like.. say you edit a nix file. The fact that its a file is irrelevant.
<dminuoso>
Its the content of the editor buffer that constitutes the nix expression
<dminuoso>
That content itself is a conceptual string
<dminuoso>
You could imagine nix supporting nix expressions via HTTP, file, unix domain sockets, shared memory, REPL input and many other techniques: The common theme in all of them is that they all carry a string containing a nix expression
<parsnip>
i don't think saying the string is conceptual increases the sense that it makes
<dminuoso>
A string need to be a data type.
<dminuoso>
A string is merely a sequence of characters.
<musicmatze>
Good morning. I'm having issues with cache.nixos.org SSL certificates when using `nix-shell`, e.g.: `nix-shell -p nix-review` Gives me `warning: unable to download 'https://cache.nixos.org/24awzf8hkvi6bq84r6li5dxyrdpq9mw1.narinfo': SSL peer certificate or SSH remote key was not OK (60); retrying in 270 ms`
<musicmatze>
What can I do?
<srhb>
musicmatze: Looks good to me. Is your time OK?
anpryl has quit [Quit: Konversation terminated!]
<musicmatze>
uh, oh!
<musicmatze>
didn't see that ... what happened to that VM? its Apr27 21:15 on there... lol
<{^_^}>
[nixpkgs] @bjornfor pushed commit from @r-ryantm to master « plantuml: 1.2019.4 -> 1.2019.5 »: https://git.io/fjZMB
<srhb>
musicmatze: Sure thing.
Jetien has joined #nixos
bohan has quit [Ping timeout: 264 seconds]
orivej has joined #nixos
<mthst>
how do i nixos-install without touching efi vars?
<srhb>
mthst: While still using efi boot?
Wizek has quit []
<mthst>
yes
<mthst>
i just assume that the uefi will pick it up by default
<srhb>
mthst: I think there's a flag that tells nixos-install to not modify the firmware -- maybe it's even --no-bootloader. This will only work if your firmware picks up the efi files from boot though.
Wizek has joined #nixos
balsoft has joined #nixos
<srhb>
Or rather, your efisys partition.
<srhb>
You can check that the file is present after trying that switch.
<gentauro>
I noticed when I start my NixOS laptop and if it isn't cabled or doesn't have access to a know wifi spot, that there is a DHCP client trying to connect for several seconds
<thedavidmeister>
LnL: well that works...
<gentauro>
how do I remove that from the boot process? I don't want to wait for this ...
<thedavidmeister>
it's kind ugly tho >.<
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskell-cryptol: drop obsolete overrides to fix the build after version update »: https://git.io/fjZDn
<srhb>
gentauro: Are you using network-manager or plain dhcpcd?
<gentauro>
srhb: good question
<gentauro>
where do I look that up?
<thedavidmeister>
LnL: what is the difference between `nix-shell` and `nix-shell .` and why does the latter ignore shell.nix?
<gentauro>
(but we are talking Linux booting up)
<srhb>
gentauro: The _kernel_ ?
<srhb>
That seems very weird.
pbb has quit [Client Quit]
thc202 has joined #nixos
<gentauro>
srhb: tell me about it :|
<LnL>
thedavidmeister: there's no difference if there's only a default.nix in the project
pbb has joined #nixos
<srhb>
gentauro: Anyway, I'm pretty sure I don't see this behaviour with networking.dhcpcd.enable = false; and networking.networkmanager.enable = true; I can try to reproduce what you're seeing after work.
<LnL>
thedavidmeister: shell.nix is the default file used, if you pass . or an url that's used instead
<gentauro>
srnb: the exact message is: "A start job is running for DHCP Client (27s / 1 min 32 secs)"
<srhb>
Ah, that sounds like dhcpcd
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « all-cabal-hashes: update to Hackage at 2019-05-01T23:17:23Z »: https://git.io/fjZDB
<thedavidmeister>
LnL: hmmm ok
hio has joined #nixos
<thedavidmeister>
LnL: is there anything like -f that nix-env has?
<srhb>
gentauro: Probably we're too overzealous about requiring it to be up. I don't think networkmanager suffers this issue.
<gentauro>
srhb: thanks, I will update my configuration :-)
<LnL>
thedavidmeister: with . or some other directory nix will look for a default.nix, regardless of the command
bgamari has quit [Ping timeout: 276 seconds]
bgamari has joined #nixos
<thedavidmeister>
LnL: kk... thanks for the help
Jetien has joined #nixos
lassulus has quit [Ping timeout: 246 seconds]
<LnL>
and the first argument of nix-build/nix-shell is the file argument
<LnL>
nix-env -f <url> also looks for default.nix
<{^_^}>
[nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/fjZDu
<thedavidmeister>
yeha, i get it
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage2nix: update list of broken builds »: https://git.io/fjZD2
<thedavidmeister>
but i can't see it sparking joy
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « all-cabal-hashes: update to Hackage at 2019-05-01T23:17:23Z »: https://git.io/fjZDa
<thedavidmeister>
LnL: i think i just have to merge my default.nix and shell.nix
<LnL>
that works, and will behave the same way locally if you remove the shell.nix
<thedavidmeister>
yup it's awesome
<thedavidmeister>
i've got a cute vanity url registered pointing to my github tarballs
linarcx has quit [Quit: WeeChat 2.4]
linarcx has joined #nixos
nwspk has quit [Quit: nwspk]
civodul has joined #nixos
nwspk has joined #nixos
turion has joined #nixos
<turion>
What's the least painful way to run Flash in a browser nowadays?
<turion>
Firefox enabling flash plugin (e.g. through home manager) is broken
<dminuoso>
turion: Through a VM.
<dminuoso>
Its largely justified by: If I want bad things to happen, it should be isolated. And a VM gives me the freedom to run Windows (which I need for one ActiveX application, so it also gets used for some old flash website)
<etu>
I think google-chrome bundles it still... But not sure...
<thedavidmeister>
how do i flush the URL cache in nix-shell?
<turion>
dminuoso: In a VM, and then start ... Windows??
<dminuoso>
turion: Yes.
<thedavidmeister>
`nix-shell <url>` isn't dl the latest at that url
<dminuoso>
turion: I mean if you just care about flash, you can run anything else. Flash is largely disabled for very good reasons.
<turion>
dminuoso, thanks, might work, but won't ;)
<dminuoso>
Fair
<turion>
It is indeed disabled for good reasons
<turion>
etu: Hmmmm yes :/ maybe I can start this in a container..?
<etu>
turion: Possibly yes
<turion>
Do nixos containers somehow work with xserver?
<turion>
And whatever happened to pepper-flash?
<etu>
I think that's the one they bundle
balsoft has quit [Read error: Connection reset by peer]
<turion>
Fair enough
<siraben>
Which package gives the documentation for functions in the C standard library?
<turion>
But it's not possible to install that for Chromium or Firefox
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjZyy
<das-g[m]>
How do I find out whether Python module `PyQt5.QtWebKit` is already packaged, and if so in what derivation (NixPkgs attribute a.k.a. package)?
<ivan>
cd nixpkgs && rg -i qtwebkit
Anton-Latukha has joined #nixos
<ivan>
pyqt5_with_qtwebkit
<ivan>
the intention is to remove QtWebKit but things are still using it
<bwe>
Hi, I created a Haskell project with stack, worked on it and want to deploy it now. For this I created a NixOS on a cloud server. stack has built-in nix integration and there is stack2nix. I am confused. I feel that a step-by-step guide would help. However, the tutorials I've found are not my cup of tea. Any ideas?
<{^_^}>
[nixpkgs] @aanderse closed pull request #60650 → WIP: nixos/cron: force restart when the declarative crontab has changed → https://git.io/fjZuO
<srhb>
And.. I wouldn't do it like that, probably.
<gentauro>
the person relies on *stack* to handle xmonad instead of expanding the configuration file
<srhb>
Yeah, that's really painful.
justanotheruser has joined #nixos
<gentauro>
I like it, cos the Haskell on my systems should come from *stack*. I don't want any repos involved (they tend to mess it up)
<gentauro>
what if I skip taffybar? :D
<srhb>
In my experience stack on NixOS is complicated and painful and prone to breaking in funny ways. But I know some people do it anyway, I just don't know a lot about how to do it.
<gentauro>
problem solved amirite?
<srhb>
I don't know, I don't have any problem with taffybar :P
<srhb>
Both xmonad and taffybar work just great for me.
<srhb>
In fairness I think taffybar2 is pretty blergh compared to the old one though.
cfricke has joined #nixos
<gentauro>
I managed to install stack (with nix-env) force-download a bin to .local/bin and then unistall it again from repo (nix-env)
<gentauro>
nobody told this was going to be easy (until now it has been, I mean, I have 1 slide :|)
<srhb>
gentauro: Then that stack project would use that exact commit of nixpkggs to grab its ghc attributes
<srhb>
gentauro: Oops, no, path = [ "nixpkgs=https://..." ] -- forgot the nixpkgs= prefix
<srhb>
Or you can create custom shell.nix for stack. It's all in the stack docs, but it's not explicit about pinning nixpkgs, which is what I described above.
cfricke has quit [Quit: WeeChat 2.4]
cfricke has joined #nixos
schjetne has joined #nixos
<gentauro>
srhb: I'm copy/pasta all this knowledge so I can use it afterwards :-)
<krbtgt>
i'm trying to set up some declarations for a personal package environment, and i wrote into "~/.config/nixpkgs/config.nix" (contents here http://ix.io/1HPi ) - however, when I try to install with nix-env -iA myPackages, it can't find the attribute myPackages
<krbtgt>
when i use -v, i don't see the file being evaluated by nix-env
<m0rphism>
Hi, my systemd-boot doesn't detect my Windows 10 partitions. I switched from a msdos partition table to gpt using `gdisk` and reinstalled nixos. The windows partitions were left untouched and are still intact. Any idea what might have gone wrong / how to debug?
mthst has quit [Quit: the bouncer died]
<m0rphism>
Previously, I was using `grub.extraEntries` to add a windows 10 entry via `chainloader (hd0,3)+1`.
marusich has joined #nixos
dckc has joined #nixos
<dckc>
`nix search -u hg-git` shows `nixpkgs.python27Packages.hg-git (python2.7-hg-git)` but `nix-shell -p python2.7-hg-git` says `error: undefined variable 'hg-git' at (string):1:116`. Clues?
<m0rphism>
Now, I'm expecting systemd-boot to detect the windows partitions automatically, but there are only nixos entries in `/boot/loader/entries/`.
<m0rphism>
Is my expectation of systemd-boot auto-detect even correct in nixos?
<infinisil>
I only know of grub doing such auto-detection
linarcx has quit [Ping timeout: 258 seconds]
hedning_ has joined #nixos
<m0rphism>
infinisil: I didn't find any related configuration.nix option (there are only 3 for systemd-boot). My expectation is based on the archlinux wiki: "Tip: rEFInd and systemd-boot will autodetect Windows Boot Manager (\EFI\Microsoft\Boot\bootmgfw.efi) and show it in their boot menu automatically. For GRUB follow GRUB#Windows installed in UEFI/GPT mode."
<m0rphism>
but maybe that's different here, hmmm...
<mwilsoncoding_>
hey all- so I'm trying to build a python package that uses pytest, but my current checkPhase is not passing because it's missing a module that it wants to import from. I've tried various ways to get it to work, but I'm about to just set doCheck = false and label it a WIP
<mwilsoncoding_>
if it provides any context, I have to check out the entire azure-sdk-for-python repo because of how it is set up, but I have a preBuild step that `cd`s into azure-servicemanagement-legacy
<mwilsoncoding_>
my checkPhase is simply `runHook preCheck; pytest; runHook postCheck`
chimay has quit [Quit: WeeChat 2.4]
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
<mwilsoncoding_>
This is the first of a few modules I'll be pulling directly from github rather than pip, which means the tests won't be stripped, so I'd like to actually run them if possible
o1lo01ol1o has quit [Ping timeout: 276 seconds]
ckauhaus has quit [Remote host closed the connection]
<infinisil>
mwilsoncoding_: There's `checkInputs` for buildInputs during the checkPhase
shibboleth has joined #nixos
roosemberth is now known as Orbstheorem
<m0rphism>
Any idea why switching back from systemd-boot to grub doesn't work? Those are the relevant parts in my `configuration.nix`: https://pastebin.com/tnxbZMFK
<m0rphism>
The output of `nixos-rebuild switch` doesn't report any errors.
turion has joined #nixos
<m0rphism1>
(I may logout for reboot, but I can still read via my laptop)
<andi->
m0rphism1: you did nixos-rebuid switch --install-bootloader?
<m0rphism1>
andi-: nope, I'll try. Also I just noticed that /boot/ now contains files for both grub and systemd-boot o.O
<andi->
yes. that is part of the activation script but the actual EFI payload may only be added when doing the install-bootloader
<m0rphism1>
andi-: ahh, with `--install-bootloader` i got more output, looks promising...
<m0rphism1>
andi-: I think, I found the problem: If I press F11 to select boot devices, I get presented with 3 options, 2 of them are the systemd-boot and the 3rd one is grub.
<zeta>
Taneb: oh, thanks, its a little hidden
<Taneb>
Yeah :(
dbmikus_ has quit [Ping timeout: 250 seconds]
<m0rphism1>
for some reason the old boot loader seems to be still there
<zeta>
Taneb++
<{^_^}>
Taneb's karma got increased to 6
m0rphism has joined #nixos
<m0rphism1>
is it safe to just `rm -rf /boot/*` followed by `nixos-rebuild switch --install-bootloader`?
<m0rphism1>
but it might be a good idea to find out why that happened in the first place
mwilsoncoding_ has quit [Ping timeout: 256 seconds]
kim0 has quit [Quit: Connection closed for inactivity]
mog has quit [Ping timeout: 276 seconds]
<m0rphism1>
xorAxAx: I see, thanks for the hint!
<WilliamHamilton>
hi, I'm experiencing segfault errors when I try to use the `zoom-us` package, in latest nixpkgs
<WilliamHamilton>
how could I get more informations on why the error is occurring? Could it have something to do with the ` hardware.pulseaudio.support32Bit = true;` option?
<{^_^}>
[nixpkgs] @Infinisil merged pull request #55771 → nixos/znapzend: Run znapzendzetup import in parallel → https://git.io/fh7i9
<WilliamHamilton>
flokli: I just did `sudo nix-channel --update`, how do I retrieve the hash of the nixpkgs version I'm using?
<flokli>
first, it'd be interesting to see which zoom version you're running
<flokli>
so readlink $(which zoom-us) would be interesting
<flokli>
and whether you're using nixos or just nixpkgs
shibboleth has quit [Remote host closed the connection]
shibboleth has joined #nixos
<{^_^}>
[nixpkgs] @alyssais opened pull request #60776 → nixos/xserver: improve DM error message when X off → https://git.io/fjZFL
schjetne has joined #nixos
init_6 has quit []
<WilliamHamilton>
flokli: the zoom version is version = "2.7.162522.0121", which is the current version in nixpkgs, also confirmed by readlink, and I'm using NixOS
<WilliamHamilton>
flokli: any idea on how to proceed with the debugging?
<zeta>
how do i install haskell in home.nix(home-manager), i want to install ghc and cabal(i am going to use nix with cabal(no stack)), and can i install everything declaratively in home.nix ?
<m0rphism>
hmm, even after switching forwards and backwards between `systemd-boot.enable` and `grub.enable` the systemd-boot uefi entries are not removed. Here is my `efibootmgr -v` output: https://pastebin.com/La91ThzA
<srhb>
m0rphism: I don't think we ever remove those entries.
drakonis has quit [Ping timeout: 252 seconds]
dsiypl4_ has quit [Remote host closed the connection]
hio has joined #nixos
dsiypl4_ has joined #nixos
civodul has joined #nixos
johanot has quit [Quit: WeeChat 2.4]
<m0rphism>
srhb: I see, should I open an issue or is this expected behavior? I'm tempted to just delete every entry that is not grub via `efibootmgr -b $NUM -B`. Would that be safe? ^^
<srhb>
m0rphism: Yes that should be safe. I'm not sure we _want_ to ever delete efi entries, but I don't think an issues hurts anything if it's a source of confusion.
<srhb>
And I can see why it might be :)
turion has joined #nixos
<srhb>
I think it's one of those "this is potentially bad to get wrong, let the user deal" :-P
MmeQuignon has joined #nixos
marusich has quit [Remote host closed the connection]
<m0rphism>
srhb: I see, thanks! I was certainly confused that setting `boot.loader.systemd-boot.enable = false;` and `boot.loader.grub.enable = true;` still showed a `systemd-boot` after reboot. I guess it might be usefull to at least add a warning in `man configuration.nix` that this setting is not stateless.
<MmeQuignon>
Pff, I can't make nvidia work. It won't show the login page. I added this " services.xserver.videoDrivers = [ "nvidia" ];" in configuration.nix. Am I missing something ?
<tilpner>
I had to set weird kernel parameters before my card worked
<tilpner>
Things like "acpi_osi=!" ''acpi_osi="Windows 2009"'
<tilpner>
But those might depend on laptop and card
<samueldr>
dunno about quadro M series, but it you might need to setup something with optimus_prime, or another switching solution if it is a "switchable" gpu
<samueldr>
I haven't had the (dis)pleasure to deal with those kind of laptops yet, so I don't really have experience :/ I don't know _if_ they can be used without such setups
<MmeQuignon>
I used to use (could I say that ?) bumblebee on debian before
<emilsp>
So, say I wanted to use a newer version of binutils because I want a non-broken linker, what are my options?
<chrishtns>
Hello! I'm trying to build a simple Nix package. I'm running into an error of "command not found" when a executable is executed, even though I've specified the appropriate package in `buildInputs`. Any ideas where I might be going wrong?
<tilpner>
chrishtns: Are you using pre-compiled executables?
<samueldr>
chrishtns: multiple things could be going wrong ;) maybe share more details
<emilsp>
tilpner: newer than 2.31
<chrishtns>
tilpner: Not sure what you mean by precompiled, but it's literally just `mkdir` and `rg` (ripgrep) in a shell file which are the cause of the errors.
<tilpner>
chrishtns: Ahh, then it's not what I was suspecting
<chrishtns>
samueldr: Should I paste the entire file in the IRC channel maybe?
<lordcirth__>
chrishtns, how are you calling the executables?
<samueldr>
chrishtns: just as an example, try `echo $PATH`
ubert has quit [Remote host closed the connection]
<samueldr>
(in the builder.sh script)
drakonis has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mkoenig_ has joined #nixos
<infinisil>
lordcirth__: How does ubottu's dedup work?
<{^_^}>
[nixpkgs] @peti pushed 6 commits to haskell-updates: https://git.io/fjZb2
<chrishtns>
Hmm, could I maybe just invoke the script from the usual script-thingy? I've tread the `echo $PATH` though it doesn't seem to output anything relavent - just the build failed output.
mkoenig has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixpkgs] @peti pushed 4 commits to haskell-updates: https://git.io/fjZbV
<samueldr>
chrishtns: maybe you missed the output: /path-not-set
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @rick68 to master « softether: 4.25 -> 4.29 (#60665) »: https://git.io/fjZbS
<infinisil>
linarcx: What server are you using?
camsbury_ has quit [Remote host closed the connection]
nixosnewb has quit [Quit: nixosnewb]
nixosnewb has joined #nixos
<linarcx>
infinisil: For c/c++, clangd.
<linarcx>
infinisil: And create shell.nix containing all nessesary tools in it.
<linarcx>
and generate `compile-command.json` for it.
<infinisil>
Did you start emacs in the nix-shell?
gagbo has joined #nixos
<linarcx>
infinisil: i'm using direnv. So, yes.
<infinisil>
linarcx: No errors/logs?
<linarcx>
infinisil: No.
<infinisil>
Does LSP work at all or is just autocompletion missinG?
<linarcx>
infinisil: When open a new .cpp file it says to me that the server starts.
<linarcx>
But autocmplete is incomplete.
<linarcx>
and don't show properly
<infinisil>
You did install company-lsp?
MmeQuignon has quit [Ping timeout: 245 seconds]
pie_ has quit [Ping timeout: 250 seconds]
<lordcirth__>
infinisil, I'm not sure of the details, but if two people highlight the same person in a bot command within a few seconds, only the first one happens.
<{^_^}>
[nixpkgs] @NeQuissimus pushed 3 commits to release-18.09: https://git.io/fjZNO
<{^_^}>
[nixpkgs] @NeQuissimus pushed 4 commits to release-19.03: https://git.io/fjZN3
talqu has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
<Taneb>
musescore doesn't seem to work on Nix-on-other-Linux
<talqu>
hi, based on: hardware.nvidia.optimus_prime.intelBusId = "PCI:0:2:0"; lscpci returns: 00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06). Should i write this "PCI:00:02:0"?
romildo has quit [Quit: Leaving]
<tilpner>
''Bus ID of the Intel GPU. You can find it using lspci; for example if lspci shows the Intel GPU at "00:02.0", set this option to "PCI:0:2:0".''
<infinisil>
Taneb: Define "does not work"
<linarcx>
infinisil: But with same configurations, it works in arhc linux.
nixosnewb has joined #nixos
<talqu>
tilpner, thank you
<Taneb>
infinisil: crashes with qt error on startup
<nixosnewb>
so i restarted the install and my ethernet is now up and running...but upon nixos-install i get "warning: unable to download 'https....SSL peer certificate or SSH remote key was not OK (60)...
MmeQuignon has quit [Quit: WeeChat 2.4]
orivej has joined #nixos
<nixosnewb>
and...nevermind, it looks like it just took off
waleee has quit [Ping timeout: 255 seconds]
<nixosnewb>
thanks for your help anyway!
<infinisil>
linarcx: I don't know what arch linux does to make it work, maybe it uses an outdated lsp-mode version where that still worked
zupo has quit [Ping timeout: 246 seconds]
<infinisil>
linarcx: Not sure what you have against using the instructions in lsp-mode's readme itself..
<linarcx>
infinisil: Ok, i delete use-package section and try again, but same results.
<emilsp>
I see that there are things like atomEnv in deriviations for electron based apps - is there a way I could get an atomEnv inside a my shell.nix?
<infinisil>
linarcx: .. did you follow the instructions in the readme?
waleee has joined #nixos
talqu has quit [Remote host closed the connection]
<mwilsoncoding_>
had to leave for lunch- infinisil: thanks for the tip about `checkInputs`
ris has joined #nixos
<{^_^}>
[nixpkgs] @petabyteboy opened pull request #60788 → add mastodon package and module → https://git.io/fjZNp
<mwilsoncoding_>
unfortunately I figured out it's a moot endeavor because azure-servicemanagement-legacy's tests depend on azure-common's testutils- because azure-common is currently being fetched from pip, the test code isn't included, so listing it as a member of checkInputs does nothing
Notkea has quit [Read error: Connection reset by peer]
Notkea has joined #nixos
emacsomancer has quit [Ping timeout: 246 seconds]
<mwilsoncoding_>
that's fine tho, it's pretty decent justification for putting doCheck = false; - tho I'm now thinking that switching all modules to fetching the src from GitHub may be the best choice- rather than having some built from pip and others from GH
<pie_>
emilsp, if youre in a nix shell of that you should already have access to postFixup, but I didn't look carefully. alternatively you you could use something like writeshellscriptbin to write it to a file in the store, and maybe shellhook if you want a shell with it in your path
<pie_>
emilsp, but if you dont use a nix shell youll have to change your path some other way
<emilsp>
I am in a nix shell already, but I think I won't be need this in the end
<pie_>
camsbury-, i dont have buildpythonpackage in front of me, will .override not work?
<pie_>
emilsp, ok
<emilsp>
I think my current issue is that no matter how hard I try, no matter what I stuff in my $libPath, I can't force a binary to find libffmpeg.so
linarcx1 has quit [Quit: WeeChat 2.4]
talqu has quit [Ping timeout: 245 seconds]
<pie_>
do you have a script or something
<emilsp>
and looking back at what I've been writing in this channel, I've also lost my ability to english properly.
<pie_>
is it a prebuilt binary
<pie_>
ah, you did link something with patchelf
mthst has quit [Quit: the bouncer died]
<emilsp>
pie_: sure, the current attempt is this - http://ix.io/1HRw
<pie_>
i dont know much about rust but arent rust binaries usually statically linked?
<symphorien>
they still use the elf interpreter
<emilsp>
pie_: this isn't for rust, this is just a generic build environment for a project I'm working on.
<pie_>
oh thats an import sorry
<emilsp>
And I'm trying to get an electron app to work
<pie_>
ive never actually seen libpath used anywhere so idk about that, i have heard of people doing stuff with electron apps so maybe it would help to search nixpkgs for related things - anyway,
<pie_>
so youve been trying to patchelf it?
mthst has joined #nixos
<{^_^}>
[nixpkgs] @pSub pushed to fix-classy-prelude-yesod-and-esqueleto « yesod-markdown: unbreak as it builds fine »: https://git.io/fjZxh
<camsbury->
yeah might be that easy! :D will check
tbenst_ has joined #nixos
<pie_>
camsbury-, or maybe theres some equivalent to .overrideAttrs
<pie_>
camsbury-, have you checked the nix python docs?
<pie_>
camsbury-, if you need to override somelib for something like {somelib}: doStuff { stuff = [ somelib ];}, then .override is probably fine
<pie_>
if you need to do something else with doStuff, you youre looking for something like stdenv's .overrideAttrs
<emilsp>
pie_: yep, I'm essentially looking at what other electron packages do during their build to their binaries and then trying to do that from a bash script I have for binaries that I'm developing.
<tbenst_>
quick question: how do I get `nix-shell -p 'python3.withPackages(ps: with ps; [ wxPython40 ])'` to use my local nixpkg folder?
<pie_>
emilsp, ok but like, what are you doing with patcheld
<pie_>
elf
<pie_>
emilsp, have you tried doing it once by hand just to see if you can get it roughly correct
<clever>
tbenst_: -I nixpkgs=/path/to/nixpkgs
<pie_>
you probbaly need to patch 1) the interpreter path 2) the path to the ffpmeg .so in rpath
<pie_>
you can check whether it worked with ldd
hyper_ch has joined #nixos
<tbenst_>
clever: that was easy, thx :)
<emilsp>
pie_: I'm using $libPath to set the rpath and patch the interpreter
<camsbury->
ah yeah seems like I need something like .overrideAttrs
<emilsp>
er - using patchelf to patch the interpreter and to set the rpath
<pie_>
you said its not working though
<camsbury->
since it is trying to just pass something into the args for the package's `default.nix`
<pie_>
camsbury-, i mean, docs or nix pills probably explain it better, but i mean .override is for function parameters
<pie_>
camsbury-, so if you just need to make the passed parameter something different (even if it gets passed on somewhere else later), .override should work
<pie_>
camsbury-, am I making sense?
mwilsoncoding_ has quit [Quit: Page closed]
<camsbury->
yea - its not just a param to the default.nix, but an attribute of the `buildPythonPackage`
<pie_>
emilsp, well, that looks more or less reasonable, but since its not working id still check what im doing
<pie_>
emilsp, what do you mean its not working
<camsbury->
but I think I just found .overridePythonAttrs
<pie_>
emilsp, random hypotheses: makeLibraryPath is wrong for ffmpeg
<emilsp>
no, my hypothesis is that the path derived from ffmpeg doesn't contain a libffmpeg.so but rather all kind sof other .so's
<pie_>
emilsp, well, you could check
<emilsp>
I just did, and yep, it does not
<camsbury->
woo
<camsbury->
yes ty @pie_
<pie_>
i dont know if avcodec got merged back into ffmpeg proper
<pie_>
maybe libffmpeg is an avcodec thing
<emilsp>
but {^_^}'s ,locate tells me that libffmpeg.so should be provided by electron >_<
<emilsp>
ah, will check
<pie_>
lel
<pie_>
emilsp, i mean i could be completely wrong
<pie_>
just a wild guess
<emilsp>
yea, but checking isn't too hard :)
<pie_>
next thing id do is google it :p
<emilsp>
I've googled, but nothing good came up
<emilsp>
err, is there a way to iterate through a path-like variable ($libPath in my case) ? Something like for $p in $libPath; do ...; done ?
linarcx has quit [Quit: WeeChat 2.4]
<pie_>
googling nixos libffmpeg.so yields stuff that seems to suggest the lib is bundled with whatever so what you said about it being bundled with electron sounds not unreasonable
mthst has quit [Quit: the bouncer died]
<pie_>
you dont have a libffmpeg with your thing?
<pie_>
i mean bundled with it
linarcx has joined #nixos
logzet_ has joined #nixos
logzet has quit [Ping timeout: 276 seconds]
<emilsp>
I do find a libffmpeg.so in the electron package
<emilsp>
It's here, but seemingly my electron binary does not want to cooperate with it /nix/store/hb5ripll34sf2m5zlqwn5sqjlmj641yl-electron-4.0.6/lib/electron/libffmpeg.so
<pie_>
i think you can use relative paths in rpath
<pie_>
so you should be able to just patchelf the relative path
<pie_>
zeta, looks roughly reasonable, what are you wondering about
gagbo has quit [Ping timeout: 252 seconds]
mthst has joined #nixos
<zeta>
trying to install haskell correctly in home.nix
<emilsp>
pie_: so, I actually ended up using the ffmpeg that electron-builder plumps in the build output, and that seemed to work :)
<pie_>
emilsp, oh btw maybe it doesnt like your .so because that might have additional unpatched deps
<emilsp>
pie_: nah, it works with the .so I have lying around in my build env, so I'm just going to use that :) Thank you for your help on this.
<emilsp>
Now, it's on to finding a libuuid.so :/
zeta has quit [Quit: WeeChat 2.4]
<emilsp>
is there a way I can do what {^_^} does when I ask it to ,locate files?
sheeldotme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever>
emilsp: install nix-index, and run nix-locate
<emilsp>
clever: thanks, will do !
silver_hook has quit [Ping timeout: 245 seconds]
kim0 has joined #nixos
<manveru>
anyone know how i can add Atk.typelib to the gobject-introspection drv?
bgamari has quit [Ping timeout: 250 seconds]
bgamari has joined #nixos
talqu has joined #nixos
<pie_>
emilsp, this may be of use but i didnt check that its up to date or anything so caveat emptor, the wiki is usually good though https://nixos.wiki/wiki/Packaging/Binaries
<emilsp>
pie_: yep, I had found this, and then subsequently lost this link, and it indeed is useful.
dbmikus_ has quit [Ping timeout: 258 seconds]
npmccallum has quit [Ping timeout: 245 seconds]
kreisys has joined #nixos
<manveru>
ah, found it, looks like that's part of wrapGAppsHook
silver_hook has joined #nixos
dbmikus_ has joined #nixos
<pie_>
manveru, have you seen hooks explained well somewhere? i still dont get how they work, but i didnt really try
<pie_>
emilsp, took me a while to really get going
<manveru>
looks like i just never read this :P
MmeQuignon has joined #nixos
Neo-- has joined #nixos
<emilsp>
pie_: well, I wasn't being entirely helpful either - there was a subtle bug in my env script - `libPath = atomEnv.libPath + ...` was missing a crucial `+ ":" +`
<tbenst_>
anyone know what package `tar` is in? Finding in nix-locate is pretty hard. a script in a package needs it...
makefu has joined #nixos
<manveru>
tbenst_: `readlink -f $(which tar)`
fpob has quit [Ping timeout: 264 seconds]
<manveru>
gnutar here, but it's in a lot...
<infinisil>
,locate bin tar
<{^_^}>
Found in packages: gnutar, busybox
<infinisil>
:)
<manveru>
how does it do that? :P
fpob has joined #nixos
<tbenst_>
manveru that's great, ty!
<infinisil>
--at-root, --whole-name and /bin/tar
<infinisil>
And --top-level
<manveru>
nice :)
<manveru>
seems like nix-locate got a lot better since i last saw its docs...
ng0 has quit [Quit: Alexa, when is the end of world?]
Rusty1 has joined #nixos
andreas303 has joined #nixos
<infinisil>
I think it had those arguments for a while
<manveru>
i think i last checked it in 2017
<manveru>
so yeah :)
<tbenst_>
hmm, looks like nix doesn't allow curl to run as part of a build script..? I need to download pretrained models from tensorflow.org, and dump in a particular folder, is there a pattern for this?
<tbenst_>
easy enough to get rid of curl lines
<tbenst_>
I'm aware of fetchurl of course
drakonis1 has joined #nixos
<manveru>
tbenst_: well, the pattern is basically: `something = fetchurl { ... }; inYourBuildScript = '' cp ${something} to/some/place'';`
<manveru>
or ln
azdle has joined #nixos
<infinisil>
,locate man login.defs
<{^_^}>
Found in packages: su.man
<infinisil>
There's also this underused feature btw!
<tbenst_>
,locate bin which
<{^_^}>
Found in packages: which, toybox, busybox, debianutils
<emilsp>
is sftp-server supposed to be a singleton? I've sshfs'ed into a livecd of nixos, and I tried to mount different mountpoints - seemingly any n+1 instance will crash.
<colemickens>
we should try to get the mesa/libdrm PRs in
<andi->
there was a major mesa release recently. They switched to meson IIRC. Tried to upgrade the expression for a few minutes before I decided to not take that detour.
<colemickens>
ahead of Mesa 19.1's impending release