<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
<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.
<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)]
<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>
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
<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)]
<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. ;)
<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!
<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>
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
<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
<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>
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 ?
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')"
<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
<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)]
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?
<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>
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
<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.
<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
<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?
<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
<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>
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"
<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?
<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
<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.
<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 ?
<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
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
<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.
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.
<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>
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