<NixOS_GitHub>
[nixpkgs] grahamc pushed 2 new commits to master: https://git.io/vDrVH
<NixOS_GitHub>
nixpkgs/master 446aa68 Robert Helgesson: subtitle-editor: fix build...
<NixOS_GitHub>
nixpkgs/master ad623b8 Graham Christensen: Merge pull request #22714 from rycee/fix/subtitle-editor...
t7 has quit [(Remote host closed the connection)]
<gchristensen>
looks like Mic92 has been working with you on that
<ndowens08>
LnL: found your vim-nix plugin and installed it, yea just got notified on that lol. Didn't know he/she was going to do that
<LnL>
yeah I made that, the plugin in nixpkgs is pretty basic
<ndowens08>
also found a good .vimrc file so using that too, which enables autoindent so maybe wont have issue like i was having, atleast part of it :)
<gchristensen>
(and by a LOT I mean, a lot of _very_ new ones.
<ndowens08>
gchristensen: ah, well that was my first package I have made on nixos, as it was easy and well first one I got to work correctly :)
<LnL>
yeah, you chose a nice one to get started with
<LnL>
some stuff is a pain to package :/
<ndowens08>
yeah some i gave up on, like python ones, ew
<LnL>
I'm referring to the replaces here, I have it working now
<c74d>
If I have 72 files in the store matching `*-jdk*.drv`, but no corresponding non-`.drv` files, do I have a JDK in the store?
<c74d>
(and if not, why are those there?)
<gchristensen>
LnL: whooaaa!
<LnL>
gchristensen: still have to write some docs, but we should be able to get it into 17.03
<Mic92>
ndowens08: I can not remember python to be too complicated
<gchristensen>
super fancy :D
<ndowens08>
Mic92: hmm idk, maybe it was b/c nox-review kept spitting out errors, in which may not have really applied to anything that would have kept me from sharing
markus1199 has joined #nixos
markus1209 has joined #nixos
markus1219 has quit [(Ping timeout: 240 seconds)]
<gchristensen>
ttuegel: is qt4 still available if we remove kde4?
<gchristensen>
/ how do I pass it in to packages?
markus1189 has quit [(Ping timeout: 255 seconds)]
<drakonis>
i forgot how to fix my nixpath
Kingsquee has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 3 new commits to master: https://git.io/vDrwr
<NixOS_GitHub>
nixpkgs/master a777057 ndowens: worker: init at 3.8.5...
<c74d>
If nixpkgs policy is against keeping old versions of packages, is it therefore against having packages that depend on specific versions of other packages?
<Mic92>
c74d: no, we make exception for that. For some packages also multiple versions are ok.
<Mic92>
*exceptions
<c74d>
I expect my case is on the unfavorable end: I'd like to package rust-clippy, a linter for the Rust programming language, which depends on nightly versions of the Rust compiler
<Mic92>
c74d: a specific nightly version, I suppose
mudri has quit [(Quit: WeeChat 1.7)]
<c74d>
nixpkgs has nightly versions of rustc, but both clippy and nightly rustc release frequently, and clippy says its releases are only compatible with the contemporary nightly rustc releases
<tnks>
why are the Debian package builds of Nix deleted from Hydra?
<tnks>
I tried building it myself, but I got a failure due to some kernel module KVM privileges.
<tnks>
enough people run Nix on top of Debian or Ubuntu, it seems good to have this available.
<tnks>
running the install script is easy, but less than ideal for all situations.
<Mic92>
c74d: clippy runs as a standalone, after it is compiled?
<c74d>
thus, if only one version of nightly rustc is kept, a clippy package would need to be updated in lockstep with the nightly rustc package, a maintenance burden I doubt would be feasible to keep up
<gchristensen>
sounds problematic
<c74d>
Mic92: not normally, but it's supported, and I think the most Nix-compatible way
<Mic92>
c74d: clippy could have its own rustc
<c74d>
(normally it plugs into either the compiler or build system)
rarnau has left #nixos []
ebzzry has joined #nixos
<Mic92>
c74d: there is also a rustcNightlyBin. This version is probably easier to override to get a compatible version.
<Mic92>
And it won't add too much burden on the continous integration.
phreedom has quit [(Ping timeout: 240 seconds)]
fhoffmeyer has quit [(Ping timeout: 256 seconds)]
<Mic92>
* rustNightlyBin
<gchristensen>
I'm not sure we'd want to build 3 rust's
ebzzry has quit [(Client Quit)]
<Mic92>
gchristensen: in this case it would not really be a separate build, it would be just downloaded as a private dependency for clippy.
<c74d>
Mic92: you mean I would take rustNightlyBin as an argument to the clippy expression, then call lib.overrideDerivation on it?
<gchristensen>
oh I see, Mic92
phreedom has joined #nixos
<Mic92>
c74d: yes, I don't expect a lot to change regarding packaging the precompiled version between different versions of nightly.
<ndowens08>
So how do I update my package that got merged to master, same way I initally commited?
<c74d>
Mic92: okay, thanks; I'll try that
<gchristensen>
ndowens08: make a PR changing it :)
<ndowens08>
gchristensen: thought so :) making sure
<c74d>
is pkgs/development/tools/analysis the proper directory for linters?
fhoffmeyer has joined #nixos
<c74d>
or should it be in pkgs/development/tools/rust?
<NixOS_GitHub>
[nixpkgs] fpletz opened pull request #22727: network-interfaces service: fix bindsTo deps for masters (master...fix/netdev-master-bindsto) https://git.io/vDrKf
fhoffmeyer2 has joined #nixos
fhoffmeyer has quit [(Read error: Connection reset by peer)]
<Mic92>
c74d: pkgs/development/tools/rust looks good to me
<gchristensen>
So. Many. PRs.
<c74d>
okay, thanks
drakonis has quit [(Remote host closed the connection)]
<Mic92>
gchristensen: looks like we need more core maintainer?
<gchristensen>
Mic92: I don't know, it seems like a recent uptick?
<gchristensen>
almost 40 PRs in the last 24 hours
ebzzry has joined #nixos
acarrico has joined #nixos
<ndowens08>
ok am i doing this right, i am trying needing to substituteinplace or w/e the bsdinstall file that comes with epic5, so here is what i have:
Drakonis has quit [(Read error: Connection reset by peer)]
<gchristensen>
hmmm over the last 30 days 690 PRs were created of which 580 were closed, and 61 PRs prs older than the last 30 days were also closed.
<NixOS_GitHub>
[nixpkgs] grahamc pushed 2 new commits to master: https://git.io/vDrK1
<NixOS_GitHub>
nixpkgs/master 21cb82f Profpatsch: mpd: fix on i686...
<NixOS_GitHub>
nixpkgs/master 0d52f15 Graham Christensen: Merge pull request #22717 from Profpatsch/mpd-i686-patch...
<c74d>
for meta.platforms of a non-platform-dependent Rust package, should I include only Rust's tier-1 ("guaranteed to work") platforms, or also its tier-2 ("guaranteed to build") platforms?
<c74d>
oh, I guess I'll use whatever rustc uses
goodwill has quit [(Ping timeout: 240 seconds)]
yorick has quit [(Remote host closed the connection)]
kyren has quit [(Ping timeout: 276 seconds)]
kyren has joined #nixos
goodwill has joined #nixos
Shoue has quit [(Ping timeout: 240 seconds)]
ebzzry has quit [(Quit: Lost terminal)]
ebzzry has joined #nixos
DarcsAurelius has quit [(Ping timeout: 276 seconds)]
<NixOS_GitHub>
[nixpkgs] ndowens opened pull request #22728: epic5: init at 2.0.1 (master...master) https://git.io/vDr6w
<Judson>
Is there a standard way to produce a derivation that just points to an existing filesystem directory?
<Judson>
I'm working with bunderEnv which both treats the mainGem as a path (because I think it's provided as a derivation) and also as a set.
<ndowens08>
gchristensen: guessing you are meaning put openssl and ncurses in the function at top?
<gchristensen>
yeah
<Judson>
So I'm trying to satisfy that - simply referring to a path gets an error because it doesn't have attrs, and a simple set raises "cannot coerce a set to a string", gchristensen
<ndowens08>
gchristensen: if I put them at top it doesnt build
<ndowens08>
wait
<ndowens08>
nvm, also put them in buildInputs too?
<gchristensen>
yeah
<NixOS_GitHub>
[nixpkgs] copumpkin pushed 1 new commit to master: https://git.io/vDr6Q
<NixOS_GitHub>
nixpkgs/master 4c0aae9 Dan Peebles: ssm-agent: init at 2.0.633.0
<gchristensen>
Judson: gosh ... I ... don't know :|
<Judson>
Okay, so what I'm doing is weird, and there's not a library function for it?
<gchristensen>
Judson: ruby packaging is just a bit more complicated, and I'm not sure how it works.
<Judson>
Yeah. I'm aware :) I'm pretty seasoned with Ruby, but fairly new to Nix and having that "this is new and different and frustrating" experience. e.g. can't figure out how to debug what I'm doing beyond hypothesizing about values as they're passed.
<NixOS_GitHub>
[nixpkgs] grahamc pushed 2 new commits to master: https://git.io/vDr6p
<pikajude>
you can make it act like a path when toStringed i think if you make an attrset with the attributes you want and outPath pointing to what you want the string representation to be
<NixOS_GitHub>
[nixpkgs] grahamc pushed 1 new commit to master: https://git.io/vDri2
<NixOS_GitHub>
nixpkgs/master 4450327 Graham Christensen: flow: pin ocaml to ocaml_4_02
<ttuegel>
gchristensen: That is strangely roundabout. Seems like you should be able to do `qt4 = callPackage ../development/libraries/qt-4.x/ {}`.
takle has quit [(Read error: Connection reset by peer)]
<gchristensen>
fun :)
<ndowens08>
hmm well darwin's build failed, missing iconv
Drakonis has joined #nixos
<Judson>
Huh. There's a toDerivation in attrsets.nix, which I'm going to crib from...
<gchristensen>
ok bed time for me
<Judson>
G'night. Thanks for the help.
<ndowens08>
should I add iconv to the function for darwin support? in which i dont even know if that is what is called on darwin too
<gchristensen>
ndowens08: ping LnL
<ndowens08>
LnL: ?
endformationage has joined #nixos
ebzzry has joined #nixos
MP2E has joined #nixos
jabb has joined #nixos
johnsonav has joined #nixos
<justanotheruser>
when I run 'platformio run --target upload' I have "Error while loading shared libraries: libusb-1.0.so.0: cannot open shared object file: No such file or directory" - I have libusb1 and libusb installed. what do I do?
<justanotheruser>
someone mentioned that 'you need to play around with pkgs/development/arduino/platformio/* to add libusb'
<justanotheruser>
I'm not exactly sure what that means, shouldn't it know about it if my library path is in my env variables?
<benley>
wow here's a weird one. Why doesn't this expression work? (builtins.toJSON { foo = ./.screenrc; })
<benley>
it results in "error: illegal name: '.screenrc'"
<Judson>
Pure curiosity, but is there a reason that Rubinius isn't in Nix?
indi_ has quit [(Remote host closed the connection)]
Sonarpulse has quit [(Remote host closed the connection)]
<benley>
Judson: the most likely reason is just that nobody has done it yet
indi_ has joined #nixos
<Judson>
Okay. Previous experience trying to bring it into Gentoo was that it was tough to build and that the project was dismissive of packaging challenges.
<benley>
I see no mention of it in the nixpkgs repo, which makes me think probably nobody has attempted it.
<benley>
usually there would at least be a bug open or something
<Judson>
Okay. Interesting.
derjohn_mob has quit [(Ping timeout: 240 seconds)]
<benley>
If you know, what makes it hard to build?
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
defel has quit [(Ping timeout: 240 seconds)]
<Judson>
IIRC (and this may all be out of date) they use Rake to build it (so you need Ruby already), and they have a default target and an install target - so you might expect something like `rake; rake install` except `rake` does a dev build and installs it. There weren't two steps to the install process, which meant separating out a build and install step for the package was a giant pain.
<Judson>
There were also some assumptions made about the running system that needed to be patched in the build steps.
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
<Judson>
I mostly remember being the tortured go-between for the Rubinius project ("why would you want that? Oh, but no one uses Gentoo lol") and Gentoo devs ("our mysterious style preferences demand...")
<ndowens08>
weird, i squashed my commits for epic5 and somehow it has a previous commit message about worker: fix identation
olesk has joined #nixos
<ndowens08>
great, also some how it wants to change worker, gah may have to close PR and redo :(
<ndowens08>
fpletz: had to close that pr on epic, somehow i messed up on commits so it was gonna change worker i did earlier
<ndowens08>
but atleast it builds on darwin now too :)
Sonarpulse has joined #nixos
olesk has quit [(Ping timeout: 240 seconds)]
mkoenig has quit [(Ping timeout: 258 seconds)]
panostimos has quit [(Ping timeout: 255 seconds)]
lambdamu has quit [(Ping timeout: 276 seconds)]
derjohn_mob has joined #nixos
mkoenig has joined #nixos
kyren has quit [(Ping timeout: 240 seconds)]
kyren has joined #nixos
<Judson>
What's the difference between bultins.hasAttr and the ? operator?
<fpletz>
ndowens08: you don't need to close pull requests, you can just force push to that same branch to update the pull request
<ndowens08>
fpletz: yea i was gonna try rebasing it to fix it, but since i squashed them i only had one commit; I dont understand git very well, only way i know to fixing it and dont want to mess up worker i did earlier :(
<benley>
Judson: iirc, hasAttr returns a boolean value, the ? operator returns the attribute or a default value
Drakonis has quit [(Remote host closed the connection)]
Drakonis has joined #nixos
mizu_no_oto has joined #nixos
indi_ has quit [(Remote host closed the connection)]
edvorg has quit [(Ping timeout: 240 seconds)]
jabb has quit [(Ping timeout: 260 seconds)]
mbrgm has quit [(Ping timeout: 240 seconds)]
<c74d>
the operator that returns an attribute's value or a default value if the attribute doesn't exist is `or`
takle has joined #nixos
jabb has joined #nixos
mbrgm has joined #nixos
<benley>
what about in function parameters, where you can do like { something ? defaultvalue }:
takle has quit [(Ping timeout: 240 seconds)]
<c74d>
oh, there is that, but that's not an operator
<NixOS_GitHub>
[nixpkgs] ndowens opened pull request #22730: epic5: init at 2.0.1 (master...master) https://git.io/vDr1z
<justanotheruser>
peterhoeg: do you have an example of making it so a package recognizes a library? (eg. libusb1)
davidak has quit [(Quit: Leaving.)]
takle has joined #nixos
ndowens has joined #nixos
ndowens has quit [(Client Quit)]
takle has quit [(Ping timeout: 260 seconds)]
hexagoxel has quit [(Ping timeout: 260 seconds)]
<ndowens08>
build 2 failed on epic5, looks like it is debian it seems, dpkg-configure: tcl something not found
hexagoxel has joined #nixos
ttuegel has quit [(Remote host closed the connection)]
takle has joined #nixos
<yorick>
or maybe we could kill the manual instead
takle has quit [(Ping timeout: 245 seconds)]
<ndowens08>
need a way to detect if the os is debian or not
excelangue has quit [(Ping timeout: 240 seconds)]
<yorick>
ndowens08: lsb_release?
excelangue has joined #nixos
<ndowens08>
think that is redhat? reason i need it so i can use if statement if host = debian don't install tcl
<ndowens08>
so all 3 builds from CI works
<ndowens08>
seems installing tcl on debian build fails but w/o it build works but not for darwin
<ndowens08>
trying to find a free debian shell account to try and see
takle has joined #nixos
mkoenig has quit [(Ping timeout: 240 seconds)]
mkoenig has joined #nixos
excelangue has quit [(Ping timeout: 240 seconds)]
<ndowens08>
ok virtualbox doesnt work
takle has quit [(Ping timeout: 240 seconds)]
<ndowens08>
no command found for virtualbox after installing
<Drakonis>
i feel contrarian right now, i want to try freebsd on a vm
<ndowens08>
Drakonis: heh, i have it on HD atm, i have windows, arch,freebsd, and nixos
<Drakonis>
i have nixos set up the way i want
<Drakonis>
except for kdm5's login screen
<Drakonis>
that shit is eyepopping
<ndowens08>
ah. can you tell me if virtualbox works for you, i did nix-env -i virtualbox but it gives virtualbox command not found
<Drakonis>
and i don't know what are my options in the .nix file because there's no kdm settings module
<Drakonis>
i'm not on nix right now
<Drakonis>
my suggestion
<Drakonis>
try installing nox
<ndowens08>
did that
<benley>
Drakonis: You might consider replacing kdm with sddm, which is the new default display manager for kde
<Drakonis>
i am using sddm
<benley>
Oh
<Drakonis>
i meant
<Drakonis>
kde
<ndowens08>
nox didnt help either
<Drakonis>
i'll see the repos then
excelangue has joined #nixos
<Drakonis>
looks like it entered the repos right before 16.09
<Drakonis>
or was it after
<ndowens08>
seems it is messed up IMO, doesnt work, needed it to install small debian vm to see something for this package
<ndowens08>
i am using the unstable channel so...
<benley>
Drakonis: I figured out how to change the sddm theme today at least; you can get the default one (which is less blinding) by setting displayManager.sddm.theme = ""
<ndowens08>
yup and it is in unstable too, but doesnt launch
<Drakonis>
the default blue theme without any setup is ugly
<benley>
Drakonis: and there are two others included, "elarun" and "maldives"
<tippenein>
my nix-build is complaining about "will have no output because there's no Main module", so it seems it's not looking in the hs-source-dirs directory I specified in the .cabal file?
<Drakonis>
why not use qemu ndowens08
<benley>
what I haven't figured out yet is how to set options for sddm themes that have things you can configure
<Drakonis>
good to know about those two
<tippenein>
is there some arg I have to give it to tell it where to find the Main?
<Drakonis>
benley, that's a KDE settings module
<ndowens08>
Drakonis: forgot about that one
<Drakonis>
its not packaged though
<Drakonis>
qemu is so much better though
<benley>
Drakonis: also note, the sddm upstream default is different from the nixos default theme ("breeze")
<ndowens08>
nix-env -i qemu is installing :)
<Drakonis>
i see
<benley>
if you want the upstream default you have to explicitly set sddm.theme = ""
<benley>
I forget what that theme is actually called; it's the one that is compiled into sddm
<ndowens08>
so yea qemu is in the repo, atleast unstable
<tnks>
is it possible to get the output of `nix-store -qR` from within a Nix expression derivation?
systemfault has joined #nixos
<tnks>
because /nix/var is impure, I don't think I can rely on the database.
peterhhoeg has quit [(Remote host closed the connection)]
<tnks>
all the information is technically there in /nix/store... I'm just not sure how much work it would be to reconsitute it.
<simpson>
tnks: Hm, isn't relying on /nix/store *also* impure? Or otherwise you'd be retriving a very large imaginary space of not-yet-defined packages...
ebzzry has joined #nixos
<tnks>
simpson: I realized that dockerTools must be doing something similar.
<tnks>
and that lead me to writeReferencesToFile
<tnks>
so I think this problem is addressed by code already in nixpkgs.
endformationage has quit [(Quit: WeeChat 1.6)]
<simpson>
tnks: Oh, I see, I misunderstood what you wanted. Yes.
takle has joined #nixos
ebzzry has quit [(Ping timeout: 252 seconds)]
takle has quit [(Ping timeout: 276 seconds)]
pikajude has quit [(Quit: ZNC 1.6.3 - http://znc.in)]
pikajude has joined #nixos
fhoffmeyer has quit [(Ping timeout: 245 seconds)]
roconnor__ has joined #nixos
fhoffmeyer has joined #nixos
indi_ has quit [(Ping timeout: 258 seconds)]
indi_ has joined #nixos
takle has joined #nixos
roconnor__ has quit [(Ping timeout: 240 seconds)]
takle has quit [(Ping timeout: 240 seconds)]
fhoffmeyer has quit [(Ping timeout: 256 seconds)]
alx741 has quit [(Quit: alx741)]
fhoffmeyer has joined #nixos
takle has joined #nixos
alx741 has joined #nixos
takle has quit [(Ping timeout: 256 seconds)]
copumpkin has quit [(Quit: My MacBook Pro has gone to sleep. ZZZzzz…)]
takle has joined #nixos
indi_ has quit [(Ping timeout: 245 seconds)]
matthewbauer has joined #nixos
indi_ has joined #nixos
takle has quit [(Ping timeout: 264 seconds)]
jabb has joined #nixos
ryanartecona has joined #nixos
olesk has joined #nixos
fhoffmeyer has quit [(Read error: Connection reset by peer)]
fhoffmeyer2 has joined #nixos
olesk has quit [(Ping timeout: 256 seconds)]
MercurialAlchemi has joined #nixos
ebzzry has joined #nixos
katyucha1 has joined #nixos
katyucha has quit [(Killed (verne.freenode.net (Nickname regained by services)))]
katyucha1 is now known as katyucha
TroniQ89 has quit [(Ping timeout: 240 seconds)]
katyucha1 has joined #nixos
alx741 has quit [(Quit: alx741)]
reinzelmann has joined #nixos
takle has joined #nixos
dramforever has joined #nixos
TroniQ89 has joined #nixos
takle has quit [(Ping timeout: 255 seconds)]
TroniQ89 has quit [(Ping timeout: 240 seconds)]
tm_ has joined #nixos
ebzzry has quit [(Ping timeout: 245 seconds)]
takle has joined #nixos
xeviox has joined #nixos
takle has quit [(Ping timeout: 256 seconds)]
TroniQ89 has joined #nixos
TroniQ89 has quit [(Ping timeout: 240 seconds)]
<benley>
ah shit I just accidentally upgraded the system nix store schema to version 10 and now the release version of nix can't read it
<benley>
now what do I do
TroniQ89 has joined #nixos
* benley
finds clues in irc logs
Itkovian has joined #nixos
takle has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
takle has quit [(Ping timeout: 240 seconds)]
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
indi_ has quit [(Ping timeout: 258 seconds)]
indi_ has joined #nixos
rootnode has joined #nixos
<rootnode>
if I have a 3rd party package with a hardcoded /usr/bin/file in its configure files...is there any easy fix for that?
<rootnode>
quite a larger package, so anything automated would be muuuuuuuch appreciated
indi_ has quit [(Remote host closed the connection)]
takle has quit [(Ping timeout: 245 seconds)]
<hendrik[m]>
Is there already something built like node2nix for composer?
mbrgm has joined #nixos
olesk has joined #nixos
olesk has quit [(Ping timeout: 276 seconds)]
takle has joined #nixos
mrkgnao has quit [(Ping timeout: 240 seconds)]
Wizek has joined #nixos
Wizek_ has joined #nixos
derjohn_mob has quit [(Ping timeout: 245 seconds)]
fritschy has joined #nixos
nschoe has joined #nixos
goibhniu has joined #nixos
takle has quit [(Remote host closed the connection)]
FRidh has joined #nixos
binarin has quit [(Remote host closed the connection)]
olesk has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to staging: https://git.io/vDrj4
<NixOS_GitHub>
nixpkgs/staging 94db8d7 Frederik Rietdijk: Revert "pythonPackages.argparse: only for Python < 2.7"...
<NixOS_GitHub>
[nixpkgs] rbvermaa pushed 1 new commit to release-16.09: https://git.io/vDrjz
<NixOS_GitHub>
nixpkgs/release-16.09 e16db56 Rob Vermaas: Use default qemu for azure image generation, and use option to enforce sizing of image to be compliant with Azure/HyperV.
<NixOS_GitHub>
[nixpkgs] rbvermaa pushed 1 new commit to master: https://git.io/vDrjg
<NixOS_GitHub>
nixpkgs/master eff0752 Rob Vermaas: Use default qemu for azure image generation, and use option to enforce sizing of image to be compliant with Azure/HyperV....
tommyangelo has joined #nixos
takle has joined #nixos
siel has quit [(Ping timeout: 264 seconds)]
siel has joined #nixos
jgertm has quit [(Ping timeout: 276 seconds)]
bennofs has joined #nixos
ravloony has joined #nixos
civodul has joined #nixos
tommyangelo has quit [(Ping timeout: 255 seconds)]
nschoe has quit [(Quit: Program. Terminated.)]
Itkovian has joined #nixos
phreedom has quit [(Ping timeout: 240 seconds)]
olesk has quit [(Ping timeout: 240 seconds)]
ebzzry has joined #nixos
bennofs has quit [(Ping timeout: 240 seconds)]
sibi has quit [(Quit: Connection closed for inactivity)]
derjohn_mob has joined #nixos
phreedom has joined #nixos
mindB has left #nixos ["User left"]
dramforever has joined #nixos
nschoe has joined #nixos
defel has joined #nixos
johann__ has joined #nixos
teknico has joined #nixos
<goibhniu>
Does anyone happen to know of a screensharing program that works on NixOS that lets you control a remote (ubuntu) machine?
indi_ has joined #nixos
<MichaelRaskin>
x11vnc + vncviewer?
mudri has joined #nixos
indi_ has quit [(Remote host closed the connection)]
<goibhniu>
ah thanks, I should have mentioned, the machine is behind a NAT without the option to set up port forwarding ... I think that would be a problem for VNC, right?
indi_ has joined #nixos
<MichaelRaskin>
That's true. You can setup a tunnel using SSH to some server controlled by you, though
<NixOS_GitHub>
[nixpkgs] adevress closed pull request #17975: petsc: init at version 3.7 (master...new_petsc) https://git.io/v6dGp
<goibhniu>
yeah, I fear that will be difficult to explain to my dad, so I'm hoping to get access to the box some other way ... apparently TeamViewer might work
indi_ has quit [(Remote host closed the connection)]
Itkovian_ has joined #nixos
Itkovian has quit [(Ping timeout: 264 seconds)]
excelangue has quit [(Ping timeout: 245 seconds)]
<domenkozar>
peti: hey!
<domenkozar>
do you need some help with stackage LTS 8?
excelangue has joined #nixos
MichaelRaskin has quit [(Remote host closed the connection)]
jgertm has joined #nixos
ebzzry has quit [(Ping timeout: 255 seconds)]
fadenb[m] has joined #nixos
hamishmack has joined #nixos
systemfault has quit [(Quit: Bye!)]
<NixOS_GitHub>
[nixpkgs] rbvermaa pushed 1 new commit to release-16.09: https://git.io/vDoUg
<NixOS_GitHub>
nixpkgs/release-16.09 2da8a5d Rob Vermaas: Azure: switch back to qemu 2.2.0 for generating image. Seems to work best.
<NixOS_GitHub>
[nixpkgs] rbvermaa pushed 1 new commit to master: https://git.io/vDoUV
<NixOS_GitHub>
nixpkgs/master af3732b Rob Vermaas: Azure: switch back to qemu 2.2.0 for generating image. Seems to work best....
<mbrgm>
hey! I would like to create a nixos service module for keepalived. now this is a service with tons of config options. what would be the best strategy for translating this to nixos options? I think it wouldn't be feasible to map all possible options in a 1:1 fashion. so if I just wanted to start out with an option for adding verbatim config, would an 'extraConfig' option be ok?
<NixOS_GitHub>
[nixops] rbvermaa pushed 1 new commit to master: https://git.io/vDoUh
<NixOS_GitHub>
nixops/master 8bf4218 Rob Vermaas: Update Azure image
<NixOS_GitHub>
[nixpkgs] FRidh force-pushed python-wip from 8fe042b to ace5e39: https://git.io/vzaOS
<NixOS_GitHub>
nixpkgs/python-wip 601febc Frederik Rietdijk: pythonPackages.urllib3: 1.12 -> 1.20
<NixOS_GitHub>
nixpkgs/python-wip d4807b3 Frederik Rietdijk: urllib3 fixup
<NixOS_GitHub>
nixpkgs/python-wip 5748172 Frederik Rietdijk: pythonPackages.llvmlite: 0.14.0 -> 0.15.0
<sphalerite>
mbrgm: that sounds like the right approach to me
<mbrgm>
ok. then my next question is: keepalived requires two sysctl options (net.ipv4.ip_forward, net.ipv4.ip_nonlocal_bind) to be set. should the service module set them using 'boot.kernel.sysctl...' or is it preferred to set them using the sysctl binary before the service starts?
indi_ has joined #nixos
justbeingglad has joined #nixos
<sphalerite>
The former, I think. That way it's easier to find out what sets them and override them should the user for some reason want to disable them anyway
<mbrgm>
my gut feeling would be that the latter is the less permanent/no reboot required solution, so maybe this should be preferred in respect to the determinism of the system configuration. but I'm not sure, so asking you guys
justbeingglad has left #nixos []
<sphalerite>
If the latter option doesn't require a reboot, it should also be possible to implement the former in such a manner
<sphalerite>
In general, I'd always prefer the nix interface.
<mbrgm>
ok.
<sphalerite>
I'm not an expert though, so it would be nice for someone to confirm what I say :D
<sphalerite>
(confirm or correct)
dramforever has quit [(Ping timeout: 256 seconds)]
<benley>
jophish: awesome - I somehow managed to come up with that process independently and it fixed it :)
olesk has joined #nixos
<jophish>
benley: oh great. I just resigned myself to using nixUnstable from now on :)
<benley>
heh
<benley>
it's also reassuring that even in the worst case where you lose the nix database entirely, you can use nixos-rebuild and get almost everything back where it was
<ravloony>
I'm trying to make a nix package for staytus (rails app https://github.com/adamcooke/staytus/) using bundix. I have a default.nix here: http://pastebin.com/QNVHsRKS, but when I run `nix-build '<nixpkgs>' --dry-run --show-trace -A staytus` I get "error: attribute ‘staytus’ in selection path ‘staytus’ not found".
<manveru>
ravloony: did you add it to all-packages.nix ?
<ravloony>
manveru: Not yet, I just wanted to see if my default.nix was correct. Do I need to?
<manveru>
well, you try to build an attribute, but your mkDerivation is already the toplevel
<manveru>
where is your default.nix?
<manveru>
did you add it to nixpkgs or is it somewhere else?
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
<ravloony>
I checked out the package from git as there is no distro package, and ran bundix in the folder, then wrote default.nix in the folder too.
<maurer>
Note that just because you're the only one who uses the machine, doesn't mean it's OK for it to be world readable
ertes has quit [(Ping timeout: 245 seconds)]
ertesx is now known as ertes
<maurer>
The security model of various other services that you may run on your machine as dependencies assumes user-based isolation from data they shouldn't read
<maurer>
It'll probably be OK if you're the only one using it, but generally it's not a great plan
<maurer>
(keeping configuration dotfiles and defaults in the store on the other hand, is a great plan, and I do this custom for some packages)
<sphalerite>
NickHu: I do it like this https://github.com/lheckemann/dotfiles/blob/master/default.nix — that way I can `nix-env -f ~/dotfiles -i` after cloning it to get all the software that I want, configured the way I want it (pretty much the approach that maurer describes, except that I include all the software I use as well)
Itkovian_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
ebzzry has quit [(Ping timeout: 256 seconds)]
<NickHu>
I'm very new to nixos; is there an api for pkgs where I can look up methods like symlinkJoin and writeScriptBin?
<gchristensen>
hmm
<gchristensen>
NickHu: I'm afraid a lot of these are learned by exposure to their use
<maurer>
gchristensen: This one of those cases where I kind of wish nix had used an existing language rather than creating its own
<gchristensen>
why?
<maurer>
gchristensen: since then you'd probably be able to use the native doc system to generate docs from nixpkgs
<maurer>
(think haddock, rustdoc, javadoc)
<sphalerite>
gchristensen: search.nix.gsc.io seems to offer a search provider, but when I try to add it I get "Nightly could not download the search plugin from:
<maurer>
which would mean that we could just put comments in nixpkgs, and it'd come up well searchable information on functions that'd stay up to date :P
<sphalerite>
gchristensen: seems to be a < replaced by < in the xml version declaration
DarcsAurelius has quit [(Ping timeout: 240 seconds)]
<ikwildrpepper>
(didn't test it, but that should be correct syntax0
danharaj has quit [(Ping timeout: 264 seconds)]
<NickHu>
ikwildrpepper: Gives an error that an anonymous function is called with an unexpected argument 'buildInputs'
<ikwildrpepper>
NickHu: sorry, args in the rhs should be args.buildInputs
<NickHu>
Still seems to give the same error
phreedom has quit [(Ping timeout: 240 seconds)]
peterhhoeg has quit [(Ping timeout: 252 seconds)]
cmercier has joined #nixos
<teh[m]>
when you get frustrated and start to think that maybe nixos sucks I recommend setting up a vagrant box with ansible. It's a good cure!
<gchristensen>
hehe
DarcsAurelius has joined #nixos
sibi has joined #nixos
DarcsAurelius has quit [(Remote host closed the connection)]
DarcsAurelius has joined #nixos
<jophish>
gchristensen: the xps?
<gchristensen>
eyah
<gchristensen>
should be here around the 25th
<jophish>
gchristensen: please let me how nixos works out on it!
* gchristensen
is anxious about that
<gchristensen>
at least with mbp's I can tolerate OSX :)
<maurer>
I suspect it'll work fine, the xps line has explicit ubuntu support, so as long as you can do some tuning (which I know gchristensen can) it should work fine
takle has quit [(Remote host closed the connection)]
<FRidh>
gchristensen: I'll wait a day or two and then I'll merge the Python 3 change. Deterministic build of the interpreter is something that can always be done/merged later.
<gchristensen>
maurer: pfft I'm practically a linux noob :P I'll be highlighting you for help ;)
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vDolF
<gchristensen>
FRidh: excellent! that sounds great :D
<jophish>
gchristensen: fwiw, ubuntu runs without (many) problems on that machine
<jophish>
My usual scheme is to have ubuntu with apt-getted chrome and everything else provided by nix
<gchristensen>
ah right on
<maurer>
tbh most of the linux trickery I've learned outside of sysadminning duties has come from not knowing when to stop with pimping out my system configuration
<gchristensen>
great :) and once domenkozar and I guinea pig it, you'll go full-nixos, right? :)
<maurer>
which is part of what brought me to nix (rolling back is super nice)
<gchristensen>
ahh neat
<jophish>
gchristensen: sure, as long as the nvidia drivers and sound work ootb!
olesk has quit [(Ping timeout: 252 seconds)]
<jophish>
although I do really like ubuntu's Unity interface
<maurer>
jophish: If you've not tried one, I would suggest you give a tiling wm a shot for a week at some point. They're not for everybody, but for a lot of people they're lifechanging
<maurer>
jophish: xmonad and ion3 are the popular ones atm
<jophish>
maurer: I love tmux, perhaps I should do that
olesk has joined #nixos
<jophish>
although tbh, the only interaction I have with my WM is alt-tab between terminal and chrome!
<gchristensen>
jophish: I hope to provide a config which will be working ootb, since I mean, that is the promise of nix :0
<maurer>
err, well, not ion3 anymore
<maurer>
I think it's notion now?
<gchristensen>
I use i3
<maurer>
(the ion3 original dev was crazy)
<maurer>
gchristensen: Does captain ion, hater of blurry fonts still operate it?
<maurer>
or is i3 a fork of ion3?
mudri has quit [(Ping timeout: 258 seconds)]
<maurer>
Ah, OK
<maurer>
ion3 forked into ion3 + notion, notion became i3
<maurer>
so it is not headed by captain ion (this is a good thing)
<jophish>
maurer: re "knowing when to stop". I've learnt "never to start". Although I did spend the whole weekend getting KDE 5.9 working on nixos just because I wanted some tiny feature. I should follow my own advice more...
<gchristensen>
jophish: yay! yes! keep going!~
<jophish>
noo noo, I could have got some more work done on hercules!
<gchristensen>
:D *adds jophish to the maintainers list of kde5*
<jophish>
err, I've not used kde for about years!
<jophish>
6*
<maurer>
jophish: Not knowing when to stop is also how I ended up a maintainer of like, a quarter of ocaml packages
<maurer>
oops.
<gchristensen>
also would you like to spearhead the actual removal of kde4? thanks!
<jophish>
gchristensen: ag kde4 -l | xargs rm
<gchristensen>
I wish :\
<jophish>
maurer: I think my problem is depth first problem solving when it comes to computers
tommyangelo_ has joined #nixos
<maurer>
jophish: Also, while I'm glad your with us doing nix stuff, even touching nixos kind of violates never starting doing the weird stuff
<maurer>
If you want to have an unobstructed experience, you basically gotta run windows for non-dev work, and stock ubuntu lts for dev wrok
<maurer>
*work
<jophish>
hahah, I can't imagine developing without it now. I'm totally hooked
<maurer>
because other people write scripts/programs that assume these environments
<jophish>
unobstructed...windows
<sphalerite>
gchristensen: which XPS? I'm considering getting one too?
<NixOS_GitHub>
[nixpkgs] lufia opened pull request #22738: google-cloud-sdk: support x86_64-darwin (master...darwin-google-cloud-sdk) https://git.io/vDo4X
iyzsong has quit [(Quit: bye)]
<gchristensen>
sphalerite: guh I don't know if I could find it again, their website is terrible
<maurer>
sphalerite: I'll plug the P50 if you're looking at laptops
<maurer>
sphalerite: I'm getting good battery + perf from it, and the only things I don't have working with nixos is switchable graphics (basically have to pick one or the other at xserver start) and the fingerprint reader
<maurer>
*are
<sphalerite>
maurer: bit out of my budget range :p
ravloony has quit [(Ping timeout: 256 seconds)]
<maurer>
sphalerite: OK. Don't know the details, but figured a lot of people in here might be getting dev laptops bought by work
<sphalerite>
aah right. That would be cool for me, but I'm currently still a full-time student
<sphalerite>
one day!
<maurer>
sphalerite: The other thing you could check would be the X1-carbons. My previous X1 carbon worked well with nixos, but that was 2nd gen
<maurer>
They're more portable + cheaper, but I can't vouch for hw compat with more recent gens
<sphalerite>
yeah, also nice. But also expensive >.> I haven't fully decided on a budget yet, need to see how much I'll be able to earn during the summer
<NixOS_GitHub>
[nixpkgs] Mic92 opened pull request #22740: gajim: use libasyncns as resolver (master...libasyncns) https://git.io/vDoBw
* gchristensen
has 50cm of snow to clear
<maurer>
Yeah, I might be out of touch with the cheaper options for machines since my last 3 have come from grant money
<maurer>
sorry
<NixOS_GitHub>
[nix] dezgeg opened pull request #1233: nix-daemon: Don't splice with len=SIZE_MAX (master...splice) https://git.io/vDoBo
codedmart has joined #nixos
<sphalerite>
no problem haha, I am aiming for a fairly expensive one anyway just because I use it so much and I think the value I'll get out of it is fairly high. What I'd really like is to avoid nvidia/amd graphics at the same time (proprietary drivers have caused me too much suffering inth the past)[4~, and also have a high-resolution display
<gchristensen>
sphalerite: let me know when you have a budget
<sphalerite>
will do!
olesk has quit [(Ping timeout: 240 seconds)]
<jophish>
I'm pleased that the wiki issue is getting so much attention, however I'm a little worried that it might not get resolved leaving everyone happy
lsix has joined #nixos
takle has joined #nixos
tumm_ has joined #nixos
DavidEGr1yson has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin force-pushed openssl-1.1 from 0089f72 to 89ed648: https://git.io/vDOWO
<NixOS_GitHub>
nixpkgs/openssl-1.1 5973673 Robin Gloster: openssl: default to openssl_1_1_0
<NixOS_GitHub>
nixpkgs/openssl-1.1 a2c1e6e Robin Gloster: socat: 1.7.3.1 -> 1.7.3.2...
<NixOS_GitHub>
nixpkgs/openssl-1.1 d51f357 Robin Gloster: afflib: 3.7.6 -> 3.7.15
Willi_Bu1z has joined #nixos
pem__ has joined #nixos
petar_ has joined #nixos
Ptival_ has joined #nixos
rawtaz_ has joined #nixos
__20h___ has joined #nixos
DavidEGrayson has quit [(Write error: Broken pipe)]
WilliButz has quit [(Write error: Broken pipe)]
tumm has quit [(Write error: Broken pipe)]
<symphorien>
hello, I would like to have feedback on this PR https://github.com/NixOS/nixpkgs/pull/22558 which adds an option to use os-prober to add grub entries for other OSs like in debian for example. I thought it would be nice if it could get merged one way or another in 17.03 (if it is not already to late)
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vDoEx
<NixOS_GitHub>
nixpkgs/master 5d00edc Frederik Rietdijk: cudatoolkit5 fixup, fixes eval
fre has joined #nixos
<IITaudio>
Hello everybody, have you ever used nix on gitlab-ci? I want to be able to run /usr/bin/env nix-shell scripts from gitlab (I'm not an apt-get guy anymore (: )
alx741 has joined #nixos
mudri has joined #nixos
<NixOS_GitHub>
[nixpkgs] georgewhewell opened pull request #22741: pythonPackages.matplotlib: fix build on macOS (master...bugfix/matplotlib-osx) https://git.io/vDouf
<srhb>
The postgresql data dir is a bit different to what I'm used to - do base backups simply untar to the /var/db/postgresql/base dir?
<srhb>
That can't be right, pg_xlog and friends live in /var/db/postgresql....
<NixOS_GitHub>
[nixpkgs] domenkozar pushed 1 new commit to master: https://git.io/vDozI
<NixOS_GitHub>
nixpkgs/master 1b02439 Domen Kožar: servant-server: disable testsuite
mizu_no_oto has joined #nixos
ndowens08 has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vDozY
<NixOS_GitHub>
nixpkgs/master af9f44d Robin Gloster: grub: fix capitalisation...
<srhb>
I guess it really is /var/db/postgresql, only ignoring the special pga_hba file etc.
dramforever has quit [(Quit: Leaving)]
<jophish>
IITaudio: I tried to do it a few months ago but don't really remember much of the experience which might indicate that it didn't work exactly how I wanted it to
<jophish>
on the other hand, there is a gitlab module for nixos, so some people are using gitlab+nix
<drakonis>
as you can't change sddm's settings if you have kde5 enabled
<drakonis>
its stuck on breeze
<peterhoeg>
drakonis: you should be able to mkForce it
<peterhoeg>
I'm guessing you mean the theme
<jophish>
globin: gotcha thanks. Do you mind if I ask who 'we' is?
<IITaudio>
jophish, globin: thanks. After 2 years on nixos I really can't afford to go back having to apt-get packages, hopes they work, etc., i'd prefer having a default.nix that can run the same on gitlab and on my machine, so that I can verify that tests succeceed before pushing
<jophish>
IITaudio: We use Hydra for that at the moment, and domenkozar and I are writing a replacement specifically geared towards CI called Hercules
<NixOS_GitHub>
[nixpkgs] fpletz closed pull request #22740: gajim: use libasyncns as resolver (master...libasyncns) https://git.io/vDoBw
<NixOS_GitHub>
[nixpkgs] volhovM opened pull request #22742: Disable orgmode-parse tests in configuration-common.nix (master...feature/fix-orgmode-parse-tests) https://git.io/vDoaU
ebzzry has joined #nixos
eacameron has joined #nixos
olesk has quit [(Ping timeout: 240 seconds)]
fhoffmeyer has joined #nixos
olesk has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 1 new commit to master: https://git.io/vDoVO
<NixOS_GitHub>
nixpkgs/master 909a1dd Michael Raskin: tigervnc: 1.7.1 -> 1.8.0pre20170211...
fhoffmeyer2 has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Ping timeout: 264 seconds)]
<ndowens08>
ok not sure if this is possible to do, but maybe so, i am needing to do an if statement in my default.nix for epic5 to detect if the host is debian; b/c if it is debian based the build fails
<IITaudio>
fpletz: ehm.. I'm not finding it, any hint/link to some kind of documentation?
<gchristensen>
ndowens08: that isn't possible because that should be impossible. do you know why it fails on debian?
<ndowens08>
b/c of the explicit install of tcl in buildInputs gchristensen
<gchristensen>
I don't understand
<ndowens08>
tcl is needed for darwin build but fails in debian build
ebzzry has quit [(Ping timeout: 240 seconds)]
<drakonis>
peterhoeg, yes.
<peterhoeg>
drakonis: did you try mkForce?
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<gchristensen>
ndowens08: how does it fail on debian
<LnL>
ndowens08: strange, you could make it conditional
<drakonis>
no not yet
<ndowens08>
LnL: yea it is weird, it is in the build log on my pull request, but something about dpkg-architecture: tcl.....
<LnL>
I wonder if the build is doing something strange because it detected that it's a debian system
<ndowens08>
LnL: it doesnt fail if i dont put tcl in buildinputs
<ndowens08>
but darwin fails if i dont put tcl in build
<LnL>
and no issues on nixos?
<ndowens08>
none at all, it build fine for first build and darwin build with tcl
<ndowens08>
i wanted to make an if or conditional statement that if /usr/bin/dpkg-architecture is found then use these buildInputs else use these
johnsonav has quit [(Ping timeout: 255 seconds)]
<gchristensen>
fwiw that isn't something we'll permit in to nixpkgs
<gchristensen>
I recommend turning on the sandbox for the nix daemon
<ndowens08>
LnL: something wrong with travis ci? still not trying to build the push'd code
fuzzy_id has joined #nixos
<gchristensen>
I doubt it
<gchristensen>
sometimes it just gets slow
<ndowens08>
ah, well at top it says build|failing near the nixos/nixpkgs tag and the 2 open dots arent spining yet, has been a while :)
MercurialAlchemi has quit [(Ping timeout: 240 seconds)]
olesk has quit [(Ping timeout: 256 seconds)]
jluttine has quit [(Read error: No route to host)]
jluttine has joined #nixos
<cmercier>
Hello, I can't install the package python3.5-Cython-0.25.2 on OS X 10.11.6. The compilation errors seem to be "cpp_references.cpp:447:10: fatal error: 'ios' file not found" and "typeof.cpp:651:14: fatal error: 'complex' file not found". Any idea what causes this or how I could fix it?
<sphalerite>
cmercier: your C++ compiler is somehow broken
<sphalerite>
or the options for it are wrong
<sphalerite>
or something along those lines
<cmercier>
does it have to do with nix or OS X ?
<sphalerite>
I don't really know any more than that
<cmercier>
thanks
<sphalerite>
I don't know how nix interacts with the tools provided by OSX
<cmercier>
okay
<clever>
there is a ##nix-darwin channel
<cmercier>
ha ok thanks!
erasmas has joined #nixos
<contrapumpkin>
does Nix support multiple filesystem stores on the same machine nicely?
<contrapumpkin>
actually probably not
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<MarcWebe1>
pypi2nix -> rinohtype -> six missing: http://dpaste.com/2BG7ZJ0 Which is the easiest way to package/use that library?
xadi has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vDoDh
<NixOS_GitHub>
nixpkgs/master 8616c0d Tim Digel: tsearch-extras: init at 0.2
<NixOS_GitHub>
nixpkgs/master dd91720 Joachim F: Merge pull request #22166 from DerTim1/postgres-plugin-tsearch-extras...
<MarcWebe1>
contrapumpkin: AFAIK the store path is built into the executable. So you could have a /home/user/store -> but you would have to rebuild everything.
chpatrick has joined #nixos
<chpatrick>
how can I pass a configureFlag with spaces?
<contrapumpkin>
yeah just remembered that :)
panostimos has quit [(Ping timeout: 240 seconds)]
xadi has quit [(Ping timeout: 255 seconds)]
phreedom has joined #nixos
<sphalerite>
weechat's closure size seems to be unreasonably large. A major part of this seems to be the dependency chain weechat -> guile -> libtool -> gcc — surely one of those links isn't necessary?
<sphalerite>
(by "unreasonably large" I mean 470MB)
<contrapumpkin>
sphalerite: I'd file an issue if you don't know which to fix; I'm sure someone will know which one makes no sense
<GlennS>
Does anyone know if there's a way to get at the path of an httpd subservice? I'm trying to run some a Mediawiki maintenance script (maintenance/runJobs.php) as part of a repeating systemd service, but don't have the path to Mediawiki.
roconnor__ has joined #nixos
<GlennS>
Alternatively, it looks like the Mediawiki subservice is using pkgs.makeWrapper to make these scripts available as commands on the command line. Is there a way to make those accessible to my custom systemd timer?
<ndowens08>
GlennS: have you tried whereis mediawiki or so?
<ndowens08>
just a thought, i am still very new to nixos
DarcsAur` has quit [(Ping timeout: 240 seconds)]
<GlennS>
ndowens08: I hadn't thought of that. whereis actually gave me a location in the nix-store which isn't helpful, but `which mediawiki-main-runJobs' shows that I can probably run them from /run/current-system/sw/bin
<ndowens08>
GlennS: lol np, it is how i find it in the nix store, though i would look in that nix store location for that /run area maybe
<ndowens08>
since nixos tends to do things differently to keep /etc etc clean
<GlennS>
well I can't put the nix-store location directly in my nixos config since it will change if I make changes to the mediawiki package
<ndowens08>
true, idk, others may be able to answer it better than i could. but
<ndowens08>
you might could put it in your home dir? since that would not change ever
roconnor__ has quit [(Ping timeout: 276 seconds)]
xadi has joined #nixos
<ikwildrpepper>
copumpkin: did you add that ec2 systems manager in nixpkgs?
<GlennS>
well, I have just hardcoded the path to /run/current-system/sw/bin since that won't change
<GlennS>
it's a bit hacky, but should work
<GlennS>
and I think there are plans afoot to replace httpd subservices with something else, so maybe I can do it more nicely in the future
<sphalerite>
contrapumpkin: will do, thanks
<clever>
GlennS: if you know what derivation its in, you can just put "${pkgs.foo}/bin/httpd" into a config entry in nix
<contrapumpkin>
ikwildrpepper: yeah
<contrapumpkin>
ikwildrpepper: there's even a NixOS service for it!
<ikwildrpepper>
contrapumpkin: great, thnx. will check it out
<ikwildrpepper>
thanks for packaging it
<contrapumpkin>
my pleasure! I hope to make it better :) it seems to work decently. Picks up network configuration in the "inventory" step, for example, but nothing else
<contrapumpkin>
and the NixOS module gives it a fake lsb_release so the instance inventory knows it's a real NixOS box and the release versions
<clever>
GlennS: thats a symlink to the file we probably want, do "ls -l /nix/store/y77cqrd3rr4m7xxgmgy7gznxndiyljw4-system-path/bin/mediawiki-main-runJobs"
<contrapumpkin>
riptawr: ah, you might want to look at pypi2nix for that then
<Minoru>
hi. Any advice on enabling issue_discards in LVM? I don't see a way to set it via /etc/nixos/configuration.nix, and even if I edit the file in /nix/store the change seem to be ignored
<Minoru>
I ran a few experiments with hdparm and I'm confident TRIM commands aren't passed through
<Minoru>
I have an SSD with two partitions, one of them has LUKS on it, inside of which is LVM, holding my root and home partitions (both ext4, with "discard" mount option)
<Minoru>
oh, and I have allowDiscards = true for my LUKS volume
<ndowens08>
gchristensen: wow travis still isnt trying to build my pkg
<Minoru>
so theoretically LUKS should be passing TRIM command through, but I'm not sure I can test this - the whole LUKS partition is occupied by LVM, I don't think I can easily do a test
<Sonarpulse>
anybody know why binutils on darwin/cross has less outputs?
<Sonarpulse>
annoying when the work around comes with no comment explaining the problem :(
<sphalerite>
wow, I love #nixos. I was just reminded of this after spending a while in #debian
<sphalerite>
radvendii: I don't, but describe your trouble?
<Dezgeg>
Sonarpulse: I think they were just quick-and-dirty fixes to make binutils build again after some changes. yeah, they should be properly figured out...
johann__ has quit [(Quit: Leaving.)]
<Sonarpulse>
Dezgeg: thanks
<Sonarpulse>
I suppose this would break hashes
<Sonarpulse>
so maybe staging has it worked out
<NixOS_GitHub>
[nixpkgs] Ericson2314 created stage from master (+0 new commits): https://git.io/vDohM
fritschy has quit [(Quit: Leaving.)]
digitus has joined #nixos
bennofs1 has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vDojy
<NixOS_GitHub>
nixpkgs/master 5af946b George Whewell: skip failing tests on darwin
<NixOS_GitHub>
nixpkgs/master ace12f4 Frederik Rietdijk: Merge pull request #21437 from georgewhewell/bugfix/pythonPackages.joblib...
joko has joined #nixos
<Dezgeg>
specifically, for the cross build this happens: builder for ‘/nix/store/m13qfzc05jgcimng1zm2h0mgjqr98nxs-binutils-2.27-aarch64-linux-gnu.drv’ failed to produce output path ‘/nix/store/qxicr0x2wyplgajhn8ijvxc8pvfr8szi-binutils-2.27-aarch64-linux-gnu-lib’
<joko>
Hello, everyone! Could anyone help me with overrideAttrs and requiredSystemFeatures? Although I set an explicit feature for the coreutils package, Hydra selects another host :S
<judson_>
Is there a good way to do unit tests on actual nix expressions?
<gchristensen>
what would that look like, judson_?
athaller has quit [(Remote host closed the connection)]
<judson_>
One thing I'm finding daunting as a beginner is the "distance" between the Nix I write and the actual built derivations.
sphaler1te has quit [(Quit: WeeChat 1.5)]
<judson_>
Ideally, I'd like something like `nix-test <file>` or `nix-text <pkg-root> <attrlist>` with a test report.
<judson_>
Everything I can find is about making sure that the derivation gets set up correctly but e.g. I'd like to test that a filtering function behaves the way I expect it to.
<judson_>
The other thing I've seen might be nix-repl? Load the file I'm working on and make sure its functions behave correctly.
<judson_>
And I guess I could write a test function with a bunch of builtin.assert s?
<simpson>
judson_: Which properties, specifically, are you interested in testing?
endformationage has joined #nixos
riptawr has joined #nixos
<judson_>
I left off on an update to bundlerEnv yesterday that filters Ruby gem descriptions based on platform. I deduce from the resulting nix-shell invocation that I filtered out everything, so my filtering function is likely wrong. I'd like to test that given a ruby.rubyEngine = "ruby" and a gem with platforms = [{engine = "rbx"}], that the function returns false, but engine = "ruby" returns true.
<simpson>
judson_: I can't think of anything better than asserts. A test tool would be interesting, but nix-repl's pretty much it already for most situations.
<judson_>
All things considered, I wouldn't mind being able to do something like "testPackage <path> {...}" and get back a derivation for inspection, either.
Minoru has left #nixos [":wq"]
<judson_>
I mean, somehow a lot of folks get by writing pretty complex expressions, but I find it pretty daunting. The language itself is straightforward, but it's hard to actually see it working, if that makes sense.
<sphalerite>
judson_: you could use the check phase in a derivation to run tests against the output
<sphalerite>
how those tests are run would of course be specific to the expression
tumm_ is now known as tumm
<sphalerite>
As for complex expressions: they typically solve complex problems. It's always easier to get into writing them by looking at simpler expressions.
<simpson>
judson_: I write fancy Nix one function at a time, using nix-repl to test strange things. I also have a few years of Haskell experience, which might make me less scared of walls of parens and combinators.
<gchristensen>
they are scary
<sphalerite>
nixpkgs has quite a bit of complex machinery for doing complex things :)
stepcut has joined #nixos
johnsonav has quit [(Ping timeout: 255 seconds)]
<judson_>
I did a fair amount of Erlang there for a bit; the functional doesn't scare me.
<judson_>
It's that, afaict, I write some pleasant and elegant Nix, and to see if it works I inspect the resulting build failures...
IITaudio has quit [(Quit: Leaving)]
<judson_>
Was it the C code I fetched? The Makefile I patched? My build.sh? Assumptions I made about how a derivation is interpreted? Or a straightforward logic error in the original expression?
<simpson>
Ah. I go with the principle that I made a mistake.
mudri has quit [(Ping timeout: 255 seconds)]
<judson_>
sphalerite, I'm finally getting into this because I need bundlerEnv to do path-style gems (which features I'll then backport into bundix), which is itself complex.
<gchristensen>
I'm afraid that to do what I'm wanting to do, I need to become an expert in how the nixos testing framework works ... and I'm not thrilled about thath :)
<sphalerite>
Doesn't sound like it's necessarily the best point to start at :D
<judson_>
simpson, I'm mostly with you (way too much experience with badly written C code) - but where is my mistake?
<contrapumpkin>
gchristensen: what do you need to do? it's fairly easy to pick up if you don't do anything too unusual
<contrapumpkin>
my EC2 tests got a little icky but I was doing something unusual for them
<gchristensen>
contrapumpkin: unusual things :)
<simpson>
judson_: Dunno. I deliberately make small changes so that I don't have to search many places.
<contrapumpkin>
gchristensen: please let them be switching the test machinery over to libvirt ;)
<gchristensen>
contrapumpkin: I want to be able to log in to an arbitrary test's vm for example
<simpson>
judson_: I dunno. I feel pretty ambitious, but I only needed like 600 lines of Nix to describe my entire fleet. (And a couple hundred lines of JSON configuration.)
<gchristensen>
contrapumpkin: no, I don't want to run the test interactively, but get an actual shell in the vm
<judson_>
One thing I do see analoguous between Erlang and Nix is that it's kind of hard to get past the initial stages of using them.
wak-work has joined #nixos
<contrapumpkin>
gchristensen: ah, seems like it'd be closely related to the code for the test driver though
<gchristensen>
yeah
<radvendii>
sphalerite: sorry for belated response. I put it in my systemPackages list, and it's loading fine, but the application is super buggy. The icons are clearly scaled up too much (pixelated), sometimes the video randomly cuts out, the audio/video is choppy while playing, etc, etc.
<gchristensen>
right now I run the test-driver and do `startAll` then `$machine->forwardHostPort (or something like that) (2223, 22);` and can then ssh to it
<radvendii>
I looked up these problems and I can't find anyone complaining about them, so I figured it might be a nixos problem
<contrapumpkin>
gchristensen: hmm, why not use local shell machinery rather than SSH, since the latter would require you to enable the SSH service
<gchristensen>
contrapumpkin: how do I do that?
nschoe has quit [(Quit: Program. Terminated.)]
<contrapumpkin>
gchristensen: not sure, but the $machine->command("") stuff is going over the serial console IIRC
<contrapumpkin>
so I think you'd just use the same channel
<gchristensen>
yeah
teknico has left #nixos []
<gchristensen>
so now we're back to square one, about becoming an expert at the nixos test infra :)
<clever>
contrapumpkin: there is a test-harness module that adds a second virtual console to the vm, with a root shell on it
<gchristensen>
yeah I'm using that by nature of upsing the nixos test infra
<gchristensen>
but I'm not sure how to access the machine without using ssh
<clever>
manual or automated access?
<gchristensen>
mmm both :)
eacameron has quit [(Read error: Connection reset by peer)]
<sphalerite>
radvendii: that does seem odd, I don't know what might be causing that. Opening an issue might be a good idea, as nobody currently here seems to know. Have you run it on another distro yourself? That might be worth a try as well if you have one handy
jmiven has quit [(Quit: co'o)]
jmiven has joined #nixos
wak-work has quit [(Ping timeout: 276 seconds)]
goibhniu has quit [(Ping timeout: 256 seconds)]
luv has joined #nixos
<luv>
hey, i know you guys know alread but NixOS really seems to kick ass
<manveru>
judson_: i did some basic tests using the approach for nixos modules
eacamero_ has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
<luv>
so far I only use it via proot I love how it just works
<manveru>
basically it makes a container, runs your code there, and you make sure it runs right
<manveru>
there must be something more light-weight i'm sure
<luv>
one simply issue though, nix-env -i something fails with Unable to download http://.... ... I have downloaded the file manually from different location (some hash it seems) but after doing nix-prefetch-url http://different-location it still tries to download the file again during nix-env -i - what am I doing wrong?
<gchristensen>
clever: any thoughts?
<judson_>
Hm. What's this "nixos-test-driver" thing?
<gchristensen>
judson_: it is for running tests against a VM running NixOS
<clever>
gchristensen: what exactly are you trying to get done?, oh, the ssh testing?
<judson_>
As much as that's not what I'm looking for, it's pretty amazingly cool.
<clever>
gchristensen: you can create 2 vm's in a testcase, and have them network eachother
<gchristensen>
no
<gchristensen>
clever: I want to log in to the test environment so I can run commands and be in a shell
<gchristensen>
and not have to worry about how weird the perl layer is in between, for debugging
<clever>
gchristensen: manualy, to confirm some things?
<gchristensen>
yeah
<gchristensen>
not as part of a normal test
<clever>
ah
<clever>
i saw something about building the test with -K and it leaves the run command in /tmp/nix-build
<clever>
so you can boot it back up and inspect the contents
<manveru>
judson_: well, the other approach is to run your tests in `nix-shell --pure`
mudri has joined #nixos
<gchristensen>
yeah, not likely good enough :/
olesk has joined #nixos
t7 has joined #nixos
ambro718 has joined #nixos
_sagitaire has joined #nixos
<judson_>
I was thinking something like nix-shell or nix-build - the latter because I'm really looking to test my Nix code itself a/o/t the build environment.
radvendii has quit [(Quit: Lost terminal)]
wak-work has joined #nixos
lsix has quit [(Quit: Konversation terminated!)]
bennofs has joined #nixos
<judson_>
Okay, but if there isn't anything like that, I'll fiddle with asserts for right now
takle has quit [(Remote host closed the connection)]
<contrapumpkin>
gchristensen: now I'm curious what you're testing that's so odd :)
<ndowens08>
ok travis still isnt building my package, been hours, even did minor edit on my pkg and pushed to refresh it and still nothing
<MarcWebe1>
garbas: http://dpaste.com/0RH7DTG six is missing trying to pypi2nix rinohtype. Is there something trivial I missed ?
[0x4A6F] has joined #nixos
* garbas
looks
<contrapumpkin>
MarcWebe1: is the 1 supposed to be an R?
mudri has quit [(Ping timeout: 240 seconds)]
<garbas>
MarcWebe1: problem is that setuptools got new dependencies. either you update to pypi2nix 1.7 or add '--setup-requires "six packaging appdirs"'
<ronny>
reminds me that i need to cehck out current pypi2nix
<garbas>
MarcWebe1: if you would press Y there it will open a browser and produce nice traceback for me :)
<MarcWebe1>
garbas: Maybe you should add where the trace will be sent to such as "pypi2nix maintainers".
<asymmetric_>
hi fellas, i have a question about hash bases
<MarcWebe1>
THat prevented me from doing it - because I thought its a nix specific issue which I didn't want to send to arbitrary python folks.
<asymmetric_>
right now it's not clear from the docs that (sometimes?) hashes are expressed in base32
<[0x4A6F]>
I'm trying to restore a /nix/store from a sdcard, which is not booting NixOS on RPI2 anymore. Is this command feasible to restore from file-path to nix-store? "find /nix/store/* -maxdepth 1 | xargs -L 1 nix-copy-closure --sign --use-substitutes --to root@localhost"
<clever>
[0x4A6F]: i think nix-store --verify --repair will do the same
<NixOS_GitHub>
[nix] asymmetric opened pull request #1235: Mention base 32 (master...patch-1) https://git.io/vDKcB
Dezgeg has quit [(Ping timeout: 276 seconds)]
<[0x4A6F]>
I can't boot from this sdcard anymore. Copied the image from from https://github.com/NixOS/nixos-hardware/blob/master/raspberry_pi/rpi2.nix to another sdcard and copied the old nix/store to the new installation into /tmp/nix/. Was wrong find command, I'm using "find /tmp/nix/store/*" now.
takle has joined #nixos
pombreda has joined #nixos
<[0x4A6F]>
I would update from this image, but hanging on some problems there.
DarcsAurelius has joined #nixos
<DarcsAurelius>
I'm trying to install a simple haskell dev environment via ~/.nixpkgs/config.nix, but I keep running into a collision with the vector-binary-instances package. I've pasted the error and the environment I'm using here: http://lpaste.net/2503574361399623680. Anyone know how to resolve this? It seems both stack and criterion->statistics rely on the vector-binary-instances package, and two different derivations are be
<DarcsAurelius>
sure why), so I can't delete one of the store paths for this.
<gchristensen>
contrapumpkin: I'm testing jetpants, tumblr's mysql topographical orchestration tool
<contrapumpkin>
:O
<gchristensen>
:)
<gchristensen>
using nixos, I was able to implement a test in 3 days
<gchristensen>
the project was estimated to take the team months to do
<contrapumpkin>
oh nice
<contrapumpkin>
is this going into nixpkgs at some point?
<contrapumpkin>
or is it a private thing?
<gchristensen>
it doesn't make sense to put in to nixpkgs, but it is to be open source
<gchristensen>
github.com/tumblr/jetpants already is,and so is github.com/tumblr/collins, that it depensd on
eacameron has joined #nixos
<sphalerite>
I like the name
DarcsAurelius_ has joined #nixos
eacamero_ has quit [(Ping timeout: 240 seconds)]
mckeankylej has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<mckeankylej>
If I want to change the way a service is defined by copying the service nix and then adding it to "imports = []" how do I fix the error "_ is already defined at _"
Dezgeg has joined #nixos
MichaelRaskin has joined #nixos
DarcsAurelius has quit [(Quit: ERC (IRC client for Emacs 24.5.2))]
DarcsAurelius has joined #nixos
<mckeankylej>
How should I get help when I dont know how to do something in nix there is barely any documentation
fhoffmeyer has quit [(Ping timeout: 255 seconds)]
<clever>
mckeankylej: you would need to rename your copy to something else, and change a few of its internal references
<tokudan>
you basically have to use a different service name, instead of e.g. services.sshdnew instead of services.sshd
<pikajude>
rename the service
davidak has joined #nixos
<pikajude>
yeah
<contrapumpkin>
gchristensen: is that an agent that runs on top of mysql? did you create a NixOS module for it or something?
<pikajude>
disable the one you're replacing and use a different name
<pikajude>
that or I think you could maybe use mkForce
<pikajude>
but i wouldn't really recommend that
johann__ has joined #nixos
fhoffmeyer has joined #nixos
seanz has joined #nixos
DarcsAur` has quit [(Remote host closed the connection)]
DarcsAurelius_ has quit [(Remote host closed the connection)]
DarcsAurelius has quit [(Remote host closed the connection)]
<gchristensen>
contrapumpkin: it is an ssh-based tool, so the management node SSH's to the boxes it mangages
johann__1 has joined #nixos
<contrapumpkin>
ah, just wondering what the NixOS side of it looks like. Do you do services.jetpants.enable = true?
<gchristensen>
ah
<gchristensen>
yeah, I made a custom module for it
<contrapumpkin>
ah
<contrapumpkin>
so why wouldn't that make sense to put in nixpkgs?
<gchristensen>
and some fancy-pants code to create a bunch of nixos containers running mysql
<contrapumpkin>
cool
<ndowens08>
is there a way to add to lightdm on startup to execute a command, from what i have looked at, ppl say to add to /etc/lightdm.conf but in nix that is uneditable, so how can i pass it in configuration?
Itkovian has joined #nixos
johann__ has quit [(Ping timeout: 256 seconds)]
<ndowens08>
gchristensen: btw travis still hasn't built my package and has been hours?
<gchristensen>
contrapumpkin: well ... I suppose we could, but tbh, it is _extremely_ niche
<gchristensen>
ndowens08: *shrug* I dunno / don't put too much faith in travis
<asymmetric_>
where is "optional" defined? as in `optional mp3Support lame`
<clever>
ndowens08: so you need to set a nixos option that fits your needs, and gets inserted at the right spot
<contrapumpkin>
gchristensen: not in the sense that they do the same thing, but in that it manages a more common service because it's a PITA to do it yourself
<gchristensen>
ah
<gchristensen>
well, jetpants is a PITA unless you're (copy-pasting from the description) managing billions of rows and hundreds of database machines
<ndowens08>
clever: crap didnt think of that lol, thanks
pombreda has quit [(Ping timeout: 240 seconds)]
<gchristensen>
like, enormously a PITA
<simpson>
gchristensen: FWIW I've been committing all of my "niche" stuff, and imagine my surprise when I found other folks with similar contributions that they hadn't pushed yet!
<simpson>
Hm. "enourmously". That does sound serious.
<contrapumpkin>
:)
<gchristensen>
heh
DarcsAurelius has joined #nixos
<MichaelRaskin>
I commend simpson's approach
<gchristensen>
given that the open source jetpants wasn't even _usable_ for about a year, I'd be surprised if anyone else had made a module for it.
<DarcsAurelius>
Is stack not intended to be installed alongside other haskell libraries (like statistics) via ghcWithPackages? I still haven't been able to resolve this file collision in a common dependency between statistics and stack (vector-binary-instances)
<asymmetric_>
what's the difference between "buildInputs" and "nativeBuildInputs" ?
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<pikajude>
nativeBuildInputs need to be built for the same target system the derivation is built for
<clever>
asymmetric_: if you are doing a cross-compile, nativeBuildInputs will be for the host, and buildInputs for the target
<pikajude>
think dependent libraries
katyucha is now known as Guest7261
Guest7261 has quit [(Killed (hitchcock.freenode.net (Nickname regained by services)))]
katyucha1 is now known as katyucha
<pikajude>
oh, sorry, had that backwards
katyucha1 has joined #nixos
seanz1 has joined #nixos
<contrapumpkin>
yeah, would've been a bit clearer to call it hostBuildInputs
<contrapumpkin>
or something
<asymmetric_>
clever: thanks
<gchristensen>
contrapumpkin, simpson: I appreciate your optimism here, but if a single other person existed in the intersection of "people not working in the data team at tumblr" and "people using jetpants" and "even a passing interest in nixos" existed I would eat my hat, and it is a big hat!
<contrapumpkin>
fair enough :)
<simpson>
gchristensen: Fair enough.
pingveno has quit [(Read error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number)]
fadenb[m] has quit [(Quit: Bridged client killed)]
<clever>
main difference, is that optional returns an empty list, while the diff you linked fills the list with nulls
<asymmetric_>
so it's mainly down to taste?
<clever>
yeah
<asymmetric_>
kthx
pombreda has joined #nixos
<NixOS_GitHub>
[nixpkgs] vrthra opened pull request #22756: awesome-slugify: disable failing test (master...slugify) https://git.io/vDKaZ
fadenb[m] has joined #nixos
pi3r has joined #nixos
mckeankylej has quit [(Quit: Page closed)]
johnsonav has joined #nixos
fadenb[m] has quit [(Quit: Bridged client killed)]
pombreda has quit [(Ping timeout: 252 seconds)]
fadenb[m] has joined #nixos
<contrapumpkin>
niksnut: if I wanted to fix https://github.com/NixOS/nix/issues/1234, would I get the configure script to inject the path to tar/gzip/git into config.h and then refer to the constant?
mkoenig has quit [(Ping timeout: 240 seconds)]
mkoenig has joined #nixos
lambdamu has joined #nixos
fhoffmeyer has quit [(Read error: Connection reset by peer)]
fhoffmeyer2 has joined #nixos
mkoenig has quit [(Read error: Connection reset by peer)]
mkoenig has joined #nixos
Itkovian has joined #nixos
mk-fg has quit [(Read error: Connection reset by peer)]
<ndowens08>
ok i am trying to create a systemd file in configuration.nix I can do it if I don't do ExecStart = ''{$pkgs.xinput}/bin/xinput --disable 13''; and do ExecStart=xinput --disable 13 but systemd ignores it since it isnt a path
<ndowens08>
i have seen something like ${pkgs.PKGNAME}/bin etc but that doesnt work
<clever>
ndowens08: there is a path option for systemd services
<ndowens08>
clever: needing to do path for /bin/xinput
akiselev has quit [(Remote host closed the connection)]
<clever>
ndowens08: systemd.services.<name>.path
<clever>
Packages added to the service's PATH environment variable. Both the bin and sbin subdirectories of each package are added.
<ndowens08>
So I would do like systemd.services.xinput.path [ what would I put here]?
kampfschlaefer has joined #nixos
<clever>
ndowens08: pkgs.xorg.xinput
phreedom has quit [(Ping timeout: 276 seconds)]
danharaj has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 4 new commits to master: https://git.io/vDKi4
<NixOS_GitHub>
nixpkgs/master 1a55974 Vladimír Čunát: lmdb: split outputs and add lmdb.pc...
<NixOS_GitHub>
nixpkgs/master 5b75338 Vladimír Čunát: knot-dns: use shared lmdb
<NixOS_GitHub>
nixpkgs/master 935ede8 Vladimír Čunát: knot-resovler: use shared lmdb now
<NixOS_GitHub>
[nixpkgs] vcunat closed pull request #22751: lmdb: split outputs, use shared library, etc. (master...lmdb-shared) https://git.io/vDKfY
<contrapumpkin>
anyone familiar with autoconf? I'm trying to inject things like "AC_SUBST(xz) AC_DEFINE_UNQUOTED(XZ_PATH, ["$xz"], [xz path])" into the configure.ac and it successfully dumps an XZ_PATH into config.h, but seems to skip the one for gzip
<NixOS_GitHub>
[nixpkgs] dezgeg opened pull request #22758: nixos-rebuild: Don't rebuild nixos-rebuild when --fast is used (master...pr-nixos-rebuild) https://git.io/vDKyq
<NixOS_GitHub>
[nixpkgs] bjornfor opened pull request #22762: nixos/geoip-updater: run as user 'geoip' instead of 'nobody' (master...geoip-service-user) https://git.io/vDKFm
<ndowens08>
LnL: on your review of epic about the buildinputs, can i just get rid of of the ++stdenv.lib.optional and only use stdenv.isDarwin [ libiconv tc ] ?
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vDKFG
<NixOS_GitHub>
nixpkgs/master 7e5424a Robin Gloster: php: default to php71
<LnL>
ndowens08: use optionals instead of optional
mkoenig has quit [(Read error: Connection reset by peer)]
panostimos has quit [(Ping timeout: 240 seconds)]
<ndowens08>
and drop stdenv.isDarwin?
hiratara has quit [(Ping timeout: 255 seconds)]
<LnL>
ndowens08: the optional function will result in [ openssl ncurses [ libiconv ncurses ] ] instead of a flat list
<ndowens08>
ah so just add a 's'
mudri has joined #nixos
<LnL>
ndowens08: yep :)
<ndowens08>
:)
hiratara has joined #nixos
<LnL>
I do get a segfault on darwin :/
<ndowens08>
:( i know it build on darwin orionally after adding tcl and libiconv but made deb based one fail
<Profpatsch>
fpletz: I updated our pulseaudio-streaming sink and now avahi isn’t announced anymore.
<LnL>
it builds fine, the binary just crashes
<Profpatsch>
You changed some scripting stuff in that module, do you have to enable additional stuff?
<ndowens08>
LnL: ah :\ well i dont have darwin to even try it
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<sziszi>
gchristensen: and just works(tm) it's amazing
<NixOS_GitHub>
[nixpkgs] rickynils pushed 1 new commit to master: https://git.io/vDKxk
<NixOS_GitHub>
nixpkgs/master cda4a4d Rickard Nilsson: nixos/grafana: Don't print password warning if no password has been set
<NixOS_GitHub>
[nixpkgs] rickynils pushed 1 new commit to release-16.09: https://git.io/vDKxm
<NixOS_GitHub>
nixpkgs/release-16.09 0f769e6 Rickard Nilsson: nixos/grafana: Don't print password warning if no password has been set...
wizeman has quit [(Quit: Connection closed for inactivity)]
<ndowens08>
man i wish i understood nixos good that way i dont have to keep asking "stupid" questions lol
<gchristensen>
ndowens08: in all seriousness, you're doing great!
<ndowens08>
gchristensen: i can do simple packaging and such, i dont know all the "options" available in nix, which is nice, but hard to figure everything out when i am so use to editing files in /etc to do things. Like I tried to create a systemd service to run xinput --disable 13 (to disable synaptics, and no the option available doesn't disable wife's touchpad), and well it still doesnt disable it when i got a systemd
<gchristensen>
ndowens08: how did you create the systemd file?
hiratara has joined #nixos
<ndowens08>
through configuration.nix; not at the laptop atm, put it up, but i created it what should have worked i thought, but doenst make a diff when systemctl start, and error when doing systemctl enable
<gchristensen>
gotta go, but I think you want `systemd.service.yourservice = {...}`
<ndowens08>
LnL: well i was kinda doing that, just was trying to do it targeting darwin only :p
<ndowens08>
SO as you know i have the previous options and if darwin, lets assume I wanted to do configureFlags the same way, I would have to do another optionals isDarwin area right?
<LnL>
yeah you could do configureFlags = stdenv.lib.optionals stdenv.isDarwin [ ... ];
<ndowens08>
ah :)
siddharthist has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 2 new commits to staging: https://git.io/vD6IO
<NixOS_GitHub>
nixpkgs/staging 0c524c6 Vladimír Čunát: guile: refactor expression...
<NixOS_GitHub>
nixpkgs/staging 218713a Vladimír Čunát: guile*: split outputs to fix #22757...
<ndowens08>
Nix is interesting but can be a pain to me atm lol
<ndowens08>
but that is what is making it sorta fun i guess for me, b/c it is different
sigmundv has joined #nixos
<siddharthist>
hi all - is there a way to detect whether or not a configuration is being built with `nixos-rebuild build-vm` so as to avoid building *all* my packages like texlive that have nothing to do with the changes I'm testing?
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 3 new commits to master: https://git.io/vD6IV
<NixOS_GitHub>
nixpkgs/master dda70d9 ndowens: epic5: init at 2.0.1...
<ndowens08>
yay two of my pkgs are now in repo, or will be :)
<gchristensen>
woot!
Sonarpulse has quit [(Ping timeout: 240 seconds)]
<viric>
grmbl
<gchristensen>
oh?
<ndowens08>
Does nix notifiy when there is a new update available from upstream?
<viric>
gdb isn't debugging my c++ right
<gchristensen>
no, ndowens08
<ndowens08>
gchristensen: well darn, hmm
<viric>
it jumps here and there, variables are "optimized out"... but I build with -O0 -g
<clever>
siddharthist: one option is nixos-rebuild build-vm -I nixos-config=./configuration.nix
<gchristensen>
that'd be really nice though. how would you expect that to work? (as a user)
<ndowens08>
i mean, there has to be a way
<clever>
siddharthist: this lets you use a different config file for the vm, then you can just comment out the tex stuff
<gchristensen>
ndowens08: there are many ways :) but how would -you- expect it to work?
<ndowens08>
script to look at the meta data, find the src location and see if there is a version higher than what is in repo?>
<gchristensen>
and then ...?
<ndowens08>
email the maintainer
<gchristensen>
ooohhh I see
<ndowens08>
simple concept, but something i doubt i could do, i dont really script :)
<gchristensen>
sorry I was thinking a different thing.
<gchristensen>
it is very hard.
<ndowens08>
hmm well
<ndowens08>
that could be done globally
<siddharthist>
clever: thanks, that's helpful! that's probably what I'll do
<ndowens08>
but if lets say, i want to only check mine, have a script and have it check a imported list of packages I maintain and do above maybe
digitalmentat has joined #nixos
<siddharthist>
ndowens08: I had the same idea the other day :) should be straightforward enough for packages from Github, which has standard URLs for releases.
<ndowens08>
siddharthist: problem is, not everyone's packages are on github :\
<ndowens08>
and i dont program/script
olejorgenb has joined #nixos
<ndowens08>
hmm i may end up trying something for the fun of it, though it wont work i bet :)
fadenb[m] has left #nixos ["User left"]
<Ralith>
viric: I have that same problem on some, but not all, of my machines
<Ralith>
please let me know if you work out wtf
<viric>
Ralith: it's crazy
<Ralith>
have been wrestling with it for months :/
stepcut has joined #nixos
<viric>
Ralith: release-16.09?
<Ralith>
ish
<viric>
Ralith: using nix-shell?
<Ralith>
yeah
<Ralith>
that describes both a system where it works and one where it doesn't, though
peterhoeg has joined #nixos
<NickHu>
Hey guys, I'm about to submit a package for fdr (https://www.cs.ox.ac.uk/projects/fdr/), which is a model checker for CSP, an algebra/process calculus
<viric>
Ralith: with NIX_DEBUG=1 I see it gets -O2 added
<NickHu>
Do you agree that it should go under applications/science/programming?
<Ralith>
it totally defeats attempts to get useful debugging info in a development environment (or even in packages, I suppose)
dbmikus has quit [(Quit: WeeChat 1.7)]
<gchristensen>
part of the point of nix-shell is to be the same as nix-build, thuogh
<NixOS_GitHub>
[nixpkgs] LnL7 closed pull request #22702: service-runner: try to setuid when started as root (master...service-runner-setuid) https://git.io/vDwj2
<Ralith>
yes, and I now realize there's reasons for this to be terrible in nix-build too
<Ralith>
e.g. I frequently need a debug build of LLVM
<Ralith>
which is going to be nearly worthless if it's -O2'd without my say-so
<viric>
we learnt something.
<Ralith>
I wonder why my other system doesn't have this issue