<NixOS_GitHub>
[nixpkgs] danielfullmer opened pull request #27885: nixos/pulseaudio: Fix for missing zeroconf module (master...pulseaudio-zeroconf-fix) https://git.io/v7gTx
NixOS_GitHub has left #nixos []
byteflame has joined #nixos
byteflame has quit [(Client Quit)]
byteflame has joined #nixos
byteflame has quit [(Quit: leaving)]
<Infinisil>
Whew, cleaned up my system config, looking decent now
eacameron has quit [(Remote host closed the connection)]
jonjitsu has joined #nixos
<jonjitsu>
not sure if I'm in the right channel... I was wondering about what's the best way of using nix pkg manager on another distro like ubuntu to install packages system wide? The per-user seems to work great.
<NixOS_GitHub>
[nixpkgs] P-E-Meunier opened pull request #27896: Gwyddion: init at 2.48 (master...gwyddion) https://git.io/v7gnG
NixOS_GitHub has left #nixos []
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 260 seconds)]
FRidh has joined #nixos
justelex_ has joined #nixos
nschoe has joined #nixos
zeus_ has quit [(Remote host closed the connection)]
Infinisil has quit [(Quit: leaving)]
jgertm has quit [(Ping timeout: 240 seconds)]
justelex_ has quit [(Ping timeout: 255 seconds)]
takle has joined #nixos
ElGoreLoco has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] cstrahan pushed 8 new commits to master: https://git.io/v7gWA
<NixOS_GitHub>
nixpkgs/master 7541f28 Charles Strahan: boringssl: 2016-03-08 -> 2017-02-23...
<NixOS_GitHub>
nixpkgs/master 3be19de Charles Strahan: libevent: 2.0.22 -> 2.1.8
<NixOS_GitHub>
nixpkgs/master 958cdf3 Charles Strahan: spdlog: 292bdc5eb492 -> 0.13.0
NixOS_GitHub has left #nixos []
ElGoreLoco has quit [(Client Quit)]
nico202 has joined #nixos
StevenTian has joined #nixos
erictapen has joined #nixos
<StevenTian>
Is it possible to use gcc6 or gcc7 in NixOS?
thc202 has joined #nixos
<LnL>
yes ofcorse
<LnL>
use gcc7.stdenv.mkDerivation for your expression
<StevenTian>
Cool. I installed gcc6 by putting gcc6 in the package list of /etc/nixos/configuration.nix and executing nixos-rebuild. However, when I try to compile a simple C program, I got the following error:
<StevenTian>
...binutils-2.28/bin/ld: cannnot find crt1.o: No such file or directory
<LnL>
installing compilers globally isn't a hood idea IMHO
<adisbladis>
StevenTian: If I want to use some specific compiler or interpreter I will usually do it in a nix-shell
<adisbladis>
Globally becomes messy..
<StevenTian>
I admit that my way is not good. But should it work by installing it globally?
arximboldi has quit [(Remote host closed the connection)]
arximboldi has joined #nixos
<LnL>
agreed, but you'll be missing the environment of the stdenv so that's probably causing issues
<StevenTian>
I see. It makes sense. thanks a lot, LnL.
<StevenTian>
I am still new to NixOS, so I try to the traditional way to do programming.
joehh has quit [(Ping timeout: 248 seconds)]
arximboldi has quit [(Remote host closed the connection)]
<LnL>
yeah, the workflow is a bit different
<adisbladis>
StevenTian: Throw a default.nix in the root of your project :)
Ivanych has joined #nixos
arximboldi has joined #nixos
<LnL>
but, if you install everything project related globally you basically introduce the same problems that other distributions have
<StevenTian>
adisbladis: thanks for your advice. I will do so. The question is that my colleagues are not using NixOS.
takle has quit [(Remote host closed the connection)]
<gguy>
So as I understand is "haskellPackages" is a namespace hidden by default. My understanding is that "haskellPackages" is actually just a link to "haskellPackages_ghcxxx". Is there a way to list all namespaces?
<adisbladis>
StevenTian: Np :)
eacamero_ has joined #nixos
eacameron has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 3 new commits to master: https://git.io/v7gRV
<NixOS_GitHub>
nixpkgs/master 881e255 Jan Tojnar: junicode: make description more concrete
<NixOS_GitHub>
nixpkgs/master ef7cc03 Jan Tojnar: lohit-fonts: add package description
<NixOS_GitHub>
nixpkgs/master f6817dd Frederik Rietdijk: Merge pull request #27895 from jtojnar/patch-1...
NixOS_GitHub has left #nixos []
StevenTian has quit [(Remote host closed the connection)]
<tilpner>
This is going to sound stupid, but is there a way to have multiple /nix/stores?
Gravious has quit [(Quit: leaving)]
<tilpner>
(AFAIK there isn't because packages sometimes use the store path during compilation?)
ertes-w has joined #nixos
Phillemann has joined #nixos
<Phillemann>
I have a question about channels. How often is the nixos-unstable channel updated? I added it a few days ago and nixos-rebuild switch --upgrade never downloads any new packages.
<Phillemann>
That answers how old unstable is, but what's the update policy?
<tilpner>
Expand the items at the top of that site, they describe some of it
peti has quit [(Quit: WeeChat 1.8)]
peti has joined #nixos
<Phillemann>
I'm not really sure I understand that description.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to openssl-1.1: https://git.io/v7guQ
<NixOS_GitHub>
nixpkgs/openssl-1.1 b1263a1 Robin Gloster: openwsman: use nix 1.11 compatible hash
NixOS_GitHub has left #nixos []
<Phillemann>
nixos-unstable has a hydra test job that has to pass in order for a new unstable version to be released?
goibhniu has quit [(Ping timeout: 260 seconds)]
<tilpner>
Yes, there's a bunch of packages that need to build successfully, and probably also pass the checks, in order for the channel to advance to a more recent commit
<Phillemann>
Okay, so there are packages that don't pass the test job (because unstable is 4 days old).
<tilpner>
Yes (though nixos-unstable is 6 days old). But I'm also terrible at navigating Hydra, so... I can't really tell you why that is
tokudan has joined #nixos
<Phillemann>
It's okay, maybe somebody else can help? It's good to know though that there are tests and a mechanism to not publish results where tests fail. :)
<tilpner>
It's a recent failing build log, but I'm not sure why it's failing exactly
joachifm_ has quit [(Remote host closed the connection)]
<FRidh>
tilpner: yes and no. Yes, you can change an env var and point to another store. No, each store is entirely independent, so you cannot keep certain paths just in store B whereas the rest is in A. So both stores will have stdenv.
<ben>
how long does a full test run for a given commit take?
<ben>
there oughta be a better way to get to a healthy state than piling more PRs on top of a broken branch until it starts passing tests again
<FRidh>
depends on what needs to be rebuild
<ben>
i mean, why dont we merge to master *after* hydra is cool with it :P
<seequ>
adisbladis: Unless it decides I don't need my GRUB anymore :p
<adisbladis>
Who needs it :P
Capprentice has quit [(Quit: Leaving)]
rydnr has quit [(Ping timeout: 260 seconds)]
* goibhniu
can only remember having one tricky upgrade issue ... when mutableUsers was introduced
<seequ>
It's amusing that I learn of new options and ways to package things almost daily here.
eacameron has joined #nixos
gnuhurd has quit [(Remote host closed the connection)]
<joepie91>
nixos install on laptop in progress...
justelex has quit [(Quit: Konversation terminated!)]
gnuhurd has joined #nixos
justelex has joined #nixos
<seequ>
Installing on laptop was like the best thing. Copy config from PC -> change nvidia and boot settings -> add synaptics -> have a working install
<queiw>
Hmm. pmount gives "Error: this program needs to be installed suid root". With security.setuidPrograms in /etc/nixos/configuration.nix (recommended fix) nixos-rebuild gives "The option definition `security.setuidPrograms' in `/etc/nixos/configuration.nix' no longer has any effect; please remove it."
dywedir has joined #nixos
<gchristensen>
queiw: ! where do you see that recommended fix?
<gchristensen>
FRidh: it turned out to be more effort to make the PR, because I had to flesh it out a bit more :)
iyzsong has quit [(Read error: Connection reset by peer)]
gnuhurd has quit [(Remote host closed the connection)]
<tilpner>
What data is described system.stateVersion?
<tilpner>
*described by
<tilpner>
(Can I delete it?)
<gchristensen>
tilpner: please don't :)
<gchristensen>
and please don't change it
<tilpner>
gchristensen - Not delete the entry, but delete the data
<tilpner>
I'm getting error: current Nix store schema is version 10, but I only support 7
<Myrl-saki>
Err
<Myrl-saki>
How do I import nixpkgs lol
<Myrl-saki>
I mean, how do I use nixpkgs under nix-repl?
<gchristensen>
system.stateVersion hasnothing to do with nix store schemas
<gchristensen>
Myrl-saki: import <nixpkgs> {}
<tilpner>
Oh
<tilpner>
Then how do I downgrade the Nix store schema...?
<tilpner>
Don't tell me I have to reinstall D:
iyzsong has joined #nixos
<tilpner>
(Do tell me that if it's the answer)
<gchristensen>
lol
dev1 has quit [(Quit: WeeChat 1.7.1)]
<gchristensen>
I don't know. copumpkin / clever ?
<Myrl-saki>
gchristensen: I just did that, without using a `let/in`, did I just populate my nix store with a lot of things or nah?
<gchristensen>
Myrl-saki: shouldn't have, what happened that makes you think that mightt have happened?
<Myrl-saki>
Talked about broken packages and the like.
<gchristensen>
Myrl-saki: can you paste your nix-repl log?
<goibhniu>
tilpner: did you downgrade nix?
<tilpner>
goibhniu - I'm trying to, yes
<tilpner>
(It won't let me)
justelex_ has joined #nixos
<Myrl-saki>
gchristensen: I'll just trust you. :P
<gchristensen>
ok :)
<gchristensen>
though you shouldn't have gotten that error
<Myrl-saki>
gchristensen: Though, on the other hand, can a nix-repl command populate the nix store??
peacememories has joined #nixos
<Myrl-saki>
gchristensen: Here's one line. AgdaSheaves = «error: Package ‘Agda-Sheaves-8a06162a8f0f7df308458db91d720cf8f7345d69’ in ‘/etc/nixos/nixpkgs/pkgs/development/libraries/agda/Agda-Sheaves/default.nix:18’ is marked as broken, refusing to evaluate.
<domenkozar>
how can I cleanup /nix/store/.links?
<tilpner>
domenkozar - What do you wnat to clean up about it?
<tilpner>
domenkozar - nix-collect-garbage should do that already
<domenkozar>
remove unused things, I don't how how exactly that folder is used
<domenkozar>
:)
sigmundv has quit [(Ping timeout: 268 seconds)]
<gchristensen>
Myrl-saki: yeah so I'd like to see your log b/c I'm not sure how you got that error
<gchristensen>
Myrl-saki: it looks like indeed you tried to evaluate all of nixpkgs, which isn't something most people do
<Myrl-saki>
Ah sure
<seequ>
domenkozar: how unused?
erictapen has joined #nixos
<gchristensen>
(I mean, I know how that error comes to be, and you shouldn't be getting it.)
<domenkozar>
actually I'd like to undestand what .inks does
<seequ>
Not used in any profile or not in current profile?
<gchristensen>
domenkozar: that is the optimized store feature
<domenkozar>
gchristensen: the hard linking?
<gchristensen>
yeah
<domenkozar>
is there way to revert that and clean it up? :D
<Myrl-saki>
gchristensen: Yeah, that's what I mean. :P
<gchristensen>
Myrl-saki: sorry, what do you mean?
<Myrl-saki>
gchristensen: That I evaluated nixpkgs
<Myrl-saki>
gchristensen: Literally just ran `import <nixpkgs {}>`
<Myrl-saki>
Err
<Myrl-saki>
`import <nixpkgs> {}`
<gchristensen>
Myrl-saki: yeah, your log is going to be really helpful. Nix is a lazy language, so importing nixpkgs doesn't mean evaluating nixpkgs
<gchristensen>
(import <nixpkgs> {}).bash only evaluates enough of nixpkgs to provide you bash
<Myrl-saki>
gchristensen: Ah. So output forces execution?
<gchristensen>
right
<domenkozar>
gchristensen: do you know how these links work? :)
<gchristensen>
domenkozar: I know how to search around nix to find how they work :)
<Myrl-saki>
gchristensen: I just decided to try out nix-repl to see if I can get the version of things.
<gchristensen>
domenkozar: maybe I should ask though, why are you wanting to clean them up?
<gchristensen>
is it not working correctly?
<domenkozar>
it's created 6M entries that's also hitting the ext4 issue
<gchristensen>
lol.
<gchristensen>
domenkozar: can you do an aggressive garbage collection and then disable optimisation?
<domenkozar>
that's the thing, I don't want to GC
<gchristensen>
how much data do you have?
<domenkozar>
1.6T
<gchristensen>
thats about when I saw the problem too
hlavaty has joined #nixos
<domenkozar>
I guess we don't have implementation to reverse optimise feature
<gchristensen>
well I don't think there is a way to go back, unfortunately
<tilpner>
And I'm sitting here... trying to keep /nix/store under 60GB
<gchristensen>
tilpner: I'm pretty sure domenkozar (and I certainly am) talking about dedicated hydra build servers :)
* seequ
read the T as tera and was very confused
charlycoste has joined #nixos
<gchristensen>
not personal machines
<domenkozar>
it's 1.6TB, yes
<seequ>
o.o
<domenkozar>
on 4TB hdd
<gchristensen>
domenkozar: oh so you have plenty of space?
<gchristensen>
do you have ~2TB free?
<ikwildrpepper>
I wish I had plenty of space
<tilpner>
Oh, yes, that's more reasonable :D
<domenkozar>
gchristensen: yes
<ikwildrpepper>
we need to GC every 4 hours
<ikwildrpepper>
gc'ing up to 500GB
<ikwildrpepper>
(not on hydra.nixos.org btw)
<domenkozar>
yeah I have plenty of space
<domenkozar>
but I'm still getting out of disk space errors :D
<domenkozar>
gchristensen: I could migrate the store if you mean that
<gchristensen>
domenkozar: this will be slow, but maybe faster than rebuilding: nix-export everything in your store elsewhere on your disk, aggressive GC, disable optimisation, import
<ikwildrpepper>
domenkozar: inodes?
<LnL>
I think gc + cache is probably a better approach
<ikwildrpepper>
or too many entries in /nix/store?
<domenkozar>
too many entries in /nix/store/.links
xd1le has quit [()]
<gchristensen>
ikwildrpepper: the ext4 hashing algorithm is hitting the birthday paradox in /nix/store/.links apparently :)
<Myrl-saki>
Just curious. Who here is in support of suckless tools?
<domenkozar>
BigData
<avn>
domenkozar: try switch to zfs ;)
<Myrl-saki>
support in the sense of agreeing.
<sphalerite>
me
<domenkozar>
avn: too late for that
<gchristensen>
avn: that isn't a useful suggestion at this time
<seequ>
My /nix/store is 8.2GB :P
<avn>
domenkozar: span .links to .links/na/me-of-file can help as well, but I feel it also too late? ;)
<sphalerite>
Myrl-saki: I'm not a purist, but I like them. Composability is incredibly useful.
<domenkozar>
that will break nix
<domenkozar>
gchristensen: hmm, I wonder if export works on such big store
<gchristensen>
domenkozar: if I were you, I would ls the store, `split` it in to small chunks, and export small chunks
<gchristensen>
then you get more fine-grained resumability
<avn>
Boo. I am idk about "fix it right now", I have only workaround-in-future ideas, sorry.
<domenkozar>
well I know how to fix it in the future
<domenkozar>
that's the easy part
<domenkozar>
gchristensen: hmm :)
<seequ>
In what case do you end up with 1.6TB store? Just ever ever GC'ing?
<gchristensen>
domenkozar: another thought if you have a different box you could replace it with is to make the new box use a different FS and nix-copy-closure over to it
<seequ>
never ever*
<gchristensen>
but again, I'd `split` it in to smaller chunks
<tilpner>
seequ - Running Hydra, apparently
<gchristensen>
seequ: very active build servers, compiling big software, over a period of time
<seequ>
ahhhhhh
<seequ>
I see
<domenkozar>
could use nix 1.12 and a separate store to sync
<gchristensen>
indeed...
justelex_ has quit [(Quit: Konversation terminated!)]
justelex_ has joined #nixos
<gchristensen>
domenkozar: (a paranoid bit of caution: if the data on this box is irreplaceable, by the laws of 3-2-1 backups it doesn't exist)
<domenkozar>
or just upload everything to S3
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] basvandijk opened pull request #27902: flockit: init at 2012-08-11 (master...flockit) https://git.io/v7gFs
NixOS_GitHub has left #nixos []
<domenkozar>
and GC
<domenkozar>
this sounds like best option so far
<domenkozar>
also it's the-future
<gchristensen>
that is likely, of all options, the slowest of them all
<LnL>
yes or use a store_uri and serve that as a cache
<gchristensen>
keep in mind budget, when I did the community PR hydra thing, S3 cost me like $400 over 3 weeks
<domenkozar>
for how much storage?
<MoreTea>
gchristensen, did you ask the NixOS foundation to reimburse you?
<gchristensen>
(I don't want to)
<LnL>
gchristensen is to nice to ask that
<MoreTea>
ok ;)
<gchristensen>
domenkozar: I dunno, it was a lot though, but more importantly was the bandwidth
<domenkozar>
yeah that's expensive
<gchristensen>
domenkozar: but if you have a local cache inside your network that'll reduce a lot of the traffic, this is easy to set up with nginx
<gchristensen>
in short, this is exactly what I'd do: push all your builds to s3, use a local cache inside your network that pulls from s3. you get cheapish and highly redundant storage, and lower bandwidth builds due to caching, and you don't have to screw around with local disks anymore
<domenkozar>
LnL: is store_uri supported in Nix 1.11?
<domenkozar>
ah it should be
<LnL>
yes and I'm pretty sure both file:// and s3:// work
<copumpkin>
as of 1.12 s3:
<LnL>
oh, just file then
<ikwildrpepper>
LnL: I believe I offered to (personally) chime in, but gchristensen seems to be too nice to accept
<domenkozar>
ok so I need to figure out how to push the cache on s3 and then back
<LnL>
ikwildrpepper: same :)
<LnL>
a bunch of people did
<ikwildrpepper>
good people, this nixos bunch
<gchristensen>
<3 the nixos community
<domenkozar>
has anyone then pushed local cache to s3 with Nix 1.11.x? :)
<ikwildrpepper>
nope, need 1.12pre
<gchristensen>
ikwildrpepper: oh but it'll do it?
<ikwildrpepper>
we push all our builds with nix copy to s3 cache
<LnL>
I use store_uri with an nfs mount
<LnL>
and sync that to s3
<gchristensen>
domenkozar: can you get 1.12? :P
<domenkozar>
I think Hydra uses 1.12
<domenkozar>
anyway :D
<ikwildrpepper>
gchristensen: decided that my goal for a week with my in-laws is to 'finish' packet.net backend for nixops
<domenkozar>
ok so this should take a while, but also should be easy
<domenkozar>
ikwildrpepper: lol
<ikwildrpepper>
and it is going to be awesome
<gchristensen>
ikwildrpepper: YEESSS!
<gchristensen>
ikwildrpepper: one thing: if the way the packet config on the boxes is annoying, we can fix that together
<gchristensen>
I owe them new installer images anyway
<ikwildrpepper>
gchristensen: didn't look yet, will start first one tonight and look how annoying it looks like :D
ixxie has joined #nixos
<copumpkin>
niksnut: you around? wondering if you have any thoughts on that "get .meta from actual closure of some derivaton I use" question
nh2 has quit [(Quit: Leaving.)]
<copumpkin>
we've spitballed some approximations of the operation but it would be nice to get something proper
nh2 has joined #nixos
eacameron has joined #nixos
Intensity has joined #nixos
cpennington has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
gnuhurd has joined #nixos
jonjitsu has joined #nixos
eacameron has joined #nixos
reinzelmann has quit [(Quit: Leaving)]
MoreTea has quit [(Remote host closed the connection)]
peti has quit [(Quit: WeeChat 1.5)]
peti has joined #nixos
eacameron has quit [(Ping timeout: 260 seconds)]
MoreTea has joined #nixos
reinzelmann has joined #nixos
Jackneill has quit [(Read error: Connection reset by peer)]
Jackneill has joined #nixos
eacameron has joined #nixos
dywedir has quit [(Remote host closed the connection)]
bharper has joined #nixos
bharper has left #nixos ["WeeChat 1.9"]
erictapen has quit [(Ping timeout: 258 seconds)]
slack1256 has quit [(Remote host closed the connection)]
<domenkozar>
hah
<domenkozar>
gchristensen: actually I can just turn off auto optimization
<domenkozar>
and the errors should disapear
<gchristensen>
oh?
<domenkozar>
I mean collisions happen when nix tried to symlink into .links
<gchristensen>
oh
<domenkozar>
so if the feature is off, all should be good right
<LnL>
yes, you'll get half the files in /nix/store
<domenkozar>
half the files? :)
<LnL>
for every file in /nix/store you get a /nix/store/.links/<sha>
eacameron has quit [(Ping timeout: 258 seconds)]
<ixxie>
any vscode users here?
reinzelmann has quit [(Remote host closed the connection)]
ebzzry has joined #nixos
eacameron has joined #nixos
goibhniu1 has joined #nixos
goibhniu has quit [(Ping timeout: 258 seconds)]
<domenkozar>
LnL: yeah but writing files makes it collide, lookups will just work
ebzzry_ has joined #nixos
jonjitsu has quit [(Remote host closed the connection)]
<gchristensen>
domenkozar: I'd recommend migrating away from this half-half situation
reinzelmann has joined #nixos
ebzzry__ has joined #nixos
<domenkozar>
gchristensen: why? :)
<domenkozar>
I mean what's the worry
<LnL>
^ with a cache you have 1 file per store path
<gchristensen>
well it sounds like the data is important and not backed up, so I'd take it as a good opportunity to move to something more stable like S3 & a local cache
<domenkozar>
gchristensen: oh yes clearly I'll come up with a plan for that.
<gchristensen>
yeah, but using the current problem as a reason to put a fire under you to fix it seems prudent is all
ebzzry has quit [(Ping timeout: 255 seconds)]
<gchristensen>
instead of waiting for A Real Problem
reinzelmann has quit [(Client Quit)]
goibhniu1 is now known as goibhniu
ebzzry_ has quit [(Ping timeout: 246 seconds)]
<gchristensen>
niksnut, ikwildrpepper what if hydra, instead of streaming the result back to the master, just uploaded directly to s3?
<gchristensen>
hydra could create one-time-use tokens for the results
<ikwildrpepper>
gchristensen: niksnut is on holiday atm
<gchristensen>
oh awesome! good!
<ikwildrpepper>
so don't expect response soon :)
<gchristensen>
s/niksnut, //
drakonis has joined #nixos
<domenkozar>
gchristensen: afaik slaves upload directly to s3
earldouglas has joined #nixos
<domenkozar>
if I understand your question
<gchristensen>
I'm pretty sure slaves stream it back to the master and the master streams it up to s3
<gchristensen>
see also why hydra masters get bogged down with `xz`
elvishjerricco has joined #nixos
<Ankhers>
Is anyone having issues building gcc-5.4.0 on master?
<Ankhers>
I'm on OSX if it makes a difference.
<LnL>
yes it's broken atm :/
Jackneilll has joined #nixos
<LnL>
still trying to figure out what caused it
<Ankhers>
What is the rule about submiting a PR that relies on it?
<gchristensen>
domenkozar: that seems not too worrisome, it'll take a lot of load off the master
<Ankhers>
Yes, I am building erlang as well with this right now.
<LnL>
yeah it's probably erlang, you could try to get it working with clang
Jackneill has quit [(Ping timeout: 255 seconds)]
<LnL>
it's usually just that it's a bit more strict then gcc
dbmikus has joined #nixos
<Ankhers>
I don't know if I would want to do that. Maybe I will just see if I already have erlang built for something else. If not, I will just throw it up as a WIP PR and explain that I am waiting for GCC to be fixed.
MercurialAlchemi has quit [(Ping timeout: 258 seconds)]
ixxie has quit [(Quit: Lost terminal)]
Rotaerk has quit [(Quit: Leaving)]
cement has joined #nixos
<pierron>
clever: (as Infinisil is no longer connected) FYI, we cannot simply remove every option definition which matches the default value, because the definition could use some mkOverride / mkForce to set a value identical to the default one.
<MoreTea>
oh, is the remote builder script going to disappear?
justelex_ has quit [(Quit: Konversation terminated!)]
justelex_ has joined #nixos
<manveru>
so it's even harder to debug? :P
ebzzry__ has quit [(Ping timeout: 260 seconds)]
gnuhurd has quit [(Remote host closed the connection)]
StevenTian has joined #nixos
m0rphism has quit [(Quit: WeeChat 1.9)]
<StevenTian>
The default gcc optimization flag is -O2. Is there a way to customize the building of gcc so that I can change the default options of gcc?
<StevenTian>
I got the default gcc options via the command "gcc -v --help".
<StevenTian>
In my Ubuntu box, the default optimization is no optimization flag, which means -O0.
Fare has quit [(Ping timeout: 246 seconds)]
<symphorien>
export hardeningDisable=all should do the trick
<LnL>
yes, I think it's part of the hardening flags
justelex_ has quit [(Quit: Konversation terminated!)]
justelex_ has joined #nixos
<StevenTian>
Thanks to both of you. Where am I supposed to place "export hardeningDisable=all"?
<ToxicFrog>
The best(?) part is that -O0 doesn't actually disable optimizations D:
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] davidak opened pull request #27905: restic: enable darwin builds (master...restic) https://git.io/v72k6
NixOS_GitHub has left #nixos []
gnuhurd has joined #nixos
<gchristensen>
MoreTea: hydra has always done its own thing
<gchristensen>
for non-eternal values of "always"
<ikwildrpepper>
gchristensen: well, not always
<gchristensen>
;)
<ikwildrpepper>
not even that long ago
marsam has joined #nixos
cfricke has quit [(Ping timeout: 255 seconds)]
<ToxicFrog>
Hrm
<ToxicFrog>
I had this idea of installing Nix on SUSE so that I could re-use the derivations I wrote for stuff like bup that isn't packaged in SUSE
<ToxicFrog>
But the Nix installer doesn't work, and the documentation on how it works is really vague.
<gchristensen>
"doesn't work"?
<ToxicFrog>
`error: opening lock file ‘/nix/var/nix/profiles/per-user/ben/profile.lock’: No such file or directory`
<gchristensen>
awkward
<ToxicFrog>
It creates /nix and /nix/store fine, builds the user environment, and then falls over with that message.
StevenTian has quit [(Remote host closed the connection)]
<LnL>
sounds like /nix/var/nix/profiles/per-user/ben is not owned by the correct user
iyzsong has quit [(Ping timeout: 240 seconds)]
<ToxicFrog>
LnL: /nix/var/nix/profiles/per-user doesn't exist at all.
<LnL>
or that :p
<ToxicFrog>
I could create it, but since the installer should have done that, I don't know what else is broken.
<LnL>
what platform is this?
<ToxicFrog>
(and now I have an incomplete Nix install on my laptop. Whee. Hopefully I can get rid of it just by deleting /nix)
<ToxicFrog>
OpenSUSE Tumbleweed, amd64
<ToxicFrog>
...hah. And I can't even try installing the Fedora RPMs because they don't exist on Hydra
<LnL>
that doesn't do a multi user install by default
eacameron has quit [(Quit: Leaving...)]
<sphalerite>
Infinisil: re nixer's question about using "out" in an expression, it is actually possible in nixUnstable using the new (undocumented, by the looks of it, yay!) placeholder mechanism.
<LnL>
you'll only have /nix/var/nix/profiles/default AFAIK
<ToxicFrog>
LnL: I wasn't trying to do a multiuser install! I was just following the instructions in the manual and running the `install` script with no arguments as a non-root user.
<LnL>
weird
<gchristensen>
ToxicFrog: this clearly requires a bug report
<gchristensen>
domenkozar: discussing your issue with ext4 & the locks, their recommended solution was to stop at 6,261,507 files
<ToxicFrog>
gchristensen: which repo should I report it against?
<gchristensen>
ToxicFrog: nix
<LnL>
ToxicFrog: as for the 404's you can use the cache instead, nix-store -r /nix/store/1z896hdii9k8yq4jh0alc3z5hbjwzdd4-nix-rpm-fedora-25-x86_64-1.12pre5524_a2778988
<gchristensen>
oh man yeah but we don't have that on the website for a reason
vinymeuh has joined #nixos
pie_ has joined #nixos
pie__ has joined #nixos
<LnL>
yeah hydra should show that and/or keep files for releases like this
<ToxicFrog>
LnL: but I don't have nix-store installed yet, because I'm trying to install nix in the first place.
<gchristensen>
no I mean we don't tell people about the RPMs for a reason
<ToxicFrog>
gchristensen: we don't? The manual mentions them.
<gchristensen>
like they're not listed as an install option on nixos.org/nix
<ToxicFrog>
That's why I went looking for them in the first place.
<gchristensen>
ouch
<gchristensen>
left hand not talking to the right
Ivanych has quit [(Ping timeout: 260 seconds)]
<ToxicFrog>
And the "Getting Nix" page has a link at the bottom to "Continuous Builds" which has the RPM links.
<gchristensen>
:|
<ToxicFrog>
It says that using `install` is the "
<Myrl-saki>
I saw some *BSD getting updated on nixpkgs.
<ToxicFrog>
"quickest" way to install but makes no mention of it being the only supported way or of the RPMs being discouraged.
<ToxicFrog>
And while I'm here, I'd like to complain about the manual being extremely vague about what the installer actually does and how the nix-tools end up in your $PATH
<ToxicFrog>
And, for that matter, how the "single user" install interacts with wanting to install things that any user can run -- like, can I install stuff as one user and then have another user add it to their $PATH? If not, how do you do "system-wide installs" of stuff with Nix when you aren't running NixOS?
<ToxicFrog>
Based on NixOS experience the answer is "install it as root", except the Nix installer explicitly rejects any attempt to do that.
Sonarpulse has joined #nixos
justelex_ has quit [(Ping timeout: 255 seconds)]
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
justelex_ has joined #nixos
peacememories has joined #nixos
peacememories has quit [(Client Quit)]
bennofs has quit [(Ping timeout: 258 seconds)]
nslqqq has quit [(Ping timeout: 240 seconds)]
pie__ has quit [(Ping timeout: 255 seconds)]
pie_ has quit [(Ping timeout: 260 seconds)]
cement has quit [(Remote host closed the connection)]
<NixOS_GitHub>
nixpkgs/staging f1d48ca John Ericson: Merge pull request #27859 from adisbladis/revert_27427...
NixOS_GitHub has left #nixos []
aanderse_ has quit [(Read error: Connection reset by peer)]
frankpf has joined #nixos
aanderse_ has joined #nixos
StevenTian_ has joined #nixos
StevenTian_ has left #nixos []
nslqqq has joined #nixos
<LnL>
Sonarpulse: by the way, I don't really get your last comment on the cross wrapper stuff
<Sonarpulse>
LnL: :)
<Sonarpulse>
yeah there's a lot going on
<Sonarpulse>
did you read the big comment?!? :)
<LnL>
big comment?
cement has joined #nixos
<Sonarpulse>
LnL: maybe I didn't push enough yet?
<Sonarpulse>
oh wait yeah I did not
<Sonarpulse>
I happend to be working on that right now
<Sonarpulse>
and got confused
erasmas has joined #nixos
<cement>
if I install bison, does that automatically link /usr/bin/yacc?
<sphalerite>
no.
<sphalerite>
/usr doesn't exist on nixos
<ToxicFrog>
If you're on NixOS nothing ends up in /usr/bin at all except env
<Sonarpulse>
LnL: actually, do you mean the shellcheck one, or the cross one?
<Sonarpulse>
cross/hygiene one?
<ToxicFrog>
sphalerite: /usr/bin/env exists so you can #!/usr/bin/env bash
cfricke has joined #nixos
<LnL>
Sonarpulse: the cross one, with the salts
<Sonarpulse>
LnL: ah ok
<Sonarpulse>
yeah I am about to push
<sphalerite>
/usr doesn't exist in the conventional sense, that is. That's definitely what I meant and I totally remembered that /usr/bin/env exists. Yeah.
digitus has joined #nixos
deltasquared has joined #nixos
jensens has quit [(Ping timeout: 240 seconds)]
nh2 has quit [(Ping timeout: 255 seconds)]
nh2 has joined #nixos
<LnL>
that's an exception because it's part of POSIX
<gchristensen>
good news y'all, I got permission from Luca ( lethalman ) to port Nix Pills in to something distributed by nix
<disasm>
ooh, that's awesome!
Ivanych has quit [(Ping timeout: 240 seconds)]
<gchristensen>
and when that happens he'll link from his pills to the ported version
<Sonarpulse>
LnL: Just pushed to that PR
<disasm>
so we can keep them up-to-date as things change too :)
<gchristensen>
yep :)
<Sonarpulse>
I'm about to get lunch, and I need to actualy test it
mudri has quit [(Ping timeout: 240 seconds)]
<Sonarpulse>
but the comments are there to explain the general idea, which is what I'm most interested in other ppl looking over anyways
<MoreTea>
gchristensen, awesome
<gchristensen>
now the problem is where to put the thing
eacameron has joined #nixos
<gchristensen>
it really is its own ... thing
<Sonarpulse>
gchristensen: yay!
<LnL>
yeah, it should be separate
<LnL>
we can't dump that in the manual or something
<gchristensen>
ok who wants to write a whole boat load of docbook with me
cpennington has quit [(Read error: Connection reset by peer)]
<gchristensen>
I'll start a skeleton and do the first one, then we should be able to copy-and paste that for the rest and then converge on a completed doc by splitting out the Pills
<Ankhers>
Sounds good to me. Just ping me when you have something for me to do.
<gchristensen>
will do :D
arximboldi has joined #nixos
<gchristensen>
disasm: are you @disassembler on github?
babic has quit [(Ping timeout: 255 seconds)]
<copumpkin>
shlevy, zimbatm: y'all around to talk about TF 0.10?
<nixy>
Yeah, I wrote it and have been trying to push it through the docs review process
<nixy>
Full disclouse: I work for Linode
<gchristensen>
oh should I delete the submission to lobste.rs?
<gchristensen>
to let you submit it?
<nixy>
I suppose I should since I wrote it lol
<gchristensen>
deleted :)
<nixy>
Submitted!
<nixy>
GlennS: I know you were looking at some NixOps stuff for Linode, some stuff in that guide might help you out
phreedom has quit [(Ping timeout: 240 seconds)]
frankpf has quit [(Quit: Leaving)]
<MoreTea>
gchristensen, yes, I'd like to help with docs
<MoreTea>
I'll allocate some time for that.
phreedom has joined #nixos
<joepie91>
hmm... say that I have a repository containing proprietary bits (JRE, etc.) that are requireFile'd by a nixpkgs package, and instead of using nix-prefetch-url, I want to specify their inclusion in the store from my configuration.nix... how would I approach this?
<joepie91>
(Ie. declaratively instead of imperatively)
<gchristensen>
nixy: great work, thank you so much
<joepie91>
I guess that really all I need to do is forcibly add a path to the store, and requireFile will pick it up, but idk how to do that :)
drakonis has quit [(Remote host closed the connection)]
drakonis has joined #nixos
<LnL>
building something that depends on a requireFile should show you instructions
<disasm>
nixy: I have a similar way of deploying with nixops to vultr, where you create an image, and then use the API to use your created image. Not sure if you can adapt some of that to linodes API's and create a linode backend for nixops.
<Ankhers>
Would someone mind giving me an invite to lobste.rs? I can send a PM with my information.
<joepie91>
LnL: yes, but the instructions are imperative (nix-prefetch-url, etc.), and I'm looking for a declarative solution
<disasm>
What is lobste.rs?
<Ankhers>
website.
<gchristensen>
Ankhers: email?
<joepie91>
LnL: ie. something I can ship alongside my NixOS config repo
<nixy>
disasm: I had thought about that kind of approach, but hadn't seen anything in NixOps using it
mudri has joined #nixos
<LnL>
joepie91: well it's used with upstream doesn't provide a possibility to download it in an automated mail
<disasm>
nixy: yeah, it's hard when there aren't official images :)
ixxie has joined #nixos
<disasm>
nixy: although you working at linode, maybe you could get an official image created :)
<joepie91>
LnL: I am aware. hence needing to ship along the source file with my config repo, and wanting to have it added to the store declaratively, so as to not break the nixpkgs packages that need it
<drakonis>
lobsters is nice.
<nixy>
disasm: That is the dream. Just another step towards world domination
<gchristensen>
nixy: I can help with that, I've done similar work for Packet.net
<drakonis>
its hacker news except sane
<nixy>
The first step was getting the guide published. Now that it's out there and I can show that there is interest I should be able to push for an image
<Ankhers>
gchristensen: Thanks.
<disasm>
ooh, that is a pretty cool site. I'll take an invite too if anyone has extras :)
<LnL>
joepie91: oh like that, you can write a fixed output drv for it if you distribute it internally
<joepie91>
LnL: ah, how would I do that? I've searched around for a bit, but couldn't find anything
<joepie91>
(if you have an example, even better :P)
<joepie91>
like, if I have an example I can probably figure out how it works
<joepie91>
just need a starting point :)
<copumpkin>
joepie91: you going to nixcon?
<clever>
joepie91: only thing i can think of involving JRE, is to just re-host the tar on your own site, and fetchurl them
<LnL>
you could do something like openjdk.overrideAttrs { src = fetchurl ...; }
<clever>
and then that
zennist has joined #nixos
<LnL>
and if the hash of that fetchurl is the same as the requireFile nothing will rebuild
goibhniu has quit [(Ping timeout: 255 seconds)]
<clever>
hydra cant build the oracle jdk, so hydra wont have anything cached that depends on it
<zennist>
newbie here. does nix allow my make command to read files in a custom location e.g., /home/<myname>/... during the build process?
leat has joined #nixos
<LnL>
oh right, the hash doesn't even matter
<zennist>
i just tried for something and my make is reporting permission denied on the said locations
<joepie91>
copumpkin: maybe, not super likely, but I will at least be at SHA2017 :P
<clever>
zennist: HOME is set to /homeless-shelter during a build
<clever>
zennist: all files you need to build must be clearly specified in the .nix file
<drakonis>
what's the news on nixcon
<joepie91>
LnL: hm, then I can also just specify a local path, no?
<zennist>
i see - but i did use explicit path i.e., /home/...
<zennist>
clever: i'm still a bit confused by your solution; so I have my build config defined something like mkDerivation { ... = ; ... = ; } etc., how can I tell nix: for this package allow me to read the following files?
<zennist>
clever: i tried to just set those directories to world readable but that doesn't do the trick
takle has joined #nixos
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
<clever>
zennist: can you gist the full nix file?
<Myrl-saki>
What's suggested for Nix files? snake_case or camelCase?
<zennist>
it's alright the headers don't change so i'll just manually do it then; originally thought they are quite big so was thinking to keep them out of the project area
abcrawf has quit [(Remote host closed the connection)]
abcrawf has joined #nixos
ambro718 has joined #nixos
justelex_ has joined #nixos
charlycoste has quit [(Quit: Leaving.)]
ben has quit [(Ping timeout: 240 seconds)]
deltasquared has left #nixos ["Leaving"]
mudri has quit [(Ping timeout: 260 seconds)]
todder has joined #nixos
moet has joined #nixos
jgertm has joined #nixos
hellrazor has joined #nixos
hlavaty has quit [(Remote host closed the connection)]
<Myrl-saki>
How do I make Nix compile a certain version of a library and output the file location?
swoorup has joined #nixos
<swoorup>
hi
<swoorup>
i just installed nixos coming from ubuntu
<swoorup>
how do you install viber?
<clever>
swoorup: nix-env -iA nixos.viber
<swoorup>
nix-env -qa | grep -i viber yields 0 result
<swoorup>
i find the wiki too verbose as well, could have been split up like Arch
<swoorup>
wiki
<swoorup>
not too verbose, but a long read
<swoorup>
and hard to find information
akiroz has joined #nixos
gnuhurd has quit [(Remote host closed the connection)]
gnuhurd has joined #nixos
nschoe has quit [(Quit: Program. Terminated.)]
swoorup has quit [(Remote host closed the connection)]
<copumpkin>
clever: what about that?
<clever>
copumpkin: swoorup just ran into that issue
et4te has joined #nixos
<akiroz>
hi guys, I'm just starting to learn NixOps but I can't seem to be able to deploy my first server. I got this error when running nixops deploy:
<akiroz>
error: The option value `users.users.root.openssh.authorizedKeys.keys.[definition 1-entry 1]' in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/config/users-groups.nix' is not a string.
<akiroz>
System: NixOS 17.03 NixOps: 1.5.1
<clever>
akiroz: did you set users.users.root.openssh.authorizedKeys.keys to something?
<nschoe>
Hi all, quick question, I've just installed nixos.gnome.gtk (gtk+-2.0), and I'm trying to compile a simple Hello, world with gtk, but `pkg-config --cflags gtk+-2.0` doesn't find anything.
<ToxicFrog>
Hrm. I want to create a local nixpkgs-like repo that has some packages which I write from scratch, and some which override packages in <nixpkgs>.
<ToxicFrog>
And then use that both for my systems using NixOS (which AIUI always use <nixpkgs> as the package search path?) and my systems using Nix on some other distro.
<clever>
nschoe: you must use nix-shell when building things, installing build-time stuff just breaks it
bennofs has joined #nixos
<eacameron>
Is there a way to create a Haskell build env for nix shell that works for multiple projects? Kinda how stack does it?
<clever>
eacameron: i generally use ghcWithPackages, just add all the packages you need to it
<nschoe>
clever, hum, I'm not sure I understand. Does it mean I should uninstall 'nixos.gnome.gtk'? Do you have some documentation for compiling a small project with nix-shell?
<eacameron>
clever: I suppose that would get me closer.
<nschoe>
clever, note: I'm not trying to createa nix package, I'm just developping on my machine, and want to compile my project, not install it
<clever>
nschoe: nix-shell -p gnome.gtk pkgconfig
<clever>
nschoe: you must still build it under nix-shell, and installing pkgconfig also breaks it
<nschoe>
clever, thanks. IIUC (I haven't use nixOS much for developping yet), this will drop me into a shell with gnome.gtk installed. But will it be at the "usual" /usr/lib/include? What about pkgconfig, should I install it inside the nix-shell? How do I link agaisnt this library?
<clever>
nschoe: nix will never have a /usr/lib/include directory
<clever>
nschoe: by adding pkgconfig to the -p list, a setup hook for pkgconfig gets ran, which will scan over all of your inputs (gnome.gtk pkgconfig), and add each of them to an env variable that changes the pkgconfig search path
<LnL>
the only thing we have is /usr/bin/env everything else is in the store :)
<nschoe>
clever, that's what I thought, yeah ^^
<clever>
nschoe: gcc should also be in the scope already, and it will change the search path for -I
<clever>
so when using nix-shell, it will just work
ambro718 has joined #nixos
<nschoe>
clever, okay so the correct solution **is** to use nix-shell -p gnome.gtk, xxx.pkgconfig, and then inside it use pkg--config --cflags <yyy>. I mena this is not a hack, this is the normal soution, right?
<clever>
yes
<nschoe>
clever, okay, I'm going to read more about nix-shell, and try this, then
<nschoe>
clever, thanks for taking the time, I'm sure plenty of stupid questions like mine come around here :/
<clever>
you can also create a shell.nix to save the list of packages that will be growing
<clever>
with import <nixpkgs> {}; stdenv.mkDerivation { name = "yourproject"; buildInputs = [ gnome.gtk pkgconfig ]; }
<clever>
nschoe: if you put this into a file called shell.nix, you can just run nix-shell without an arguments
zennist has quit [(Ping timeout: 240 seconds)]
<clever>
and now you can track the dependencies in git
<nschoe>
clever, okay, that's cool. Thank you for that.
<nschoe>
clever, I suppose "inside the nix-shell" the setup is close to that of "other systems", so that my work can be re-used on, say a Ubuntu or so.
<clever>
yeah
<clever>
you can also run nix-shell on an ubuntu system that has had nix installed
katyucha_ has quit [(Quit: leaving)]
Curiontice has joined #nixos
katyucha has joined #nixos
Soham has joined #nixos
Capprentice has quit [(Ping timeout: 258 seconds)]
Curiontice has quit [(Ping timeout: 260 seconds)]
MP2E has joined #nixos
[0x4A6F] has quit [(Ping timeout: 248 seconds)]
phreedom has quit [(Ping timeout: 248 seconds)]
phreedom has joined #nixos
marsam has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 2 new commits to master: https://git.io/v72Dd
<NixOS_GitHub>
nixpkgs/master 53d2f09 Markus Mueller: nat: always flush nixos nat rules on firewall start/reload...
<NixOS_GitHub>
nixpkgs/master 1793c96 Markus Mueller: tests/nat: Use switch-to-configuration in test case
<sphalerite>
Maybe even have it respond automatically when a specific set of keywords is encountered? e.g. ("cache.nixos.org" & ("curl error" | "slow")) and ("install" & ("library" | "pkg-config" | ...))
rpifan has quit [(Max SendQ exceeded)]
<sphalerite>
(but only once ever per person asking, or something)
rpifan has joined #nixos
<sphalerite>
and debounce
rpifan has quit [(Max SendQ exceeded)]
rpifan has joined #nixos
<gchristensen>
too far :)
ben__ has joined #nixos
rpifan has quit [(Max SendQ exceeded)]
rpifan has joined #nixos
rpifan has quit [(Max SendQ exceeded)]
gnuhurd has quit [(Ping timeout: 268 seconds)]
frankpf has joined #nixos
gnuhurd has joined #nixos
kiloreux has joined #nixos
hellrazor has joined #nixos
zennist has joined #nixos
justelex_ has quit [(Ping timeout: 240 seconds)]
drakonis has quit [(Read error: Connection reset by peer)]
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/v72Qc
<NixOS_GitHub>
nixpkgs/master 0b96f1d Robin Gloster: bsdgames: fix weird Makefile use of STRIP
NixOS_GitHub has left #nixos []
zennist has quit [(Ping timeout: 240 seconds)]
<disasm>
clever: I know both default.nix and shell.nix work, but is one preferred over the other for use with nix-shell? I've been using default.nix mostly.
MoreTea has quit [(Quit: Leaving)]
justelex_ has joined #nixos
Infinisil has joined #nixos
bennofs has quit [(Quit: WeeChat 1.9)]
<disasm>
sphalerite: yeah, we had a factoid bot in the drupal community when I was doing PHP dev stuff still. was rather useful to say !composer or something any time someone asked how to install drupal 8, lol :)
justelex_ has quit [(Ping timeout: 268 seconds)]
MP2E has quit [(Read error: Connection reset by peer)]
pie_ has quit [(Remote host closed the connection)]
<sphalerite>
Infinisil: if you really insist on making unmodified applications use it (as opposed to patching them and sending the patches upstream, which is a better approach IMO!) you can also use a mount namespace + bind mount to fake them
reinzelmann has quit [(Quit: Leaving)]
<sphalerite>
Err actually that still involves the creation of the directories in your ~, even though they're empty. Never mind...
<Infinisil>
sphalerite: Yeah
justelex has joined #nixos
<Infinisil>
What I'm doing as a start is wrap the programs with certain env vars set / certain flags passed. Stuff like ZDOTDIR for zsh, or --hsts-file for wget
* disasm
senses a hubot with the !m syntax
<gchristensen>
disasm: the frustrating thing is [0__0] can do factoids but it isn't configured for it / lincolnloop won't help me set it up
<Infinisil>
I'm currently a bit short on time, exams are in a week, but here is what I got now, feel free to use it/improve it if you feel like it ( sphalerite taktoa [0__0] ): https://gist.github.com/a82c894755d27c2382dcb711f60b4e8b
<disasm>
yeah, you need a sql database I believe to enable factoids.
<Infinisil>
The overrideAttrs is pretty bad, that should change for example
<Infinisil>
gchristensen: But it's especially easy in bash
<LnL>
it didn't check the arguments before?
<gchristensen>
Infinisil: I was going to try and defend bash but thought better of it ;)
frankpf has quit [(Ping timeout: 260 seconds)]
MP2E has quit [(Quit: brb)]
takle has joined #nixos
<Infinisil>
gchristensen: I mean bash good things: It's very easy to get started, very flexible, great ecosystem. But one thing where bash stinks is type safety
<grahamc>
Does type safety prevent you from ignoring nonsensical argv's?
<tilpner>
Hey Infinisil, did you get your overlays installed?
<LnL>
main problem is bootstrapping, size of the stdenv closure is important
<Infinisil>
grahamc: With a language with types you could just write a function that takes these arguments, no need to use stringly typed manner. Of course integrating this with all other tools would be a pain.. but that's how it could work
<Infinisil>
tilpner: I did not, I gave up eventually
takle has quit [(Ping timeout: 248 seconds)]
takle has joined #nixos
<tilpner>
Alright, ping me if you try again, I still had another suggestion
<Infinisil>
tilpner: Thanks, I'll try to remember :)
<Sonarpulse>
LnL: nope just skipped stuff that didn't fit
<Sonarpulse>
Infinisil: worse than dynamic types is just no interestd data types
<Sonarpulse>
would bash vars support json or similar
<LnL>
well :/
<LnL>
that's not good
<Sonarpulse>
i.e. arbitrary depth
goibhniu has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] cillianderoiste pushed 12 new commits to master: https://git.io/v72hd
<NixOS_GitHub>
nixpkgs/master 475c303 Cillian de Róiste: a2jmidid: fix download URL...
<NixOS_GitHub>
nixpkgs/master 8fb5217 Cillian de Róiste: blender metadata: fix homepage
<NixOS_GitHub>
nixpkgs/master 8a1328f Cillian de Róiste: chromedriver: update homepage
NixOS_GitHub has left #nixos []
hellrazor has quit [(Ping timeout: 260 seconds)]
rtjure has joined #nixos
bennofs1 has joined #nixos
vengefulpickle has quit [(Remote host closed the connection)]
simukis has quit [(Ping timeout: 240 seconds)]
joehh has quit [(Ping timeout: 248 seconds)]
goibhniu has quit [(Ping timeout: 276 seconds)]
<Infinisil>
Sonarpulse: Yeah that would probably work, just pass json strings around and obtain info about them with jq or something similar
<Infinisil>
Although there still aren't any types, unless you do something hacky with json (like nix did :P)
FRidh has quit [(Quit: Konversation terminated!)]
<Sonarpulse>
Infinisil: well env vars we are screwed
<Sonarpulse>
unless we fork linux!
<Sonarpulse>
:D
<Sonarpulse>
but within bash there's no good reason not to have more interesting data
<Infinisil>
Agreed
cement has quit [(Ping timeout: 260 seconds)]
<Sonarpulse>
It would be interesting to write our own shlell
<Sonarpulse>
monadic nix
m0rphism has joined #nixos
<Sonarpulse>
foo bar ${normal nix} baz
<LnL>
and then people complain because it breaks with a bash version from 20 years ago :p
<Sonarpulse>
:D
<Sonarpulse>
OTOH it's good to do as little thinking at build time as possible
<Sonarpulse>
plan, than execute!
<Sonarpulse>
the rarely-followed mantra of sane build systems
<Infinisil>
execute -> fail -> do a bit of planning -> fail again -> stay up til 5am in frustration -> give up
<LnL>
lol
justelex has quit [(Quit: Konversation terminated!)]
justelex has joined #nixos
zeus_ has quit [(Read error: Connection reset by peer)]
<Sonarpulse>
lol
zeus_ has joined #nixos
<simpson>
Infinisil: You need to find a structure. Plan, discuss, negotiate, build, regret.
<simpson>
Chaos, discord, confusion, bureaucracy, the aftermath.
<LnL>
for me it usually ends with -> wake up -> fix 1 typo -> success
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/v7av8
<NixOS_GitHub>
nixpkgs/master 264d664 Robin Gloster: privoxy: fix weird use of STRIP in the Makefile
NixOS_GitHub has left #nixos []
justelex has quit [(Ping timeout: 276 seconds)]
* ToxicFrog
gnaws unhappily on Nix. I just want to write my own package definitions and use them from both Nix and NixOS without having to keep a complete checkout of nixpkgs! This shouldn't be this hard!
<tilpner>
ToxicFrog - You just want to add your own packages? Does an overlay work?
nschoe has quit [(Ping timeout: 255 seconds)]
<ToxicFrog>
Infinisil: to expand on this somewhat, I want to override some packages and have those overrides take precedence over the versions in <nixpkgs> (so, nixpkgs.config.packageOverrides)
<ToxicFrog>
And I want to write some new packages from scratch
<ToxicFrog>
and I want to be able to re-use all that work on a system that just has Nix installed, not NixOS.
<clever>
that implies it was hung at __read_nocancel for over 3 weeks, and the deadlocking was a side-effect of __read_nocancel not handling signals right
<Sonarpulse>
isn't enough to make my hydra job appear?
erictapen has joined #nixos
requisitebits has joined #nixos
<clever>
Sonarpulse: try loading the release.nix in nix-repl and eval the job's attribute?
<Sonarpulse>
clever: I did
<gchristensen>
pierron: wow! cool!
NightTrain has joined #nixos
hiratara has quit [(Ping timeout: 246 seconds)]
joehh has joined #nixos
<clever>
the strbuf_getwholeline in frame 27 is reading up to the first \n in a given FILE*
<gchristensen>
" The membership plan could amplify Mozilla’s voice. You’d get services from Mozilla, not just a browser, and the nonprofit would get your membership fees and firm backing — something akin to what the National Rifle Association or the AARP enjoy." this is neat
<LnL>
Sonarpulse: that's the darwin only jobs issue
<Sonarpulse>
LnL: ooooo
<LnL>
x86_64-linux is used to determine the attributes
<LnL>
so it gets filtered out
<LnL>
you can explicitly set it to darwin in release.nix
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 1 new commit to master: https://git.io/v7aOJ
<NixOS_GitHub>
nixpkgs/master 1ad0eae John Ericson: darwin-tested channel: Fix eval
NixOS_GitHub has left #nixos []
<ToxicFrog>
I just love it when nixos-rebuild tells me "infinite recursion detected" but when I ask it for a trace none of the files it cites actually contain my code
<clever>
ToxicFrog: one of those files is manipulating a function that came from your code, the traces suck
<clever>
ToxicFrog: if you gist what you changed recently i could take a peek
pie_ has quit [(Read error: Connection reset by peer)]
<ToxicFrog>
clever: I'm trying to convert my packageOverrides to overlays, it's a bit much to gist :/
<ToxicFrog>
I'll keep poking at it
pie_ has joined #nixos
<clever>
ToxicFrog: ah, make sure an override doesnt refer to self when trying to modify itself
hamishmack has quit [(Quit: hamishmack)]
<clever>
foo = self.foo.override will fail
silver_hook has joined #nixos
silver_hook has quit [(Changing host)]
silver_hook has joined #nixos
<clever>
it must use super
<ToxicFrog>
Yeah, that was the first thing I checked, and I found a case of that and fixed it, but it's still happening.
<ToxicFrog>
So I've probably missed one somewhere :/
<clever>
and dont reference pkgs anywhere
<ToxicFrog>
using self to pull in dependencies is still ok though, right?
<clever>
yeah
justelex has quit [(Excess Flood)]
justelex has joined #nixos
mounty has quit [(Ping timeout: 240 seconds)]
<ToxicFrog>
Hrm. Ok, so it looks like the problem is that you can't go, for example, `{ pidgin, ...}: { bitlbee, ...}: { bitblee = bitlbee.overrideAttrs (...); }
<ToxicFrog>
I changed that to `self: super: { bitlbee = super.bitlbee.overrideAttrs (...) }` and I no longer get the infinite recursion.
<ToxicFrog>
Except...my overlay doesn't seem to be taking effect.
<ToxicFrog>
If I do a `nixos-rebuild --dry-build`, it shows it building the non-overlaid versions of the packages I'm overriding.
endformationage has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to openssl-1.1: https://git.io/v7a3L
<NixOS_GitHub>
nixpkgs/openssl-1.1 b1f2f94 Robin Gloster: Merge remote-tracking branch 'upstream/master' into openssl-1.1
NixOS_GitHub has left #nixos []
<clever>
ToxicFrog: what did you modify inside the overrideAttrs ?
joehh has joined #nixos
<ToxicFrog>
clever: I have a bunch of overrides; in some I override src, in others postPatch, preBuild, configureFlags, and/or nativeBuildInputs
<ToxicFrog>
But in each case I also modify the name to make it clear that a modified version is being built
<ToxicFrog>
And none of the stuff dry-build says it's going to be build uses the modified names.
wigust has quit [(Ping timeout: 240 seconds)]
<ToxicFrog>
Says it's going to build bitlbee-3.5.1 rather than bitlbee-libpurple, for example.
justelex has quit [(Ping timeout: 260 seconds)]
<clever>
ToxicFrog: find the path for the final .drv file in the tree, then run nix-store -qR on that drv
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/v7a3C
<NixOS_GitHub>
nixpkgs/master 4a93ce1 Marius Bergmann: journalbeat: 5.4.1 -> 5.5.0
<taktoa>
(IMO, hydra is an application that probably shouldn't worry about BC other than database migrations, since it's so hard to deploy that the average user is probably capable of handling a BC break)
<Sonarpulse>
gchristensen: good catch
<Sonarpulse>
github ate the diff booo
<taktoa>
globin: yeah, I know, I'm saying that we should refactor the perl to not use those options anyway
<taktoa>
or is it like the perl mutates the parsed configuration with those options
<taktoa>
in which case I'd say that we should assert that those config options aren't in the unmodified parsed config
<globin>
taktoa: yeah the perl needs refactoring, but that needs someone who has the time :)
earldoug1as has joined #nixos
earldouglas has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 2 new commits to release-17.03: https://git.io/v7aca
<NixOS_GitHub>
nixpkgs/release-17.03 d724125 John Ericson: backport haskell infra: Misc cleanups...
<NixOS_GitHub>
nixpkgs/release-17.03 9217fc2 John Ericson: cc-wrapper: Backport sierra reexport hack and test
NixOS_GitHub has left #nixos []
<taktoa>
globin: I'm very tempted to just rewrite Hydra :)