<yorick>
running into a nix bug where the to-be-built numbers are flipping between two numbers and nothing is being done
<krey>
infinisil: I guess I'm trying to run it as a shell script?
<petersjt014[m]>
anyone know how do I add a network interface? I have a vps with an ipv6 address (add within the control panel) and I can't seem to find anything for detecting it on nixos, except for an `interfaceMonitor` option that doesn't appear to exist anymore
<krey>
infinisil: I will make the function return a string at some point
<infinisil>
krey: A shell script? Nix can't be "run", nix can only evaluate
<krey>
infinisil: OK, so imagine that my function just returns a string
<krey>
infinisil: is it possible to run it with nix repl
<krey>
infinisil: and write that string to stdout?
<infinisil>
you mean interpret the string as a bash script?
<ottidmes>
krey: You would want nix-instantiate for that
<krey>
ottidmes: expression does not evaluate to a derivation or a set of those
<krey>
so I tried nix-instantiate --eval nixpath.nix --argstr configdir "."
<krey>
ottidmes: ah, got it, thanks
<ottidmes>
krey: nix-instantiate --eval --expr 'import ./foo.nix' --argstr foo bar gives "foobar", that works too
<acowley>
Huh, how do the --arg and --argstr options for nix repl work?
<rotaerk>
if I used the -K flag for nix-build, is the tmp directory *eventually* going to be cleaned up, or do I need to do it explicitly
day|flip has joined #nixos
<rotaerk>
acowley, achirkin worked around that one issue by adding cabal flags to let me turn off the foreign imports for 1.1 functions (since we only have vulkan-loader 1.0 currently)
<krey>
acowley: yeah, I wonder
<rotaerk>
but I'm determined to figure out why the hell that error happens in the first place, because it doesn't happen with all the examples
<acowley>
rotaerk: I saw the comment, they're really going above and beyond!
<rotaerk>
I feel like he *shouldn't* have to have done that
<rotaerk>
err shouldn't have had to *
<acowley>
rotaerk: Yeah, it's weird. My mental model of what was happening was wrong.
<acowley>
I guess I hit that error building triangles, but not the vulkan-api package itself.
<rotaerk>
building vulkan-api itself works fine. building vulkan-examples (but only for examples 05 and 06) triggers that error
<acowley>
In my head, the error was when building vulkan-api, which would be consistent with some linker stage resolving the foreign imports.
<rotaerk>
yea, it's simply not clear why it *cares* about that particular foreign import, for those two example executables
fresheyeball has joined #nixos
<rotaerk>
I even tried to make example 01 look as much like example 05 as I could (short of replacing its entire source code), and it just kept building
<acowley>
I haven't really fiddled with it. It's not just that example 05 imports Graphics.Vulkan.Ext.VK_KHR_swapchain?
<rotaerk>
nope, that's one of the things I added to example 01
<rotaerk>
and it still built
<rotaerk>
I even added a call to one of the methods from that particular module
<acowley>
Wow
<rotaerk>
so weird
ottidmes has quit [Ping timeout: 260 seconds]
blankhart has joined #nixos
<acowley>
One day nixos-unstable will advance and we'll get vulkan-loader 1.1
<acowley>
Hopefully
<acowley>
:P
<rotaerk>
:P
<acowley>
Vulkan really is incredibly wordy
<rotaerk>
hmm, is there some way to see the output of the build phase of a nix derivation, rather than the out folder from the install phase?
<rotaerk>
I want to see the result of --ddump-simpl --ddump-to-file
<krey>
yorick: thanks, that's a lot better than what I'm doing
<infinisil>
I just have nixpkgs=/path/to/nixpkgs on my Path:P
thc202 has quit [Ping timeout: 260 seconds]
<krey>
infinisil: where's your nixos-config?
<infinisil>
Using nixops, don't need that
<infinisil>
I'm also considering just setting `NIX_PATH=/cfg`, because at /cfg/nixpkgs is my nixpkgs, and there's more useful stuff in /cfg
fresheyeball has joined #nixos
<krey>
how can I get the directory my file lives in?
<infinisil>
./.
<krey>
infinisil: magical
<infinisil>
truly
<yorick>
krey: I have a wrapper around nixos-rebuild that sets NIX_PATh
day|flip has quit [Remote host closed the connection]
fresheyeball has quit [Ping timeout: 240 seconds]
<krey>
yorick: can I see?
cnu- has quit [Ping timeout: 265 seconds]
acarrico has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
mbrgm has quit [Ping timeout: 240 seconds]
mbrgm has joined #nixos
krey has quit [Remote host closed the connection]
krey has joined #nixos
fresheyeball has joined #nixos
ryanartecona has joined #nixos
mizu_no_oto has joined #nixos
jperras has joined #nixos
mizu_no_oto has quit [Client Quit]
jluttine has quit [Ping timeout: 264 seconds]
acarrico has quit [Ping timeout: 256 seconds]
Arcaelyx_ is now known as Arcaelyx
nuncanada has quit [Read error: Connection reset by peer]
astrofog has quit [Quit: Quite]
jluttine has joined #nixos
acarrico has joined #nixos
platinum_ has joined #nixos
manu245 has quit [Ping timeout: 260 seconds]
jrolfs__ has joined #nixos
jrolfs has quit [Ping timeout: 240 seconds]
hakujin has joined #nixos
<hakujin>
hmm. I updated to nix 2.0 and now my `$NIX_PATH` points to `/nix/var/nix/profiles/per-user/root/channels`, meaning if I `nix-channel --add https://nixos.org/channels/nixpkgs-unstable` as my normal user I get duplicate nixpkgs warnings
<hakujin>
what is correct here?
<hakujin>
(on darwin)
jrolfs__ has quit [Ping timeout: 264 seconds]
markus1199 has joined #nixos
<krey>
hakujin: no idea about darwin
jrolfs_ has quit [Ping timeout: 264 seconds]
<krey>
what does nix-channel --list give you?
<hakujin>
krey: by default (as freshly installed) nothing
<hakujin>
but nix commands work, which was confusing to me
markus1189 has quit [Ping timeout: 268 seconds]
<hakujin>
there is a nixpkgs symlink in that ^ root profile
sigmundv__ has quit [Ping timeout: 268 seconds]
<krey>
hakujin: sorry, I don't know enough about darwin, and can't reproduce on nixos
<hakujin>
krey: no worries. what is your `echo $NIX_PATH` as a non-root user?
<krey>
I didn't know it looked like this until you asked me
detran` has joined #nixos
silver_ has quit [Read error: Connection reset by peer]
jrolfs_ has quit [Ping timeout: 260 seconds]
ryanartecona has quit [Quit: ryanartecona]
detran` has quit [Ping timeout: 265 seconds]
hakujin has quit [Ping timeout: 260 seconds]
seafood has joined #nixos
<seafood>
Hey peeps, I love nixpkgs. I really do. Deterministic builds, once you get them working are _incredible_.
<seafood>
But do you find that it is hard to manage a large Nix environment? I certainly do. Upgrading packages can take me hours, if not days.
circ-user-KrZJE has joined #nixos
<seafood>
Just wanted to get a sense from the community how big a problem this is.
<seafood>
And whether there are any ways to make it better.
<seafood>
I find debugging Nix expressions to be quite hard. I often find myself grepping through the nixpkgs repo desperately looking for the patches I need so I can just copy-paste it somewhere else.
circ-user-KrZJE has quit [Remote host closed the connection]
<seafood>
Reading, and understanding, other people’s code can sometimes be hard too
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #38715 → Build more commands from Apple's system_cmds → https://git.io/vxb6a
<petersjt014[m]>
I stick most of my packages in my config file and everything's mostly fine from there. only problem I have is that my updates are dogshit slow cuz <1GB ram
<petersjt014[m]>
I still can't write config files from scratch, but I at least haven't needed to yet
<petersjt014[m]>
I've even gotten nix packages install on windows with wsl. it runs pretty slow because windows' sym/hardlinks are implemented with despair and regret, but other than that it worked on the first try
circ-user-kKgYE has joined #nixos
<circ-user-kKgYE>
\nick ushering
acarrico has quit [Ping timeout: 260 seconds]
circ-user-kKgYE is now known as ushering
ushering has left #nixos [#nixos]
<petersjt014[m]>
it'd help to know what kind of issues you come across
ryanartecona has joined #nixos
<petersjt014[m]>
also are my messages showing up? I might've joined the wrong bridge, not sure
ray_ has joined #nixos
nuncanada has joined #nixos
nuncanada has quit [Remote host closed the connection]
<krey>
o/ petersjt014[m]
freeman42x]NixOS has quit [Ping timeout: 268 seconds]
<petersjt014[m]>
aight cool
jrolfs_ has joined #nixos
hakujin has joined #nixos
freeman42x]NixOS has joined #nixos
winsome has joined #nixos
ray_ has quit [Ping timeout: 260 seconds]
hakujin has quit [Ping timeout: 256 seconds]
jrolfs_ has quit [Ping timeout: 256 seconds]
platinum_ has quit [Quit: Page closed]
platinum__ has joined #nixos
jperras has quit [Quit: WeeChat 2.1]
Tobba has quit [Ping timeout: 264 seconds]
sanscoeur has joined #nixos
<seafood>
petersjt014[m]: No, your messages are showing up. I was just AFK
<seafood>
The Nix environment I’m managing has a lot of Haskell packages. It’s rather large.
<infinisil>
seafood: Are these private packages? Not ones from hackage?
<seafood>
The ones from Hackage.
<seafood>
So, what I find is that when I try to upgrade to a newer Hackage LTS but used an old version of nixpkgs that things don’t work well.
<seafood>
Things just break at random.
<infinisil>
Well why are you doing this when nixpkgs does it for you?
<seafood>
I always need to be on the bleeding edge of nixpkgs.
<infinisil>
Ah right it's lts
<seafood>
Yeah, this is tricky.
justan0theruser has joined #nixos
<infinisil>
But hackage2nix is on github, i imagine it should work pretty well with nightly stackage
<seafood>
We are using some packages that aren’t in Stackage in the nightlys.
<seafood>
Those are always a bitch to get working.
justanotheruser has quit [Ping timeout: 255 seconds]
<seafood>
But in general, the main problem is that if you do a deep override of just one package you lose the benefit of the Hydra caches and then, boom, things take a long time to build (sometimes hours).
<seafood>
Waiting two hours to have just one little thing break, and having that happen multiple times, it pretty darn disheartening.
<infinisil>
you can also just use stack for development
<infinisil>
And then stack2nix to get a nix-build
Tobba has joined #nixos
<infinisil>
seafood: Can really recommend stack2nix
<seafood>
infinisil: Cool. I’ve only used cabal2nix
platinum__ has quit [Quit: Page closed]
Lisanna has joined #nixos
<Lisanna>
What does "waiting for children" mean?
<Lisanna>
does it mean literal unix process children
<infinisil>
yup
<Lisanna>
hrmph
<Lisanna>
well that's not very descriptive <_<
<buhman>
what other children would be valid to wait for?
<Lisanna>
buhman idk, "children" can be a generic term
<krey>
why can't toFile cannot refer to derivation outputs?
<infinisil>
krey: it's an evaluation time thing, and you can't (normally) build stuff during evaluation
<infinisil>
krey: use something like pkgs.writeText instead
<infinisil>
gonna go sleep now though, see yall
<krey>
infinisil: thx, night
srdqty has quit [Quit: WeeChat 1.9.1]
srdqty has joined #nixos
freeman42x]NixOS has quit [Ping timeout: 240 seconds]
jrolfs_ has joined #nixos
ray_ has joined #nixos
ray_ is now known as ushering
hakujin has joined #nixos
ushering has quit [Client Quit]
srdqty has quit [Ping timeout: 264 seconds]
<fearlessKim[m]>
since some time I have thiskind of error `unable to access 'https://bitbucket.org/vimcommunity/vim-pi/': Protocol "https" not supported or disabled in libcurl`. I am not sure why, looking at git log I couldn't find anything relevant ?
<Lisanna>
why does nix trash my build if $out has the wrong permissions rather than just fixing it?
<shikiryogy>
Hi guys, there is no sound as of upgrading to 18.03. I enabled sound via "sound.enable", I also enabled pulseaudio, but still no sound whatsoever
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vxbH9
<{^_^}>
→ d1dfe27a by @knedlsepp: darwin.opencflite: fix build
<{^_^}>
→ 15c1cd24 by @matthewbauer: Merge pull request #38329 from knedlsepp/fix-darwin.opencflite
winem_ has joined #nixos
<neonfuz>
anyone know how to set up fingerprint sensor properly on nixos?
atu has joined #nixos
asuryawanshi has joined #nixos
<neonfuz>
I did services.fprintd.enable; and enrolled with fprintd-enroll
<neonfuz>
but idk how to make it default to auth with IE logging in and running sudo
<neonfuz>
Back on fedora I had it use fingerprint sensor for anything that used password really, that's how I'd like it
xAFFE has joined #nixos
<neonfuz>
I see security.pam.services.<name?>.fprintAuth, but idk what I'd put for <name?>...
Guest17535 has quit [Ping timeout: 276 seconds]
matklad has joined #nixos
MichaelRaskin has quit [Quit: MichaelRaskin]
<achambe>
hmm, im trying to make a python venv as a derivation and my build command succeeds in my shell, but in the builder errors with a message about ascii encoding
knupfer has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
<achambe>
its neat that venv's work based on path so they fit just fine into the nix store
freebird_ has joined #nixos
<LnL>
I should figure out how they mess with sys.prefix
<LnL>
then I could replace my hacks with a proper nix wrapper
<freebird_>
Hello, I'm trying since a couple of hours to rebuild an iso which is able to boot with rEFInd. I can make it with other isos. But for NixOS the ISO does not boot. Can I post my mkisofs oneliner here and ask for help?
<freebird_>
I can create ISOs with other distros I mean
<fearlessKim[m]>
manveru: I just reinstalled nixos and to prevent huge rebuilds while hacking on nixpkgs, I pin some big packages to a stable channel, like stable.libreoffice . Noew that I've reinstalled I have to do nix-channel --add manually and I wish to automate that from configuration.nix
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @r-ryantm to master « smtube: 18.1.0 -> 18.3.0 (#38700) »: https://git.io/vxbpD
<sphalerite>
!doesanyoneuse
<{^_^}>
Don't ask if anyone uses software xyz, just ask your specific question. This helps solve your problem quicker, and allows people who haven't used xyz but may still be able to help you to do so.
<sphalerite>
seafood: same applies ^ just ask your actual question
<seafood>
What gets garbage collected exactly? Anything that is not a run-time dependency? Or anything that is not a build dependency?
<sphalerite>
it depends on the keep-drvs and keep-outputs options. By default, only runtime dependencies (paths referenced by the output) will be kept
<sphalerite>
but if you have keep-drvs and keep-outputs set to true, it will keep anything that's referenced by derivation files (i.e. build inputs) as well
hakujin has joined #nixos
<sphalerite>
keep-drvs is true by default iirc
<seafood>
sphalerite: Who has edit access to the Nix manual?
<freebird_>
I've posted accidentally the wrong oneliner. Without the extra "-no-emul-boot" NixOS live will boot successfully. Could this be an option to make the ISOs in the future usable for more systems?
phdoerfler has joined #nixos
<sphalerite>
freebird_: again, you haven't explained how you tried to make it work and how it failed to work.
<sphalerite>
what medium did you try to boot from (USB stick, CD)? How did you put the image on the medium? How did you try to boot it?
binarin has quit [Remote host closed the connection]
cfricke has quit [Ping timeout: 240 seconds]
TweyII has joined #nixos
jrolfs_ has quit [Ping timeout: 264 seconds]
<mkaito>
I've found the problem. A binary that Plex appears to download from somewhere (obviously) hasn't been patched to have the correct interpreter. Can `patchelf` be run in a service preStart or something?
<{^_^}>
[nixpkgs] @timokau opened pull request #38751 → jmol: init at 14.29.12 → https://git.io/vxNUY
<freebird_>
For those who have old hardware or other booting problems with the DVD.
boxscape has joined #nixos
<boxscape>
hm, I could've sworn that typing `nix-shell -p nixos.ipython --command ipython3' worked a couple of days ago, but now it says `undefined variable 'nixos''. Am I just misremembering?
sigmundv__ has joined #nixos
<freebird_>
...you could add my mkisofs oneliner into the manual if peopla have problems with the DVD iso.
<freebird_>
It is seldom, but for old Macs helpfull.
Lears has quit [Remote host closed the connection]
c0ffee152 has joined #nixos
<Taneb>
fendor: I think you're probably not
<fendor>
Taneb, yeah, dont think so either
goibhniu has joined #nixos
<Taneb>
Although, nixos.org suggests that the gnome3 package is GNOME 3.26, and Wikipedia suggests that GNOME 3.22 onwards default to Wayland, so don't trust me
<{^_^}>
→ 309b4831 by @Mic92: radare2: 2.4.0 -> 2.5.0
<Mic92>
Does somebody know how far are we away from native browser support on wayland? Is it something planned in the next three month or will it take longer?
<{^_^}>
→ 53a317b8 by @7c6f434c: Merge pull request #38753 from Mic92/radare2
<Mic92>
This is one of my two personal blockers that hold me back from considering wayland.
MercurialAlchemi has joined #nixos
<fendor>
Taneb, the normal commands are all telling me I am using X11
ardfard has quit [Remote host closed the connection]
atu has quit [Ping timeout: 264 seconds]
<fendor>
hehe, ok, then how can i change my windowing system to wayland? :D
<{^_^}>
[nixpkgs] @timokau opened pull request #38761 → pynac: init at 0.7.19 → https://git.io/vxNma
stumble has joined #nixos
phdoerfler has joined #nixos
zybell_ has quit [Ping timeout: 256 seconds]
<fendor>
Mic92, well, then this is probably not the error
<kuri0>
I made a Python script to generate AppArmor profiles by only allowing the dependencies and /home but when I use it on GIMP it gives this error : error while loading shared libraries: libXinerama.so.1: cannot open shared object file: No such file or directory
<kuri0>
Which means the dependency list doesn't contain all the needed files
<kuri0>
If I give access to only /nix and /home it works but it can access any program's file then
hakujin has joined #nixos
<Mic92>
kuri0: maybe not the final solution, but maybe /run/opengl-driver is also missing
<kuri0>
Mic92, it works if i only allow /nix so it doesn't need /run
<kuri0>
but if i only allow its dependencies in /nix it doesn't
<kuri0>
lag
<{^_^}>
[nixpkgs] @timokau opened pull request #38762 → m4ri: init at 20140914 → https://git.io/vxNYq
<kuri0>
/run/opengl-driver might be required for 3d stuff but GIMP doesn't need it
ardfard has joined #nixos
<Mic92>
I suppose you tried to strace it already?
phdoerfler has quit [Quit: Leaving.]
<kuri0>
no i didn't
<kuri0>
it does access stuff which aren't on the dependency list
<Mic92>
how is this computed?
<kuri0>
i used this to generate the dependency list nix-store --query --references $(which gimp)
<kuri0>
then put it through my python script that turns stuff paths into apparmor allow rules
phdoerfler has joined #nixos
<Mic92>
Does it discover plugins in your home's nix profile?
<kuri0>
what do you mean by plugins ?
hakujin has quit [Ping timeout: 240 seconds]
phdoerfler has quit [Client Quit]
<Mic92>
I know qt loads a lot of plugins from there. I had the intention gtk does not, but maybe gimp finds something there.
<kuri0>
Mic92, how can I make those also be in the dependency list then ?
<Mic92>
kuri0: no idea
<Mic92>
these are impure then.
ardfard has quit [Ping timeout: 240 seconds]
<kuri0>
the python script does print " " + line.strip() + "/** rix,\n", for each line
<kuri0>
then i paste the output into the apparmor rules
<Mic92>
maybe you could add your home profile closure or so?
<Mic92>
this is just a meta package wrapping all installed packages
<kuri0>
its a symlink
zybell_ has joined #nixos
<Mic92>
realpath ~/.nix-profile
<Mic92>
is more clear
<Mic92>
but it could be also in the system profile
<sphalerite>
I can use setterm --blank to change the timeout for the screen to blank on ttys. Is there any more elegant way to do this automatically on boot than just making a systemd service for it? I feel like this is something that systemd-vconsole-setup should actually do, but by the looks of it it doesn't
<sphalerite>
kuri0: nix itself doens't need any changes for it
<sphalerite>
but being entirely binary-based kind of defeats the point of nix
<Mic92>
once packaged, binaries are actually not to hard to integrate in nix
<kuri0>
if the binary cache has every single package thats also ok
<kuri0>
sphalerite, that seems to be for stuff like proprietary software.Has anyone done something like Debian where you build a package and then users can install it from your repo ?
<sphalerite>
kuri0: binary caches
<kuri0>
sphalerite, so then can I remove the compiling tools and use nix ?
<sphalerite>
other than that, no. As I said, it sort of defeats the point of nix
<sphalerite>
yes, you don't need a compiler on your system if you have nix and only use software that's included in the binary cache
<sphalerite>
(s)
<kuri0>
do binary cache servers usually have all the packages built ?
<gchristensen>
kuri0: you're asking a lot of questions that are pretty weird for nix, I suspect we have an X-Y problem.
<gchristensen>
can you describe what problem you're trying to solve, now how you think you'd like nix to behave?
<kuri0>
trying to get it to work without these compiler tools
<Mic92>
what package?
<kuri0>
regular packages like firefox and desktops
<gchristensen>
a basic install won't have compiler tools
phdoerfler has joined #nixos
<kuri0>
there still are the nix build tools
<kuri0>
is there a compile time option or something to disable including those ?
<gchristensen>
would you want debian without apt?
<gchristensen>
redhat without rpm / yum?
phdoerfler has quit [Client Quit]
<kuri0>
lol no
<kuri0>
but you don't really need the package building tools unless your making packages
<Mic92>
unless you build packages, they are not installed
<gchristensen>
Nix is apt or yum
<gchristensen>
having Nix installed doesn't mean you have compilers installed
<kuri0>
Mic92, the install script does install those tools on Ubuntu
<gchristensen>
interesting, it shouldn't, but can you be very specific about which tools you have that Nix brought, that you think you shouldn't have? also, what Nix commands have you run, after installing?
<fendor>
NinjaTrappeur, thanks, but i want resources to build via nix-build, because i am expierincing troubles with stack
<fendor>
i just hoped,there is something better than invoking ghc manually
<{^_^}>
[nixpkgs] @yegortimoshenko opened pull request #38767 → [WIP] plex: use buildFHSUserEnv → https://git.io/vxNcw
<srhb>
stackage2nix is the thing if you really need the bounds from stack.yml
<srhb>
Otherwise you can just skip stack completely.
klntsky has joined #nixos
<fendor>
srhb, how would i skip it completely? i still need to maintain it, because my team members are using it
<avn>
srhb: you are about stack2nix? ;)
<srhb>
avn: No, though similar in concept.
zzamboni has joined #nixos
<srhb>
fendor: I mean, all methods aside from buildStackProject (I think...) technically skip stack and just build a nix set from whatever stack specifies
<srhb>
fendor: Of course, you lose the binary cache completely.
jtojnar has joined #nixos
<fendor>
srhb, but is there something better than to manually invoke ghc, including manually resolving dependencies of modules?
<srhb>
Everything that has been suggested so far.
atu has quit [Ping timeout: 256 seconds]
<srhb>
None of them involve invoking ghc directly.
<fendor>
the suggestions so far were stack, using stackage2nix and stack2nix, and buildStackProject. Is the last one using stack?
iyzsong has quit [Ping timeout: 240 seconds]
<srhb>
The last one, iirc, just produces the shell.nix for use with the stack --nix backend (eg. external dependencies)
magnetophon has joined #nixos
<fendor>
ok, that wont work
<srhb>
Yeah, it's not terribly useful in my experience.
<srhb>
stackage2nix will, to my understanding, generate nix expressions for the entire stack resolution(?) described by stack.ymlk
<srhb>
I don't remember exactly how stack2nix differs.
<fendor>
but the yaml defines almost nothing?
<srhb>
It does define the resolver, which, when used with Cabal defines the final set.
<srhb>
Again, my experience with Stack is limited, so please double check what I'm saying
<NinjaTrappeur>
fendor, have you read the link I previously send you
<NinjaTrappeur>
*sent
hakujin has joined #nixos
humanoyd has quit [Ping timeout: 256 seconds]
<NinjaTrappeur>
srhb, you're right :)
silver has quit [Read error: Connection reset by peer]
<srhb>
Great! :-)
<fendor>
NinjaTrappeur, i know that link, the problem is that stack exec has some runtime problem, the execution fails for some reason, thats why stack itself doesnt cut it at the moment
Rusty1_ has joined #nixos
<srhb>
Neither of them use stack directly! It just generates nix expressions that describe the same package as what stack would build, with the same dependencies etc.
<srhb>
Eg. you'll be able to nix-build (generated-nix-file) afterwards.
<NinjaTrappeur>
fendor, oO it does not use stack
jensens has quit [Ping timeout: 240 seconds]
<fendor>
NinjaTrappeur, you mean when i invoke stack with the --nix flag?
<fendor>
NinjaTrappeur, ok, the page provides more resources than I recall, maybe it is indeed helpful. However, currently i am using stack and edited the stack.yaml to include the libraries I need, but stack exec fails, probably to some linking issue
<fendor>
NinjaTrappeur, thats why I dont actually want to use stack at the moment
xcmw has quit [Ping timeout: 240 seconds]
vaninwagen has quit [Ping timeout: 264 seconds]
<srhb>
I feel like we're not getting the point of stackage2nix not relying on stack across properly, or misunderstanding the requirement :P
mmercier has joined #nixos
<fendor>
stack2nix generates a nix expression that i can not build :(
Tobba_ has quit [Ping timeout: 240 seconds]
<srhb>
stackage2nix /= stack2nix though, but go on?
<NinjaTrappeur>
aaah, I get it, stackage2nix/=stack2nix
<NinjaTrappeur>
too late :)
<fendor>
ill try stackage2nix first :D
<fendor>
srhb, stackage2nix seems not to exist 0.o
<unacceptable>
srhb: Why would taking a printscr every RMB be a bad idea? Just seems a bit odd
Ivanych has joined #nixos
<makefu>
Alling: and you can call xmodmap with the file you created at the startup of your xserver with services.xserver.displayManager.sessionCommands
<srhb>
unacceptable: I think you got it the wrong way around :P
<unacceptable>
srhb: ohh
<unacceptable>
srhb: meh, I still don't get why you'd want to do that
<srhb>
unacceptable: Some people juggle geese!
<unacceptable>
srhb: unless you have a one button mouse or something weird
<{^_^}>
→ 78d5690d by @7c6f434c: Merge pull request #38754 from timokau/gap-4r8p10
<{^_^}>
→ 6dc28780 by Timo Kaufmann: gap: 4r8p3 -> 4r8p10
xcmw has joined #nixos
<ryantm>
I have a Thinkpad (not X1 Carbon) and remapping PrtSc to right click sounds pretty good too. I always accidentally hit it, it's right between right Alt and right Ctrl.
<makefu>
ryantm: but with the thinkpad you have a right click button just under the track point (x240 is an exception with their shitty mouse buttons)
<srhb>
Only recent generations brought back those buttons, afair.
<srhb>
When we rely on input hashes, users must never be allowed to specify a binary cache because they can claim that any binary blob is indeed the result of any derivation. This is the whole point of the (apparently misnamed) intensional store proposals.
Myrl-saki has quit [Remote host closed the connection]
Myrl-saki has joined #nixos
hakujin has joined #nixos
<krey>
when I install a C++ library, how do I find it?
<TweyII>
Yeah, at my company we have some Nix expressions to build our products, and so far I've been able to pin nixpkgs et cetera so that our only build dependency is Nix itself. But now we're building some propriety software that I can't submit to nixpkgs, but we'd like it cached
<srhb>
TweyII: I usually solve this with a hydra that just caches both upstream and whatever proprietary libraries.
<symphorien>
krey: ^ see the bot above
<srhb>
And make that the trusted cache globally.
<TweyII>
Looks like I might have to add another setup step to enable our binary cache
<symphorien>
Installing a library does not make sense with nix
<Myrl-saki>
joelpet: Remember when we had a convo about drag and drop of URLs? The same happened to me with Emacs and Firefox, and I don't have KDE installed. Maybe a GTK problem, that's even worse..
<krey>
symphorien: got it, thanks
<srhb>
TweyII: Make a small module that people can just import :)
<srhb>
Oh, right, that's NixOS thinking...
<srhb>
I always forget. :-)
<TweyII>
srhb: Yeah, most people here are not on NixOS
<TweyII>
Myself excepted
hakujin has quit [Ping timeout: 255 seconds]
<krey>
I think it would be cool if Nix got rid of channels and made it easier to pin commits
__Sander__ has quit [Ping timeout: 260 seconds]
<TweyII>
krey: It's pretty easy to pin commits
<joepie91>
Myrl-saki: did you mean to highlight me?
<joepie91>
:P
<krey>
TweyII: yeah, but there could be a utility like nix-channel --update to do it for you
<Myrl-saki>
joepie91: Oh shit. Yep
<TweyII>
That's true: would be nice
<srhb>
krey: I agree, and I've had the same idea as well. channels are a rather confusing abstraction.
<joepie91>
Myrl-saki: anyhow, what happened exactly in that case?
<krey>
I was talking to tilpner (offline atm) yesterday, and he was walking me through how he wrote such a thing
FRidh has quit [Remote host closed the connection]
<tilpner>
Not offline! :)
<krey>
oops
<joepie91>
lol
<krey>
so I wonder how many people how home brew solutions for this
<Myrl-saki>
joepie91: I dragged and dropped from the URL bar to my Emacs window, and Emacs, for some reason decided to downalod the web page, if I had shr enabled, it would have even rendered the web page.
<Myrl-saki>
joepie91: I think it's GTK's. The same can be observed with Firefox->Firefox.
<Myrl-saki>
joepie91: That or Firefox + MIME type.
<tilpner>
srhb - The interesting part is how to specify such a JSON pin in your configuration.nix, to be used to evaluate your system
<krey>
srhb: yeah, but there's extra complication if you're doing it with nixpkgs cos you have to bootstrap yourself somehow (if I understand correctly)
<joepie91>
Myrl-saki: hm. if I drag a link from Firefox to my Yakuake, it lets me do 'paste location' which actually pastes the original URL
<joepie91>
so evidently it's not universal
<srhb>
krey, tilpner: True :)
<srhb>
If only fetchGit took a sha256
<Myrl-saki>
joepie91: I guess it's Firefox + mime type then.
<joepie91>
worth investigating :P
<Myrl-saki>
joepie91: Game time though. ; n ;
<Myrl-saki>
joepie91: I'll do an strace soon.
<joepie91>
Myrl-saki: I have a game suggestion; Find The X11 Code Path
<joepie91>
some laud its intricate puzzles and depth, whereas others find that it's too difficult to play within a typical gaming session
<joepie91>
:)
nadley has joined #nixos
<Myrl-saki>
joepie91: I personally enjoy more "Why Does This Line Exhibit UB?"
stphrolland has quit [Quit: Lost terminal]
<gchristensen>
does Nix have any tools for making a "fat script" which has, say, a tarball inside of it, and contains a closure? ideally would be portable for macos
<Myrl-saki>
joepie91: Even better, it can be played multiplayer, especially if you're in ##C
<Myrl-saki>
joepie91: It's a PvP when in ##C though.
<joepie91>
gchristensen: there are tools for self-extracting shell scripts that are packed in nixpkgs
<joepie91>
of which I forgot the name
<joepie91>
packaged*
<joepie91>
Myrl-saki: heh
<tilpner>
gchristensen - Like nix-bundle?
uwap_ is now known as uwap
<gchristensen>
like nix-bundle, but one which works on macos
<garbas>
wow, closure size of docker command 1.1GB?
<krey>
I wonder if there are any updates
<garbas>
wasn't go stuff suppose to be "small"
tmaekawa has joined #nixos
<LnL>
euh, does it have references to the compiler?
jtojnar has quit [Quit: jtojnar]
<tilpner>
It references gcc and go
tmaekawa has quit [Client Quit]
<LnL>
disallowedReferences = [ stdenv.cc go ];
<tilpner>
Huh
atu has joined #nixos
<tilpner>
Wait, is that a suggestion or a quote?
<LnL>
a suggestion :)
jtojnar has joined #nixos
<garbas>
LnL: yeah, go and systemd.dev
<garbas>
but i must say i find "nix why-depends" really useful
<LnL>
yeah
<MoreTea>
Hello peepz
<MoreTea>
I found this command on the wiki: `gsutil ls -l gs://nixos-images`
<MoreTea>
does that bucket contain images manage by the NixOS community, or is it someone's own initiative?
<tilpner>
fadenb - ^
<garbas>
LnL: does disallowedReferences remove the reference or it will just warn me and fail the build?
mmercier has quit [Quit: mmercier]
<tilpner>
I just tried using disallowedReferences, it didn't do either here :/
<LnL>
no it will fail the build
ekleog has quit [Quit: WeeChat 2.0]
<LnL>
for go stuff you often need to use removeReferencesTo
winem_ has quit [Ping timeout: 260 seconds]
atu has quit [Ping timeout: 256 seconds]
mpcsh has joined #nixos
ekleog has joined #nixos
<garbas>
LnL: but then you are just betting that it will work right?
<mpcsh>
hey yall, I've been seeing "warning: name collision in input Nix expressions, skipping '/home/mpcsh/.nix-defexpr/channels_root/nixos'" whenever I run any nix-env commands. Anyone know what this is about?
<LnL>
as in not break anything?
<garbas>
i'm wondering which version is then used to run the checkPhase
<Jetien>
Hi, I'm trying to fix a potential bug in pkgs/development/python-modules/Theano/default.nix . The derivation crates a wrapped g++ but it seems to fail to pass on default arguments to the wrapped compiler. You can reproduce the problem like this https://gist.github.com/smatting/d904d1f5b79bbe9cb21b93ce1262b1e7 . Any ideas how to make this work?
<{^_^}>
[nixpkgs] @jtojnar pushed commit from @r-ryantm to master « bubblewrap: 0.2.0 -> 0.2.1 (#38770) »: https://git.io/vxN5K
<jtojnar>
Jetien: would not CPPFLAGS work?
nschoe has quit [Ping timeout: 240 seconds]
<Jetien>
jtojnar: I don't think so. I should mention that the wrapped g++ is not used to build the derivation itself. It exists as the compiler that Theano uses at runtime to compile stuff.
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #38712 → Unix-tools: Cleanup and more tweaks → https://git.io/vxbgp
<{^_^}>
[nixpkgs] @matthewbauer pushed 5 commits to staging: https://git.io/vxNdm
<{^_^}>
→ f94c9c54 by @matthewbauer: unix-tools: provide getconf and getent
<{^_^}>
→ 037e5d86 by @matthewbauer: rabbitmq-server: use provided getconf
<{^_^}>
→ 70c37889 by @matthewbauer: unix-tools: copy instead of linking
<fadenb>
Just dumping this here for others to find: Upgrading NixOS 17.09 to 18.03 might break matrix-synapse startup (even with stateVersion kept at 17.03)
<fadenb>
In my case the pre-start script tried to create a new postgreSQL user/role with the same name I was already using ("matrix-synapse" as mentioned in the matrix sqlite to psql guide)
<tilpner>
fadenb - Are you using federation? How much CPU/RAM/disk is Synapse eating?
kmicklas has joined #nixos
<fadenb>
tilpner: yes, at the moment the whole system is using ~380m memory and almost no CPU at all (that changes drastically when a user joins a large channel)
<tilpner>
Oh! That's actually really good
<fadenb>
I am running matrix-synapse on a VPS with 2cores and 2gig ram for quite some time now without any real issues. But my active user count is <10 ;)
<tilpner>
I joined -dev and linux, and it tortured my 2GB VPS with 99%CPU and 2.6GB use (swap) for just Synapse :/
xcmw has joined #nixos
<tilpner>
What's your cache factor?
<{^_^}>
[nixpkgs] @timokau opened pull request #38782 → cypari2: init at 1.1.4 → https://git.io/vxNFG
<fadenb>
No idea :P let me check
jensens has quit [Ping timeout: 276 seconds]
<fadenb>
I can not find any config named similiar to cache factor so it is whatever the default value is?
<tilpner>
That would be 0.5
klntsky has quit [Ping timeout: 268 seconds]
<tilpner>
Very interesting. I had given up on ever getting a Synapse to coexist with my other processes
sanscoeur has joined #nixos
binarin has quit [Ping timeout: 265 seconds]
<{^_^}>
[nixpkgs] @timokau opened pull request #38783 → pythonPackages.flask-silk: init at 0.2 → https://git.io/vxNFp
<joepie91>
fadenb: tilpner: 'swappiness' is the option you're looking for?
<tilpner>
And swappiness doesn't help if the process needs more memory than I have in total (excluding swap)
<{^_^}>
[nixpkgs] @timokau opened pull request #38784 → pythonPackages.flask-autoindex: init at 0.6 → https://git.io/vxNbZ
<fadenb>
The only time I ever had memory issues with synapse was when purging a large timeframe from the room history. This can be worked around by purging in smaller blocks
<{^_^}>
[nixpkgs] @timokau opened pull request #38786 → pythonPackages.flask-babel: init at 0.11.2 → https://git.io/vxNbD
<{^_^}>
[nixpkgs] @timokau opened pull request #38787 → pythonPackages.flask-oldsessions: init at 0.10 → https://git.io/vxNNJ
jrolfs_ has joined #nixos
<{^_^}>
[nixpkgs] @timokau opened pull request #38788 → pythonPackages.python-openid: init at 2.2.5 → https://git.io/vxNNG
kgz has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @timokau opened pull request #38789 → pythonPackages.flask-openid: init at 1.2.5 → https://git.io/vxNNr
<hihello>
The link to https://nixos.org/nixpkgs/manual/#sec-standard-meta-attributes "you may want to add yourself to **nixpkgs/lib/maintainers.nix**(broken link) and write something like [ stdenv.lib.maintainers.alice stdenv.lib.maintainers.bob ]" is broken.
<krey>
is there any documentation on packaging something that uses CMake?
hotfuzz has quit [Quit: WeeChat 2.0]
<Ralith>
krey: put cmake in buildInputs and it should Just Work 90% of the time
jrolfs_ has quit [Ping timeout: 260 seconds]
<Ralith>
nativeBuildInputs if you're being picky, though I'm not totally clear on what the most modern idiom is for that
coot has quit [Quit: coot]
hotfuzz has joined #nixos
jrolfs_ has joined #nixos
<LnL>
yeah, nativeBuildInputs and optionally cmakeFlags
Jetien has joined #nixos
Judson1 has joined #nixos
<Ralith>
when does using `nativeBuildInputs` matter, anyway?
<krey>
Ralith: wow
<Judson1>
gchristensen, howdy - sorry if I was taking the darcs thing too far on Twitter
<gchristensen>
no you weren't :)
<Judson1>
Some of that was "is it good now? maybe someone will say"
<Ralith>
also holy shit hurray #28029 finally got merged
<Judson1>
Darcs scared me off Haskell for a long time.
<Ralith>
C/C++ compilers will no longer silently break debug info for everyone who doesn't know the magic incantation :D :D
Jetien has quit [Ping timeout: 240 seconds]
<thoughtpolice>
Ralith: Cross compilation. You want nativeBuildInputs for cross compilation. nativeBuildInputs means cmake will run on the host, but also that it's only there at build time and not a dependency for the resulting closure. You pretty much always want cmake in nativeBuildInputs if you expect you'll use it with a cross compiler
aarvar has quit [Ping timeout: 263 seconds]
asuryawa_ has quit [Remote host closed the connection]
<thoughtpolice>
We ran into this a lot at work. Tons of expressions get this wrong, and unfortunately cmake is used in a lot of projects that find their way into the core closure set it seems...
<thoughtpolice>
Same with pkg-config
asuryawanshi has joined #nixos
Sonarpulse has joined #nixos
fuzzy-id has joined #nixos
<thoughtpolice>
I probably completely fixed cross compilation for 2 dozen packages it otherwise would have worked for by variously moving cmake/pkg-config into nativeBuildInputs
fuzzy-id has left #nixos [#nixos]
<thoughtpolice>
That, or setting `doCheck = (hostPlatform != targetPlatform)` or whatever it is.
Judson1 has quit [Ping timeout: 264 seconds]
<krey>
Ralith: can you explain what this PR does?
<Ralith>
thoughtpolice: hm, I guess I assumed `buildInputs` was copied to `nativeBuildInputs` by default because indeed most packages are broken if not
<Ralith>
krey: in short, it causes nixpkgs to no longer stick -O2 at the end of your g++/clang++ invocation
<thoughtpolice>
Well it's not two way. Everything in buildInputs can be in nativeBuildInputs -- but not everything in nativeBuildInputs should be in buildInputs
<Ralith>
now it sticks it at the start, which is good, because 1. it's the right default and 2. an explicitly supplied -O0 will override it
<{^_^}>
[nixpkgs] @timokau opened pull request #38794 → brial: init at 1.2.3 → https://git.io/vxAJ0
<Ralith>
thoughtpolice: nix automatically strips unreferenced dependencies, though
knupfer has joined #nixos
<krey>
Ralith: I just started using C++ on NixOS. you're saying all my builds are O2 and I don't even know about it?
klntsky_ has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @timokau opened pull request #38795 → cliquer: init at 1.21 → https://git.io/vxAJD
<thoughtpolice>
But it only knows that after a build is done, not before. It must satisfy the dependencies before the build starts. So what will happen is it will try to compile a native armv7 cmake that runs on armv7, because cmake is in your buildInputs and you wanted a cross compiled armv7 "whatever". It says "You must need cmake for armv7 first to run this, so I'll make it". Then it will try to _run it_ and things will go wrong, because how do
<thoughtpolice>
you know not to run it? They just said it was a dependency, the fact it's a build tool too is irrelevant
<Ralith>
krey: yep!
<symphorien>
krey: To opt out you have to export hardeningDisable=all
klntsky_ has joined #nixos
<symphorien>
But I usually forget
<Ralith>
thoughtpolice: ah, yes
<Ralith>
symphorien: just =fortify, actually
<Ralith>
krey: you can see why I'm relieved that such an egregious error is finally(!) being corrected
<symphorien>
Well other flags break old gcc for example
<Ralith>
sucks that it missed 18.03 though
<Ralith>
symphorien: I've spent enough time being incandescently frustrated at mysteriously absent debug symbols that it's burned into my brain at this point >_>
<symphorien>
Happened to me as well
humanoyd has quit [Quit: WeeChat 2.1]
<symphorien>
Gdb telling "value optimized out" with -O0
thblt has quit [Remote host closed the connection]
pkill9 has joined #nixos
thblt has joined #nixos
<{^_^}>
[nixpkgs] @timokau opened pull request #38796 → lcalc: init at 1.23 → https://git.io/vxAUq
<krey>
I'm really saddenned by the lack of documentation
<krey>
I will try to contribute more to the Wiki
asuryawanshi has quit [Ping timeout: 265 seconds]
<krey>
Ralith saved me some future hours by mentioning that PR
Judson1 has joined #nixos
<{^_^}>
[nixpkgs] @timokau opened pull request #38797 → m4rie: init at 20150908 → https://git.io/vxAkR
<Ralith>
you'd consider yourself lucky if it was mere hours
<Ralith>
though I imagine the google results are better these days
<{^_^}>
[nixpkgs] @timokau opened pull request #38803 → rubiks: init at 20070917 → https://git.io/vxALj
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
ryanartecona has quit [Quit: ryanartecona]
hihello has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @timokau opened pull request #38804 → sympow: init at 1.018.1 → https://git.io/vxAta
<{^_^}>
[nixpkgs] @timokau opened pull request #38805 → zn_poly: init at 0.9 → https://git.io/vxAtF
uvowcfwqh has joined #nixos
ilzfsoqtq has quit [Remote host closed the connection]
ndrei_ has quit [Remote host closed the connection]
uvowcfwqh has quit [Remote host closed the connection]
ndrei has quit [Remote host closed the connection]
ndrei- has quit [Remote host closed the connection]
ottidmes has quit [Quit: WeeChat 2.0]
acarrico has quit [Ping timeout: 260 seconds]
vaninwagen has joined #nixos
ndrei has joined #nixos
rauno has joined #nixos
<cransom>
i have a binary cache that was handing out unsigned nars for a short time. i fixed that, but on my client machine now, it's still complaining that the file is unsigned (but it is) and there's no traffic to the cache when it keeps claiming the sig path doesn't exist. i nuked ~/.cache/nix . is there another one hiding somewhere for the nix daemon?
nmikhailov has quit [Quit: Bye bye]
<srhb>
cransom: ~ being /root ?
ndrei has quit [Remote host closed the connection]
ryanartecona has joined #nixos
<cransom>
ugh. ~ was the running user. i didn't think of root, just ~nixbld. root cache purged. fixed.
<cransom>
that seems off to me. i wouldnt' expect the nix-daemon to be actively using /root
pie__ has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @maximedenes opened pull request #38807 → pythonPackages.macpack: init at 1.0.3 → https://git.io/vxAZ2
Myrl-saki has quit [Quit: WeeChat 1.6]
seafood has quit [Quit: seafood]
<boxscape>
I have a question about one of the nix pills. In https://nixos.org/nixos/nix-pills/generic-builders.html , the first example has `inherit binutils-unwrapped' in the .nix file, but then binutils_unwrapped (notice the underscore) in the builder. That can't work, right? The problem is, using binutils-unwrapped in the builder doesn't work either, as far as I can tell, because it looks like - can't be in variable names in bash. Is this si
<boxscape>
something?
<boxscape>
(I solved it by writing `binutils_unwrapped = binutils-unwrapped' in the nix file, but still would like to know if $
<boxscape>
looks like the environment contains a variable called "binutils-unwrapped" anyway, even though I'm not sure how you would define or use that in bash directly...
knupfer has quit [Remote host closed the connection]
Turion has quit [Remote host closed the connection]
<krey>
boxscape: looks like env will set it for you, but it won't work from bash
<boxscape>
guess I'll open a pull request to change that...
pie__ has joined #nixos
pie_ has quit [Read error: Connection reset by peer]
ThatPako has joined #nixos
<ThatPako>
Any idea why a derivation for a pypi package gives me `Permission denied: '/homeless-shelter'` although the code doesn't reference that path anywhere?
<krey>
ThatPako: yes
bpa has quit [Remote host closed the connection]
<krey>
ThatPako: have you tried export HOME=$TMP ?
<ThatPako>
Where?
<krey>
installPhase, I guess?
<krey>
not sure
<boxscape>
ThatPako: fyi, that's the HOME nix assumes if a derivation hasn't been given one, as far as I understand
<ThatPako>
oh, I see
alex__ has joined #nixos
<alex__>
hello
<krey>
boxscape: oh lol
alex__ is now known as apeyroux
<ThatPako>
ohh, I see why the error appears. in the __init__.py it tries to write to `~/.config/`
ThatPako has quit [Quit: Lost terminal]
cfricke has quit [Quit: WeeChat 2.0]
<{^_^}>
[nixpkgs] @timokau opened pull request #38810 → giac: enable checks, separate outputs → https://git.io/vxACa
krey has quit [Ping timeout: 240 seconds]
thblt has joined #nixos
thblt has quit [Remote host closed the connection]
jperras has quit [Ping timeout: 276 seconds]
thblt has joined #nixos
<{^_^}>
[nixpkgs] @Anton-Latukha opened pull request #38811 → handbrake: switch to libav_12 → https://git.io/vxACQ
<guest____>
hello. i'm fighting with compiling openbios (bios for virtual machines). outside nix, i would create a cross compiler for bare metal and use it. on nix, i tried. i had to modify nixpkgs, create my own cross-system, and now, i have a problem (cross ?)-compiling the libc. see the paste https://pastebin.com/9Pb8623H for nixpkgs changes, .nix files, and errors with glibc/musl/uclibc. can you help please?
jperras has joined #nixos
<Myrl-saki>
pie__: The newer tree style tabs is buggy as fhell.
<pie__>
its really slow too for rearranging apparently...
<pie__>
Myrl-saki, what do i do? :(
<pie__>
restarting firefox resulted in the tabs at least getting loaded though
<pie__>
Myrl-saki, is there another addon that actually works well?
atu1 has quit [Quit: WeeChat 2.0]
<pie__>
theres no search function afaict so i dont even knoww how im supposed to start organizing my 2000 tabs
<Myrl-saki>
pie__: Good luck trying to have any tabs persist through a firefox restart.
<maurer1>
My NixOS system is getting only an ipv6 address from a router. My phone gets an ipv4 as well. Any troubleshooting ideas?
<Myrl-saki>
pie__: Anyways, open Add-ons.
<pie__>
Myrl-saki, oh dear? why re: restart
<{^_^}>
[nixpkgs] @timokau opened pull request #38812 → maxima: add various fixes, re-add ecl support → https://git.io/vxAW6
<Myrl-saki>
pie__: Then check Tree Style Tabs' preferences.
<pie__>
(tbh i just kill firefox and use "restore my session")
boxscape has quit [Ping timeout: 260 seconds]
<infinisil>
I've never had firefox purge my tabs, it's always recoverable
<Myrl-saki>
pie__: Scroll down and see "Optimize tree restoration with cache"
<Myrl-saki>
pie__: Tip at the bottom says to toggle it when things die. And well, toggle it when things die.
<Myrl-saki>
pie__: I wish I learned that a month or two ago.
<pie__>
apparently this firefox is supposed to be faster. its slower. but maybe its TST
<Myrl-saki>
pie__: Yeah, TST is weirder now, because it's more "abstracted"
<Myrl-saki>
pie__: The original TST actually took control of Firefox's rendering.
<Myrl-saki>
pie__: At least that's how I understood it.
<pie__>
is there a way "name" an "empty" tree parent?
<pie__>
or something
<pie__>
god
* pie__
cries internally
<pie__>
i update firefox and my world explodes
<Myrl-saki>
pie__: You also use TST as a bookmarking system, don't you?
<pie__>
no i just installed it for the first time
<Myrl-saki>
pie__: How the hell did you manage with 2000 tabs before you had TST?
acarrico has quit [Ping timeout: 264 seconds]
<pie__>
you can search tabs with %
<pie__>
alternatively, "i didnt"
<pie__>
i guess tabs are the new email :P
<pie__>
but thats a tangent: right now: how do i unfuck my world
<Myrl-saki>
pie__: Anyways, that's all the advice I can give. Just good luck.
<pie__>
ok
<pie__>
thanks anyway
* pie__
sighs
<pie__>
i was so hopeful..
simukis has quit [Ping timeout: 264 seconds]
<pie__>
it would take literally a day to rearrange this just because TST is so slow
<zybell_>
Hello guest, because youre cross-compiling you should lookup the difference between nativeBuildInputs
<zybell_>
and buildInputs
<guest____>
zybell_: ok, you're right. however, i don't think it will help to create the cross compiler
nixer has joined #nixos
<nixer>
How can I calculate the narinfo hash (was hoping it is possible from the drv or ouptut path hashes)?
acarrico has joined #nixos
<LnL>
no you can't, you'd need to build it yourself to know that
<nixer>
LnL: Then how does the binary substituter know which narinfo to look up? Or can I calculate the .nar.xz hash?
<symphorien>
guest____: your paste does not tell which derivation fails to build
<symphorien>
is it openbios or a dependency ?
<zybell_>
So that it works
<guest____>
symphorien: NIX_PATH=/path/to/modified/nixpkgs nix-build -A openbios. for example, when trying to use glibc, that's the package nix-build-glibc-2.26-131-powerpc-unknown-linux-gnu.drv
<LnL>
nixer: the way substitutes work is very simple
<symphorien>
it seems that you have a somewhat working compiler -- at least it can compile itself, so it suggests the problem is not nix but just that arch specific patches lack. But I am no expert
<guest____>
symphorien: any idea where i should plug it? pkgs/development/compilers/gcc/7/default.nix?
infinisil has quit [Quit: Configuring ZNC, sorry for the join/quits!]
<symphorien>
if you problem is compiling glibc, more in glibc's file
<{^_^}>
[nix-pills] @Ericson2314 merged pull request #64 → Change pill 04 to reflect that floating point numbers now exist → https://git.io/vxABp
<{^_^}>
[nix-pills] @Ericson2314 pushed commit from @JakobBruenker to master « change pill 04 to reflect that floating point number now exist »: https://git.io/vxA0o
<symphorien>
guest____: you might also ask Sonarpulse, he seems online and knows a lot about cross compilation
<Sonarpulse>
hi
Mateon3 has joined #nixos
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
ryanartecona has joined #nixos
Mateon1 has quit [Ping timeout: 256 seconds]
Mateon3 is now known as Mateon1
<zybell_>
guest____:including a glibc header in a musl build sounds somewhat incompatible to me.
hamishmack has quit [Quit: hamishmack]
ryanartecona has quit [Ping timeout: 240 seconds]
<gchristensen>
ryantm: ping
<kandinski>
I'm struggling to install flake8 (python linting program) for python 2.7. I have python27Packages.flake8 in my /etc/nixos/configuration.nix and I have rebuilt and switched, but it isn't available.
<gchristensen>
dotlambda: pin
<gchristensen>
g
<symphorien>
kandinski: nix-env -iA nixos.python27Packages.flake8 works for me
acarrico has quit [Ping timeout: 240 seconds]
<symphorien>
can you paste what you did ?
<kandinski>
symphorien: I'm on unstable, may be that's it.
<symphorien>
no idea. I am on 18.03
<kandinski>
symphorien: yes, I can see it as a program on the shell, but I can't import it as a library on python, even if I open a new shell.
<ekleog>
dotlambda: hi! just bumped my production release-18.03, and il looks like https://github.com/NixOS/nixpkgs/pull/38000#issuecomment-377349200 broke dovecot's deliver executable (at least in my setup): “Panic: file message-address.c: line 147 (parse_angle_addr): assertion failed: (*ctx->parser.data == '<')”. Was there an important fix to backport there?
<ekleog>
(or would it be maybe possible to revert the backport?)
Fare has quit [Ping timeout: 276 seconds]
<{^_^}>
[nix-pills] @Ericson2314 merged pull request #46 → Remove unthrown error from function argument set example → https://git.io/vxAuK
<{^_^}>
[nix-pills] @Ericson2314 pushed to master « Redefine `mul` to disambiguate »: https://git.io/vxAu6
<gchristensen>
!m Sonarpulse
<[0__0]>
You're doing good work, Sonarpulse!
<Sonarpulse>
:)
<gchristensen>
ekleog: do you run a mailserver on nixos?
<ekleog>
gchristensen: I do, for my family and myself :)
c0ffee152 has joined #nixos
jrolfs has joined #nixos
<ekleog>
(back soon, looks like some state wasn't cleanly rolled-back when running the switch --rollback, so going to reboot instead of spending too much time with the mailserver down)
ekleog has quit [Quit: back soon]
ekleog has joined #nixos
{^_^} has quit [Ping timeout: 260 seconds]
<ekleog>
ok SO
<ekleog>
dovecot apparently breaks the ABI at every patch-level update
<ekleog>
and even rebooting didn't get rid of the “lda: Fatal: Couldn't load required plugin /etc/dovecot/modules/lib90_sieve_plugin.so: Module is for different ABI version 2.3.ABIv0(2.3.0.1) (we have 2.3.ABIv1(2.3.1))”
<ekleog>
well, at least that breaks only sieve, I can live with that until the dovecot issue is fixed
hiratara has joined #nixos
<ekleog>
hmm actually it doesn't even break sieve?
<ekleog>
meh, so I guess it's not that bad, but this may be good to know for the next backport of even a patch-level dovecot update :p
hamishmack has joined #nixos
<ekleog>
just a red message in the logs every ~15 seconds, all is well :D
<kandinski>
!libraries
<kandinski>
!library
MP2E has joined #nixos
<kandinski>
symphorien: if it's not abusing your patience, do you mind explaining to me how I can run spacemacs so it can see flake8 as a module so the linting can proceed?
xy2_ has quit [Ping timeout: 240 seconds]
Rusty1_ has quit [Quit: Konversation terminated!]
kragniz is now known as kgz
jperras has quit [Ping timeout: 265 seconds]
matklad has quit [Remote host closed the connection]
<ekleog>
oh I just got why there was this red message in the logs :( apparently opensmtpd retries the same delivery-command, which means it retries with the updated-dovecot's deliver
<ekleog>
so messages enqueued while the mailserver was down aren't getting unqueued
jperras has joined #nixos
<yorick>
I would like a filtersource that deletes subdirs that end up empty after filtersource