systemfault has joined #nixos
moet has joined #nixos
<LnL> alphor: you need propagatedBuildInputs for runtime dependencies
Fare has quit [(Ping timeout: 240 seconds)]
phinxy has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<phinxy> What does nixos-rebuild build-vm look like?
<phinxy> A windows pops up with a VM of the config?
moet has quit [(Ping timeout: 240 seconds)]
<phinxy> how amazing is nixos
matthewbauer has quit [(Ping timeout: 240 seconds)]
ryantrinkle has quit [(Ping timeout: 260 seconds)]
eacameron has joined #nixos
MP2E has joined #nixos
<alphor> LnL: that was probably going to be my next problem. the wrapper can't find the main module. sysctl error: http://nixpaste.lbr.uno/raw/fHbRpy8V
<alphor> it looks like it's not in the path of the wrapper, but I'm not quite sure.
eacameron has quit [(Ping timeout: 255 seconds)]
hexa- has quit [(Remote host closed the connection)]
hellrazo1 has joined #nixos
hexa- has joined #nixos
hellrazor has quit [(Ping timeout: 272 seconds)]
jsgrant_om has joined #nixos
<joepie91> phinxy: close; it builds the VM image, and a second command will pop up the window :)
systemfault has quit [(Quit: Bye!)]
matthewbauer has joined #nixos
phinxy has quit [(Read error: Connection reset by peer)]
odin has joined #nixos
Fare has joined #nixos
odin has quit [(Client Quit)]
matthewbauer has quit [(Ping timeout: 240 seconds)]
justelex_ has joined #nixos
FareTower has joined #nixos
moet has joined #nixos
Fare has quit [(Ping timeout: 260 seconds)]
justelex has quit [(Ping timeout: 260 seconds)]
matthewbauer has joined #nixos
FareTower has quit [(Ping timeout: 260 seconds)]
mbrgm has quit [(Ping timeout: 240 seconds)]
derjohn_mob has quit [(Ping timeout: 258 seconds)]
matthewbauer has quit [(Remote host closed the connection)]
matthewbauer has joined #nixos
Mateon3 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/v97GI
<NixOS_GitHub> nixpkgs/master e180530 Tuomas Tynkkynen: afl: 2.35b -> 2.41b
NixOS_GitHub has left #nixos []
Mateon1 has quit [(Ping timeout: 255 seconds)]
Mateon3 is now known as Mateon1
mbrgm has joined #nixos
mudri has quit [(Quit: WeeChat 1.7.1)]
derjohn_mob has joined #nixos
matthewbauer has quit [(Ping timeout: 240 seconds)]
Raimondii has joined #nixos
Raimondi has quit [(Ping timeout: 268 seconds)]
Raimondii is now known as Raimondi
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] amiloradovsky opened pull request #25771: planner: 20170429 -> split (into three versions) (master...planner) https://git.io/v97G1
NixOS_GitHub has left #nixos []
iyzsong has joined #nixos
s33se_ has joined #nixos
s33se has quit [(Ping timeout: 255 seconds)]
takle_ has quit [(Remote host closed the connection)]
jsgrant_om has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg(at)jsgrant.io & I'll try to get back to you within 24 hours.)]
acertain has joined #nixos
lambdamu has joined #nixos
justelex has joined #nixos
ertesx has joined #nixos
takle has joined #nixos
lambdamu_ has quit [(Ping timeout: 260 seconds)]
ertes has quit [(Ping timeout: 255 seconds)]
ertesx is now known as ertes
matthewbauer has joined #nixos
justelex_ has quit [(Ping timeout: 260 seconds)]
takle has quit [(Ping timeout: 260 seconds)]
<simukis_> how do you set a different nix-shell shell
<Myrl-saki> How to avoid user packages getting garbage collected?
<simpson> simukis_: You can give an arbitrary command with --run, like $(nix-shell -p python3 --run python3).
<simukis_> no, I want to set it "overall", so didn’t have to type --run fish every single time
<simukis_> bash is terrible horrible thing
<simukis_> oh I see, there’s NIX_BUILD_SHELL
<simpson> Maybe $(alias nix-fish='nix-shell --run fish')?
<simpson> Yikes, I don't think that that does what you want it to do.
<mdash> bash is a dog... but it's our dog
takle has joined #nixos
<simukis_> simpson: I would create a wrapper with writeScriptBin, but I’ve found on several occasions that it simply gets overwriten by the package binary itself
<simpson> simukis_: If that works for you, then great, but the name suggests that it might also change the shell which nix-shell uses to build your environment, and I have zero idea how well that's going to work.
proteusguy has joined #nixos
<mdash> Also remember that nix-shell runs the stdenv build setup script
<mdash> Which may not go so well if it's not bash
takle has quit [(Ping timeout: 240 seconds)]
<simukis_> okay, I just made wrapper script named `ns` for now
<mdash> It occurs to me that 'nix-shell -p' and ' nix-shell -A' are quite different use cases
georges-duperon has quit [(Ping timeout: 260 seconds)]
<simpson> Indeed. It's curious that Nix puts them so close together in the UI.
hexagoxel has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
primeos has quit [(Quit: WeeChat 1.4)]
hexagoxel has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
darlan has quit [(Quit: Communi 3.5.0 - http://communi.github.com)]
<gchristensen> simpson: I suspect doc writers thinking about function and not use case
primeos has joined #nixos
matthewbauer has quit [(Ping timeout: 260 seconds)]
matthewbauer has joined #nixos
takle has joined #nixos
takle has quit [(Ping timeout: 255 seconds)]
riclima has joined #nixos
<simpson> gchristensen: Sure. I notice that at least nix-build also respects this envvar without necessarily saying so. I expect that it really is not something meant to be tampered with.
riclima has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
darlan has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
ryantrinkle has joined #nixos
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/v97cu
<NixOS_GitHub> nixpkgs/master 68f335c Peter Hoeg: virtmanager-qt: 0.42.67 -> 0.43.70
NixOS_GitHub has left #nixos []
takle has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
spinus has quit [(Ping timeout: 268 seconds)]
matthewbauer has quit [(Ping timeout: 268 seconds)]
darlan has quit [(Quit: Communi 3.5.0 - http://communi.github.com)]
takle has joined #nixos
takle has quit [(Ping timeout: 255 seconds)]
roconnor has quit [(Ping timeout: 240 seconds)]
Drako365 has joined #nixos
takle has joined #nixos
matthewbauer has joined #nixos
iyzsong has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
takle has quit [(Ping timeout: 268 seconds)]
rotaerk has quit [(Ping timeout: 240 seconds)]
MarcWeber has joined #nixos
takle has joined #nixos
Fare has joined #nixos
hellrazo1 has quit [(Ping timeout: 268 seconds)]
<Fare> when some source package has plenty of #!/bin/bash, what's the canonical way of patching them into #!/bin/sh or #!/usr/bin/env bash ?
hellrazo1 has joined #nixos
filterfish has quit [(Remote host closed the connection)]
zeus_ has joined #nixos
filterfish has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 246 seconds)]
proteusguy has quit [(Ping timeout: 260 seconds)]
Drako365 has quit [(Ping timeout: 260 seconds)]
* Fare uses git grep #!/bin/bash and #!/usr/bin/env to find out how other pkgs deal with it.
Fare has quit [(Ping timeout: 246 seconds)]
obadz has joined #nixos
<obadz> $ unshare -p bash
<obadz> unshare: unshare failed: Operation not permitted
<obadz> any ideas?
takle has joined #nixos
<matthewbauer> you might need CAP_SYS_ADMIN
<obadz> that's unfortunate
<obadz> when I run that as root, it doesn't fail but I still see the other processes
<obadz> (I seem to need --fork)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jbaum98 opened pull request #25772: neovim: neovim-ruby 0.3.1 -> 0.4.0 (master...neovim-ruby) https://git.io/v97Wi
NixOS_GitHub has left #nixos []
takle has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] matthewbauer opened pull request #25773: checkbashisms: fixup (master...checkbashisms-update) https://git.io/v97Wy
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] matthewbauer opened pull request #25774: xapian: fixup darwin (master...xapian-fixup) https://git.io/v97WS
NixOS_GitHub has left #nixos []
matthewbauer has quit [(Remote host closed the connection)]
matthewbauer has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
treaki has joined #nixos
treaki__ has quit [(Ping timeout: 255 seconds)]
matthewbauer has quit [(Remote host closed the connection)]
matthewbauer has joined #nixos
roconnor has joined #nixos
orivej has quit [(Ping timeout: 260 seconds)]
obadz has quit [(Ping timeout: 272 seconds)]
takle has joined #nixos
hellrazo1 has quit [(Ping timeout: 240 seconds)]
takle has quit [(Ping timeout: 260 seconds)]
endformationage has quit [(Quit: WeeChat 1.7)]
obadz has joined #nixos
takle has joined #nixos
matthewbauer has quit [(Ping timeout: 240 seconds)]
matthewbauer has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
moet has quit [(Ping timeout: 255 seconds)]
takle has joined #nixos
takle has quit [(Read error: Connection reset by peer)]
takle has joined #nixos
m3tti has joined #nixos
hellrazo1 has joined #nixos
systemfault has joined #nixos
takle has quit [(Ping timeout: 246 seconds)]
alx741 has quit [(Ping timeout: 240 seconds)]
Fare has joined #nixos
obadz has quit [(Quit: WeeChat 1.8)]
jacob_ has joined #nixos
jacob_ is now known as Guest36189
iyzsong has joined #nixos
alx741 has joined #nixos
ekaj has quit [(Quit: WeeChat 1.5)]
takle has joined #nixos
takle has quit [(Ping timeout: 255 seconds)]
Fare has quit [(Ping timeout: 240 seconds)]
filterfish has quit [(Ping timeout: 245 seconds)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
filterfish has joined #nixos
matthewbauer has quit [(Ping timeout: 272 seconds)]
takle has joined #nixos
iyzsong has quit [(Ping timeout: 260 seconds)]
Fare has joined #nixos
takle has quit [(Ping timeout: 272 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 245 seconds)]
a7p has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
Fare has quit [(Ping timeout: 240 seconds)]
takle has quit [(Ping timeout: 255 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 255 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
filterfish has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #25773: checkbashisms: fixup (master...checkbashisms-update) https://git.io/v97Wy
NixOS_GitHub has left #nixos []
takle has quit [(Ping timeout: 260 seconds)]
blogle has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
justbeingglad has joined #nixos
m3tti has quit [(Ping timeout: 260 seconds)]
justbeingglad has left #nixos []
takle has quit [(Ping timeout: 272 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/v97RT
<NixOS_GitHub> nixpkgs/master 34de624 Peter Hoeg: qtox: 1.10.0 -> 1.10.1
NixOS_GitHub has left #nixos []
takle has joined #nixos
Jackneilll has joined #nixos
takle has quit [(Ping timeout: 246 seconds)]
filterfish has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #25760: fwup: init at 0.14.2 (master...fwup) https://git.io/v9Qic
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 reopened pull request #25760: fwup: init at 0.14.2 (master...fwup) https://git.io/v9Qic
NixOS_GitHub has left #nixos []
orivej has joined #nixos
hotfuzz_ has joined #nixos
hotfuzz has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/v97RQ
<NixOS_GitHub> nixpkgs/master a6bcf14 Fernando J Pando: buildbot: 0.9.6 -> 0.9.7
<NixOS_GitHub> nixpkgs/master a9238ea Frederik Rietdijk: Merge pull request #25738 from nand0p/buildbot-0.9.7...
NixOS_GitHub has left #nixos []
FRidh has joined #nixos
oida_ has joined #nixos
takle has joined #nixos
<MichaelRaskin> Fare: canonical way is to use patchShebangs which will use absolute path to bash
oida has quit [(Ping timeout: 260 seconds)]
takle has quit [(Ping timeout: 255 seconds)]
kampfschlaefer has joined #nixos
takle has joined #nixos
takle has quit [(Ping timeout: 264 seconds)]
derjohn_mob has quit [(Ping timeout: 272 seconds)]
stepho has quit [(Ping timeout: 260 seconds)]
stepho has joined #nixos
zeus_ has quit [(Remote host closed the connection)]
takle has joined #nixos
zeus_ has joined #nixos
zeus_ has quit [(Ping timeout: 255 seconds)]
takle has quit [(Ping timeout: 272 seconds)]
FRidh has quit [(Quit: Konversation terminated!)]
kampfschlaefer has quit [(Ping timeout: 272 seconds)]
orivej has quit [(Ping timeout: 255 seconds)]
chakerbenhamed has joined #nixos
systemfault has quit [(Quit: Bye!)]
filterfish has quit [(Ping timeout: 258 seconds)]
<inflames> has anyone seen someone run complex oracle ecosystems on nixos?
<inflames> I may make it a side project to try to get out dev environment into nixos
orivej has joined #nixos
takle has joined #nixos
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
filterfish has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
marsel has joined #nixos
roconnor has quit [(Ping timeout: 240 seconds)]
orivej has quit [(Ping timeout: 255 seconds)]
takle has joined #nixos
orivej has joined #nixos
takle has quit [(Ping timeout: 255 seconds)]
orivej_ has joined #nixos
orivej has quit [(Read error: Connection reset by peer)]
thc202 has joined #nixos
orivej has joined #nixos
takle has joined #nixos
orivej_ has quit [(Ping timeout: 255 seconds)]
takle has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 264 seconds)]
takle has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti pushed 1 new commit to master: https://git.io/v97gv
<NixOS_GitHub> nixpkgs/master b5d2c81 Peter Simons: Remove broken haskell-tools overrides....
NixOS_GitHub has left #nixos []
marsel has quit [(Ping timeout: 240 seconds)]
kampfschlaefer has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
hellrazo1 has quit [(Ping timeout: 240 seconds)]
mpcsh has quit [(Quit: THE NUMERICONS! THEY'RE ATTACKING!)]
mpcsh has joined #nixos
hellrazo1 has joined #nixos
takle has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
<sphalerite> Does anyone have boot image verification set up with NixOS, with GRUB/libreboot?
takle has joined #nixos
treaki has quit [(Ping timeout: 240 seconds)]
iyzsong has joined #nixos
mudri has joined #nixos
takle has quit [(Ping timeout: 272 seconds)]
<clever> sphalerite: closest i have is this custom solution in ipxe: https://github.com/cleverca22/not-os/blob/master/ipxe.nix
<clever> an ssl cert is embeded into the ipxe binary, and all files it executes must be signed
<sphalerite> Yeah, I took a look at that earlier because I remembered you tlaking about that in the past. Not really what I'm looking for though, it's for booting off the hard disk and not the network
<clever> hmmm, yeah, not sure if ipxe is able to handle a local filesystem
<sphalerite> GRUB supports verifying GPG signatures, the main question is just how to integrate that with nixos's rebuild mechanism
<clever> yeah
<clever> you would either need the install-grub area to sign things after the build, or make the key world-readable by putting it into the store
<clever> this script gets ran every time nixos-rebuild needs to update the grub.conf file
<clever> and it deals with copying kernels to /boot if needed
<clever> so that would be an ideal place to sign the kernels
<sphalerite> Yeah, that place would probably be the best place to put it
<MichaelRaskin> And it could use some rewriting for simpler coexistence of NixOS with Nix-based mini-OSes…
<clever> i was also thinking about inserting a 2nd nixos based image in there, that nixos-rebuild wont update every time
<clever> if you drop this initrd and kernel into /boot, and give them an entry in grub, you can boot the install media without needing a cd/usb
<sphalerite> perhaps not even needing to modify install-grub.pl at all, given that it has this extraPrepareConfig hook
<clever> but for stability, you dont want nixos-rebuild to update it constantly
<clever> so maybe having an extra profile for a recovery installer, which will get its own entry in the grub
<MichaelRaskin> I currently have every generation of my not-NixOS system with its own config, and then a real GRUB config including all of them
<MichaelRaskin> So that whatever goes wrong I have a chance that manual configfile choice will help
<clever> i was doing the oposite when i started, i was including the nixos config into a gentoo grub.conf
<clever> but ive since ditched gentoo on that machine
<MichaelRaskin> I don't have anything except the system I use
<MichaelRaskin> So no natural source of default GRUB
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti pushed 2 new commits to master: https://git.io/v9725
<NixOS_GitHub> nixpkgs/master 5052ac8 Peter Simons: git-annex: fix hash for new version
<NixOS_GitHub> nixpkgs/master 5d6c76d Peter Simons: git-annex: make sure the test suite runs with git-annex-shell in $PATH
NixOS_GitHub has left #nixos []
MP2E has quit [(Quit: sleep)]
<sdll> Team, could you please tell me how I can combine a shortcut for a list of python packages with normal nixos packages in the definition of the environment? See https://pastebin.com/pM7cX2tn for the code of python packages I want to include with, for example, emacs.
chakerbenhamed has quit [(Ping timeout: 246 seconds)]
<sphalerite> sdll: make a derivation that takes that as a buildInput. e.g. runProgram "dev-environment" {buildInputs = [ (python35.withPackages ...) emacs ];} ""
<sphalerite> not sure if runProgram is the best option there
<sdll> Can I use it with the --pure option?
<sphalerite> yeah, that should work.
<sphalerite> oh wait actually
takle has joined #nixos
<sphalerite> I'm not entirely sure if what I said will work right, python-wise. But I think it should
<clever> sdll: something similiar that ive done recently: https://gist.github.com/cleverca22/bb103d600ac7cc737e7ab009ad6c48da
betaboon has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
<sdll> clever: thank you very much! I am new to nix, could you please tell what it does?
<clever> sdll: nix-shell -A will give you an environment suitable for building whatever you pointed it at
<clever> in that gist, env.nix is a dummy package, that needs generator and protobuf to "build"
<Filystyn> where do i look for services conf on nixos
<clever> so i can aim nix-shell at it with nix-shell -A generator-env
<clever> and then nix-shell gives me an env with just generator and protobuf
proteusguy has joined #nixos
Gravious has joined #nixos
kyod has left #nixos ["WeeChat 1.5"]
takle has joined #nixos
<Filystyn> well not services but particualry xinetd.conf
<sdll> That's very nice, thank you!
Wizek_ has joined #nixos
phinxy has joined #nixos
<Filystyn> so where are the .conf files?
<sdll> clever, I cannot get it running on my machine though after putting your files into my pwd and then running "nix-shell -A generator-env"
orivej has quit [(Ping timeout: 264 seconds)]
<clever> sdll: the default.nix needs to be properly formated, let me add more to the gist
<sdll> Sure, thank you very much, clever!
takle has quit [(Ping timeout: 245 seconds)]
<clever> sdll: with this, you can now define a set of closely inter-connected packages between lines 8&11, and they can depend on eachother easily
<clever> and the entire set is returned by default.nix, so you can use -A to refer to any of them
bennofs has joined #nixos
<unlmtd> is there a way to specify musl libc to stdenv?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/v97au
<NixOS_GitHub> nixpkgs/master d22b1d0 Tuomas Tynkkynen: hdparm: 9.51 -> 9.52
NixOS_GitHub has left #nixos []
<Filystyn> where do i look for xinetd conf on nixos or other conf files.
<clever> unlmtd: i think thats related to the work being done in this issue: https://github.com/NixOS/nixpkgs/issues/6221
takle has joined #nixos
<sdll> clever: thank you very much for your help!
<sphalerite> Any particular reason you need xinetd though, over systemd's socket activation?
orbekk has quit [(Remote host closed the connection)]
<unlmtd> could I just change stdenv?
<unlmtd> I havent done that kind of hacking yet
<clever> unlmtd: not sure where the simplest point to change it is right now
takle has quit [(Ping timeout: 260 seconds)]
<Filystyn> sphalarite I need it just to get it working for few min ;-)
<unlmtd> or start from scratch
<unlmtd> :D
<unlmtd> im going through a heavy bloat allergic reaction
<Filystyn> sphalerite so i need write the config file in configuration.nix ?
<gchristensen> "Since spammers were way too much active on this wiki, user account creation has been disabled. Please, ask on the mailing-lists if you require a new user account. Thank you for your understanding and sorry about that."
<gchristensen> Filystyn: yeah
<Filystyn> wow ;-) ok
<gchristensen> it is how we accomplish our roll backs and upgrade safety
orbekk has joined #nixos
takle has joined #nixos
<Filystyn> about your quotes the wiki media pages are very easy to bypass and spam/blow them up. And i think there are no tools to easy set it back.
<gchristensen> even with manual in person registration?
bennofs has quit [(Ping timeout: 255 seconds)]
<gchristensen> Filystyn: you think the registration by asking on the mailing list isn't helping?
aanderse_ has quit [(Remote host closed the connection)]
takle has quit [(Ping timeout: 258 seconds)]
takle has joined #nixos
<Filystyn> well not sure I understand you correctly or might i missunderastnd you but to *break* wikipedia all you need is two accounts and set bots to make them overwrite content with garbage. one account change is easy to rollback but it's somehow impossible with two. That's all i wanted to say. ;)
johnsonav has quit [(Ping timeout: 255 seconds)]
<Filystyn> media-wikipedia*
bennofs has joined #nixos
<gchristensen> Filystyn: yuck :(
takle has quit [(Ping timeout: 255 seconds)]
orivej has joined #nixos
takle has joined #nixos
<hl> https://nixos.org/disnix/docs.html manual links here are broken
koserge has joined #nixos
<gchristensen> hl: indeed...
<gchristensen> I've never used disnix... hl are you on nixos, or have nix?
<hl> gchristensen (IRC): I was just browsing the site. I can get a nixos machine up, why?
takle has quit [(Ping timeout: 255 seconds)]
<gchristensen> hl: `nix-store -r /nix/store/ygjl567cqs3401w5aydfg5hy9bf4mi2j-disnix-tarball-0.7` will get you docs, at /nix/store/ygjl567cqs3401w5aydfg5hy9bf4mi2j-disnix-tarball-0.7
takle has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to staging: https://git.io/v97wc
<NixOS_GitHub> nixpkgs/staging beb43a6 Tuomas Tynkkynen: Merge remote-tracking branch 'upstream/master' into staging
NixOS_GitHub has left #nixos []
<gchristensen> hl: my impression though is disnix is a bit experimental?
<hl> no idea. probably
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
sdll has quit [(Remote host closed the connection)]
<gchristensen> "With DisnixOS you can first deploy a network of machines with NixOps and deploy services inside them with Disnix. You can also deploy services in a network of generated virtual machines machines using the NixOS test driver and run testcases inside them." holy what
sdll has joined #nixos
orivej has quit [(Ping timeout: 255 seconds)]
<sdll> Team, I have problems with jupyter_console, which gives "AttributeError: 'ZMQCompleter' object has no attribute 'readline'" on running "jupyter console"
<unlmtd> kinda like one nix for multiple hosts?
<sdll> Could you please tell me what might be wrong?
<sdll> jupyter console is run from nix-shell
<sdll> Can you run jupyter console on your machine?
simendsjo has joined #nixos
<gchristensen> sdll: what do I pass to nix-shell?
<clever> sdll: i'm guessing that the zmq version may be out of date
<sdll> You can try "nix-shell -p python35Packages.jupyter_console --pure"
<clever> sdll: and for extra confusion, ZMQCompleter has nothing to do wit zmq!
<sdll> Oh wow, clever
<simendsjo> I'm having problems with the nvidia driver. It has been fixed in pull 25698, but it doesn't seem like this is available in the 17.03 stable channel (not backported into the 17.03 branch). Is this going to be merged back into 17.03, or do I have to move to the unstable channel?
<sdll> There also seems to be a problem with ipython
<gchristensen> sdll: I don't get any errors
<clever> 2017-05-13 15:24:24 < dfranke> nix-prefetch-url https://git.archlinux.org/svntogit/packages.git/plain/repos/extra-x86_64/kernel_4.10.patch?h=packages/nvidia --name nvidia
<clever> simendsjo: this should fix the 404
<gchristensen> nooooo
<gchristensen> clever: nix-prefetch-url can't be used on patches
<sdll> gchristensen: do you use ipython_5?
<gchristensen> it produces an invalid sha
<gchristensen> sdll: no I don't
<sdll> gchristensen: Could you please give me a command which runs correctly?
<clever> 2017-05-13 15:25:14< blogle> thanks, going to give it a go now
<clever> 2017-05-13 15:27:28< blogle> Cudatoolkit is now building so looks like a success!
<simendsjo> clever: But does this mean I have to move to the unstable channel, or will the stable channel get the fix eventually?
<clever> gchristensen: acording to the chat logs from yesterday, it did fix the issue
<gchristensen> weird ... :/ the sha nix-prefetch-url produces can't be used in pkgs.fetchpatch
<clever> simendsjo: if the change has been backported to the stable channel, then it should fix itself in time, and you only need the above command to speed things up
<clever> gchristensen: the --name at the end may be to deal with that
<gchristensen> no, fetchpatch munges the patch
<LnL> the clang builds in my wip jobset aborted again :/
<clever> gchristensen: ah yeah, i see it running lsdiff in the postfetch to clean it up
<clever> no idea how that fixed it then
<sdll> gchristensen: Thank you! Are you on unstable?
<gchristensen> sdll: no
<simendsjo> clever: Thanks
<sdll> sdll: Running your command gives me "ImportError: No module named 'IPython.utils.warn'"
<sdll> gchristensen: And I am on unstable
<sdll> gchristensen: What channel do you use?
<gchristensen> 17.03 :)
<sdll> Oh well
<LnL> what version of python are you using?
griff_ has joined #nixos
andymandias has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
andymandias has joined #nixos
<sdll> LnL: python3
<Gravious> hrm, when i build a pure nix-shell for pythonPackages.requests i have a python interpreter in the shell with a reasonable looking sys.path. but for e.g. lua51Packages.luaposix there is no lua interpreter in the shell
<LnL> sdll: maybe jupyter needs to be bumped to work with ipython6
<sdll> LnL: switching to nixos-17.03-small fixed the issues
<sdll> LnL: I am not sure where the problem exactly is
Isorkin has quit [(Ping timeout: 240 seconds)]
<LnL> pretty sure 17.03 still has ipython5
<gchristensen> how do I find out?
Isorkin has joined #nixos
derjohn_mob has joined #nixos
Infinisil has joined #nixos
orivej has joined #nixos
Gravious has quit [(Remote host closed the connection)]
simendsjo has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
pie_ has quit [(Quit: Leaving)]
georges-duperon has joined #nixos
Gravious has joined #nixos
inflames has quit [(Ping timeout: 255 seconds)]
inflames has joined #nixos
aanderse has joined #nixos
simendsjo has joined #nixos
mudri has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 pushed 2 new commits to master: https://git.io/v97rS
<NixOS_GitHub> nixpkgs/master 096c008 Periklis Tsirakidis: Fix #25723: Remove old GNU libstdc++ for qtbase
<NixOS_GitHub> nixpkgs/master 22b7b49 Daiderd Jordan: Merge pull request #25769 from periklis/topic_fix_qt58_qtbase_stl...
NixOS_GitHub has left #nixos []
Itkovian has joined #nixos
ilyaigpetrov has joined #nixos
griff_ has quit [(Quit: griff_)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/v97oU
<NixOS_GitHub> nixpkgs/master f2eb770 Tuomas Tynkkynen: ethtool: 4.6 -> 4.10
NixOS_GitHub has left #nixos []
<Filystyn> oook so I am not sure but why is this wrong? https://pastebin.com/raw/PpTFEzqX
<Filystyn> i thought i can i mean the nixos-rebuild breaks
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/v97oG
<NixOS_GitHub> nixpkgs/master 640d434 Tuomas Tynkkynen: sshfs-fuse: 2.7 -> 2.9
NixOS_GitHub has left #nixos []
<clever> Filystyn: what error does it give?
<gchristensen> Filystyn: what happens when you try that?
hotfuzz_ is now known as hotfuzz
<clever> i think server must be specified, to tell xinetd what to run
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/v97o6
<NixOS_GitHub> nixpkgs/staging 1c9ed32 Marc Nickert: libtiff: security 4.0.7-5 -> 4.0.7-6 (Debian patches)...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to release-17.03: https://git.io/v97oi
<NixOS_GitHub> nixpkgs/release-17.03 557afcc Marc Nickert: libtiff: security 4.0.7-5 -> 4.0.7-6 (Debian patches)...
NixOS_GitHub has left #nixos []
Gravious_ has joined #nixos
Gravious has quit [(Disconnected by services)]
Gravious_ is now known as Gravious
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
civodul has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/v97Kt
<NixOS_GitHub> nixpkgs/staging fcdb4b5 Vladimír Čunát: mesa: maintenance 17.0.5 -> 17.0.6
NixOS_GitHub has left #nixos []
griff_ has joined #nixos
tokudan has joined #nixos
zarel has quit [(Quit: Leaving)]
pie_ has joined #nixos
<clever> strange, shadow depends on gnome-doc-utils, and gnome-doc-utils fails to even eval
dejanr_ has joined #nixos
<Gravious> so i finally have determined that for python packages there is a lot of magic behind the scenes, which is not the case for lua packages
<Infinisil> For example?
<Gravious> 38 >--- wrapProgram "$i" \
<Gravious> 39 >--- --prefix LUA_PATH ";" "$(echo "$out"/share/lua/*/)?.lua" \
<Gravious> 40 >--- --prefix LUA_PATH ";" "$(echo "$out"/share/lua/*/)?/init.lua" \
<Gravious> required for postInstall of luarocks
<Infinisil> That's not much indeed
<clever> while evaluating the attribute ‘pkgs’ at /nix/store/3c56j70s96kf9nd90r3h12g7y7c3s38q-nixos-17.09pre107265.0afb6d789c/nixos/pkgs/development/interpreters/python/cpython/2.7/default.nix:201:7:
<clever> attempt to call something which is not a function but a set, at /nix/store/3c56j70s96kf9nd90r3h12g7y7c3s38q-nixos-17.09pre107265.0afb6d789c/nixos/lib/trivial.nix:88:67
simendsjo has quit [(Ping timeout: 268 seconds)]
tokudan has quit [(Quit: Leaving)]
<Infinisil> Umm question: I have the release-17.03 branch checked out, but build fails and derivation is named ...nixos-17.09..., why 17.09?
<Filystyn> clever gchristensen: sorry was afk anyway, the error is : error: The option value `services.xinetd.services' in `/etc/nixos/configuration.nix' is not a list of submodules.
<MichaelRaskin> 5B
<Infinisil> Running with sudo nixos-rebuild test -I nixpkgs=/path/to/nixpkgs
<clever> Filystyn: try services.xinetd.services = [ { name="foo"; port = 1234; } ];
mudri has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg closed pull request #25766: samba: 4.5.3 -> 4.5.8 (master...samba) https://git.io/v9Qhq
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to release-17.03: https://git.io/v97KS
<NixOS_GitHub> nixpkgs/release-17.03 ee7db07 Armijn Hemel: samba: 4.5.3 -> 4.5.8...
NixOS_GitHub has left #nixos []
<clever> Infinisil: is the path pointing to nixpkgs directly, or a something containing nixpkgs?
cpennington has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/v97KH
<NixOS_GitHub> nixpkgs/staging b0d2de4 Vladimír Čunát: freetype: fix CVE-2017-{8105,8287} by upstream patches...
NixOS_GitHub has left #nixos []
<Infinisil> Directly, I'll try without the -I but I really don't think that's it
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to release-17.03: https://git.io/v97KA
<NixOS_GitHub> nixpkgs/release-17.03 163dd01 Vladimír Čunát: freetype: fix CVE-2017-{8105,8287} by upstream patches...
NixOS_GitHub has left #nixos []
<Filystyn> clever The option `services.xinetd.services.[definition 1-entry 1].test' defined in `/etc/nixos/configuration.nix' does not exist.
<Filystyn> i think i need to tell it it's *my own* service just a sec...
<Infinisil> (It worked, is my git-foo really that bad?)
<Infinisil> Is the release-17.03 equivalent to the 17.03 channel?
<clever> Filystyn: i didnt have a test= in my example
<clever> Filystyn: did you use exactly what i typed?
<clever> Infinisil: the nixos-17.03 branch of the nixpkgs-channels repo is synced to the channel
<clever> Infinisil: the release-17.03 on nixpkgs is what hydra tests, and may become the future channel version
<Filystyn> oooo i think i got it clever i mean how this is used just as ec
<Infinisil> Oh wait I think I know what I did wrong, I used -b when doing git checkout from master
<Filystyn> ok now i have the service is not defined but i think i know how to solve it
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/v9768
<NixOS_GitHub> nixpkgs/master e6c65ec Joachim Fasting: tree-wide: remove uses of features.grsecurity
<NixOS_GitHub> nixpkgs/master dea66a1 Joachim Fasting: sxiv: fix version string...
NixOS_GitHub has left #nixos []
takle has quit [(Remote host closed the connection)]
simendsjo has joined #nixos
<Infinisil> I'm still confused about the branches: My system is on 17.03, and I want to test it on 17.03, but PR's should be on master?
<clever> Infinisil: you usualy want to test on master, to make sure its not going to already be broken by other things
takle has joined #nixos
<Infinisil> What if master doesn't build to begin with? How do I test a module then?
<clever> back up a bit and test against a slightly older master
<clever> or just test against a channel and hope when master unbreaks, your package still works
<Infinisil> Hmm, alright :/
<Filystyn> ok thank you for help guys it seems i made it at least accept the config file
Itkovian has joined #nixos
takle has quit [(Ping timeout: 268 seconds)]
rnhmjoj has joined #nixos
takle has joined #nixos
spinus has joined #nixos
<rnhmjoj> on 17.03 the tests for haskellPackages.foundation fails for some reason. how do you disable them? i tried overriding with 'foundation = haskell.lib.dontCheck super.foundation' but it goes on testing anyway.
takle has quit [(Ping timeout: 264 seconds)]
<Filystyn> do i need to install xinetd still by nix-env tho i have the configuration in configuration.nix ?
marsel has joined #nixos
takle has joined #nixos
johnsonav has joined #nixos
<clever> Filystyn: wont do what you want
<gchristensen> Filystyn: nope! :)
<clever> Filystyn: nixos runs xinetd in a systemd unit, and passses it the absolute path to the config file
<clever> no need to install it anywhere else
<clever> gchristensen: do you happen to know about shadow failing to eval on nixos-unstable? https://gist.github.com/cleverca22/4849ccda7deb3e6b6aef9e54ec0562a0
<gchristensen> yikes... no..
<clever> gchristensen: of note is lines 19, 20, 21, and 31
<Filystyn> ok but how i communicate with xinetd than I am on root and want to tell it somethign
<clever> gchristensen: oh, on closer inspection, i think i made a typo in my package overrides
<Filystyn> thought normaly you did that with xinetd command
<Filystyn> but well i do not have it?
<Filystyn> Maybe i need to restart tho
<clever> gchristensen: yep that was it, nixpkgs.config.packageOverrides is a lamda, that returns { packageOverrides = lamda; }!
<clever> gchristensen: no idea how, but that breaks everything
Raimondii has joined #nixos
<Filystyn> i mean how to cotroll xinetd by root?
<clever> Filystyn: systemctl status xinetd
<gchristensen> clever: wat!
Raimondi has quit [(Ping timeout: 268 seconds)]
Raimondii is now known as Raimondi
<Filystyn> works like a gem thank you so much
<clever> gchristensen: i had nixpkgs.config = { packageOverrides = import ./config.nix; };, and config.nix itself contained { packageOverrides = ....; }
<gchristensen> oohhh nice
<clever> double the overrides!
johnsonav has quit [(Ping timeout: 245 seconds)]
dejanr has joined #nixos
<clever> gchristensen: i think vim_configurable may actualy be broken though, via a broken ruby, need to confirm on another machine
<clever> unable to reproduce on the main desktop, odd
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mmai opened pull request #25778: shaarli: 0.8.1 -> 0.8.4 (master...master) https://git.io/v97PR
NixOS_GitHub has left #nixos []
darlan has joined #nixos
jmeredith has joined #nixos
Fare has joined #nixos
dejanr has quit [(Ping timeout: 240 seconds)]
cpennington has quit [(Remote host closed the connection)]
<betaboon> how can i build just a single package ?
<pSub> betaboon: nix-build -A name
<clever> betaboon: nix-build '<nixpkgs>' -A hello
<betaboon> clever: thanks, i was missing the nixpkgs part :D
<betaboon> that nixpkgs is read from $NIX_PATH, right ?
<clever> yeah
<clever> you can also just put in a normal path
<LnL> yes, nix-build looks at the current directory by default
<clever> nix-build ~/apps/nixpkgs -A hello
<betaboon> ah ok :)
<clever> and like LnL said, nix-build will read default.nix from the current dir if you done give a path
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
orivej has quit [(Quit: No Ping reply in 180 seconds.)]
<sdll> Team, could you please tell me what the best way to include the package from pip is, provided there is no package yet in nixpkgs?
dejanr_ has quit [(Ping timeout: 268 seconds)]
<sdll> It would be great to have spacy and gensim in nixpkgs
<sdll> In principle, should I never install packages from pip in nix-shell?
<sdll> What is the best way to manage it?
<LnL> you'd write an expression that defines the extra packages you want similar to how they are defined in nixpkgs
leat has quit [(Read error: No route to host)]
<sdll> Thank you, LnL. Is it easy to add a python package to nixpkgs, is the format similar?
orivej has joined #nixos
simendsjo has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
<LnL> that and an import in python-packages.nix
Itkovian has joined #nixos
Itkovian has quit [(Client Quit)]
simukis_ has quit [(Ping timeout: 272 seconds)]
leat has joined #nixos
moet has joined #nixos
<jluttine> how to create a patch for nixpkgs? i have an original file A and it's modified version B. i tried "diff A B > foo.patch" but nix didn't understand that
<jluttine> didn't understand that generated patch file. said it was garbage
<LnL> what are you using the patch for, patches = [ .. ] ?
<clever> jluttine: it needs to be "diff -u"
<clever> and often, -r as well, since your applying it to the root of the source
<jluttine> "can't find file to patch at input line 3"
<jluttine> LnL: yes
<jluttine> patches = [ ./foo.patch ];
<LnL> that uses patch -p1 so you need the correct format
<jluttine> adding -ur to diff didn't help
<jluttine> LnL: yep. how can i generate it in correct format?
<LnL> I usually just use git to create patches :)
<jluttine> yep
zraexy has quit [(Ping timeout: 240 seconds)]
<jluttine> maybe i'll then just create a dummy git repo and make some commits just to get a proper diff.. :o
<jluttine> i just thought there'd be some easy way to get a diff without git
<jluttine> (a diff in the format supported by nix patches)
<clever> i generaly do cd .., cp -r foo foo-orig
<clever> then i edit the source under foo, and "diff -ur foo-orig foo"
<LnL> git show -p is the correct format, I always forget the flags for diff
<LnL> nix-shell -A hello; unpackPhase; cd $sourceRoot; git init .
<LnL> ^ I usually do that when I want to create a patch for an expression
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] waern opened pull request #25779: samsung-unified-linux-drive: Fix sane driver by patching rpaths (master...samsung_scanner) https://git.io/v97Mn
NixOS_GitHub has left #nixos []
<jluttine> thanks. i just used git to get a proper diff. tried diff -ur too but had some issues, git was simpler
orivej has quit [(Ping timeout: 245 seconds)]
carlosda1 has joined #nixos
betaboon has quit [(Quit: This computer has gone to sleep)]
betaboon has joined #nixos
betaboon has quit [(Changing host)]
betaboon has joined #nixos
betaboon has quit [(Client Quit)]
rnhmjoj has left #nixos ["WeeChat 1.7.1"]
betaboon has joined #nixos
betaboon has quit [(Changing host)]
betaboon has joined #nixos
orivej has joined #nixos
<gchristensen> anyone packaged python3/gtk applications? I'm getting "ValueError: Namespace Gtk not available" out of "gi.require_version('Gtk', '3.0')"
roconnor has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] veprbl opened pull request #25781: openafs: 1.6.20 -> 1.6.20.2 (master...openafs_1.6.20.2) https://git.io/v97yO
NixOS_GitHub has left #nixos []
Itkovian has joined #nixos
dejanr_ has joined #nixos
<makefu> gchristensen: i've had an issue that "gtk" was renamed to gtk3 in buildInputs
<gchristensen> makefu: would you mind taking a look? https://github.com/NixOS/nixpkgs/compare/master...grahamc:lum nix-build . -A luminance
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/v97yP
<NixOS_GitHub> nixpkgs/master 2a6edac Vladimír Čunát: firefox: disable content sandboxing - not ready yet...
NixOS_GitHub has left #nixos []
<dash> shell scripts making my life hard today
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to release-17.03: https://git.io/v97yD
<NixOS_GitHub> nixpkgs/release-17.03 f93654c Vladimír Čunát: firefox: disable content sandboxing - not ready yet...
NixOS_GitHub has left #nixos []
peti has quit [(Ping timeout: 240 seconds)]
<dash> running "./configure CFLAGS='-ggdb -Wa,--compress-debug-sections -O0'" in a nix-shell works ok, putting configureFlags= ''CFLAGS='-ggdb -Wa,--compress-debug-sections -O0' ''; in the nix expr results in shell quoting problems
peti has joined #nixos
<dash> Specifically, configure: error: unrecognized option: `-Wa,--compress-debug-sections'
<makefu> gchristensen: isn't inlining in python-packages frowned upon according to nixpkgs guide lines? https://github.com/nixos-users/wiki/wiki/Python-libraries
<dash> so i guess something's eating my quotemarks? :-/
<gchristensen> makefu: yeah I don't know, I also added my package to all-packages.nix which is definitely not ok
dejanr_ has quit [(Ping timeout: 268 seconds)]
<makefu> with the latest unstable i needed to update my alsa-tools package like this http://cgit.euer.krebsco.de/stockholm/commit/?id=e971a641bd3b9dafaff38821e8c4d741c5f4f900
<makefu> not sure about python though ...
<gchristensen> makefu: tbh I don't care right now though, hehe, just want it to work at first
<dash> Anybody else got a good example of doing unoptimized debug builds using autotools?
griff_ has quit [(Quit: griff_)]
<makefu> gchristensen: sure, i can understand that :D for this i have my `private` packages (see above)
<dash> Oh hey, this is documented.... in the release notes for 0.11
darlan has quit [(Quit: Communi 3.5.0 - http://communi.github.com)]
Ross has joined #nixos
dejanr_ has joined #nixos
rcschm has joined #nixos
<rcschm> hi, i am trying to use nix to generate a bash exec file to clone repos. is there an example somewhere that i can follow? right now i import git from pkgs and try to call clone on it but it gives permission error. thanks for help.
<simpson> rcschm: Maybe just use fetchgit?
dfranke has quit [(Quit: leaving)]
dfranke has joined #nixos
dfranke has quit [(Client Quit)]
dfranke has joined #nixos
schoppenhauer has quit [(Ping timeout: 260 seconds)]
iyzsong has quit [(Ping timeout: 240 seconds)]
orivej has quit [(Ping timeout: 264 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Infinisil opened pull request #25782: ipfs service: dataDir backwards compatibility, fix dataDir existance detection (master...ipfs) https://git.io/v97Sp
NixOS_GitHub has left #nixos []
<Infinisil> :D
dejanr_ has quit [(Read error: Connection reset by peer)]
schoppenhauer has joined #nixos
acarrico has joined #nixos
<Infinisil> Slowly, very slowly I'm getting the hang of git and nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] matthiasbeyer opened pull request #25783: diary: init at 0.3 (master...add-diary) https://git.io/v9798
NixOS_GitHub has left #nixos []
Tako has joined #nixos
Infinisil has quit [(Quit: Lost terminal)]
orivej has joined #nixos
Tako is now known as fatboi
fatboi has quit [(Client Quit)]
jsoo has joined #nixos
Infinisil has joined #nixos
jsoo has quit [(Client Quit)]
jsoo has joined #nixos
<Infinisil> What happens if a nixos build has two binaries with the same name? One in the configuration.nix's environment.systemPackages and one in a modules' environment.systemPackages?
<Infinisil> My build takes so long, that's why I'm asking, maybe someone knows
sellout- has quit [(Ping timeout: 255 seconds)]
jsoo has quit [(Client Quit)]
Raimondi has quit [(Quit: WeeChat 1.8-dev)]
<makefu> Infinisil: nix will tell you that there is a conflict. if both packages are identical then it will build the package just once.
<rcschm> simpson: that would put the code in nix-store, which is not what the bash script would be for.
<rcschm> it is just a convenient script to pull down code to local env. it is impure.
Raimondi has joined #nixos
<dash> rcschm: pastebin your script and your error?
orivej has quit [(Ping timeout: 255 seconds)]
<rcschm> any example how to do that in nix bash script.
<dash> rcschm: you're not trying to use git in the nix expr, but provide an installable script that does. yes?
<rcschm> .nix-profile/bin/setupProjects: 14: /home/watt/.nix-profile/bin/setupProjects: /nix/store/9v20iwrb3y8hrnd76k801rxwmdqsadbc-git-2.12.2: Permission denied
<rcschm> dash: we just like to have all the scripts in nix basically.
<rcschm> so we keep everything in one place.
derjohn_mob has quit [(Ping timeout: 258 seconds)]
<rcschm> dash: yes, it is not in the nix expression. it is in pkgs.writeScriptBin.
<dash> rcschm: Sure. can I see the expression?
<Infinisil> makefu: Thanks, they actually are different
orivej has joined #nixos
<Infinisil> I'm off for now
Infinisil has quit [(Quit: leaving)]
jacob_ has joined #nixos
jacob_ is now known as Guest28822
Guest36189 has quit [(Ping timeout: 240 seconds)]
dejanr has joined #nixos
justan0theruser has quit [(Ping timeout: 255 seconds)]
pie_ has quit [(Read error: Connection reset by peer)]
pie_ has joined #nixos
pie_ has quit [(Changing host)]
pie_ has joined #nixos
moet has quit [(Ping timeout: 240 seconds)]
<rcschm> dash: i just have this ${git} clone $url.
<rcschm> and git is the one from pkgs.
seagreen has joined #nixos
ChongLi has quit [(Read error: Connection reset by peer)]
ChongLi has joined #nixos
<octe_> i'm trying to compile something with cmake that uses libsndfile
<octe_> i've installed it with nix-env -iA nixos.libsndfile
<octe_> yet cmake doesnt file it
<octe_> find
octe_ is now known as octe
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jluttine opened pull request #25784: pythonPackages.natsort: refactor, update and fix (master...update-natsort) https://git.io/v97Qs
NixOS_GitHub has left #nixos []
<octe> requires libsndfile1 and libsndfile1-dev >= 1.0.11 - please install,
<octe> do i need to do something else?
Filystyn has quit [(Quit: Konversation terminated!)]
justan0theruser has joined #nixos
<simpson> octe: On NixOS, generally you'll want to use nix-shell for development environments.
moet has joined #nixos
<simpson> $ nix-shell -p libsndfile
simendsjo has joined #nixos
<octe> what does that do?
<simpson> octe: Also you'll eventually want to write Nix expressions for your packages so that you can build them with Nix.
<simpson> nix-shell creates a live environment with selected packages available.
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
<octe> yeah i know
<octe> ah, but that's pretty much the same as nix-env only that it's isolated to that shell
<octe> the cmake build still doesnt find it.. :/
<bennofs> octe: try nix-shell --pure -p libsndfile cmake
<bennofs> octe: oh perhaps even nix-shell --pure -p libsndfile cmake pkgconfig
<octe> nice, that got it further :)
<octe> thanks!
moet has quit [(Ping timeout: 245 seconds)]
derjohn_mob has joined #nixos
<simpson> Really what you're doing is building up a Nix expressiong that is sort of like {libsndfile, cmake, pkgconfig}: let ... in stdenv.mkDerivation { ... }
<octe> yep, i see that
<octe> it's actually an existing package im trying to build just to see how it works
<octe> because it's missing some features i think
<octe> how are packages in nixpkgs usually built? kitchen sink or just the minimal?
<octe> in regards to optional stuff
<simpson> Usually it's the kitchen sink but with options for disabling or leaving things out.
<bennofs> probably it's often "whatever the maintainer needs" ;)
<octe> i think this should have a build dependency on wine to enable vst support
<octe> should i make a pull request?
<simpson> octe: Sure.
<octe> also, the resulting binary from that package needs to be run like this
<octe> LD_LIBRARY_PATH=/nix/store/0c8pb21sf94krhz8ackvixkl5nczq7il-lmms-1.1.90/lib/lmms:$LD_LIBRARY_PATH lmms
<octe> can i fix that in the package definition somehow?
<octe> does it need to build a wrapper?
<rcschm> hi, how do we reference git and sed in scripts generated with pkgs.writeScriptBin? thanks for your help.
<clever> rcschm: ${git}/bin/git and ${gnused}/bin/sed i believe
<rcschm> thanks clever:.
<rcschm> let me try git again. i was having permission issue but let me try and see.
johnsonav has joined #nixos
<rcschm> both are from pkgs, correct?
<betaboon> can anyone offer any (even biased) experience on service-monitoring? I want to be able to monitor availability of databases,webservers and application servers.
darlan has joined #nixos
roconnor has quit [(Ping timeout: 264 seconds)]
darlan has quit [(Client Quit)]
Infinisil has joined #nixos
<iMatejC> betaboon: depends how the servers are setup, I started with new-relic for server and application monitoring, then you have an ELK stack for logs, but is quite a resource hog, but you can host it yourself, I also used sematext, at the time it was free for (I think) up to 500 MB of logs per month ... also ... pingdom or similar, but that just pings the IP and some even make HTTP(S) requests to check apps are
<iMatejC> live... there you have it, but for more, you will have be more specific, I hope it helps
<clever> rcschm: yeah
<clever> rcschm: nearly everything is under pkgs.
<rcschm> thanks for your help clever:
justan0theruser has quit [(Quit: WeeChat 1.5)]
<rcschm> clever: do you know how to get over this? /nix/store/9v20iwrb3y8hrnd76k801rxwmdqsadbc-git-2.12.2: Permission denied
takle has quit [(Remote host closed the connection)]
ambro718 has quit [(Ping timeout: 240 seconds)]
<rcschm> oh wait
<rcschm> i think i left out something.
justanotheruser has joined #nixos
<Infinisil> I don't know the context, but sudo is my intention
takle has joined #nixos
<clever> rcschm: sounds like you did ${git} rather then ${git}/bin/git
<rcschm> yes.
<rcschm> tks. got it going now.
<octe> i get an error building it now.. fatal error: gnu/stubs-32.h: No such file or directory
<octe> anyone know what's missing for that?
takle has quit [(Ping timeout: 255 seconds)]
jsgrant_om has joined #nixos
dejanr has quit [(Ping timeout: 240 seconds)]
<iMatejC> octe: find /nix/store -iname "stubs-32.h"
<simpson> octe: Offhand I'm guessing that it's in the libc headers. I *really* recommend that you put effort into being more comfortable with a nix-shell-based exploration; nix-shell can help you walk through the phases of compilation inside Nix.
<simpson> http://nixos.org/nix/manual/#sec-nix-shell Scroll down to "Examples"
<octe> yeah i will :)
<Infinisil> Ohh I got the same error before, couldn't fix it though
<clever> simpson: i'm not seeing it in my copies of glibc.dev
<octe> i'm guessing its somtehing withmultilib
<simpson> Oh! It's a 32-bit header.
<Infinisil> Google for gnu/stubs-32.h no such file, it's very popular
<Infinisil> I'm pretty sure this is the solution, but I don't know how to apply it: https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix#L34-L41
<clever> $ find /nix/store/ -name stubs-32.h
<clever> /nix/store/5gri94hp1d5yvbnag2247bkvw85g8wsl-glibc-2.24-dev/include/gnu/stubs-32.h
<clever> i am seeing some copies on a 2nd machine
<clever> octe: can you gist the expression you have so far?
<octe> sure
<clever> octe: is it normal for it to try to do a 32bit build on a 64bit machine?
<clever> octe: would anything be lost by forcing it to go all 64bit?
<octe> i'm not sure actually
<octe> i just added the wine dependency
<octe> it's used to enable plugins
<octe> maybe all the plugins are 64bit
<octe> and then it should work with all 64bit
<clever> ah, VST again
<octe> yes
<clever> SET(STATUS_VST "not found, please install (lib)wine-dev (or similar) - 64 bit systems additionally need gcc-multilib and g++-multilib")
<clever> ah, its probably using a 32bit wine to load 32bit VST plugins
<octe> yes
reinzelmann has joined #nixos
<clever> octe: try using stdenv_32bit.mkDerivation and see if that does anything differently
<Infinisil> Oh that's how you use it, didn't think of that
<octe> error: undefined variable ‘stdenv_32bit
<clever> need to add it on line 1, where stdenv currently is
<octe> oh of course
<octe> thanks
<clever> 2017-03-19 12:40:28< gbbrt> clever: hm, I see.. I'm trying to get some multi-lib stuff for this audio software working (bitwig) and couldn't get patchelf on the 32bit parts to work for me
<clever> ah, the last guy i was helping was dealing with some pre-built VST stuff
moet has joined #nixos
<clever> octe: something else that ive seen before that i'm not sure how it would fit into nix
<clever> octe: the license around VST stuff is absurd, you cant even make the .h files public
<octe> yeah it's a mess :/
<clever> so its imposible to open-source any code that interfaces with it
<octe> unfortunately it seems to be the only option
<clever> it would need requireFile to even package vst headers
<clever> which you could then add as a buildInput for lmms
jsgrant_om has quit [(Ping timeout: 272 seconds)]
<octe> cool!
<clever> the PR was rejected: https://github.com/NixOS/nixpkgs/pull/10006
<clever> 2015-10-02 16:29:43< kmicu> joelmo: I understand that you want to provide an easy way to use VSTs, but we cannot just grab commercial software and distribute it. Did you ask *Stainberg* if they are legally ok with what you are proposing?
<Infinisil> How can one have a nix-shell with a stdenv_32bit environment?
<clever> Infinisil: nix-shell -p stdenv_32bit might get most of it
<betaboon> iMatejC: thanks for your insight on monitoring. I'm currently looking at monit (as it is already implemented in nixos)
<clever> Infinisil: or write a default.nix using stdenv_32bit.mkDerivation, and load it without -p
<Infinisil> Hmm thanks, I'll try
<betaboon> did anyone take a look at http://duplicity.nongnu.org/ ? (as I am looking into a backup-solution as well)
<tilpner> I've used duplicity, what do you need?
<octe> clever, what about the LD_LIBRARY_PATH problem?
<betaboon> just starting my research, but (i think) what i want is encrypted-offsite-backup of service-state-data and database-dumps
thoughtpolice_ has joined #nixos
codedmart_ has joined #nixos
the_ktosiek has joined #nixos
<octe> unless i run the program with LD_LIBRARY_PATH set to it's nix store location it will fail with some stuff at runtime
<clever> octe: if your compiling from source, gcc will add everything to the rpath for you and LD_LIBRARY_PATH shouldnt be needed
<clever> octe: but if dlopen is in use, things can break more
<octe> i just installed the lmms package i built
<octe> and i need to do that
<octe> yeah i'm guessing it's dlopen at runtime
<betaboon> tilpner: how has your experience with duplicity been ?
<octe> /nix/store/g458p246lnc6cjxq2sdc246f6pk253xj-lmms-1.1.90/lib/lmms/RemoteZynAddSubFx: error while loading shared libraries: libZynAddSubFxCore.so: cannot open shared object file: No such file or directory
<clever> octe: dlopen also relies on rpath, but the fixup phase will strip anything that ldd says isnt required
<octe> it displays that when you try to use that instrument
<clever> octe: and it cant detect the dlopen usage
MarcWeber has quit [(Ping timeout: 260 seconds)]
<tilpner> betaboon - A little annoying to set up, wrt. private key management, but works very well
eddyb_ has joined #nixos
<octe> can i add it manually somehow to the package definintion?
<clever> octe: then the rpath will stay bloated, and may just work
athan_ has joined #nixos
ekleog_ has joined #nixos
orivej_ has joined #nixos
ikwildrp1pper has joined #nixos
<betaboon> tilpner: did you replace it with another solution? have you been using it on nixos ?
__red___ has joined #nixos
exi_ has joined #nixos
slyfox_ has joined #nixos
ent- has joined #nixos
<octe> clever, i'll try
pem_ has joined #nixos
<octe> it's too bad the wiki is shutdown.. it had quite high ranking on google
<octe> the manuals usually contain all the information needed, just harder to find :)
taeradan_ has joined #nixos
<Filystyn> how can I search for a packet i installed i installed opencad but i do not see it's packet anywhere
<Filystyn> i mean I can't start the program
<tilpner> betaboon - I've used it on NixOS only for testing, the automated solution is using the alpine package. It's still working well, so there was no need for replacement. We're using it to back up to Google Nearline
<Filystyn> hehe
<clever> Filystyn: one thing i sometimes do, nix-build '<nixpkgs>' -A foo
<Filystyn> kind of lame problem
<clever> Filystyn: then look in result/bin/ with ls
<Filystyn> ok
m3tti has joined #nixos
<iMatejC> betaboon: yeah, monit is ok, but be sure NOT to have it running on server that have your monitored apps already on it, because you can not monitor if the monitor server is down, hence the third party services, or use some sort of replication
<betaboon> tilpner: do you have it packetized as a nixos-service? wouldn't want to implement it, if anyone else has done it already
musicmat- has joined #nixos
x1n4u- has joined #nixos
<tilpner> betaboon - I haven't
<betaboon> iMatejC: I'm running the services that i want to monitor in containers on a nixos-machine. you would advice against running monit on the same host?
<betaboon> tilpner: are you running it from hand?
thoughtpolice_ is now known as thoughtpolice
eddyb_ is now known as eddyb
<Filystyn> thx clever ;-)
codedmart_ is now known as codedmart
x1n4u- is now known as x1n4u
<tilpner> betaboon - It's triggered by a systemd timer
moet has quit [(Quit: leaving)]
<betaboon> tilpner: is your config on github by any chance ? :D
<clever> Filystyn: a quick check on this end says that the openscad package contains a openscad binary
<octe> i have multiple projects i'm working on that require different nodejs versions, nix-shell would be a good solution to that, right?
<octe> can just have an expression with the specific node-version
<clever> octe: yep
<octe> nixos is pretty awesome
pratch has quit [(Remote host closed the connection)]
steveeJ has joined #nixos
<tilpner> betaboon - As I said, it's not a NixOS specific config, so you probably don't want to re-use it. A friend took my config and put an adapted version on Github at https://github.com/EorlBruder/backup
ent- has quit [(Ping timeout: 240 seconds)]
<betaboon> tilpner: thank you. just looking for some pointers in the right direction :D
<tilpner> betaboon - In this case we wanted to backup Docker volumes too, so the easiest way to get access to them was to backup from a Docker container. That's not needed if you don't want to backup volumes though
pratch has joined #nixos
<iMatejC> betaboon: I advice against running main monitoring software on the host that has apps that need to be monitored, with exception of agent part of the monitoring service, I havent actually ran monit with any serious setup, so I do not know the whole functionality of monit, except that some gentoo people around me are recomending it :)
<octe> who monitors the monitor? ;)
ent has joined #nixos
<betaboon> right now I'm just looking to backup the following: taigaio state-data (user-content), mattermost state-data, nextcloud state-data, postgres-dumps
<clever> for my monitoring stuff, i only notice outages of the monitoring system if i either cant pull up the perf graphs
<clever> or if every host has matching gaps in the graphs
<tilpner> betaboon - Your formatting leaves me clueless as to what you're referring to
<betaboon> iMatejC: gotcha :)
<clever> which reminds me, one crappy datacenter ive used in the past had a network outage
<betaboon> tilpner: for short just /var/lib/STUFF/
<clever> the monitoring stuff i had setup said that all the machines could reach eachother (same datacenter)
hotfuzz_ has joined #nixos
orivej_ has quit [(Read error: Connection reset by peer)]
<clever> but the entire array was offline
<simpson> octe: It's called *metamonitoring* and it's important at scale.
georges-duperon has joined #nixos
tabaqui has joined #nixos
hotfuzz has quit [(Ping timeout: 240 seconds)]
<octe> i know
spinus has joined #nixos
corngood has joined #nixos
orbekk has joined #nixos
dejanr has joined #nixos
roconnor has joined #nixos
jsgrant_om has joined #nixos
derjohn_mob has quit [(Ping timeout: 258 seconds)]
roconnor has quit [(Client Quit)]
<Filystyn> clever i was writing opencad ( ate s)
<clever> ah
takle has joined #nixos
<rcschm> thanks clever, the scripts work now.
rcschm has quit [()]
bennofs1 has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
bennofs has quit [(Ping timeout: 255 seconds)]
<m3tti> hey when does a packages enter the stable channel of nix?
takle has joined #nixos
griff_ has joined #nixos
<clever> m3tti: the stable channels are a snapshot made every ~6 months
wak-work has quit [(Ping timeout: 255 seconds)]
<m3tti> ah ok is there a document where i could look up the release cycle things
<sdll> Team, could you please tell me whether there is any way I can specify the source for a dependency in my nixpkgs definition of a package, without overriding a globally fetched version of the dependency?
<m3tti> cool thanks
<sdll> For example, I would like the 2017.04.05 version of the python regex package, but in nixpkgs 2016.11.18 is used
<clever> sdll: this creates an override against toxcore, but the override is never exposed to the rest of nixpkgs
<clever> sdll: so it only has an effect on toxvpn and nothing else
Infinisil has quit [(Quit: leaving)]
sigmundv__ has joined #nixos
<sdll> Nice, clever, thank you very much! So is it true that I can only add to python-packages.nix, and not change the definitions of packages given before?
<sdll> If the aim is for the pull request to be accepted
<gchristensen> is Gauthier POGAM--LE MONTAGNER here?
<clever> sdll: python-packages.nix is a bit different, most of the attributes in it are exposed to the world
<clever> sdll: but you could name your override something like foo5 = foo.override.... { src = fetch ver5; };
<clever> sdll: then it will not conflict with the original
<sdll> Sure
endformationage has joined #nixos
<sdll> clever: So in order for the new package to be accepted I can only add new definitions, and not change the others?
<clever> sdll: you can also change things, as long as it doesnt break stuff and has a good reason
<sdll> Ok, thank you very much, clever
darlan has joined #nixos
wak-work has joined #nixos
inflames has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ttuegel pushed 3 new commits to master: https://git.io/v97pk
<NixOS_GitHub> nixpkgs/master 88a5082 Thomas Tuegel: Revert "qt58: ignore NIX_PROFILES environment variable"...
<NixOS_GitHub> nixpkgs/master 7c338b7 Thomas Tuegel: qtbase: search platform plugin paths before other plugin paths
<NixOS_GitHub> nixpkgs/master fabd482 Thomas Tuegel: Merge branch 'qt--qpa-plugin-path'
NixOS_GitHub has left #nixos []
the_ktosiek is now known as ktosiek
jsgrant_om has quit [(Ping timeout: 258 seconds)]
Gravious_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] marcnnn closed pull request #25742: libtiff fix 404 Error on build 4.0.7-5 to 4.0.7-6 (master...master) https://git.io/v9Hki
NixOS_GitHub has left #nixos []
georges-duperon has quit [(Ping timeout: 255 seconds)]
<gchristensen> clever: would you mind helping with a package? I'm having issues with python paths and gtk
systemfault has joined #nixos
<clever> gchristensen: gist what you have and i can look at it
<sdll> clever: Could you please tell me how I can override a python package?
<sdll> clever: In your example, it seems, you use stdenv
Gravious has quit [(Ping timeout: 240 seconds)]
<clever> sdll: you can also use pythonpackage.overrideDerivation 90% of the time
<gchristensen> clever: more than a gist :| - https://github.com/NixOS/nixpkgs/compare/master...grahamc:lum nix-build . -A luminance
<clever> sdll: .overrideDerivation is an attribute on all derivations
<sdll> Ok, so how do I override pathlib, for example? pathlib.overrideDerivation ... (then I do not know what to write, but it seems that it must include buildPythonPackage)
<clever> gchristensen: [clever@amd-nixos:~/apps/nixpkgs]$ git remote add grahamc https://github.com/grahamc/nixpkgs.git
<gchristensen> clever: :D :0
<gchristensen> :)
<clever> sdll: should be the same as in mine, pathlib.overrideDerivation (old: { src = fetchsomething; });
<clever> gchristensen: far faster to reuse the same clone and build up dozens of remotes over the years
<gchristensen> definiteley
sigmundv__ has quit [(Ping timeout: 268 seconds)]
<clever> copying 99 missing paths (74.74 MiB) to ‘builder@192.168.144.1’...
<Acou_Bass> eey folks, whenever i use nix-env i get this message: warning: name collision in input Nix expressions, skipping ‘/home/eddie/.nix-defexpr/channels_root/nixos’ - the actual nix-env command does its job though... should i be worried?
<clever> gchristensen: i see the error msg, now to figure out why
<clever> Acou_Bass: you added channels called nixos to both your user and root, compare "nix-channel --list" and "sudo nix-channel --list"
<gchristensen> clever: which error exactly?
<clever> ValueError: Namespace Gtk not available
<gchristensen> perfect
<Acou_Bass> clever: theyre both the same, nixos https://nixos.org/channels/nixos-17.03
<clever> Acou_Bass: you will probably want to delete the nixos on the non-root user
<Acou_Bass> ahhh ok, ill give that a go thanks :D
<Acou_Bass> would this also explain why i have to run nix-channel --update as my user every now and then despite having the autoupgrades in my configuration.nix?
<clever> gchristensen: it looks like repository.enumerate_versions(namespace) returned null
<clever> Acou_Bass: yep, every user has his own set of channels
<clever> Acou_Bass: and the auto-upgrade only updates the channels on root
<Acou_Bass> yeahh
<Acou_Bass> so if i remove my user's channels, itll just auto-use the root one?
<clever> yep
<sdll> clever: it seems that pathlib.overrideDerivation is not endorsed: https://nixos.org/nixpkgs/manual/#sec-pkg-overrideDerivation
<Acou_Bass> awesome, consider it done :D thanks! (no idea why my user had this channel added... probably user error but i dont remember doing it)
m3tti has quit [(Ping timeout: 260 seconds)]
<clever> sdll: overrideAttrs has the same api and can usualy just be swapped in
<clever> gchristensen: and it came from here: repository = Repository.get_default()
<sdll> thank you, clever
<sdll> clever: is there a way not to inherit previous attributes?
MarcWeber has joined #nixos
<clever> sdll: copy the entire derivation and just edit the copy, thats the simplest one
<sdll> Copy into the file of the new package?
<clever> gchristensen: little rusty with python imports, cant get access to the repository object
Tipping_Fedora has quit [(Ping timeout: 240 seconds)]
<gchristensen> clever: yeah, its a bit hairy :?
<clever> 45 from ._gi import Repository
<clever> gchristensen: i'm trying to import this from the python repl, but its relative to another file i think
<sdll> clever: I got it!
betaboon has quit [(Quit: This computer has gone to sleep)]
<sdll> clever: Thank you very much for your help, it is so much easier to learn Nix with such an amazing community
<clever> :)
<gchristensen> clever: yeah, it is pretty weird
<clever> Binary file site-packages/gi/_gi.cpython-35m-x86_64-linux-gnu.so matches
simendsjo has quit [(Ping timeout: 246 seconds)]
<clever> gchristensen: and it seems that the implementation of enumerate_versions is written in c!
<clever> open("/nix/store/hv3mr7wkybgg8dxhqs4pfmcplspb5rp7-gobject-introspection-1.50.0/lib/libgirepository-1.0.so.1", O_RDONLY|O_CLOEXEC) = 3
<dash> The nixpkgs manual says that libraries built with 'separateDebugInfo' will put stuff in ~/.nix-profile/lib/debug when installed. Is this still true? I'm not seeing it.
<clever> gchristensen: its probably over in here
<clever> dash: you probably need to add "debug" to meta.outputsToInstall
<dash> clever: Blegh OK
* dash tries
<clever> dash: i have been thinking about a plugin of some kind in gdb, that would lookup the .debug outputs in the .drv files, and then fetch it from the binary cache
georges-duperon has joined #nixos
<dash> clever: hmm nope
<clever> dash: try building it with :b in nix-repl, and then inspect each output to confirm where the debug info is
<dash> if i do 'nix-env -i /nix/store/adfklj-libuv-1.11.0-debug', it works.
<dash> if I do nix-env -f myoverridething.nix -iA libuv.debug, i get the non-debug stuff installed.
<clever> nix-env will usualy overwrite the other libuv with libuv.debug
<dash> Right, i'm fine with that at the moment
<clever> what about just giving gdb the absolute path to the debug info?
<dash> I can! I just was feeling lazy.
<clever> gchristensen: oh, it does an ls of /nix/store/hv3mr7wkybgg8dxhqs4pfmcplspb5rp7-gobject-introspection-1.50.0/lib/girepository-1.0
<clever> gchristensen: which doesnt contain Gtk in any filename
<gchristensen> clever: ugh.... this is very annoying. may be not worth fixing.
spinus has quit [(Remote host closed the connection)]
katyucha_ has joined #nixos
katyucha has quit [(Killed (card.freenode.net (Nickname regained by services)))]
katyucha_ is now known as katyucha
katyucha_ has joined #nixos
orivej has joined #nixos
<gchristensen> clever: I got phue working, that is close enough :)
jsgrant_om has joined #nixos
<gchristensen> (though the downgrade on netifaces is not ideal)
griff_ has quit [(Quit: griff_)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/v97jj
<NixOS_GitHub> nixpkgs/master eacfdc3 Tuomas Tynkkynen: cryptsetup: 1.7.3 -> 1.7.5
NixOS_GitHub has left #nixos []
<Fare> ok, so how do I build something from a directory already (so I can debug it, instead of having to upload and fix a tarball at every attempt)?
<MichaelRaskin> 5B
<MichaelRaskin> src = /path/to/dir
<MichaelRaskin> Nix will copy the directory to store
<MichaelRaskin> And unpack phase handles directories with cp -r
<Fare> MichaelRaskin, what's the proper way to submit patches? (in this case, to gambit, and when I'm done, adding gerbil)
<MichaelRaskin> A fork on GitHub, then a pull request.
<Fare> right now I'm editing a checkout of nixpkgs-channels in the unstable branch
<Fare> a fork of which repo?
<MichaelRaskin> NixOS/nixpkgs
<MichaelRaskin> The one with a metric ton of open PRs
<Fare> do you recommend having a separate repo for nixos proper, and another for things that Id nix-env?
<MichaelRaskin> Well, it is feasible but usually not needed
reinzelmann has quit [(Quit: Leaving)]
<Fare> ok
Itkovian has joined #nixos
katyucha has quit [(Ping timeout: 268 seconds)]
Gravious_ is now known as Gravious
<Fare> and, what keeps resetting chmod 700 /root when I want it 755 ?
ambro718 has joined #nixos
<MichaelRaskin> Interesting: I cannot find any code in nixos subtree that could do that
sellout- has joined #nixos
sellout-1 has joined #nixos
<MichaelRaskin> I specifically looked for chmod in this file, but hoped it would have an explicit chmod somewhere
Filystyn has quit [(Quit: Konversation terminated!)]
sellout- has quit [(Ping timeout: 240 seconds)]
<Fare> ugh perl. extraUsers won't let me change settings for root; where do I change settings for root?
<clever> Fare: users.users.root, just like all the other users
<Fare> what's extraUsers vs users?
<> changed the topic of #nixos to: Topic for #nixos is "https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://botbot.me/freenode/nixos/ || Darwin: ##nix-darwin"
<> changed the topic of #nixos to: Topic set by gchristensen!~gchristen@unaffiliated/grahamc on 2017-04-26 15:33:27 UTC
<clever> one of them is an alias for the other
<Fare> thanks. Well then it looks like I can't do anything about root
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<MichaelRaskin> Maybe with mkForce
<MichaelRaskin> Isn't createHome false by default anyway?
<Fare> dunno, but everytime I nixos-rebuild switch, /root gets chmod 700 again, and that's annoying.
* Fare tries to compile gerbil, and that'd be my first nixos patch if I manage to do it.
agjacome has quit [(Quit: leaving)]
<Fare> Is there a gcc wrapper that uses NIX_CFLAGS_COMPILE and NIX_LDFLAGS while building stuff?
Swant has joined #nixos
<MichaelRaskin> gcc package is actually such a wrapper
<Fare> I'm trying to understand how these things work, for the sake of building CL or Gambit code.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] nlewo opened pull request #25786: pythonPackages.elasticsearch: 1.9.0 -> 2.4.1 (master...pr/elasticsearch) https://git.io/v95ft
NixOS_GitHub has left #nixos []
<MichaelRaskin> Well
<Fare> MichaelRaskin, I admit I still didn't give a look at your CL wrappers; do they handle calls to dlopen by CL's CFFI?
<MichaelRaskin> QueryFS package does build CL code with a C dependency
<MichaelRaskin> Handle in a weak sense: set LD_LIBRARY_PATH
<Fare> is it set to a static value in a wrapper? in a uiop initialization hook?
<MichaelRaskin> Right now it is quite hacky
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to staging: https://git.io/v95f8
<NixOS_GitHub> nixpkgs/staging 0b89f71 Franz Pletz: unbound: 1.6.1 -> 1.6.2
NixOS_GitHub has left #nixos []
Itkovian has joined #nixos
<Fare> (does CFFI have a variable to supplement / override LD_LIBRARY_PATH that could be set in a uiop image-restore-hook function?
<MichaelRaskin> The wrapper is called common-lisp.sh
<MichaelRaskin> *foreign-library-paths* I think
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 3 new commits to master: https://git.io/v95fR
<NixOS_GitHub> nixpkgs/master 482f986 Franz Pletz: matterircd: 0.11.3 -> 0.11.4
<NixOS_GitHub> nixpkgs/master 0cd0581 Franz Pletz: gitlab-runner service: only depend on docker if enabled
<NixOS_GitHub> nixpkgs/master 2ab474b Franz Pletz: gitlab-runner_1_11: add patch to fetch shells from system path
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/v95fo
<NixOS_GitHub> nixpkgs/master 3d79d8c Tuomas Tynkkynen: sd-image-*.nix: Drop minimal profile...
NixOS_GitHub has left #nixos []
<samueldr> I don't know if I'm doing something wrong, but I'm rebasing a change on nixpkgs fom channels/nixos-17.03 to master, and I'm having tons of conflicts.
<samueldr> I'm not used to rebasing stuff
Rotaerk has joined #nixos
<samueldr> Following steps here, to be on spec: https://nixos.org/nixpkgs/manual/#chap-submitting-changes
<sdll> Team, could you please tell me how I can become a maintainer of a new package in nixpkgs?
<Fare> make: *** No rule to make target 'install'. Stop. <--- does that mean the package built successfully, but I failed to provide an installation rule, so it defaulted to calling make?
koserge has quit [(Ping timeout: 268 seconds)]
<sdll> Do I need to add myself to maintainers.nix and then pull request?
ertesx has joined #nixos
<Fare> how do I write an installPhase? how does it know where to copy stuff to?
kiloreux has joined #nixos
<Fare> MichaelRaskin, why is there both a common-lisp.sh and a cl-wrapper.sh ?
<samueldr> sdll: guessing you would add yourself in the miantainers.nix file, looking at its history https://github.com/NixOS/nixpkgs/commits/master/lib/maintainers.nix
ertes has quit [(Ping timeout: 260 seconds)]
ertesx is now known as ertes
<kiloreux> I want to pin nixpkgs on my production system (checked this https://gist.github.com/yoshuawuyts/042342257126301387d2) But I still can't figure it out.
<clever> Fare: $out is set to the dir you need to install things to
Guest28822 has quit [(Quit: Lost terminal)]
<sdll> s
<MichaelRaskin> Fare: Well, one is more about doing the work and the other is about being called instead of direct invocation of an implementation
<sdll> samueldr: thank you! But it seems that I need commit rights in order to accomplish it
<sdll> clever: could you please tell me how to become a maintainer?
<clever> sdll: when making a PR, you can just add yourself to https://github.com/NixOS/nixpkgs/blob/master/lib/maintainers.nix
<MichaelRaskin> Fare: also, not having any makefile is OK for buildPhase
<MichaelRaskin> So it may be that the package did not get built
<sdll> clever: thank you very much
<kiloreux> Any ideas ?
<gchristensen> sdll: as a separate commit
<sdll> gchristensen: sure
aanderse has quit [(Remote host closed the connection)]
Judson has joined #nixos
<MichaelRaskin> kiloreux: what do you mean «pin»?
<MichaelRaskin> You can checkout the repository, never update it and set NIX_PATH so that it is found
<MichaelRaskin> Of course, then you will not get updates to packages, including security-relevant ones…
<kiloreux> And that should be enough to keep the nixpkgs in the same version on production?
<samueldr> so, used `git rebase -i` and dropped everything, is it normal procedure when rebasing from a commit on a nixos channel?
<samueldr> the final commit looks okay
<MichaelRaskin> Yes, Nix is source-build-defined, so if you use the same repository state for expressions, you get the same hashes forever
<gchristensen> samueldr: usually I will cherry pick the commits from the channelto master
<kiloreux> MichaelRaskin, Thank you.
dfranke has quit [(Quit: Lost terminal)]
jsgrant_om has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg(at)jsgrant.io & I'll try to get back to you within 24 hours.)]
sdll` has joined #nixos
<kiloreux> I assume that using the same nixOS channel for nixpkgs should keep the nixpkgs stable?
sdll has quit [(Ping timeout: 260 seconds)]
<MichaelRaskin> Well, nixos-unstable gets (eventually) all the updates
sdll` has quit [(Remote host closed the connection)]
<MichaelRaskin> nixos-17.03 gets only the updates with the positive expected stability impact (known security-related fixes, minor updates, updates to packages with very good track record of fixing more old bugs than adding new ones)
<kiloreux> I have deleted the unstable channel and kept only 17.03 (it satisfies our needs). I am afraid that those bug-fixes could break our build or there are customers that rely on it.
<kiloreux> So I am trying to have everything absolutely fixed :D.
<MichaelRaskin> For _absolutely_ fixed everything you want to have a checkout instead of channels
justan0theruser has joined #nixos
<MichaelRaskin> And write down the knpwn-good revision
<kiloreux> Any links that explain those concepts?
athan_ is now known as athan
<MichaelRaskin> Of course, if the system is internet-facing, the stability has a very high price in security…
<kiloreux> I thought that fixing NIX_PATH to $HOME/.nix-defexpr/channels/nixos-17.03/nixpkgs should solve it.
<MichaelRaskin> Well, Nix manual (it is not the same as NixOS or NixPkgs manual)
<gchristensen> I can understand pinnning a version, as long as it is regularly moved forward and tested
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] samueldr opened pull request #25787: awesome: Allows awesome to load svg images. (master...fix/awesome-read-svg) https://git.io/v95Jp
NixOS_GitHub has left #nixos []
<kiloreux> What interval do you think is good for upgrading versions?
<MichaelRaskin> I think it depends on what packages you use. And on the news about major security problems…
justanotheruser has quit [(Ping timeout: 268 seconds)]
<kiloreux> Alright, so assuming i want just to pin `nixpkgs`
<gchristensen> I'd recommend as often as possible
<kiloreux> is setting it to the NIX_PATH in the channel enough?
kampfschlaefer has quit [(Ping timeout: 258 seconds)]
<gchristensen> getting stuck with old stuff just makes it harder to upgrade. small problems once a month vs. 100 small problems all at oncne
<kiloreux> Something like : NIX_PATH=$HOME/.nix-defexpr/channels/nixos-17.03/nixpkgs ?
<MichaelRaskin> As often as possible = «always know if today's (even better this hour's) master builds and passes automated tests»
<clever> kiloreux: that tells it to look for nixpkgs in nixpkgs, as in, $HOME/.nix-defexpr/channels/nixos-17.03/nixpkgs/nixpkgs must exist
<MichaelRaskin> Channels are for upgrading automatically
<MichaelRaskin> Just make a git checkout
<MichaelRaskin> Also, if you need nixpkgs= in NIX_PATH
<kiloreux> We are using nixpkgs on an Ubuntu system.
<kiloreux> How can I implement a git checkout for nixpkgs
<MichaelRaskin> git clone https://github.com/nixos/nixpkgs
<kiloreux> I see.
<kiloreux> and then checking out to a specific commit?
<kiloreux> or branch
<clever> git checkout <commitid>
<clever> git checkout <branchname>
<kiloreux> yeah got it.
<gchristensen> kiloreux: ideally you'd base it off of whatever commit https://github.com/NixOS/nixpkgs-channels/tree/nixos-17.03 is at
<gchristensen> kiloreux: whenever that repo / branch is pushed, it means the tests passed and it is fit for production
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 opened pull request #25788: metasploit: 3.3.1 -> 4.14.17 (master...metasploit) https://git.io/v95UR
NixOS_GitHub has left #nixos []
systemfault has quit [(Quit: Bye!)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<Fare> MichaelRaskin, did you package ECL and CLISP ? I believe they fail to allow proper linking, because lots of things point to the build directory in /tmp rather than the package directory in /nix/store
<kiloreux> Much appreciated. Thank you, helpful community.
<Fare> so, should this work? installPhase = "rsync -a bin lib etc doc $out/";
Itkovian has joined #nixos
<MichaelRaskin> What do you mean proper linking?
<gchristensen> Fare: why rsync instead of cp?
<Fare> trying to link executables with cffi-toolchain
<Fare> gchristensen: I suppose cp could do.
<MichaelRaskin> cffi-toolchain is probably newer than the last CLisp release!
<Fare> Does cp -a work on Darwin?
<Fare> MichaelRaskin, yes, you should use CLISP from a recent hg checkout. The release is from 2010 and has lots of known issues.
<Fare> (including, no asdf)
Jackneillll has joined #nixos
<MichaelRaskin> Fare: I know and I have added hg-tip version
<Fare> MichaelRaskin, how do I use the hg version?
<MichaelRaskin> clisp-tip
<Fare> thanks!
<Fare> is there any utility to the older, antique versions?
barrucad1 has joined #nixos
barrucad1 has quit [(Changing host)]
barrucad1 has joined #nixos
baroncha1lus has joined #nixos
rodgort` has joined #nixos
<MichaelRaskin> It is the last stable release!
Raimondii has joined #nixos
myrl has joined #nixos
that_guy_ has joined #nixos
<Fare> and/or shouldn't the tip be called clisp, and the last release clisp_2_49 ?
pierron_ has joined #nixos
garbas_ has joined #nixos
<Fare> when someone says "clisp", he probably doesn't mean 2.49
henrytill_ has joined #nixos
rodgort has quit [(Ping timeout: 268 seconds)]
pareidolia has quit [(Ping timeout: 268 seconds)]
jonasfj has quit [(Ping timeout: 268 seconds)]
nliadm has quit [(Ping timeout: 268 seconds)]
mitchty has quit [(Remote host closed the connection)]
phreedom has quit [(Remote host closed the connection)]
garbas has quit [(Ping timeout: 268 seconds)]
barrucadu has quit [(Ping timeout: 268 seconds)]
baroncharlus has quit [(Ping timeout: 268 seconds)]
pierron has quit [(Ping timeout: 268 seconds)]
Myrl-saki has quit [(Ping timeout: 268 seconds)]
henrytill has quit [(Ping timeout: 268 seconds)]
detran has quit [(Read error: No route to host)]
Raimondi has quit [(Ping timeout: 268 seconds)]
Jackneilll has quit [(Ping timeout: 268 seconds)]
jeaye has quit [(Ping timeout: 268 seconds)]
detran has joined #nixos
jonasfj_ has joined #nixos
that_guy_ is now known as nliadm
Raimondii is now known as Raimondi
jeaye_ has joined #nixos
jeaye_ is now known as jeaye
phreedom_ has joined #nixos
mitchty has joined #nixos
<MichaelRaskin> That makes a large enough amount of sense to make me uncomfortabl~e
pareidolia has joined #nixos
<Fare> ?
<MichaelRaskin> Well, normally it is still OK to have latest release as default
<Fare> even when the release is unusable?
<Fare> that's not a very user-friendly default
<MichaelRaskin> But for CLISP you may be right… To be honest, I am not sure whether people mean «2.49» or «whatever is in mercurial» when they say clisp
<clever> in the case of nix itself, nix is the stable version, and nixUnstable is newer, but not yet stable
barrucad1 is now known as barrucadu
<Fare> MichaelRaskin, if there had been a release in the last two years, I'd have said "release"
<MichaelRaskin> Which is deceptively stable most of the time, and then you get a schema upgrade. Which doesn't work well the first time
<Fare> but since that's not the case, I'd say "mercurial"
<Fare> why do you need sbclBootstrap, BTW? Is it a precompiled binary with which to compile the rest? How does that work across architectures?
<MichaelRaskin> I guess if it was reasonable to support release in ASDF3, even two years wouldn't be that much of a problem
<MichaelRaskin> Well, SBCL ships more arch versions than NixPkgs anyway
slyfox_ is now known as slyfox
<MichaelRaskin> I actually bootstrapped SBCL with CLISP. but then people got annoyed by the need to pay attention when upgrading and switched to sbclBootstrap
* Fare reads sbcl/bootstrap.nix
<Fare> that's probably acceptable.
<Fare> not worse than nix bootstrap, I suppose
<MichaelRaskin> You want to say gcc bootstrap
<Fare> is the situation the same with ocaml, .net, etc?
<MichaelRaskin> Although, I am wrong, nobody wants to ever mention gcc bootstrap
<MichaelRaskin> Free Pascal Compiler uses a binary release
<viric> so did gnat. Damn gnat.
<Fare> BTW, I had very unsatisfying experiences with either vscode or mono-develop on NixOS, but also on Ubuntu :-( Couldn't get proper F# debuggability working. And mono-develop was schizophreniac about font DPI.
hiratara has quit [(Ping timeout: 240 seconds)]
<MichaelRaskin> I wonder at what point I lost all faith in proper debuggability of anything
<Judson> I'm having trouble with a shell.nix
<Fare> MichaelRaskin, if at least you added ASDF3 to 2.49, that would at least make it usable.
<MichaelRaskin> I think I tried to load ASDF3 in 2.49 and there was some Fun involved
<Fare> btw, running the ASDF tests on CLISP shows that there is some deterministic but very input-sensitive GC issue that evades observation
hiratara has joined #nixos
marsel has quit [(Ping timeout: 255 seconds)]
<Fare> I think the "fun" part is making asdf into a clisp module, which probably needs to be backported from a recent clisp
<Fare> asdf itself works great on clisp 2.49.
<Judson> while evaluating the attribute ‘nativeBuildInputs’ of the derivation ‘shex-shell’ at /home/judson/dev/shex/shell.nix:15:5:
<Judson> while evaluating the derivation attribute ‘name’ at /home/judson/dev/nixpkgs/pkgs/build-support/trivial-builders.nix:7:14:
<Judson> value is null while a string was expected, at /nix/store/85g53pzfnq6vsn233i2jzjf0ixmh0qd8-nix-1.11.8/share/nix/corepkgs/derivation.nix:8:12
<Judson> Kind of have no idea how to proceed here.
<MichaelRaskin> Fare: ah, maybe I misremember
<Judson> Not even sure if I can do what I want to do the way I'm trying to
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #25787: awesome: Allows awesome to load svg images. (master...fix/awesome-read-svg) https://git.io/v95Jp
NixOS_GitHub has left #nixos []
phreedom_ is now known as phreedom
<clever> Judson: something went wrong computing the name attribute, either builderEnv needs extra info your not giving it, or you need to set name directly
<MichaelRaskin> Fare: it ships _some_ asdf, so if ASDF3 loads fine, just replacing ASDF in the source could be enough
<Judson> The builderEnv involved appears to be `rake`s
betaboon has joined #nixos
<Judson> clever, I can install rake in my profile, but if I use it in this expression, I get that error
betaboon has quit [(Client Quit)]
<Fare> I believe that ASDF was included shortly *after* the 2.49 release.
<MichaelRaskin> Hm, clisp-tip doesn't include asdf
<Fare> what? That's bad.
<Fare> you failed to configure it properly?
<MichaelRaskin> Maybe some flags have to be changed for installation
<clever> Judson: you set pname, so it must be a valid name in the gems attrset
<MichaelRaskin> Well, I just cloned 2.49, more or less
<clever> Judson: you probably want to set just name
<Fare> do I need to mkdir $out? cp -a ... $out resulted in cp: target '/nix/store/naxv9xp3jc3an6035d74w5lzgvv0f8s8-gerbil-0.7/' is not a directory
<clever> Fare: yes
<Judson> clever, I'm actually working on bundlerEnv atm - shex is in the gemset; but I may have broken rake's use case
* Fare recompiles for the nth time. And gerbil isn't quite as frustrating as the linux kernel
<Fare> there should be a way to make nix builds finer grained, so that as long as you don't gc too much you can restart from where things broke.
<Judson> Yup, broke Rake. Fantastic :|
<MichaelRaskin> Fare: if only there was only one … dozen of build systems
<clever> Fare: i was experimenting with that in https://github.com/cleverca22/nix-tests/blob/master/make.nix
<clever> Fare: basicaly, one .o file for every derivation, depending on a minimal subset of the source
<clever> but you need to translate the configure script and Makefile into a nix expression first
thc202 has quit [(Ping timeout: 260 seconds)]
dejanr has quit [(Ping timeout: 260 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
hiratara has quit [(Quit: ZNC - http://znc.in)]
hiratara has joined #nixos
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
elninja44 has quit [(Remote host closed the connection)]
Jackneillll has quit [(Remote host closed the connection)]
zraexy has joined #nixos
Gravious has quit [(Remote host closed the connection)]
Moster has joined #nixos
AndChat114816 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 4 new commits to master: https://git.io/v95tj
<NixOS_GitHub> nixpkgs/master 2f1e6c8 Tuomas Tynkkynen: kernel: 4.10.15 -> 4.10.16
<NixOS_GitHub> nixpkgs/master c230aee Tuomas Tynkkynen: kernel: 4.11 -> 4.11.1
<NixOS_GitHub> nixpkgs/master 8de08ff Tuomas Tynkkynen: kernel: 4.4.67 -> 4.4.68
NixOS_GitHub has left #nixos []
kiloreux has quit [(Remote host closed the connection)]
eacameron has joined #nixos
<Fare> WTF? in the installPhase, I get: cp: cannot stat 'bin': No such file or directory -- isn't the $PWD the same tmp directory as in the buildPhase??? having to do a 20 minute rebuild between two attempts is frustrating at best.
<clever> Fare: run pwd and ls -lh first
<clever> Fare: it should be in the same directory as buildPhase
<clever> Fare: oh, and do "set -x" in the earliest phase you control, then youll get a lot more debug info
<Fare> apparently, the cd src/ from the buildPhase carried on to the installPhase. That's surprising.
<clever> this is all ran in the same bash
<clever> Fare: this for loop will eval each phase in turn
<Fare> ok, well, why not...
<Fare> there has to be a better way :-(
<clever> Fare: just keep track of what directory your in and cd .. where needed
<Fare> I love a lot of the concepts in Nix, but the tools seem to be a bit haphazard.
<Fare> sure, once you know the trick it's fine.
<clever> for a lot of packages, the default phases work fine
<clever> and you can just set src and name and your done
<clever> unpackPhase will unpack (or copy) $src to ., and then cd into the directory it made
<clever> patchPhase will apply every patch in $patches
<clever> configurePhase will run ./configure if it exists
<gchristensen> I'm not sure haphazard is a fair characterization
<clever> buildPhase will run make
<clever> and installPhase will do make install
Mateon1 has quit [(Ping timeout: 240 seconds)]
Mateon1 has joined #nixos
<gchristensen> it is pretty amazing how effective stdenv's mkDerivation is at building tens of thousand of packages
<clever> yeah
<MichaelRaskin> «You would expect all this to come crashing down much. much more often!»
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
<clever> MichaelRaskin: only time ive seen it fail spectacularly, is when a python build system steralized the env variables
<clever> and it lost NIX_CFLAGS_COMPILE
<MichaelRaskin> Well, non-spectacular failures are quite frequent
<clever> they tried to make their own pure build system
<clever> MichaelRaskin: though i have seen some rather hard to debug problems in the installPhase
<gchristensen> «You would expect all this to come crashing down much. much more often!» basically the entire internet
<clever> for example, one of the qt modules on darwin, tries to write to one of its input directories, which are read-only
<clever> you cant just "make install" in a nix-shell, because it lacks write to $out
<clever> and you cant just sudo nix-shell, because it now has write to its buildInputs and doesnt fail
<MichaelRaskin> gchristensen: I don't understand why you only apply this statement about technology only to interconnected electronics
<clever> i had to make $out and chown them to the right user, before a non-root make install, to even reproduce the problem
Wizek_ has quit [(Ping timeout: 240 seconds)]
rcschm has joined #nixos
stepho has quit [(Ping timeout: 272 seconds)]
<rcschm> hi, i am trying to compile a project that uses cmake. is there an example nix in how to accomplish that? the cmake steps are what i found in this blog http://jsteemann.github.io/blog/2016/06/02/compiling-arangodb-3-dot-0-on-ubuntu/. thanks for your help.
<clever> rcschm: start by setting src, name, and buildInputs = [ cmake ];
<clever> th cmake setup hook will deal with running cmake for you
<rcschm> i have all those setup.
<clever> what happens when you run nix-build on that expression?
<rcschm> CMake Error: The source directory "/tmp" does not appear to contain CMakeLists.txt.
<rcschm> Specify --help for usage, or press the help button on the CMake GUI.
<clever> can you gist the nix expression?
<rcschm> but i am getitng.
<rcschm> hang on.
<rcschm> this is my build.sh
<clever> you almost never want to use builder= in a derivation
<rcschm> oh.
<clever> if you just put cmake in the buildInputs and unset builder=, then cmake will just magicaly do everything for you
<rcschm> i thought that is the one to use based on http://lethalman.blogspot.it/2014/08/nix-pill-8-generic-builders.html
<rcschm> ok let me try that.
<clever> just pop in the right url and point nix-build at it
stepho has joined #nixos
<rcschm> yes i do have that. it is compiling at the moment. i will let you know in a bit how it goes. really appreciate your help.
<rcschm> patching sources
<rcschm> substitute(): file '3rdParty/V8-3.31.74.1/build/gyp/gyp' does not exist
<rcschm> it fails with the error.
markus1209 has joined #nixos
<clever> is it on github and using git submodules?
<rcschm> yes.
<rcschm> hang on
<clever> which fetch function are you using?
stepho_ has joined #nixos
markus1219 has joined #nixos
<clever> using fetchFromGitHub?
<rcschm> fetchFromGitHub
<clever> set fetchSubmodules=true; inside the fetchFromGitHub call
AndChat114816 has quit [(Quit: Bye)]
<clever> and it will get all of the submodules for you
<rcschm> let me do that.
<clever> the hash will need to be updated as well
<rcschm> same error.
<rcschm> the source is pulled down.
markus1199 has quit [(Ping timeout: 240 seconds)]
<clever> ah, its not a git submodule
<clever> the build directory is missing
markus1189 has quit [(Ping timeout: 240 seconds)]
stepho has quit [(Ping timeout: 240 seconds)]
johnramsden has joined #nixos
<clever> something needs to start a build of v8
<rcschm> oh you mean the repo is not setup correctly?
<rcschm> the blog doesn't seem to be mentioning that at all.
<rcschm> just a cmake with flag and make 4j.
<clever> can you gist the full output of nix-build?
<rcschm> hang on
<rcschm> oh sorry
<rcschm> this one.
<johnramsden> What is the correct way to declare a variable that you want to use inside the scope of a set?
<johnramsden> I'm trying to declare a variable 'useBridge = true;' at the top of a file in one of my configuration.nix modules, and then use it inside of another set. I have tried using 'inherit' and 'let ... in' but I keep getting errors like:
<johnramsden> 'error: attribute ‘useBridge’ missing' or 'error: The option `networking.ip' defined in `/etc/nixos/system/networking' does not exist.'
<clever> rcschm: i think the patch list on the original arangodb derivation is having the problem
<rcschm> can we override it then?
<clever> johnramsden: any place you can put a value, you can also do this: let <key=value pairs>; in <value>
<Fare> I get segfault when running gxi. I suspect that stripping the binary didn't help. How do I disable stripping?
<clever> the {....} attrset is the main value in the file, and it has been prefixed by a let block
<MichaelRaskin> dontStrip = 1;
<clever> rcschm: we need to first look at the original derivation, and know what its doing
<johnramsden> clever: I'll give that a shot.
eacameron has quit [(Remote host closed the connection)]
<rcschm> i think i am seeing the patch thing there.
<clever> rcschm: yeah, line 21/22
eacameron has joined #nixos
<rcschm> let me take those out and see.
<Fare> MichaelRaskin, at the same level as the buildPhase = ?
<clever> Fare: yeah
stepho_ has quit [(Quit: My MacBook Pro has gone to sleep. ZZZzzz…)]
<Fare> why is it 1 and not true?
<johnramsden> clever: Do I have to use let multiple times to get a value to be able to be used inside of a nested set? Is there no way to create a value global to entire file?
<MichaelRaskin> Fare: Both work
<clever> johnramsden: in the snmpd.nix example i linked, the passwords value is available everywhere after line 3
<rcschm> clever: still the same error though.
<Fare> what's truthiness in Nix?
<clever> Fare: the attributes inside a derivation get cast down to a string, and dontStrip is then checked by a bash script for truthiness
<clever> i think true casts to 1 when that happens
<clever> and i think false turns into an empty string, its weird
eacameron has quit [(Ping timeout: 260 seconds)]
<clever> rcschm: what is the exact command you are running, and what directory is it being ran in?
<clever> rcschm: and also, you want to use nix-build for testing, not nix-env
<clever> rcschm: nix-env will make a mess of your profile and waste a lot more disk space in the long run
eacameron has joined #nixos
<rcschm> i am running nix-env.
<rcschm> that is a gd point.
<rcschm> let me try nix-build
<johnramsden> If I want to conditionally append something to asset what is the reason I'm getting an error here?
<johnramsden> error: syntax error, unexpected IF, at
<johnramsden> networking = {
<johnramsden> # ...
<johnramsden> } // if useBridge then {
<johnramsden> #..
<johnramsden> };
ambro718 has quit [(Ping timeout: 240 seconds)]
<clever> johnramsden: try wrapping it with ( and ) to enforce the order of operations
<gchristensen> johnramsden: you need an else
<gchristensen> as well