<blankhart>
that seem to be the reason my attempts to build tensorflow don't work - selections of particular versions of haskell libraries that have since been updated
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Purple-mx>
where are the 'SLNOS' patches/tree?
<Purple-mx>
or are they keeping it secret
<Purple-mx>
Id like to start writing s6 services
slack1256 has joined #nixos
adisbladis has quit [Quit: WeeChat 2.1]
adisbladis has joined #nixos
slack1256 has quit [Remote host closed the connection]
blankhart has quit [Quit: WeeChat 1.9.1]
adisbladis has quit [Quit: WeeChat 2.1]
adisbladis has joined #nixos
daveo_ has quit [Read error: Connection reset by peer]
adisbladis has quit [Quit: WeeChat 2.1]
adisbladis has joined #nixos
Izorkin has joined #nixos
logzet has joined #nixos
daveo has quit [Ping timeout: 252 seconds]
<typetetris>
blankhart: I fixed hunspell-hs in nixos and upstreamed the change, so it is fixed on hackage as well.
lawlesseel has joined #nixos
hamishmack has quit [Ping timeout: 268 seconds]
mayhewluke has quit [Ping timeout: 268 seconds]
mayhewluke has joined #nixos
b has quit [Quit: Lost terminal]
Drakonis[m] has quit [Ping timeout: 260 seconds]
rycee[m] has quit [Ping timeout: 255 seconds]
devr[m] has quit [Ping timeout: 256 seconds]
MichaelEden[m] has quit [Ping timeout: 252 seconds]
Elephant454[m] has quit [Ping timeout: 252 seconds]
Dt[m] has quit [Ping timeout: 252 seconds]
tfc[m] has quit [Ping timeout: 252 seconds]
timokau[m] has quit [Ping timeout: 240 seconds]
wolkenbruch[m] has quit [Ping timeout: 260 seconds]
schmittlauch[m] has quit [Ping timeout: 260 seconds]
rnhmjoj[m] has quit [Ping timeout: 260 seconds]
nmikhailov[m] has quit [Ping timeout: 252 seconds]
kainospur[m] has quit [Ping timeout: 252 seconds]
hl[m] has quit [Ping timeout: 252 seconds]
ahbnr[m] has quit [Ping timeout: 264 seconds]
goibhniu[m] has quit [Ping timeout: 264 seconds]
xobroll[m] has quit [Ping timeout: 264 seconds]
k0d3fr34k[m] has quit [Ping timeout: 264 seconds]
musicmatze[m] has quit [Ping timeout: 264 seconds]
omawnakw[m] has quit [Ping timeout: 264 seconds]
dtz[m] has quit [Ping timeout: 264 seconds]
fgaz has quit [Ping timeout: 264 seconds]
timclassic has quit [Ping timeout: 264 seconds]
rdesfo[m] has quit [Ping timeout: 260 seconds]
DavidLeung[m] has quit [Ping timeout: 260 seconds]
U[m] has quit [Ping timeout: 260 seconds]
lkjhgfdsa00xxx[m has quit [Ping timeout: 260 seconds]
CoopDot[m] has quit [Ping timeout: 260 seconds]
sargon[m] has quit [Ping timeout: 260 seconds]
bhipple[m] has quit [Ping timeout: 260 seconds]
bennofs[m] has quit [Ping timeout: 260 seconds]
wervenyt[m] has quit [Ping timeout: 256 seconds]
hendrik[m]1 has quit [Ping timeout: 256 seconds]
craige[m] has quit [Ping timeout: 256 seconds]
bendlas[m] has quit [Ping timeout: 256 seconds]
Khorne[m]1 has quit [Ping timeout: 252 seconds]
PlasmaStrike[m] has quit [Ping timeout: 252 seconds]
bkchr[m] has quit [Ping timeout: 260 seconds]
TaoHansen[m] has quit [Ping timeout: 260 seconds]
mudri[m] has quit [Ping timeout: 260 seconds]
Ralith has quit [Ping timeout: 260 seconds]
tokudan[m] has quit [Ping timeout: 260 seconds]
Pneumaticat has quit [Ping timeout: 240 seconds]
florianjacob has quit [Ping timeout: 240 seconds]
MarkOtaris has quit [Ping timeout: 255 seconds]
philipp[m] has quit [Ping timeout: 264 seconds]
admintgs[m] has quit [Ping timeout: 264 seconds]
thefloweringash has quit [Ping timeout: 260 seconds]
slabity has quit [Ping timeout: 260 seconds]
sphalerit has quit [Ping timeout: 260 seconds]
Purple-mx has quit [Ping timeout: 276 seconds]
ejpcmac has quit [Ping timeout: 260 seconds]
leftfold[m] has quit [Ping timeout: 255 seconds]
happyente[m] has quit [Ping timeout: 276 seconds]
adamantium has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
timclassic has joined #nixos
Ralith has joined #nixos
schmittlauch[m] has joined #nixos
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nixos
bennofs[m] has joined #nixos
florianjacob has joined #nixos
kyren has quit [Read error: Connection reset by peer]
kyren has joined #nixos
fgaz has joined #nixos
roberth has joined #nixos
hyper_ch2 has joined #nixos
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
aither has joined #nixos
shabius has quit [Read error: Connection reset by peer]
shabius has joined #nixos
sb0 has quit [Quit: Leaving]
slyfox_ has joined #nixos
FRidh has joined #nixos
slyfox has quit [Ping timeout: 268 seconds]
nixy has quit [Ping timeout: 264 seconds]
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
nixy has joined #nixos
periklis has joined #nixos
trcc has joined #nixos
periklis has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @FRidh pushed 312 commits to staging-next: https://git.io/fAYn0
hamishmack has joined #nixos
witchof0x20 has quit [Remote host closed the connection]
witchof0x20 has joined #nixos
Ariakenom has joined #nixos
<jonge>
hi there. is there a possibility to tell nix to just ignore binary caches if they are offline?
Fare has quit [Ping timeout: 272 seconds]
<typetetris>
jonge: `--option substituters ""`
<srhb>
jonge: No, but you can ad-hoc specify --substituters ""
<jonge>
srhb: typetetris: my use case is that we have some haskellers in the company and thus rebuild a lot of libs all the time. if each other could just set each other's laptop as binary substituter for building as some kind of default setting, this would be pretty cool.
<jonge>
providing that list in the cmd line on every nix-shell or nix-build would be very clunky :(
endformationage has quit [Quit: WeeChat 1.9.1]
<srhb>
jonge: There's no good way to do that. Better to make everyone push their builds to a shared cache.
<jonge>
srhb: we will soon have a shared cache in the company intranet. but then again nix is useless if that is not available outside. so it seems that the usecase of a binary cache that is "mostly" online is kind of not a supported case in nix configs at all?
orivej has joined #nixos
ThatDocsLady has joined #nixos
<srhb>
jonge: No, not really.
<srhb>
jonge: Why not just make it available outside? Through a VPN or whatnot.
<jonge>
srhb: yeah it is available via vpn. i am using nix in order to get away from depending on the company vpn for everything, because sometimes it's not reachable very well (for good and bad reasons)
<typetetris>
jonge: Would it be to cumbersome to set up a bash alias for example `alias nix-build-outside = nix-build --option substituters ""` and use `nix-build-outside` if your combanies cache isn't available to you?
<{^_^}>
[nixpkgs] @leenaars opened pull request #45666 → pdftag: init at 1.0.3 → https://git.io/fAYCZ
Izorkin has quit [Ping timeout: 264 seconds]
<jonge>
typetetris: i think this is feasible. i hope that this works out
<srhb>
jonge: If at all possible, you could offer up a secured version of the cache outside.. Eg with http auth on.
<jonge>
srhb: not sure if this is smart. we're building our proprietary IP with nix
<srhb>
And there's also the option of using a a ssh substituter, if it's possible to ssh in through a bastion or something.
<srhb>
jonge: Right..
<srhb>
jonge: Meh, it's hard to make it very ergonomic and keep it very secure. :)
<jonge>
srhb: right. although... if nix would say "let's first see which caches are available.... only 1? ok, let's use just that, then..."
Izorkin has joined #nixos
<srhb>
jonge: Maybe you could wrap this up in a nicer checker around nix commands that chooses substituters based on some initial test?
<srhb>
Since you can always _remove_ substituters even as an unprivileged user, that should be doable.
<jonge>
srhb: that makes a lot of sense, yes. although i wonder if this functionality would be accepted if someone provided the patches for it.
<srhb>
I'd be happy to back it at least :)
<jonge>
which component would that be? just the nix binary?
<srhb>
But if not, I think a wrapper makes a lot of sense and wouldn't be too hard
<srhb>
jonge: Something in Nix, possibly the daemon? Not sure.
<srhb>
Although maybe doing it in the binary is indeed simpler
<srhb>
Since, again, we're only offering to remove some substituters.
<jonge>
i guess the only scenario where you don't want to ignore offline substituters is on pure-deployment machines where you don't want/can't compile yourself for some reason, right?
<srhb>
I don't want to end up having to build chromium ever, but I guess people have different opinions there :P
<clever>
jonge: i have previously seen a bug in the livecd that broke binary caches, and sometimes a user just thinks a rebuild-the-world style gentoo install is normal, lol
<jonge>
lol.
<srhb>
To be fair, we do have a fair amount of people coming from Gentoo :P
<jonge>
yeah when i tell my friends about nixos they usually say "sounds like gentoo on steroids"
<clever>
gentoo was my main OS, prior to discovering nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
amosbird has joined #nixos
adisbladis has quit [Quit: WeeChat 2.1]
adisbladis has joined #nixos
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
goibhniu has joined #nixos
civodul has joined #nixos
<viric>
How do people roam with new wifi access points, in NixOS?
arianvp has joined #nixos
<viric>
I have my own scripts since 10 years ago but maybe something came to do that job
* etu
just use NetworkManager
<viric>
what is that? a daemon with multiple clients?
kyren has joined #nixos
<etu>
Yeah
<viric>
I will try
<viric>
does it allow choosing cable, with specific static ip address, and all that?
<viric>
(if told so)
<{^_^}>
[nixpkgs] @peti closed pull request #45658 → libyaml: update from 0.1.7 to 0.2.1 → https://git.io/fAmxc
<etu>
viric: It supports lots of stuff, I find it good on desktops etc, not much on servers.
<{^_^}>
[nixos-homepage] @edolstra merged pull request #235 → Update the number of packages in index.tt and about.tt → https://git.io/fALjy
<{^_^}>
[nixos-homepage] @edolstra pushed 2 commits to master: https://git.io/fAY4U
<ekleog>
the issue I personally had with it is when managing a variety of VPNs (as well as the fact it becomes near-to-impossible(?) to git the networks configuration then)
<{^_^}>
[nixpkgs] @xeji pushed commit from @dguibert to master « udftools: 1.0.0b3 -> 2.0 (#45583) »: https://git.io/fAY46
__Sander__ has joined #nixos
<ekleog>
etu: problem is, IIRC it's XML, so not really write-able by hand, and I'd rather not put my wifi passwords in the nix store until RFC5 isn't implemented :°
<etu>
ekleog: Nope it's not xml
<srhb>
etu: Oh, ouch, yes, I believe you.
<ekleog>
(for VPNs, NM doesn't support eg. tinc, and IIRC they closed the issue asking for support as wontfix because the UI of tinc is just so different from the UI all other VPNs provide (not criticizing, that does make sense))
<etu>
ekleog: Looks like ini-files with [sections]
trcc has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fAY4p
<ekleog>
etu: hmm…? somehow I had remembered from last time I checked (~2yrs ago?) that it was a file format I'd never manage to write by hand, sounds like I was misremembering, or things changed :)
kenshinCH has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed 5 commits to haskell-updates: https://git.io/fAYBJ
* etu
doesn't know how it was before, but now they are kinda nice :)
<ekleog>
(can't find again the wontfix'd issue for tinc support in NM, so let's call that FUD too, the only tangible fact being that NM doesn't currently support tinc and https://blogs.gnome.org/dcbw/2011/05/24/networkmanager-0-9-pidgin-and-tinc/ makes it sound like it isn't close to being supported :))
makefu has joined #nixos
<etu>
ekleog: Doesn't seem to be any networkmanager-tinc package or so either :/
* etu
is planning to use wireguard in the future for his private use anyways
<etu>
But work requires me to have cisco vpn
<ekleog>
yeah, wireguard is among my list of things to try someday
<ekleog>
blocked on it being upstreamed, currently :°
<viric>
etu: what's wrong on servers, from network-manager?
<etu>
viric: Well, it works there as well. But I tend to want to configure IP's statically. Sure you can do that with NetworkManager if you want. But I'd prefer to do it in Nix on servers.
thc202 has joined #nixos
Thra11 has joined #nixos
<r2d2leboss>
symphorien: Thanks. I've been able to build and now run nix on Windows using Cygwin with some small fixes. Cygwin is acceptable for nix binary itself. However, my goal is to produce native Windows binaries then using MinGW. I now have some issues with ".nix" files (especially CMake) but it's another issue.
<{^_^}>
[nixpkgs] @Profpatsch pushed commit from @regnat to master « bazel: 0.15.2 -> 0.16.0 »: https://git.io/fAYKB
<infinisil>
adisbladis: yes i am, but I'm actually considering switching away to a simple nixos-rebuild-in-a-for-loop
<infinisil>
Because I don't need all that nixops flexibility, all my machines are just 'other' targets (normal nixos machines)
eeva has quit [Remote host closed the connection]
b has joined #nixos
phreedom has quit [Remote host closed the connection]
eeva has joined #nixos
<infinisil>
And some drawbacks are: no easy way to evaluate machine configuration on its own, i can't easily nix-instantiate --eval '<nixpkgs/nixos>' -A config.foo.bar. I made a small hack so I could have this anyways, but it's not nice
<infinisil>
I can't make it use nix 2.0 afaik because nixops uses 1.11
phreedom has joined #nixos
<infinisil>
I originally used nixops so I could have machines depend on each others configuration, but this is suuper slow with nixops
<infinisil>
Also having to keep around the nixops state is annoying
<infinisil>
adisbladis: so yeah, that's my experience
<tilpner>
infinisil - I structured mine into devices.*, an attrset of system evaluations, and use that to deploy with nix copy
<tilpner>
(So no state)
<tilpner>
I then type "nid device_name" and it deploys there
<gchristensen>
infinisil: maybe look at nix-deploy
<tilpner>
It does rely on having your ssh key registered everywhere, so not sure how well it would work for shared deployments
<infinisil>
tilpner: gchristensen: thanks I'll take a look those
logzet has joined #nixos
<ij>
I made an expression for vitetris: https://clbin.com/o48Z0 Should I fix anything before I make a PR?
<ocharles>
Anyone running a laptop with an nVidia card and has a way to get vulkan apps to run on the nvidia card?
rtjure has quit [Ping timeout: 276 seconds]
<ij>
Ariakenom, Check out nixpkgs source, install nixos, play with nix-shell for some development project.
<ij>
The answer might be different depending on what goal you've got in mind.
<Ariakenom>
ij: I've installed it and played iwth it for a while. Was looking to see if there was some other recommended way. I'll continue on my path then!
<Ariakenom>
thanks
<ij>
Ariakenom, surely also learn the syntax, to program in it and make some derivations
<genesis>
ij : and use fetchFromGitHub since it saves bandwith fetching tarball if i remember
<ij>
how
<disasm>
hyper_ch: what's up? Saw you pinged a few days back.
<srhb>
ij: grep -r fetchFromGitHub in pkgs/ and you'll find a lot of examples :)
<ij>
Sorry — nono, I know how to use it :) I was wondering why does it save bandwidth?
<srhb>
Ah, github serves automatic tarballs of that commit ref
<srhb>
Ie. flat and without git history
<Ariakenom>
ij: indeed
<ij>
ah
<srhb>
We grab those with fetchFromGitHub :)
<srhb>
ij: It turns the 800MiB of nixpkgs into like 10MiB :-P
<manveru>
3 years of using nixpkgs and i never read that comment... :P
<gchristensen>
"ordering"
trcc has quit [Remote host closed the connection]
trcc has joined #nixos
philippD has joined #nixos
aarvar has quit [Ping timeout: 272 seconds]
rtjure has joined #nixos
trcc has quit [Ping timeout: 272 seconds]
<ij>
how should I update my old nixpkgs fork? Just --force it?
<{^_^}>
[nixpkgs] @siers opened pull request #45672 → vitetris: init at 0.57.2 → https://git.io/fAYSt
rprije has quit [Ping timeout: 272 seconds]
<ij>
me ↑
<genesis>
manveru : i should admit i neither :')
<genesis>
s/i/me
<etu>
ij: I usually add upstream nixpkgs as an additional remote that I call upstream. Then I do: git fetch upstream; git rebase upstream/master; git push
<etu>
ij: Unless you commit things on your own master you won't need to force it ever.
Dedalo has joined #nixos
orivej has joined #nixos
iyzsong-x has joined #nixos
FRidh has quit [Quit: Konversation terminated!]
<genesis>
ij: let's try this nix-review on your PR
iyzsong has quit [Ping timeout: 268 seconds]
<avn>
ij: I usually rebase my WIP branch on top of current master
trcc has joined #nixos
iyzsong-x has quit [Read error: Connection reset by peer]
<yorick>
adisbladis: I used to be, but why use nixops instead of nixos-rebuild --target-host if you don't need any of the provisioning
<mkaito>
how do I ask nix to tell me the output store path of a derivation without actually building it?
<gchristensen>
what for, mkaito? and in the Nix language or in the CLI?
<yorick>
mkaito: nix show-derivation
<mkaito>
yorick: cheers
<mkaito>
to copy a closure from my CI server :P
<yorick>
mkaito: this is why I put the output names in the buildkite metadata
revtintin has joined #nixos
<mkaito>
oh good to know
<infinisil>
mkaito: `nix-instantiate --eval '<nixpkgs>' -A hello.outPath` would work too
<infinisil>
Although I guess json is nicer
<mkaito>
doesn't that build the derivation?
<mkaito>
"package lacks a valid signature" -> "you're not in the cool club, please use sudo or add yourself to trusted users". Nix error messages are meme worthy dammit.
<infinisil>
mkaito: Nope, nix-instantiate never builds anything, and with the --eval flag it doesn't instantiate the derivation either
<infinisil>
And nix-instantiate is actually much faster I'm noticing
<infinisil>
Probably because nix show-derivation *does* instantiate the derivation
bkchr[m] has joined #nixos
<bkchr[m]>
When I use `crossSystem`, `nativeBuildInputs` should be used from the compiling platform?
<gchristensen>
(infinisil, nix-instantiate will build stuff if you use IFD)
<{^_^}>
cannot import '/nix/store/ilg7agjd90ifspmdggnq8qz83w23mc54-foobar', since path '/nix/store/bbcchb4kz4hs2xpf8hpam2wjg8rm77bb-foobar.drv' is not valid, at (string):171:1
endformationage has joined #nixos
<infinisil>
gchristensen: Apparently so, the bot is using nix-instantiate --eval
exarkun_ has quit [Read error: Connection reset by peer]
hax404 has quit [Ping timeout: 255 seconds]
<jD91mZM2>
Hi! I can't run duplicity with a BackBlaze B2 backend. On stable, it complains about "FatalBackendException: Bucket cannot be created". On unstable, however, it's a little more informative and says "BackendException: B2 backend requires B2 Python APIs (pip install b2)". Is this a fault of the package? Should I make a PR to fix it?
the-kenny has quit [Ping timeout: 268 seconds]
ericsagnes has joined #nixos
Leo` has quit [Ping timeout: 268 seconds]
eisbaer-north has quit [Ping timeout: 268 seconds]
<goibhniu>
jD91mZM2: a PR to fix it would be great!
eisbaer-north has joined #nixos
dkibi has quit [Remote host closed the connection]
<jD91mZM2>
goibhniu: Should it be an optional dependency using some kind of feature flag?
exarkun_ has joined #nixos
the-kenny has joined #nixos
hax404 has joined #nixos
iyzsong has quit [Ping timeout: 272 seconds]
<goibhniu>
I have no idea what BackBlaze is, but if it's commonly used and doesn't add much to the size of the closure, maybe you could just include it by default?
<jD91mZM2>
goibhniu: It's a cheap storage service that can be used for backend in duplicity. Thanks for the input, will make a PR asap!
<goibhniu>
cool, thanks!
ben has joined #nixos
bennofs has quit [Ping timeout: 264 seconds]
<philippD>
Are there any cool ways of integrating nix with incremental builds or file watchers? I currently just run entr that watches my sources and runs nix-build each time they change but that seems a bit janky.
blankhart has quit [Ping timeout: 276 seconds]
<mdash>
philippD: does it work poorly?
<manveru>
philippD: that's pretty much my setup too
<manveru>
it's alright if you make the derivations granular enough that you don't rebuild the whole thing every time... but hard to do :|
<philippD>
It does a full compile each time. but cabal for example allows you to just rebuild changed files which can save a lot of time.
<manveru>
usually a nix-shell is better then
Leo` has joined #nixos
Fare has joined #nixos
<nefix_>
Is git-flow avaliable in NixOS?
<etu>
,locate git-flow
<{^_^}>
Found in packages: oh-my-zsh, gitAndTools.gitflow
<nefix_>
Maybe the second?
<etu>
nefix_: Yes, in: gitAndTools.gitflow
<etu>
:)
<nefix_>
Is it installed as the other packages? Because normally the package names aren't started with gitAndTools
<etu>
Just like others but with the gitAndTools. in there
<nefix_>
like
nadley has quit [Remote host closed the connection]
<nefix_>
nix-env -i gitAndTools.gitflow ?
<etu>
Yeah, that should work
<nefix_>
And in the configuration?
<manveru>
-iA
<manveru>
nefix_: the same
<nefix_>
Okay, thanks!
<{^_^}>
[nixpkgs] @alexbiehl opened pull request #45676 → More conservative SCC tagging for Haskell libraries → https://git.io/fAYxd
<{^_^}>
[nixpkgs] @alexbiehl closed pull request #45674 → More conservative SCC tagging for Haskell libraries → https://git.io/fAY5a
<{^_^}>
[nixpkgs] @alexbiehl closed pull request #45676 → More conservative SCC tagging for Haskell libraries → https://git.io/fAYxd
<{^_^}>
[nixpkgs] @alexbiehl opened pull request #45677 → More conservative SCC tagging for Haskell libraries → https://git.io/fAYpU
<tilpner>
jD91mZM2 - Just yesterday, someone had the same problem. Solved by adding backblaze-b2 to propagatedBuildInputs. I suggested adding an off-by-default config argument to duplicity that would add this dependency
<jD91mZM2>
tilpner: Oh, backblaze-b2 is a python package already?
cfricke has joined #nixos
<jD91mZM2>
I just tried to make a new one called "b2" :|
Izorkin has quit [Ping timeout: 264 seconds]
<Thra11>
What do I need to do to get the pkg-config setup hook to add a dependency to PKG_CONFIG_PATH? I want cmake to be able to find lcms2, which has a pkgconfig file at /nix/store/8h...mf-lcms2-2.9-dev/lib/pkgconfig/lcms2.pc
the-kenny has quit [Ping timeout: 264 seconds]
ben has quit [Ping timeout: 264 seconds]
eisbaer-north has quit [Remote host closed the connection]
<Enzime>
is there a difference between using disabled and meta.broken in a derivation?
Fare has quit [Ping timeout: 252 seconds]
dbmikus__ has joined #nixos
<nefix_>
Could someone try to explain me how pkgs.fetchFromGithub works?
<Thra11>
I can't seem to find any documentation about using cmake + pkgconfig in nix builds, but it's such a common way for packages to find their dependencies, that it must work somehow.
orivej has joined #nixos
the-kenny has joined #nixos
johanot has quit [Quit: leaving]
<nefix_>
How can I get the sha256 of a commit?
<samueldr>
,tofu nefix_
<{^_^}>
nefix_: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<nefix_>
What?
<Enzime>
nefix_: where is this commit?
<Enzime>
are you looking for the commit hash?
<nefix_>
Is the nixpkgs latest commit
<Enzime>
nefix_: why do you want the sha256 of a commit?
<nefix_>
for pkgs.fetchFromGitHub
<yorick>
nefix_: nix-prefetch-github exists now
<nefix_>
what's that?
<Enzime>
nefix_: what samueldr was trying to tell you is just put in any hash that's wrong
<Enzime>
and it'll tell you what the right hash is
<Enzime>
then you just replace the incorrect hash with the correct one
<nefix_>
Oh I see
<nefix_>
Thanks both of you!
hyper_ch2 has quit [Quit: Page closed]
Aexoden has joined #nixos
Aexoden has quit [Client Quit]
Aexoden has joined #nixos
ThatDocsLady has quit [Remote host closed the connection]
cfricke has quit [Quit: WeeChat 2.1]
ThatDocsLady has joined #nixos
swflint has quit [Ping timeout: 265 seconds]
<genesis>
should have a magic hash mecanism :')
pmade has joined #nixos
swflint has joined #nixos
<yorick>
is there something like spiped in reverse? servers phoning home so I can ssh into them?
<yorick>
but with a lot of resilience?
<gchristensen>
like a RAT? :)
Fare has joined #nixos
<yorick>
yes. the VPN is too error-prone
Ariakenom has quit [Ping timeout: 252 seconds]
<philippD>
Is there a way to check if a file is a directory or a real file in a nix expression?
<srk>
yorick: tor :)
<yorick>
srk: too resource-intensive, and also often fails when something changes
<genesis>
philippD isdirectory
<gchristensen>
yorick: maybe you can more clearly describe the problem you're having and trying to solve, so we can think about the X in the X-Y problem
<srk>
yorick: I'm about to try wireguard, looks nice
qyliss has quit [Quit: bye]
qyliss^work has quit [Quit: bye]
<philippD>
genesis: where is isdirectory?
<gchristensen>
zerotier is nice
<yorick>
gchristensen: so I'm setting up wireguard, but if it fails (dns failure or systemd weirdness), then we can't reach the thing and need to get physical access
<gchristensen>
isdirectory isn't a thing, genesis, philippD
<yorick>
gchristensen: I was wondering if there is something more resilient, that tries to reconnect
<gchristensen>
yorick: maybe your systemd job needs a Restart directive and a timeout, and maybe a timer which triggers a restart if it is Failed
<yorick>
gchristensen: the wireguard job is a oneshot, so it can't restart
<genesis>
sorry :)
<genesis>
stats.isDirectory ?
qyliss has joined #nixos
Denommus has quit [Read error: Connection reset by peer]
<gchristensen>
genesis: this isn't a Nix feature I know of, what is stats.isDirectory referring to?
<yorick>
philippD: builtins.readDir, see if it errors
viric_ is now known as viric
<gchristensen>
yorick: not even a Restart=failed directive?
<yorick>
gchristensen: systemd says the oneshot service has to be Restart=none
<yorick>
I can change the Type, but it will consider it `Started` prematurely
qyliss^work has joined #nixos
<gchristensen>
yorick: w.r.t. readDir, how would you handle an error? I don't think you can
<yorick>
gchristensen: builtins.tryEval?
<gchristensen>
philippD: why do you want to do that?
<yorick>
builtins.readDir the parent :)
<gchristensen>
yorick: you could make it a "notify" job type, where you tell systemd if it is up
<{^_^}>
#45392 (by dguibert, 6 days ago, open): nixos/wireguard: setup interface with systemd-networkd
[Leary] has quit [Ping timeout: 240 seconds]
<philippD>
gchristensen: I create the arguments to my actual build program in nix. If the `src` attribute is a directory I have to add a special flag. I would like to build the whole argline in nix instead of inside the buildPhase script.
<selfsymmetric-pa>
I could just be overriding things incorrectly. I'm new to the syntax.
johanot has joined #nixos
<selfsymmetric-pa>
Er, sorry, I've added a typo on line 11. I should have pasted `withXwidgetsx = true;`. That's not my problem, since I compiled it without the typo and it still didn't have xwidgets support.
johanot has quit [Remote host closed the connection]
<gchristensen>
philippD: yeah, probably better to not do it in Nix.
<symphorien>
probably more parens: (emacs.override {...}).overrideAttrs
<jtojnar>
Thra11: you just add the dependency to buildInputs and cmake and pkgconfig to nativeBuildInputs and it should just work
<jtojnar>
when there are some packages listed in Requires field of the pc file, you will need to add them as well if the package does not propagate them but that does not seem to be the case with lcms2
Fare has quit [Ping timeout: 272 seconds]
<symphorien>
selfsymmetric-pa: also line 1 is one brace too many
Fare has joined #nixos
<symphorien>
line 11*
erasmas has joined #nixos
<selfsymmetric-pa>
It passes the syntax checker! An awwww, webkitgtk is marked as "insecure". :(
<selfsymmetric-pa>
I'll have to think about whether I really want it now. XD
periklis has quit [Ping timeout: 264 seconds]
worldofpeace has joined #nixos
dbmikus__ has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
<Thra11>
jtojnar: I've added pkgconfig to nativeBuildInputs. However, if I run nix-shell, PKG_CONFIG_PATH does not appear to be set. Is that to be expected?
Ariakenom has joined #nixos
mayhewluke has quit [Ping timeout: 264 seconds]
<mkaito>
infinisil: for what it's worth, nix-instantiate --eval doesn't seem to do what I expected, it seems to spit out a non-forced AST or something rather than a store path.
<infinisil>
mkaito: nix-instantiate --eval '<nixpkgs>' -A hello.out
<mkaito>
what I'm looking at is not in nixpkgs
orivej has quit [Ping timeout: 244 seconds]
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<mkaito>
infinisil: that exact command spits out what looks like an unforced internal representation of nix
<infinisil>
mkaito: Oh, sorry, outPath instead of out
<mkaito>
that does it :D
<mkaito>
trying to eval an unbuilt derivation of mine, it does try to build it instead of just spitting out the corresponding store path though
<infinisil>
mkaito: Your command is?
<mkaito>
as this is not in nixpkgs, and default.nix is in PWD, I'm trying `nix-instantiate --eval -A foo.outPath`, since `nix-build -A foo` builds the thing.
Fare has quit [Ping timeout: 264 seconds]
<infinisil>
And nix-instantiate --eval really starts the build??
<mkaito>
yep
<infinisil>
Is it using IFD?
<infinisil>
mkaito: Try adding the --readonly-mode argument as well
<mkaito>
building stuff again
<infinisil>
mkaito: Is your code online?
<mkaito>
no and I can't share without sanitizing the living crap out of it :(
<infinisil>
Okay, so are you using IFD or not?
<mkaito>
what's that?
<infinisil>
,IFD
<{^_^}>
import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2
<infinisil>
This would require starting a build to do an evaluation, but on my tests this fails with --eval
<mkaito>
yorick: does that look familiar?
juhe has joined #nixos
<infinisil>
Also something like `pkgs = import ((import <nixpkgs> {}).fetchFromGitHub { owner = "NixOS"; repo = "nixpkgs"; ... }) {}` uses IFD, but only to get a nixpkgs version
<mkaito>
hmmm that might be
<mkaito>
I didn't write half of this, as you might have guessed by now
<infinisil>
mkaito: What's your nix version?
<mkaito>
2.0.4
<infinisil>
Yeah still weird then, in my tests --eval couldn't cause builds
<infinisil>
Using the same version
<mkaito>
maybe there's some of this IFD going on somewhere, but I don't see anything
<{^_^}>
cannot import '/nix/store/ilg7agjd90ifspmdggnq8qz83w23mc54-foobar', since path '/nix/store/bbcchb4kz4hs2xpf8hpam2wjg8rm77bb-foobar.drv' is not valid, at (string):171:1
<infinisil>
^^ This is what the error should look like when --eval tries to do IFD
<infinisil>
Oh well, not sure what's going on
<mkaito>
how about this: import (import ./nixpkgs-src.nix) { overlays = [ (import ./pkgs) ]; }
Izorkin has joined #nixos
nbardiuk has joined #nixos
<infinisil>
yup that's IFD
<juhe>
Hi, I have troubles getting compilation for AVR working, I get the "fatal error: avr/io.h: No such file or directory", even though the avr-libc-2.0.0 is installed. I know it worked maybe ~2 month ago, though I've updated couple of times since then and do not know what generation it was working in. Anybody has/had similar issue?
mayhewluke has joined #nixos
buckley310 has joined #nixos
<symphorien>
,library juhe
<{^_^}>
juhe: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
johanot has joined #nixos
johanot has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
<Thra11>
jtojnar: 'nix-shell /mnt/storage/nixpkgs/default.nix -A opencolorio --pure'
ThatDocsLady has quit [Remote host closed the connection]
<juhe>
Do I get that correctly that even gcc should not be installed in system/user environment and should be put into use via nix-shell?
ThatDocsLady has joined #nixos
<symphorien>
Exactly, except nix-shell already provides gcc by default
ris has quit [Ping timeout: 252 seconds]
logzet has quit [Remote host closed the connection]
<juhe>
I don't understand then, how nix-collect-garbage knows, if gcc can be removed if it is not kept in system nor user profile. (Maybe avrgcc is a bit better example since I'd not consider it part of "base", which - from my point of view - gcc is).
<sphalerite>
it will typically be removed if it's not in any profiles, or a dependency of any profiles, or in a *currently running* nix-shell
<juhe>
ok, maybe not ideal, but good enough
<juhe>
From the information above, I'd infer that packages that contain binaries, header files and libraries are not a good packages. Is that correct? (e.g. avrdude contain all three things).
joncfoo has quit [Ping timeout: 252 seconds]
<mpickering>
How can I make /run/user/0 bigger?
<mpickering>
It is getting filled up very quickly when this script runs
<srhb>
mpickering: boot.runSize iirc
sigmundv__ has quit [Ping timeout: 268 seconds]
<sphalerite>
juhe: that's normal. To save space, many packages have split outputs so that the things that depend on only a small part of it don't pull in everything
<nefix_>
building '/nix/store/1g45rd20l432sj596jwz2qdhxg463c14-source.drv'...
<nefix_>
fixed-output derivation produced path '/nix/store/10w3bna3kzwklddh45ddfcq2am8prqf0-source' with sha256 hash '0vfi1zyx0v0lwgmz33g4yjbbwk3vjgrrn5smk24ij0dj5af92w82' instead of the expected hash '1f08hv8qbv8gzs964sw3qlbvrgzdhl8p28ncwswl323qdgryj9yq'
<nefix_>
error: build of '/nix/store/1g45rd20l432sj596jwz2qdhxg463c14-source.drv' failed
<nefix_>
What does that mean?
<nefix_>
(use '--show-trace' to show detailed location information)
<nefix_>
My git sha256 is that hash
juhe has joined #nixos
<gchristensen>
it means it expected the hash 1f08... but what it found was instead 0vfi...
<jtojnar>
Thra11: that should work
<nefix_>
but my hash is the expected hask
Lears has joined #nixos
<lfam>
nefix_: How did you calculate the hash?
<Thra11>
jtojnar: As in `env` should contain PKG_CONFIG_PATH, including the necessary package paths?
<nefix_>
I copied the hash it throw
<nefix_>
And pasted it into the home.nix file
<symphorien>
Try the other one
<{^_^}>
[nixpkgs] @joachifm merged pull request #44914 → libxnd and libndypes: init at 0.2.0dev3 → https://git.io/fN5or
<{^_^}>
[nixpkgs] @xeji pushed commit from @siers to master « vitetris: init at 0.57.2 (#45672) »: https://git.io/fAO4W
nefix has quit [Quit: Lost terminal]
<mudri>
gchristensen: From the linked section: “`pathsToLink` tells Nixpkgs to only link the paths listed which gets rid of the extra stuff in the profile. `/bin` and `/share` are good defaults for a user environment, getting rid of the clutter.”
<mudri>
Why should I care about the clutter?
<gchristensen>
maybe a package puts weird stuff in weird places and you don't want that probably, by default
<gchristensen>
maybe you do!
Fare has quit [Ping timeout: 272 seconds]
<mudri>
And shouldn't I worry about missing links breaking things?
xeji has joined #nixos
nefix has joined #nixos
<mudri>
(More than having a few harmless links around)
<gchristensen>
no, because nothing from those packages should be looking in the result of your buildEnv
<gchristensen>
they should be looking for stuff in their own store paths
<mudri>
Why would I want to link `/share`, then?
eren has joined #nixos
<gchristensen>
because you chose to have it :) one reason you might choose to would be: frequently share contains docs, and if your buildEnv result is used in a place where `man` might be looking at it, linking /share would forward docs
<gchristensen>
for me, I prefer to go the minimalist route of linked paths and grow from there so I know what is being exposed and why
johanot has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @stephengroat opened pull request #45679 → boost: explicitly disable of python → https://git.io/fAORO
<mudri>
I still can't see why it'd be worth caring about stuff being hidden this late in the installation process, but I guess I'll just believe you that it is for you.
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « virtlyst: 1.1.0 -> 1.2.0 (#45121) »: https://git.io/fAO0d
Fare has joined #nixos
trcc has joined #nixos
<Thra11>
jtojnar: Hmmm. It looks like my buildInputs conditional expression was messed up in some way.
<Thra11>
jtojnar: Now a) it builds and b) PKG_CONFIG_PATH is set in the nix-shell
<genesis>
http://nixpaste.lbr.uno/raw/EY8X2RCl , i still get libpandaexpress.so.1.9 => not found etc, librarie in $out/lib/panda3d are not founded. any idea what i could try ?
tnks has joined #nixos
peel has quit [Quit: Connection closed for inactivity]
<emily>
if I'm trying to override a Haskell package in https://gist.github.com/srhb/9ae8206fa94bf9a0eaed3c9be78e0f70, does that go in packageOverrides in the config argument to nixpkgs, or...? I'm having trouble putting all the pieces together in my Nix file.
lfam has left #nixos ["Leaving"]
redj has joined #nixos
<{^_^}>
[nixpkgs] @LnL7 merged pull request #45680 → elixir: 1.6.6 -> 1.7.3 (Update from elixir_1_6 to elixir_1_7) → https://git.io/fAO2E
<jtojnar>
emily: it can go to nixpkgs.overlays in your configuration.nix (nixkpkgs.config.packageOverrides should work too, though that one is less flexible so overlays are preferred)
civodul has joined #nixos
<selfsymmetric-pa>
What's the right nix package for the `webkit2gtk` dependency? I can only find the old `webkitgtk`.
<selfsymmetric-pa>
Emacs 26 has switched to the new one. I'm trying to update the libinputs.
aanderse has joined #nixos
pie_ has joined #nixos
<emily>
jtojnar: I'm trying to work on an individual project with its own default.nix rather than modifying my NixOS configuration
<symphorien>
emacs 26 is in unstable
<jtojnar>
selfsymmetric-pa: webkitgtk attribute is the new one
<emily>
jtojnar: the problem is just that nixpkgs needs a newer version of a Haskell package to work with the version of GHC nixpkgs master uses.
<emily>
so I need to override that in the default.nix when calling nixpkgs
<pie_>
primeos, hey, youre listed as a maintainer for signal-desktop
<jtojnar>
emily: you can do something like this: `with import <nixpkgs> { overlays = [(self: super: { glib = super.enableDebugging super.glib; })]; }; …`
<selfsymmetric-pa>
jtojnar: Unfortunately with that gist I get `error: xwidgets requested but WebKitGTK+ not found`.
<jtojnar>
selfsymmetric-pa: are you sure they use the newest one?
<emily>
jtojnar: *nod* thanks. is it better to use overlays or packageOverrides or what? I'm kind of confused by the seemingly endless ways of substituting things
<jtojnar>
selfsymmetric-pa: that is the one with webkit2gtk-4.0 pkg-config name
<jtojnar>
emily: overlays are more composable/flexible so they are preferred these days
<jtojnar>
selfsymmetric-pa: you will probably need something like `.override { withXwidgets = true; webkitgtk24x-gtk3 = pkgs.webkitgtk; }`
<jtojnar>
since the package is still using the old webkit in nixpkgs
<jtojnar>
and you should be able to get rid of the permittedInsecurePackages entry
<srhb>
aanderse: Given the intention of the software, I think so. I just think the software is a bit unreasonable. :D I'd like a second reviewer on it, but I'm inclined to say "go for it"
<srhb>
emily: Remind me what the package was, and perhaps I can find the file again by grepping :P
<aanderse>
srhb: the software is old and probably best suited to use something like systemd these days... but it would be good to have another option for people who want to migrate existing infrastructure when coming to nixos
<srhb>
aanderse: Right right. :)
<aanderse>
well, thanks again. hoping someone else can review before 18.09
<srhb>
aanderse: Throw a link here, maybe someone will bite immediately :)
<aanderse>
was going off the readme "The incron daemon (incrond) must be run under root (typically from runlevel script etc.). It loads the current user tables and hooks them for later changes."
<jtojnar>
yeah, I saw that but do not understand why it cound not be per-user or per-session service
<primeos>
pie_: Yes, can I help you with something?
<aanderse>
taking a quick peak through the code i believe there would need to be a few modifications... but i mean, generally i agree, that would be better
<aanderse>
i'm not inclined to make upstream pull requests on this project though...
<emily>
srhb: yep, the local overlay was just what I had to figure out!
<emily>
srhb: thanks for all the help :)
<srhb>
emily: Welcome :)
nefix has joined #nixos
<emily>
I've decided to use purescript from git (which is already patched for GHC 8.4) rather than going back to 18.03, but same difference :)
simukis has quit [Ping timeout: 272 seconds]
<srhb>
emily: Did you notice that my example uses callHackage? (Not as new as fetching from git probably, but still!)
<emily>
right
<srhb>
OK :)
<emily>
just feels cleaner to stay on nixpkgs master if I can
<srhb>
Right right
<emily>
while awaiting the release of the presumed 0.12.1
<srhb>
Glutton for pain and all, know the feeling. ;-P
<srhb>
emily: OK, it's not quite true. You can actually have nix-prefetch-git dump the json into a file and then import it and read the rev, sha from there.
<primeos>
pie_: Do you mean on the stable channel (18.03)? Master has 1.15.5
<pie_>
primeos, ahhh, ok, thanks for the clarification
trcc has quit [Remote host closed the connection]
jperras has quit [Quit: WeeChat 2.2]
<pie_>
my bad. i havent gotten around to actually tryng to install from master yet, in the middle of making disk space
<Mic92>
emily: cd nixpkgs && nix-prefetch-url -A xonsh.src
<emily>
oh, thanks, I was unaware of nix-prefetch-git
selfsymmetric-pa has quit [Remote host closed the connection]
<emily>
the nice thing about NixOS is that so much is undocumented that I feel less bad about asking questions ...
<Mic92>
nix-prefetch-git is not the right tool for fetchFromGitHub
<srhb>
Ah, true, that's fetchgit..
selfsymmetric-pa has joined #nixos
<primeos>
pie_: Ok, no problem, normally I'm trying to update it on master within <24h but nixos-unstable is usually a few days behind master
<emily>
yeah, but then I learned about nix-prefetch-github!
<selfsymmetric-pa>
jtojnar: Your emacs advice worked perfectly, thank you!
<emily>
is there a nice way to consume such a .json to pass to fetchGitHub?
<emily>
or, wait... does fetchGitHub ./foo.json actually work?
<srhb>
no, you'd need to read it in and builtins.fromJSON it to get an attrset from it
<emily>
*nods*
<Mic92>
and
<Mic92>
> builtins.readFile
<{^_^}>
<PRIMOP>
anonsmith has joined #nixos
<emily>
*nods*
<Mic92>
> lib.version
<{^_^}>
"18.09pre-git"
<emily>
if only (import ./foo.json)
<nefix>
Why nvim doesn't detect the .nix color scheme in my home.nix but it does in my configuration.nix?
<emily>
...I guess it's literally just a function composition away.
<Mic92>
nefix: you can try to install vimPlugins.nix-vim
<Mic92>
you have probably installed also a different vim in your user profile
<nefix>
it's neovim, not vim
<anonsmith>
Does anyone know how to fix polybar not displaying the volume module? I'm getting the message "Disabling module 'alsa' reason: unknown module: internal/alsa"
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « xpra: 2.3.2 -> 2.3.3 (#45530) »: https://git.io/fAOQb
<emily>
if I'm using Nix to create a development environment for my software but the result isn't really a proper "Nix package" (e.g. "nix build" fails because of there being no Makefile and there's no buildPhase you could reasonably define that would work, because the language package manager I'm using fetches stuff from github), should I still use stdenv.mkDerivation and just accept its "invalidity" (and e.g.
<emily>
should I have no default.nix but just a shell.nix)?
<aanderse>
jtojnar: ok, thanks again for all recommendations. i've changed as requested. let me know if there is anything else you need aside from another reviewer.
<aanderse>
any idea of anyone else who i could cc in for review?
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « shaarli: 0.10.0 -> 0.10.2 (#45538) »: https://git.io/fAO7l
anonsmith has quit [Quit: WeeChat 2.0]
nefix has quit [Quit: leaving]
xeji has quit [Quit: WeeChat 2.1]
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
mkoenig has quit [Ping timeout: 244 seconds]
mkoenig has joined #nixos
nbardiuk_ has quit [Ping timeout: 244 seconds]
hamishmack has joined #nixos
graphene has quit [Read error: Connection reset by peer]
graphene has joined #nixos
mayhewluke has quit [Ping timeout: 264 seconds]
crucialrhyme has joined #nixos
nckx has quit [Quit: Updating my GNU GuixSD server — gnu.org/s/guix]
alexteves has quit [Remote host closed the connection]
troydm has joined #nixos
crucialrhyme has quit [Client Quit]
nckx has joined #nixos
<samueldr>
emily: having something specifically for the shell be named shell.nix is perfectly right IMO
<emily>
samueldr: *nods*
<emily>
do you just put a stdenv.mkDerivation in shell.nix or is there a better way to do it when you don't quite have a full package?