<nh2>
clever: do you understand why it works currently? looking at the wrapper script it generates, I have no idea why it should work, the entries are not in it
<nh2>
exec -a "$0" "/nix/store/x2ak8xnkarxrwgfrh0i32bxbf942z4zv-glusterfs-3.10.1/share/glusterfs/scripts/.eventsdash.py-wrapped" "${extraFlagsArray[@]}" "$@"
Guest89871 has joined #nixos
<Guest89871>
Hey
<clever>
nh2: and what about the first line of .eventsdash.py-wrapped?
<clever>
nh2: oh, i think i see the problem
ryanartecona has quit [(Quit: ryanartecona)]
<clever>
nh2: yep, there it is
<nh2>
clever: ah I see, the first line is a shebang to a script that contains `export PYTHONHOME="/nix/store/3c598gvxavyiv2h0n2lbxgq7sf0rxf1p-python-2.7.13-env"`, that's how the deps come in
<clever>
nh2: you have python2 AND python2.withPackages in the buildInputs
<clever>
nh2: and it takes the first python it can find to patch into the #!
<clever>
nh2: and nativeBuildInputs is scanned before buildInputs, thats why it had a higher priority and fixed things
<clever>
removing the duplicate python2 from buildInputs should also fix it
<Guest89871>
I'm about to Download and install nixos, is the minimal like standard arch Linux for installation?
<clever>
that pythonhome should also entirely eliminate the need to set pythonpath
<clever>
Guest89871: the minimal iso had no xorg, while the graphical iso has kde on startup
<clever>
Guest89871: both of them will produce the exact same thing when installed to the system, given the same configuration.nix file
danharaj has quit [(Remote host closed the connection)]
<clever>
nh2: oh, i think python2 was providing toPythonPath
<clever>
so that has to go after the withPackages
<clever>
if thats still needed
<nh2>
clever: lol I was just typing this question
<clever>
do most of the programs try to load deps even with --help or --version?
<clever>
need a simple way to test them all
<nh2>
clever: I just hope you never retire from this channel ... I think I wouldn't have figured this stuff out in the next year
<clever>
hmmm, glusterfind currently fails with no args, cant import glusterfind.main, checking...
seagreen has quit [(Ping timeout: 240 seconds)]
<clever>
ah, because it wants a python library from $out/lib, not from its inputs
<clever>
its not using sed to apply pattern changes
<clever>
nh2: harder to use the diff's on a gist when you keep renaming the files
<nh2>
clever: I don't rename them, I add new ones. Should just have edited but I wasn't sure it kept gist links stable. Apparently it does (I guess that's the only thing that makes sense)
<clever>
mkdir a;touchb;gfid_to_path.py a b
<clever>
this returns 0
<clever>
oops, with a space between touch and b
ryantrinkle has joined #nixos
<clever>
and if stdin isnt a tty, it also needs a dir that it will chdir into
<clever>
if stdin is a tty, it wants a <dirpath> and a <filepath>
hellrazor has joined #nixos
<clever>
but if stdin isnt a tty, it wants a <dirpath>, 2 other things it doesnt appear to use, and then takes filepaths on stdin
<nh2>
clever: you mean like `echo "" | (mkdir -p a && touch b && $(dirname $(readlink -f /run/current-system/sw/bin/gluster))/../libexec/glusterfs/gfind_missing_files/gfid_to_path.py a b)`
<clever>
testing something on this end
<nh2>
gives `Invalid arguments` and then prints usage information that is apparently a lie
<clever>
it asks for 3 arguments when stdin isnt a tty
<clever>
double-checking things
<clever>
oh, that not in the if
<clever>
it wants 3, including argv[0], when stdin IS a tty
<clever>
and 2, including argv[0], when it isnt, just <dirpath>
<nh2>
clever: hmm, but this doesn't work for me:
<nh2>
echo "a" | (mkdir -p a && touch b && $(dirname $(readlink -f /run/current-system/sw/bin/gluster))/../libexec/glusterfs/gfind_missing_files/gfid_to_path.py a b)
<nh2>
ah I misread
<nh2>
ok it's working
matthewbauer has quit [(Ping timeout: 255 seconds)]
hellrazo1 has joined #nixos
matthewbauer has joined #nixos
<nh2>
what an effort. clever, thank a boatloat. Do you go to nixconf?
<clever>
nope
<nh2>
clever: shame then I can't buy you lots of beers
<clever>
heh
<dash>
also shouldn't it have been called "conference/default.nix"
hellrazor has quit [(Ping timeout: 260 seconds)]
<clever>
/tmp/nix-build-glusterfs-3.10.1.drv-0/glusterfs-3.10.1-runner-log/xlators/storage/posix/src/posix.c:351: warning: lchmod is not implemented and will always fail
<clever>
Making all in protocol
<clever>
dash: might want to look into that warning also
<nh2>
clever: great, I will PR this after testing that it works in operation for a while
<nh2>
and I will finally go to bed
<clever>
:)
takle has quit [(Remote host closed the connection)]
matthewbauer has quit [(Ping timeout: 260 seconds)]
lambdamu_ has joined #nixos
<nh2>
clever: you may be happy to know the important fact that our effort will eventually fix an error message sounding `Unable to end. Error : Success`
<clever>
lol
justelex_ has joined #nixos
ericsagnes has quit [(Ping timeout: 258 seconds)]
MichaelRaskin has quit [(Ping timeout: 264 seconds)]
lambdamu has quit [(Ping timeout: 264 seconds)]
justelex has quit [(Ping timeout: 268 seconds)]
mbrgm_ has joined #nixos
<Havvy>
nh2: Are you the one breaking Hydra right now?
philipwhite has quit [(Quit: Page closed)]
sigmundv has joined #nixos
mbrgm has quit [(Ping timeout: 240 seconds)]
mbrgm_ is now known as mbrgm
<nh2>
Havvy: no, I haven't pushed anything anywhere
sellout- has quit [(Read error: Connection reset by peer)]
alx741 has joined #nixos
derjohn_mob has quit [(Ping timeout: 255 seconds)]
nh2 has quit [(Quit: Leaving.)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/v9PS0
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/v9PQV
<NixOS_GitHub>
nixpkgs/master c6c7197 Desmond O. Chang: lnav: 0.8.1 -> 0.8.2
NixOS_GitHub has left #nixos []
takle has joined #nixos
Raimondi has quit [(Ping timeout: 268 seconds)]
Infinisil has quit [(Quit: leaving)]
takle has quit [(Ping timeout: 272 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
hexagoxel has quit [(Ping timeout: 272 seconds)]
hexagoxel has joined #nixos
<sellout->
copumpkin: So, since your name’s on it … what exactly should I install to get docker on Mac? “docker-distribution”?
ericsagnes has joined #nixos
<copumpkin>
No idea! There's no open source package for their background Linux VM app and I haven't looked at packaging only their client tooling
nckx has quit [(Quit: restarting my GuixSD server)]
rcschm has joined #nixos
nckx has joined #nixos
<rcschm>
hi, i like to read a conf file into nix-store and reference the file in a wrapped exec start up script. is there any pointer to how to do that? thanks for your help.
<rcschm>
i do have conf = import ./conf.txt; in let and reference the file with ''${conf}'' but that is not compiling.
takle has joined #nixos
georges-duperon has quit [(Ping timeout: 272 seconds)]
zeus_ has quit [(Remote host closed the connection)]
<mdash>
Import is for nix expressions,I believe you want readFile
zeus_ has joined #nixos
<mdash>
Or even just ${./conf.txt}
DIzFer has quit [(Remote host closed the connection)]
<mdash>
Stringifying a path copies it into the store
DIzFer_ has joined #nixos
nckx has quit [(Quit: restarting my GuixSD server)]
takle has quit [(Ping timeout: 272 seconds)]
nckx has joined #nixos
zeus_ has quit [(Ping timeout: 245 seconds)]
<rcschm>
mdash, let me try that.
<rcschm>
thanks.
indi_ has joined #nixos
matthewbauer has joined #nixos
steveeJ has quit [(Ping timeout: 240 seconds)]
<rcschm>
mdash ${./conf.txt} throws an error.
<rcschm>
mdash: builtins.readFile seems to be reading in the content as expression as well.
<rcschm>
it is complaining that it can not build because bind is not valid expression. bind is found in the file. it is the script command.
zeus_ has joined #nixos
takle has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
justelex_ has quit [(Ping timeout: 260 seconds)]
schoppenhauer has quit [(Ping timeout: 272 seconds)]
aneeshusa has joined #nixos
steveeJ has joined #nixos
Raimondi has joined #nixos
schoppenhauer has joined #nixos
<rcschm>
mdash: i figured it out. we need to use builtins.toFile to write the string to file.
<rcschm>
and reference the path from the result of toFile.
<rcschm>
tks.
rcschm has quit [()]
ryanartecona has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
aneeshusa has quit [(Ping timeout: 240 seconds)]
aneeshusa has joined #nixos
takle has joined #nixos
matthewbauer has quit [(Ping timeout: 240 seconds)]
takle has quit [(Ping timeout: 240 seconds)]
cpennington has quit [(Remote host closed the connection)]
mkoenig has quit [(Remote host closed the connection)]
darlan has quit [(Remote host closed the connection)]
Guest89871 has quit [(Quit: AtomicIRC: The nuclear option.)]
matthewbauer has joined #nixos
orivej has quit [(Ping timeout: 255 seconds)]
takle has joined #nixos
justelex_ has joined #nixos
takle has quit [(Ping timeout: 245 seconds)]
<matthewbauer>
i don't know if everybody's heard already, but the NixOS wiki has been shut down
<NixOS_GitHub>
[nixpkgs] vmandela opened pull request #25666: git-series: init at 0.9.1 (master...gitseries) https://git.io/v9Pjy
NixOS_GitHub has left #nixos []
treaki has joined #nixos
treaki has quit [(Max SendQ exceeded)]
treaki_ has quit [(Ping timeout: 272 seconds)]
rcschm has joined #nixos
takle has joined #nixos
<rcschm>
hi, i have been able to bring in a git file into nix-store using fetchgit. how do i reference that git in the conf file that i have a wrapper on? thanks for your help.
Mutter has joined #nixos
alx741 has quit [(Quit: alx741)]
takle has quit [(Ping timeout: 240 seconds)]
<dash>
rcschm: this the conf file you're writing from your nix expr?
<dash>
rcschm: sure. so make the text file in your package be myconfig.json.in or such, then in your build phase put "@my_git_path@" or whatever in the config file, then do 'substitute ./myconfig.json.in ./myconfig.json --subst-var-by my_git_path ${path_from_fetchgit}'
takle has joined #nixos
snikkers has joined #nixos
<rcschm>
it is the other way around i think. i do have a plugin folder which is a git files which i did fetchgit.
<rcschm>
i do have the reference to the fetchgit. but i am not able to reference that in the conf file that i am trying to write a variable referencing that git folder.
takle has quit [(Ping timeout: 260 seconds)]
filterfish has joined #nixos
marsel has joined #nixos
derjohn_mob has quit [(Ping timeout: 240 seconds)]
<magneticduck>
I don't suppose there's any way to make nix treat an attrset as a function by adding some special attribute?
<magneticduck>
{ _call = x: x + 1; } 1 == 2
<makefu>
magneticduck: like in lua?
<magneticduck>
sure
<magneticduck>
I had an inkling that this was possible in nix but I might be confusing things
takle has joined #nixos
<makefu>
not that i am aware of. you could wrap it into a lambda of course. but maybe some of the nix grand wizards have some arcane knowledge about this :)
xsig_hpcc has quit [(Client Quit)]
<clever>
cant merge a lamda and an attrset with //
<magneticduck>
heh
<magneticduck>
okay, I guess I'll be recursively mapping on a attrset with a library-order number of values
soraminazuki has joined #nixos
JagaJaga has joined #nixos
takle has quit [(Ping timeout: 272 seconds)]
soraminazuki has quit [(Client Quit)]
soraminazuki has joined #nixos
marusich has quit [(Quit: Leaving)]
<soraminazuki>
Hi, does anyone know how to get the include path to the C/C++ standard library? I'm having trouble getting C/C++ completion with vimplugin-youcom
jensens has joined #nixos
goibhniu has quit [(Ping timeout: 240 seconds)]
<soraminazuki>
I mean, vimplugin-youcompleteme.
goibhniu has joined #nixos
<matthewbauer>
try: $(nix-build -A stdenv.libc '<nixpkgs>')/include
<matthewbauer>
or maybe $(nix-build -A stdenv.cc.libc '<nixpkgs>')/include
<clever>
that will overwrite the result symlink in the current directory
<clever>
--no-out-link can stop that, or -o libc to rename it
<soraminazuki>
Thanks, I'll try that once I get home.
matthewbauer has quit [(Ping timeout: 258 seconds)]
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 5 new commits to release-17.03: https://git.io/v9XGP
<NixOS_GitHub>
nixpkgs/release-17.03 3b6adc3 Patrick Callahan: fish-foreign-env: git-20151223 -> git-20170324
<NixOS_GitHub>
nixpkgs/release-17.03 e302239 Patrick Callahan: direnv: add fish shell hook for NixOS
<NixOS_GitHub>
nixpkgs/release-17.03 085a292 Patrick Callahan: fzf: add fish hook for NixOS
NixOS_GitHub has left #nixos []
roconnor_ has quit [(Ping timeout: 260 seconds)]
goibhniu1 is now known as goibhniu
soraminazuki has quit [(Client Quit)]
tv1 has joined #nixos
tv has quit [(Ping timeout: 240 seconds)]
<sphalerite>
What's the best way to write a shell.nix? Something like with import <nixpkgs> {}; stdenv.mkDerivation {name = "env-name"; buildInputs = [a b c];} ?
<toppler>
Mine is an attribute set of derivations, rather than a single one.
orivej has quit [(Ping timeout: 240 seconds)]
snikkers has joined #nixos
<toppler>
Otherwise, yeah. Each is given just by a name, buildInputs (maybe also env-vars and shell-hooks).
tv1 is now known as tv
tv has quit [(Changing host)]
tv has joined #nixos
Mateon3 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 4 new commits to master: https://git.io/v9XnC
<NixOS_GitHub>
nixpkgs/master 0054865 Patrick Callahan: fish-foreign-env: git-20151223 -> git-20170324
<NixOS_GitHub>
nixpkgs/master 855ae68 Patrick Callahan: direnv: add fish shell hook for NixOS
<NixOS_GitHub>
nixpkgs/master 3d37af3 Patrick Callahan: fzf: add fish hook for NixOS
NixOS_GitHub has left #nixos []
Mateon1 has quit [(Ping timeout: 246 seconds)]
Mateon3 is now known as Mateon1
<sphalerite>
Also, does nox have any maintainers other than madjar? I've got some PRs that I'm sure other people would find useful too, but they've just been sitting around for a week
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] flosse opened pull request #25669: opencv: remove myself (flosse) from the maintainers list (master...no-maintainer-anymore) https://git.io/v9Xcf
NixOS_GitHub has left #nixos []
<sphalerite>
and am I the only one who always presses Ctrl-C on the prompt it displays after the search results and prefers a non-interactive interface like with nix-env -q or most other package manager searches?
<NixOS_GitHub>
[nix] domenkozar pushed 1 new commit to master: https://git.io/v9XWU
<NixOS_GitHub>
nix/master 82a9c93 Domen Kožar: doc: builtins.attrNames returns alphabetically sorted list
NixOS_GitHub has left #nixos []
chakerbenhamed has quit [(Ping timeout: 240 seconds)]
nil has joined #nixos
<sphalerite>
Would it be possible to have buildEnv warn the user if libraries are being installed that that is probably not what they want?
slyfox has quit [(Quit: :))]
<nil>
Hi. Just installed nixos. How do I go about setting up a user specific config file? I'd like to have a user-specific configuration file for declaring packages.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 opened pull request #25670: cups: mount private /tmp (master...cups-hardening) https://git.io/v9XWK
<LnL>
bash is part of the stdenv if that's what you mean
<lewo>
sphalerite, because in a script (out of nixpkgs repo) I use python.withPackage which is not available in 16.03. I would like to assert that in order to provide a clear error message
<unlmtd>
LnL: I see
<unlmtd>
nix is pretty bloated atm
* peti
is having a weird moment. I cannot install openssl.dev into a nix-env profile and I don't have the slightest clue why that is.
<peti>
The following command succeeds: ls $(nix-build --no-out-link "<nixpkgs>" -A openssl.dev)/include/openssl/opensslconf.h
<peti>
So clearly openssl.dev exists and contains the header files I want.
<lewo>
sphalerite, thx
<viric>
gchristensen: what dcc send were you doing?
Havvy has joined #nixos
<viric>
gchristensen: 00:12 DCC SEND from gchristensen [0.0.0.5 port 1337]: " [0B bytes] requested in channel #nixos
<LnL>
peti: I'm pretty sure there's a bug with nix-env that ignores the output (always installing the default)
chakerbenhamed has joined #nixos
<peti>
When I run "nix-env -p tmp -iA openssl.dev", however, the command says: "installing ‘openssl-1.0.2k’" -- which is the wrong derivation.
<peti>
And sure enough, the "tmp" profile contains no headers. :-(
<peti>
LnL: Is there a github issue about this?
<sphalerite>
lewo: Why would anyone still be using 16.03?
<sphalerite>
unlmtd: I don't think it's a hard dependency of nix (not a runtime dependency at least), but it is for nixpkgs
<unlmtd>
sphalerite: thanks. ya LnL already mentioned it
<sphalerite>
lewo: anyway, make sure to use lib.versionAtLeast or lib.versionOlder to compare them :)
<sphalerite>
unlmtd: there has been some talk about using oil shell [http://www.oilshell.org/] once it's production ready. It certainly looks like there's some really solid design work behind it
<unlmtd>
crazy never heard of it
k2s has joined #nixos
<unlmtd>
its a new language
k2s has quit [(Remote host closed the connection)]
takle has quit [(Read error: Connection reset by peer)]
takle has joined #nixos
<avn>
LnL: main part of question -- how create sequental { identityFile = "identity_0"; } ;)
<LnL>
ah you want "identity_0" "identity_1" ..
<avn>
yep, I want to generalize and submit my fetchPrivateGit ;)
orivej has joined #nixos
<LnL>
then you want something like imap (i: attrs: attrs // { identityFile = "identity_${toString i}"; } )
k2s has quit [(Ping timeout: 268 seconds)]
oida has joined #nixos
nslqqq has joined #nixos
nil has quit [(Ping timeout: 260 seconds)]
takle has quit [(Read error: Connection reset by peer)]
Wizek__ has quit [(Ping timeout: 255 seconds)]
takle has joined #nixos
takle has quit [(Read error: Connection reset by peer)]
takle has joined #nixos
<avn>
LnL: looks like proper answer, TY ;)
ericsagnes has quit [(Ping timeout: 245 seconds)]
uralbash has joined #nixos
uralbash has left #nixos []
<gchristensen>
viric: I'm never going to live that down :)
jensens has quit [(Remote host closed the connection)]
<gchristensen>
viric: someone attacked my client with a DCC which crashed the version of weechat I used, then they took over my nick and started DCCing other people
eacameron has quit [(Remote host closed the connection)]
jensens has joined #nixos
<viric>
gchristensen: ah o
<viric>
k
utdemir has joined #nixos
<gchristensen>
I've since enabled nick protection and updated my client
nil has joined #nixos
FRidh has joined #nixos
<utdemir>
Hey. Anybody spawning a NixOS machine on EC2, without NixOps? Somehow mine is always stuck on "Booting the kernel".
<nil>
Hey, does anyone know where I'd find my awesomewm theme file?
Wizek__ has joined #nixos
<makefu>
nil: it comes with the package
eacameron has joined #nixos
<makefu>
nil: for this i have a custom module which overrides the awesome configuration to set my configuration at startup without relying on the state in my home dir
<NixOS_GitHub>
[nix] lheckemann opened pull request #1380: nix-shell: use appropriate prompt terminator (master...prompt-terminator) https://git.io/v9XwT
NixOS_GitHub has left #nixos []
reinzelmann has joined #nixos
Wizek_ has joined #nixos
eacameron has joined #nixos
<gchristensen>
is it suspicious that ipfs.io's SSL cert is by StartCom?
nh2 has joined #nixos
eacameron has quit [(Ping timeout: 255 seconds)]
rcschm has quit [()]
<Isorkin>
Hi. config - services.lshd.enable = true; - service lshd not started. How to fix error?
DrWaste has quit [(Ping timeout: 240 seconds)]
<gchristensen>
Isorkin: I ran `man configuration.nix`, scrolled to `lshd`, and found a few hints.
<gchristensen>
"Note that this key must have been created, e.g., using "lsh-keygen --server | lsh-writekey --server", so that you can run lshd." for example. have you read through them?
ericsagnes has joined #nixos
takle has quit [(Remote host closed the connection)]
ertes has joined #nixos
bennofs1 has joined #nixos
takle has joined #nixos
Raimondii has joined #nixos
ertes has quit [(Ping timeout: 240 seconds)]
takle has quit [(Read error: Connection reset by peer)]
DrWaste has joined #nixos
takle has joined #nixos
Raimondi has quit [(Ping timeout: 268 seconds)]
Raimondii is now known as Raimondi
takle has quit [(Read error: Connection reset by peer)]
takle has joined #nixos
utdemir has quit [(Ping timeout: 260 seconds)]
cpennington has joined #nixos
eacameron has joined #nixos
takle has quit [(Read error: Connection reset by peer)]
takle has joined #nixos
bennofs has quit [(Ping timeout: 240 seconds)]
<Isorkin>
gchristensen: key founded /etc/lsh/*. sudo systemctl restart lshd - not work. sudo /nix/store/....-unit-script/bin/lshd-start - work.
<Isorkin>
need fix lshd.service ?
utdemir has joined #nixos
<gchristensen>
you ran nixos-rebuild switch?
eacameron has quit [(Ping timeout: 246 seconds)]
<Isorkin>
yes
<Isorkin>
Reboot tried
<gchristensen>
anything in journalctl -u lshd
takle has quit [(Read error: Connection reset by peer)]
takle has joined #nixos
<hyper_ch>
gchristensen: I switch to unstable-small now and finally the errors went away ;)
<gchristensen>
which errorss?
<gchristensen>
ohh this is about getting a channel update :)
utdemir has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] gebner pushed 1 new commit to master: https://git.io/v9X6O
<NixOS_GitHub>
nixpkgs/master 8da31b0 Gabriel Ebner: fstar: 0.9.2.0 -> 0.9.4.0
NixOS_GitHub has left #nixos []
<hyper_ch>
gchristensen: well, the perl error and unstable-channel not wanting to update :)
<hyper_ch>
saw that unstable-small got updated :)
civodul has joined #nixos
<gchristensen>
nice :) great!
<hyper_ch>
vbox recompiling just takes like forever
<Isorkin>
gchristensen: май 10 14:56:21 test1 systemd[1]: Starting GNU lshd SSH2 daemon... / май 10 14:56:21 test1 systemd[1]: Started GNU lshd SSH2 daemon...
<gchristensen>
hehe, yeah, that one is a doozy :)
<gchristensen>
Isorkin: gosh ... I don't know ... I've never heard of lshd before today
indi_ has joined #nixos
<hyper_ch>
lshd -> list harddisk?
<gchristensen>
a GNU ssh2 implementation
cpennington has quit [(Ping timeout: 268 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] shlevy pushed 1 new commit to master: https://git.io/v9XiB
<NixOS_GitHub>
nixpkgs/master ac15999 Shea Levy: hackage2nix: Pull haskellSrc2nix from the final package set
NixOS_GitHub has left #nixos []
indi_ has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] shlevy pushed 1 new commit to release-17.03: https://git.io/v9Xig
<NixOS_GitHub>
nixpkgs/release-17.03 8c90757 Shea Levy: hackage2nix: Pull haskellSrc2nix from the final package set...
NixOS_GitHub has left #nixos []
eacameron has joined #nixos
eacameron has quit [(Read error: Connection reset by peer)]
georges-duperon has joined #nixos
eacameron has joined #nixos
indi_ has joined #nixos
eacameron has quit [(Ping timeout: 260 seconds)]
k2s has quit [(Ping timeout: 245 seconds)]
takle has quit [(Read error: Connection reset by peer)]
<sphalerite>
but upstream basically doesn't want the expression if it's going to duplicate version information, which is understandable
* gchristensen
breaths deeply
<FRidh>
isn't this also import from derivation?
<sphalerite>
FRidh: I don't think so, as these expressions ship with the project and live in its source dir rather than actually fetching it
<sphalerite>
I'm not entirely sure though.
<FRidh>
Yes, you fetch and thus build first.Then you ask the evaluator to read what was build, and continue with that. It "works", but isn't allowed in Nixpkgs at least.
<sphalerite>
Yes, obviously this wouldn't be for nixpks
<sphalerite>
nixpkgs
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] mdaiter opened pull request #25672: openmvs: init at current master (master...openmvs) https://git.io/v9X1Q
NixOS_GitHub has left #nixos []
<gchristensen>
sphalerite: for openclonk I'd consider omitting the version
<sphalerite>
Oh yeah, that would actually be sensible. Potentially the same should apply for nox, because in both cases it's not actually a build of a release
<gchristensen>
yeah
<sphalerite>
The version information will still be included in the build, and the sources can be found through the derivation, so that does make the most sense I suppose
rcschm has joined #nixos
<gchristensen>
that way you aren't sending scary looking nix to third party projects who might already bee skeptical :P
tvon has quit [(Quit: System is sleeping...)]
nh2 has quit [(Ping timeout: 260 seconds)]
<sphalerite>
Well one of the people installed nix to try out the expression, so not too skeptical :D
nil has quit [(Quit: Page closed)]
<gchristensen>
nice :D
<FRidh>
I could just cherry-pick changes from staging into master, right? Or would that give trouble with merging? It doesn't look like staging will be merged anytime soon.
mudri has quit [(Ping timeout: 255 seconds)]
pie_ has joined #nixos
<gchristensen>
FRidh: should be fine, master is never "fast forwarded" to staging
eacameron has joined #nixos
<rcschm>
hi, i am trying to simulate intalling tmux plugin using nix. i would need to git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm and reference that folder by having run '~/.tmux/plugins/tpm/tpm' in the conf file. i managed to download the plugin using fetchgit but i have an error referencing the plugin. is there any pointer as how to accomplish this? thanks for your help.
reinzelmann has quit [(Quit: Leaving)]
<LnL>
FRidh: careful with that, that might cause large rebuilds that are still different form staging
<NixOS_GitHub>
[nixpkgs] FRidh pushed 3 new commits to master: https://git.io/v9Xyw
<NixOS_GitHub>
nixpkgs/master c8301a8 Johannes Bornhold: pytestcov: 2.3.1 -> 2.4.0
<NixOS_GitHub>
nixpkgs/master e6f5021 Johannes Bornhold: freezegun: 0.3.5 -> 0.3.8
<NixOS_GitHub>
nixpkgs/master 0afb6d7 Johannes Bornhold: pytest_xdist: 1.8 -> 1.14
NixOS_GitHub has left #nixos []
xadi has joined #nixos
<FRidh>
LnL: I know. I'm cherry-picking some smaller Python changes. A couple of package updates that in retrospect should have just gone to master.
<taeradan>
hi, I've got troubles with jetbrains products, the wey they are packaged in NixOS allows only nixpkgs JDK, but I need to allow the IDE to use the bundled JRE (recommended by upstream)
eacameron has joined #nixos
indi_ has joined #nixos
<taeradan>
the bundled JRE is present in the derivation output, but can't be selected because the nix build hardcode a JAVA_HOME value
<LnL>
FRidh: ah, nevermind then :)
mudri has quit [(Ping timeout: 260 seconds)]
mudri has joined #nixos
derjohn_mob has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
<sphalerite>
rcschm: you'd probably need to build your tmux config using nix as well for that to work, and then wrap tmux to use that config file.
<LnL>
not sure if tpm makes sense in the context of nix because it will try clone plugins itself
DrWaste has joined #nixos
<rcschm>
it can be referenced.
<rcschm>
and all that will be needed is just to clone the plugins and reference them in the conf file.
<rcschm>
all will be in nix-store which i think makes sense. all immutable.
<rcschm>
just not sure why it doesn't allow me to reference the thing right now.
indi_ has quit [()]
nckx has quit [(Quit: restarting my GuixSD server)]
ryantrinkle has quit [(Ping timeout: 255 seconds)]
<LnL>
yes, you could probably do something similar to the vim plugins in nixpkgs
<LnL>
but I don't think you need tpm itself anymore then :)
nckx has joined #nixos
tabaqui has joined #nixos
<rcschm>
i do have some need for the tpm plugins and i think they should just be reference like vim like you said.
<tabaqui>
hey all
<tabaqui>
I'm trying to install nixos instance on vbox machine
<tabaqui>
but it cannot start sshd service after manual install
<tabaqui>
here:
<tabaqui>
could not load host key: /etc/ssh/ssh_host_rsa_key
<tabaqui>
it's an empty file
<avn>
Folks, I cloned one nix machine (kvm), and on clone when I rebuild updated conf, I got few messages about invalid store paths. Any ideas why it can happens?
<tabaqui>
in /etc/nixos/configuration.nix, there is just services.openssh.enable = True
<tabaqui>
what can cause it?
roconnor_ has joined #nixos
nh2 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] lheckemann opened pull request #25675: cmake setup hook: allow other build types (staging...cmake-build-type) https://git.io/v9X7K
NixOS_GitHub has left #nixos []
<freusque>
hello, is there anyone here using opam2nix?
nckx has quit [(Quit: restarting my GuixSD server)]
GetalMear has joined #nixos
nckx has joined #nixos
<tabaqui>
hm, looks like it missed sshd-keygen
<tabaqui>
arch linux has special systemd service for it
jensens has quit [(Ping timeout: 240 seconds)]
<avn>
tabaqui: it can be done in activation script as well
<GetalMear>
Hi. I don't know how to read Hydra jobset pages. I wanted to find out why there hasn't been an update to unstable/master for a week, but I don't know whether the 'Evaluation errors' tab tells the whole story
<rcschm>
sphalerite: are you still there?
takle has quit [(Read error: Connection reset by peer)]
<tabaqui>
avn: yeah, but it didn't
takle has joined #nixos
<sphalerite>
rcschm: yes
<sphalerite>
like LnL said, I don't see how tpm fits in there.
<rcschm>
but i think it should be in the nix-store.
<rcschm>
just any idea why the git clone can't be referenced in ${tmuxPluginManager}?
<rcschm>
how do we git clone something and get its reference? basically that is the question i am having at the moment.
<rcschm>
any pointer?
takle has quit [(Read error: Connection reset by peer)]
takle has joined #nixos
<sphalerite>
Because it's impure, it requires network access
<sphalerite>
it's probably best if you use fetchgit to get each plugin and go from there
<rcschm>
i am not following.
nckx has quit [(Quit: restarting my GuixSD server)]
<LnL>
you should fetchgit each plugin and put in in the place that tpm expects
<rcschm>
yes that is what i will be fetching.
<rcschm>
and each will be referenced in the conf file.
<rcschm>
right now i can't reference the plugin manager itself.
<LnL>
or skip tmp entirely and shource the plugins yourself
gsora has quit [(Quit: uh-oh!)]
<rcschm>
i like to try the pure way first you see.
gsora has joined #nixos
<rcschm>
how do we git clone and reference to that cloned?
kykim has joined #nixos
<rcschm>
that is basically the question i am having.
magneticduck has quit [(Quit: WeeChat 1.6)]
<rcschm>
any pointer?
s33se_ has quit [(Ping timeout: 240 seconds)]
<sphalerite>
Using fetchgit.
nckx has joined #nixos
johnsonav has quit [(Ping timeout: 246 seconds)]
<rcschm>
any pointer to some example?
<rcschm>
i did use that and i am having an error basically.
<GetalMear>
LnL: Thanks. I have three questions: 1. Shouldn't this be linked to from README.md in nixpkgs? 2. Does this mean that I should switch channels? 3. Is it all because of nixos-ova-*?
<rcschm>
i want to reference the cloned like run '${tmux/plugins/tpm/tpm}' in the conf file.
<GetalMear>
Okay, I probably don't want to switch channels.
takle_ has joined #nixos
<rcschm>
yeah, i am using that. is there a complete example anywhere do you know?
<sphalerite>
rcschm: lots in nixpkgs. None specific for tmux AFAIK though
<rcschm>
any particular on on the top of your head?
<rcschm>
if not i will go thru them.
<sphalerite>
pkgs/tools/misc/tmux :p
<LnL>
GetalMear: 1. maybe don't even know who created that :) 2. don't use nixpkgs-unstable for a nixos-rebuild things might be broken 3. yes looks like it
<rcschm>
no i mean cloning and using it in reference.
<rcschm>
putting the reference in a file or something.
<LnL>
GetalMear: you can easily import a single package from unstable/master if there's something specific you want from there
jgertm has joined #nixos
<rcschm>
i can clone. but i can't reference it.
s33se has joined #nixos
<sphalerite>
rcschm: let some-plugin = fetchgit {...}; in writeFile "tmux.conf" ''source ${some-plugin}/init.tmux''
<sphalerite>
or something like that
johnsonav has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
<rcschm>
uhhmm, i never saw that. let me try that tonight.
<rcschm>
thks.
takle has joined #nixos
<rcschm>
one question. after writeFile, would ${tmux.conf} be available for reference as well?
<LnL>
writeText creates a file in /nix/store that you can reference
<sphalerite>
no, but you could put that in a let binding as well. So let some-plugin = fetchgit {...}; tmux-conf = writeFile "tmux.conf" ''source ${some-plugin}/init.tmux''
<sphalerite>
then you can refer to tmux-conf in later stuff
<sphalerite>
and yes, sorry, I meant writeText and not writeFile, thanks LnL
<LnL>
and you can use wrapProgram to create a package for tmux that alway uses that config file
<rcschm>
cool, let me try that.
<rcschm>
tks,
rcschm has quit [()]
takle_ has quit [(Ping timeout: 240 seconds)]
<sphalerite>
LnL: is there actually a function in nixpkgs for creating trivial wrappers? because with wrapProgram you then need to use stdenv.mkDerivation and specify a bunch of other stuff. I usually end up using writeScriptBin instead.
<sphalerite>
would be nice to have something like wrapProgram {original = "${tmux}/bin/tmux"; env = {SOME_ENVIRONMENT_VARIABLE.prepend = "a"; SOME_OTHER_VAR.set = "value";}; args.prepend = "-c ${tmux.conf}";}
<LnL>
yeah
<sphalerite>
just a rough idea of what it could look like, but I'd find something like that vevry convenient
<gchristensen>
that'd be neat, sphalerite
<sphalerite>
just to expose the wrapProgram functionality in nix rather than having to write shell script manually
<LnL>
it probably doesn't exist because the most common usecase is to wrap something in $out/bin after the installPhase
<gchristensen>
in nixpkgs yes, but most common case for me is little wrappers for my userspace
cfricke has quit [(Quit: WeeChat 1.7.1)]
<LnL>
true, runCommand ... is pretty inconvenient for that
mudri has quit [(Ping timeout: 240 seconds)]
erasmas has joined #nixos
<kykim>
newbie nix-shell question: currently, i have a file named `shell.sh` that basically consists of a command `nix-shell -E <...some expression...>`. Can i basically take the "<...some expression...>" and put that in a `shell.nix` file?
<FRidh>
sphalerite: we could write a function that uses buildEnv to symlink all paths in a (a list of) derivation(s) and then takes such sets to create wrappers for the specific paths the sets refer to. There are a lot of places it could benefit from it.
<GetalMear>
LnL: The "tests" page is linked to from README.md, so it's halfway there. The explanation at the top of howoldis did help, though
<sphalerite>
LnL: yeah, it's inconvenient enough that I just don't bother with wrapProgram and use writeScriptBin instead
<sphalerite>
kykim: pretty mumch
<sphalerite>
FRidh: I'm a bit confused as to what you mean there
<LnL>
FRidh: yeah, vim_configurable only has a vim binary for example
JagaJaga has quit [(Ping timeout: 240 seconds)]
<FRidh>
sphalerite: The set you've shown before, you would want to have a function that takes a list of those. It would (optionally) symlink all paths in those derivations. And the wrapped paths it would replace with your wrappers.
<sphalerite>
ah right
mudri has joined #nixos
<FRidh>
python.buildEnv could use it, the kde/plasma wrappers I think as well
tabaqui has quit [(Ping timeout: 240 seconds)]
<FRidh>
LnL: with python.buildEnv you're often only interested in setting pythonpath, not symlinking all the paths.
Mercuria1Alchemi has quit [(Ping timeout: 240 seconds)]
ryanartecona has joined #nixos
tabaqui has joined #nixos
MarcWeber has quit [(Quit: leaving)]
MarcWeber has joined #nixos
matthewbauer has quit [(Remote host closed the connection)]
matthewbauer has joined #nixos
jgertm has quit [(Ping timeout: 272 seconds)]
nh2 has quit [(Ping timeout: 264 seconds)]
<Isorkin>
how to mount /nix/store +rw ?
hotfuzz_ is now known as hotfuzz
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
JagaJaga has joined #nixos
<gchristensen>
Isorkin: that sets off alarm bells of "danger danger! something is wrong!" why do you want to do that?
<LnL>
^^
<Isorkin>
gchristensen: edit lshd.service
<gchristensen>
(LnL, can you help? :/)
<LnL>
Isorkin: you do this by editing the nix expression and running nixos-rebuild switch
<LnL>
the store is readonly for a reason :)
<dash>
Isorkin: you can't edit stuff in the store because it's stored by hash; changing the data will change the hash and break stuff. So, you edit it _before_ it goes in the store.
Fossi has joined #nixos
<Fossi>
hi. i try to install python3 alongside 2 and i get "collision between [...] use ‘nix-env --set-flag priority NUMBER PKGNAME" but when i try "nix-env --set-flag priority 1 python3-3.5.2" i get "error: selector ‘python3-3.5.2’ matches no derivations"
<Fossi>
i already tried "python3" and "nixos.pkgs.python3" and many others i could think of, but i don't get what PKGNAME is refering to here
pie_ has quit [(Ping timeout: 260 seconds)]
<goibhniu>
Fossi: you can only set the priority on stuff you've already installed
<goibhniu>
... so you can set it on python 2 instead
nh2 has joined #nixos
<goibhniu>
if you're using it for development, consider using nix-shell instead
<Fossi>
oh
<Fossi>
that was very unclear to me :D
<goibhniu>
yeah, it's not at all obvious
<Fossi>
it worked
<Fossi>
thanks
<goibhniu>
cool, np
<Fossi>
it's weird how setting it to anything then makes something the default too
jgertm has joined #nixos
<Fossi>
like basically, if i want to python3 2to3, i need to set the python2 to 1 and then install and then set the python3 to something?
<LnL>
Isorkin: what's the problem exactly? maybe I can give a better example
<Fossi>
apart from the fact that i still not know if higher or lower numbers are "first" in priority :D
<LnL>
I use nix-shell to instead of installing stuf in a profile to avoid conflicts like this
GetalMear has quit [(Quit: *poof*)]
<FRidh>
Fossi: I tend to forget that as well. From the manual: If there are multiple derivations matching a name in args that have the same name (e.g., gcc-3.3.6 and gcc-4.1.1), then the derivation with the highest priority is used. A derivation can define a priority by declaring the meta.priority attribute. This attribute should be a number, with a higher value denoting a lower priority. The default priority is 0.
sam_d has quit [(Read error: Connection reset by peer)]
<Fossi>
yes, it's a pain
mizu_no_oto has quit [(Quit: ["Textual IRC Client: www.textualapp.com"])]
<Fossi>
i thought i'd get rid of the mutable state ;)
<joko>
Hello, what would be the best way to transfer all the closures to a new NixOS machine?
<gchristensen>
nix-copy-closure?
<joko>
and how would I specify that I need everything?
<MarcWeber>
joko: copy the whole /nix directory? ..
matthewbauer has quit [(Ping timeout: 264 seconds)]
<joko>
MarcWeber: /nix/store is ro, is ok to remount is as rw for that? I promise not to do anything else while transferring stuff :P
<gchristensen>
why would you need to?
<gchristensen>
ohh no no no
<gchristensen>
can you describe more about what you're actually trying to do?
<MarcWeber>
joko: if you nix-copy-close the main sytsem /run/current-systme link you should have most packages transfered
<MarcWeber>
joko: No ida what happens if you do that while both systems are up and running. THere is /nix/store and state (database with depednencies) which should be in sync.
johann__ has quit [(Quit: Leaving.)]
<joko>
Well, I had an issue with my Hydra baremetal machine, its RAM is too low to handle big files, so I would like to move it on a VM
<MarcWeber>
So either copy all or use the tools.
<Fossi>
so, about nix-shell: i get "Can't locate utf8.pm: /root/.nix-profile/lib/perl5/site_perl/utf8.pm: Permission denied at /nix/var/nix/profiles/default/bin/nix-shell line 3." when i try to run it (or nix-env) as non-root
<Fossi>
i don't really get why it runs something inside /root/ when i'm su'd in as another user
freusque has joined #nixos
k2s has joined #nixos
Itkovian has joined #nixos
FRidh has quit [(Quit: Konversation terminated!)]
acowley_away is now known as acowley
<goibhniu>
Fossi: what does `which nix-env` say ... and `nix-env --version`
k2s has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 2 new commits to staging: https://git.io/v91Gi
<gchristensen>
niksnut: mind merging that second wiki.html PR? :)
acowley is now known as acowley_away
<niksnut>
done
seanparsons has quit [(Quit: WeeChat 1.7.1)]
<gchristensen>
thank you!
mudri has joined #nixos
nschoe has quit [(Quit: Program. Terminated.)]
<eacameron>
Anyone else notice that nix on WSL is suuper slow?
<zraexy>
Is it just a coincidence or does nixos:trunk-combined:nixos.ova.x86_64-linux only succeed when built by packet-t2-0? Is that machine set up differently?
<gchristensen>
zraexy: probably a coincidence, how does it fail on other machines? t2-0 is a big machine, can do many simultaneous builds
<LnL>
the packet machines are awesome :)
spinus has joined #nixos
<zraexy>
error: changing ownership of path ‘/build/root/nix/store’: Invalid argument
<gchristensen>
humm
<LnL>
you're the second person that posted that error today
<LnL>
not sure what the context of the previous one was
<gchristensen>
there was a change to nix recently, that hasn't yet been deployed to the t2-0 yet... niksnut ^
<gchristensen>
the build root IIRC was changed from /tmp to /build
<LnL>
maybe /build doesn't exist on the build machines
jgertm has quit [(Ping timeout: 264 seconds)]
acarrico has quit [(Remote host closed the connection)]
<LnL>
no I noticed it in that pr, but clang/llvm don't do it either
<LnL>
cool, but we probably don't want to update to rc releases now that clang 4 is the default for darwin :)
<dtz>
Yeah. Python as well, I'd expect. Wonder how cross compilation is working these days, these things would break pretty badly on a host/target pair that weren't compatible like x86->arm
svij2 has joined #nixos
<dtz>
Ah and yeah mostly meant for testing anyway, so anything borked can be fixed upstream perhaps before actual release
<dtz>
Some activity on clang support for reading from a config file for flags, that will be AMAZING for our purposes I think
<LnL>
oh!
<LnL>
^ copumpkin
<copumpkin>
Ooh
nevermind has joined #nixos
svij2 has quit [(Remote host closed the connection)]
<niksnut>
zraexy: interesting
<niksnut>
probably a qemu issue
marsel has joined #nixos
zeus_ has joined #nixos
<tabaqui>
can nixops deploy project in not-Amazon EC2 cloud?
<tabaqui>
there are some providers that offer the same api
<MichaelRaskin>
I think it can even be convinced to work on bare-metal NixOS instances
<tabaqui>
it looks like, nixops connect to "amazon.<region>.aws.cloud"
<LnL>
hrm my builds aborted again :/
bennofs1 has quit [(Ping timeout: 246 seconds)]
aloiscochard has quit [(Quit: Connection closed for inactivity)]
reinzelmann has joined #nixos
<simpson>
tabaqui: I use nixops on GCE. Zero AWS required.
athan has quit [(Ping timeout: 264 seconds)]
mounty has quit [(Ping timeout: 260 seconds)]
mounty has joined #nixos
<tabaqui>
simpson: after "nixops deploy..." I've got "Please Go to the following URL and sign in:
<andrewrk>
I want to do nix-shell foo.env and then I'll be in a nix-shell with CC=clang CXX=clang++
ertes has joined #nixos
pratch has joined #nixos
Itkovian has joined #nixos
<matthewbauer>
Just do CC = "clang"; in a new line
<matthewbauer>
it will be passed to the builder script
<andrewrk>
matthewbauer, that didn't work. echo $CC in the nix-shell gives gcc
marsel has quit [(Ping timeout: 240 seconds)]
<andrewrk>
I'm not making a package, I just want an environment
<dtz>
andrewrk: shellHook ?
<dtz>
andrewrk: but probably just adding clang as builtInput will make 'cc --version' show clang
matthewbauer has quit [(Ping timeout: 240 seconds)]
<andrewrk>
dtz, thanks
montag451___ has joined #nixos
<dtz>
but also all attributes in "mkDerivation" become environment variables (not 100% why but it's true :)) so you can also just do CC="clang"; or something but given the cc-wrapper and such usually requiring setting CC/CXX is unusual/rare/bug-in-package
<andrewrk>
I see
<dtz>
tbh I'm not sure why it's a good idea to have buildInput on clang -> cc on path, seems like that should require a new stdenv (perhaps using overrideCC) but shrug, quirk :)
<dtz>
rutting it all is a big difficult so don't mean to disparage the current situation hehe
takle has quit [(Remote host closed the connection)]
<philipp[m]>
As soon as I have cmake in my buildInputs of my default.nix file, I have qt58 in my environtment, even when I do nix-shell --pure. How can I avoid this?
derjohn_mobi has joined #nixos
Guest27201 has quit [(Quit: Lost terminal)]
acowley_away is now known as acowley
bkchr has joined #nixos
<bkchr>
Hi, can I add a second channel to my configuration.nix and wherever the package is never (second or first channel), the package is grabed from?
mkoenig has quit [(Remote host closed the connection)]
<LnL>
you want to update a specific package?
michas has joined #nixos
k2s has joined #nixos
k2s has quit [(Client Quit)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<bkchr>
LnL: Would like to have that done automatically
<LnL>
not sure what you're looking for packages from unstable will always be >= stable
<bkchr>
I have a local checkout of the unstable channel
<bkchr>
And modified a package (updated it)
chakerbenhamed has quit [(Ping timeout: 240 seconds)]
<bkchr>
Would like, that the local is preferred before the upstream
georges-duperon has quit [(Ping timeout: 240 seconds)]
Itkovian has joined #nixos
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
georges-duperon has joined #nixos
<LnL>
ah, so you basically want to apply a set of patches over nixpkgs?
matthewbauer has joined #nixos
<gchristensen>
I've wanted this too :)
<LnL>
I did something like that a while back
<LnL>
but it only works for packages
<MichaelRaskin>
Do you have many localk packages?
<MichaelRaskin>
Because for almost any operation you can easily specify which source to use
<MichaelRaskin>
nix-env -iA nixpkgs-local.package
<gchristensen>
being able to specify nixpkgs + a list of patches (that can be fetched from github) I think is a pretty powerful thing
<MichaelRaskin>
By the way
<LnL>
yeah but for modules you would need to happen before those are evaluated
<MichaelRaskin>
If you only change a single package, installing other packages from your local copy will still use binary cache
<MichaelRaskin>
Are you sure this is not what you want?
<MichaelRaskin>
Nix model is not formulated in terms of channels (like apt repos), it is in terms of hashing instructions to reproduce from scratch
<MichaelRaskin>
And binary cache is build-instruction-hash-addressed, so if some package is not touched by your local changes, you still get a cache hit
<gchristensen>
fwiw I think I understand the tradeoffs
<MichaelRaskin>
gchristensen: you probably do, but bkchr probably isn't sure what are the actual options
<gchristensen>
great point :) I shouldn't have jumpde in
Jackneilll has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
Jackneillll has joined #nixos
bkchr has quit [(Ping timeout: 271 seconds)]
georges-duperon has quit [(Ping timeout: 260 seconds)]
<MichaelRaskin>
By the way, if you have looked in the manual and haven't found the description of what Nix is about, it was probably the NixOS manual, as opposed to the Nix language and package manager manual (there is also NixPkgs package collection manual)
Jackneill has quit [(Ping timeout: 260 seconds)]
simp__ has joined #nixos
simukis has joined #nixos
Jackneilll has quit [(Ping timeout: 260 seconds)]
Wizek_ has quit [(Ping timeout: 240 seconds)]
<LnL>
a wrapper around nixos-rebuild that builds a patched nixpkgs and calls it with -I is probably an accepable solution
orivej_ has quit [(Ping timeout: 272 seconds)]
cpennington has quit [(Remote host closed the connection)]
<acowley>
What's the approach to rust versions in nixpkgs?
sellout- has quit [(Quit: Leaving.)]
<acowley>
Or, another way, is 1.15.1 that we have as the default considered more stable than the subsequent releases?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] shlevy pushed 1 new commit to release-17.03: https://git.io/v9M3Y
<NixOS_GitHub>
nixpkgs/release-17.03 b962831 Ryan Trinkle: gi-webkit2: fix gi-javascriptcore dependency...
NixOS_GitHub has left #nixos []
<c74d>
acowley: aiui, nixpkgs means to keep the latest version from each release train (stable, beta, nightly), but its nightly is almost always behind (there are better ways to get a nightly nightly), and its stable and beta are currently behind pending someone getting rustc's new build system to work with Nix
<acowley>
c74d: I see, thanks! I think current stable is 1.17, which would make our stable release more than 3 months old.
<acowley>
But if the build system isn't cooperating, that I can sympathize with.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee pushed 1 new commit to master: https://git.io/v9M3w
<NixOS_GitHub>
nixpkgs/master dd70ff2 Robert Helgesson: svtplay-dl: 1.9.3 -> 1.9.4
NixOS_GitHub has left #nixos []
<magneticduck>
I'm interested in taking the modules of nixos related to x11 and adapting them, under a new interface and with many extensions, to usage on other linux distributions for "ricing" with nix
chakerbenhamed has joined #nixos
<magneticduck>
does this sound very hard? I'm going through the relevant modules slowly and am trying to get a sense for how I could do this
<magneticduck>
my output from nix would be a custom systemd service that fills in the normal role of startx
Jackneill has joined #nixos
<MichaelRaskin>
Except systemd really doesn't like how startx is supposed to work
<magneticduck>
x)
<magneticduck>
well I'll figure something out on that front
<MichaelRaskin>
It is relatively easy to get xorg.conf as generated by NixOS
<magneticduck>
I'm worrying more about how involved it will be to make, say, fonts work
<MichaelRaskin>
fonts.conf and fonts/conf.d are also easy
Jackneillll has quit [(Ping timeout: 260 seconds)]
<MichaelRaskin>
Well, I currently run something which does not have systemd running, uses only NixPkgs packages, NixOS-generated xorg.conf and fonts.conf and does support a lot of Unicode in the terminal window I currently use for IRC
<magneticduck>
I'll probably forget about systemd for now
<MichaelRaskin>
Well, you probably can just rip out the necessary systemd modules and run them as-is
<magneticduck>
uh, with systemd?
ertesx has joined #nixos
<MichaelRaskin>
Yes
<MichaelRaskin>
Start a display manager in exactly the same way NixOS does it, etc
ertes has quit [(Ping timeout: 240 seconds)]
ertesx is now known as ertes
<magneticduck>
so what does nix produce in this scenario? a host of systemd service configurations for the user to load into the appropriate directories?
georges-duperon has joined #nixos
<MichaelRaskin>
Yes — and as long as these service files exist, Nix also maintains all the necessary support stuff in the beckground
<MichaelRaskin>
I guess some things like fonts.conf will need to go to /etc, though
<magneticduck>
would it not be possible to just run Xorg with config directories in the store specified via program arguments?
<MichaelRaskin>
5B
<MichaelRaskin>
Well, if you don't have systemd, it is possible
<avn>
MichaelRaskin: may be time to add some indirection between systemd and nixos? ;)
<magneticduck>
it's not possible if I have systemd?
<avn>
MichaelRaskin: btw, I have wine update pending, can you review please? ;)
<MichaelRaskin>
If you use systemd, you need to mess with systemd unit files, and probably with display manager
<MichaelRaskin>
not that hard
simukis_ has joined #nixos
<MichaelRaskin>
avn: well, for my needs it is enough to have easy export of systemd units as shell scripts for starting services (NixOS does have that)
MarcWeber has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 3 new commits to master: https://git.io/v9McC
<NixOS_GitHub>
nixpkgs/master 1ce951e Alexander V. Nikolaev: wineUnstable: 2.6 -> 2.7...
<NixOS_GitHub>
nixpkgs/master f3c1965 Alexander V. Nikolaev: winetricks: 20170316 -> 20170327
<NixOS_GitHub>
nixpkgs/master 42bf19c Michael Raskin: Merge pull request #25629 from avnik/wine-update...
NixOS_GitHub has left #nixos []
<magneticduck>
MichaelRaskin: what prevents me from taking whatever systemd-less standalone X startup script and transcribing it verbatim as a systemd service?
<avn>
I am feel it interesting as abstract task, personally I am ok with systemd (at least as nothing more cleaner solution not coming yet)
simukis has quit [(Ping timeout: 272 seconds)]
ambro718 has joined #nixos
<avn>
MichaelRaskin: ty, I feel new update will come in mid of next week (I wait staging before update)
<ambro718>
How to find which package contains a program with some name? I don't use channels.
<MichaelRaskin>
For me, systemd makes running multiple X sessions significantly more annoying
<avn>
MichaelRaskin: I play with xrdp+xorgxrdp actively now, so feel it in full blown fun ;)
<magneticduck>
ambro718: grep :p
<ambro718>
magneticduck: how would grep possibly help, grep what?
<ambro718>
the program name might never appear in the nix expression
<avn>
Folks, what is better name for function like `fetchGitFromSshWithCustomConfig` (as well as branch name in nixpkgs.config...)
<ambro718>
bennofs1: looks nice but "nix-env -i nix-index" doesn't work ;)
nh2 has joined #nixos
derjohn_mobi has quit [(Ping timeout: 268 seconds)]
<bennofs1>
ambro718: yeah... that's due to rust packaging in nixpkgs not working very well with git dependencies and one of my deps is `hyper` master (still waiting for the release on that one)
<bennofs1>
ambro718: so I opted to keep the default.nix in the repo for now.
nevermind has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<magneticduck>
ambro718: if you have a binary in your $PATH and you want to know where it came from, find where the link points to and grep the store for the derivation name if necessary
<magneticduck>
"store" -> "nixpkgs"
<bennofs1>
oh yes, if you already have the program you want installed it's much easier
<bennofs1>
can also just find /nix/store -name "*prog*"
<magneticduck>
well that might not work if it's a fairly generic name
<ambro718>
maybe I should be more specific, does anyone know where is "kioclient5", it's some KDE stuff
roconnor_ has quit [(Ping timeout: 240 seconds)]
<bennofs>
ambro718: kde-cli-tools.out 50,496 x /nix/store/1w6yhhpn2lvjywz4x52vys9vh3gaxhi2-kde-cli-tools-5.9.4/bin/kioclient5
<gchristensen>
the test framework I built for work is about to get in the pipeline for release ... :D excited to be public about it, nervous to have the nix community see it P
<LnL>
gchristensen: cool, is that the expect thing or am I thinking of something else?
<gchristensen>
LnL: it is many things ... but it does use expect in some places
<gchristensen>
it is ~2,000 lines of nix
acowley is now known as acowley_away
Filystyn has quit [(Remote host closed the connection)]
bennofs1 has quit [(Quit: WeeChat 1.7)]
<LnL>
yeah, I think you posted a snippet of a test a while back
<gchristensen>
yeah
ryanartecona has joined #nixos
orivej has joined #nixos
nevermind has joined #nixos
<sphalerite>
philipp[m]: Even in nix-shell --ppure?
<sphalerite>
--pure*
<gchristensen>
sphalerite: do you make a lot of those typos?
<sphalerite>
gchristensen: I do suspect it might be the keyboard.
<sphalerite>
I do remember reading something about issues like that.. I don't encounter it often enough to be sure that it's not my fingers
<gchristensen>
sphalerite: I have that problem too.
<sphalerite>
OH. That double dot was definitely the keyboard.
<gchristensen>
:( domenkozar do you?
<dtz>
(does everyone making such typo's have an xps15? lol :( )
<sphalerite>
yes
<sphalerite>
I believe so
<gchristensen>
I heard whispers of a bios patch that might fix it, but I don't have windows to install it.
<dtz>
(+1 here, although I think I've "trained" myself to either notice it less or type more slowly to accommodate it haha)
<dtz>
hmm, bios update fixed similar issue AFAIK for the xps13 a few years ago, haven't heard anything for this year's XPS15. runs to check the update page and changelog
<gchristensen>
let me know, and then let me know if I can install it without windows
<sphalerite>
Why can't they just make the keyboard firmware free software
<sphalerite>
I'd really like to be able to remap the F8 key to send something other than Super+P
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<LnL>
:/
<sphalerite>
A bug that prevents you from searching for it? It's like antibiotic-resistant bacteria!
<sphalerite>
They're evolving through natural selection D:
<gchristensen>
(I _mostly_ type with an external keyboard, so I'm not crippled by it too much)
<dtz>
lmao sphalerite
<dtz>
:/
<sphalerite>
I type almost exclusively on the laptop keyboard so it's more of a problem for me. Luckily it doesn't occur very often, but still
justbeingglad has joined #nixos
<sphalerite>
Why can't they just free the BIOS and let someone else fix it :(
Itkovian has joined #nixos
chakerbenhamed has quit [(Ping timeout: 240 seconds)]
hiratara has quit [(Ping timeout: 245 seconds)]
matthewbauer has quit [(Ping timeout: 240 seconds)]
<dtz>
at this point I'm just "hoping" it's indeed a BIOS issue, so it can be fixed, instead of a more innate design failure that can't be fixed without replacing the keyboard (I'm not optimistic they'd do a mass recall unless someone big forced them to lol)
<sphalerite>
Considering that BIOS updates have affected the frequency of the issue I guess so.
hiratara has joined #nixos
justbeingglad has left #nixos []
<sphalerite>
It's rare enough for me though that it doesn't really bother me. I find the uselessness of some of the top keys more annoying
Guest71533 has quit [(Ping timeout: 240 seconds)]
guillaum2 has quit [(Ping timeout: 272 seconds)]
derjohn_mobi has joined #nixos
JagaJaga has quit [(Ping timeout: 272 seconds)]
<philipp[m]>
sphalerite: Yep
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Admasnd opened pull request #25689: Android Studio Version Bump 2.2.3 -> 2.3.1 (master...master) https://git.io/v9MEh
<dtz>
philipp: how are you observing that qt58 is on your environment?
<dtz>
philipp: (I'd like to repro/investigate but looking at 'env' with your nix expression, I don't see anything qt58-related)
<dtz>
uh, well I /can/ say that using 'nix-shell' with that creates some strange nix_qt5 directory
<dtz>
err that should be ..nix_qt5.. without the dots, lol
<dtz>
oh ffs matrix
<dtzWill>
(╯°□°)╯彡 ┻━┻ table flip
<dtzWill>
* "__nix_qt5__"
<dtzWill>
that causes an error for me when using nix-shell repeatedly, and presumably contains some... you know.. qt5/nix related contents.. so maybe if you were using a previous expression that referred to qt5.8 it got cached there?
matthewbauer has joined #nixos
<philipp[m]>
I always delete that folder.
<dtzWill>
well anyway, how are you seeing qt58? What's making you say it's in your environment? Is there something I could do to try to see the same behavior?
<dtzWill>
what i'm trying currently is: rm __nix_qt5__ -rf && nix-shell test.nix --pure --run 'env|grep "5\.8"'
<dtzWill>
and where test.nix is what you pasted previously, or sure should be :)
<avn>
dtzWill: __nix_qt5__ it was my invention, because before it was $(mktemp -d)
matthewbauer has quit [(Ping timeout: 240 seconds)]
<philipp[m]>
Why is your solution superior?
<avn>
dtzWill: It ugly, but idk how make it better, w/o propagating impurity from mkdtemp to built packages
dridus has quit [(Ping timeout: 240 seconds)]
<dtzWill>
avn: I'm not sure what problem(s) are being solved, don't mean to be critical (table-flip was not at the __nix_qt5__ but rather at my IRC client om-nom-nom'ing important characters)
<avn>
dtzWill: ahh ;)
kykim has quit [(Ping timeout: 260 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<dtzWill>
avn: hmm, okay. besides being annoyance for nix-shell, does it otherwise work pretty well? Don't think I've seen problems stemming from it outside nix-shell O:). If so, sounds good to me! Could probably kludge-fix its use for nix-shell if that was a big deal for someone anyway..
justelex_ has quit [(Ping timeout: 240 seconds)]
<avn>
dtzWill: well, it actually stuff inside setup-hooks
Itkovian has joined #nixos
<avn>
dtzWill: Not sure what is proper solution, may be dedicated derivation for each set of qt stuff
<dtzWill>
:( blargh. I see your dilemma I think. Could we "just" attempt to nuke the __nix_qt5__ directory on shell exit/cleanup? O:)
<dtzWill>
oh, we already do that in the postInstall, so it's just nix-shell that sees that directory beyond the build. Hmm.
<dtzWill>
shrug, anyway don't mean to fly-by armchair-analyze this haha O:). Just an interesting technical detail...
<avn>
dtzWill: actually I am uncover it meditating on rebuid/switch ;)
pie_ has quit [(Ping timeout: 272 seconds)]
bennofs has quit [(Ping timeout: 246 seconds)]
seanz has quit [(Quit: Leaving.)]
magneticduck has quit [(Ping timeout: 255 seconds)]
<NixOS_GitHub>
[nixpkgs] ambrop72 opened pull request #25692: kdevelop: Fix shell integration, version bump (release-17.03...kdevelop-shell-1703) https://git.io/v9Mwu
NixOS_GitHub has left #nixos []
dridus has joined #nixos
tilpner_ has joined #nixos
tilpner_ is now known as tilpner__
<tilpner__>
Hi, I just ran nixos-rebuild switch and broke all my previous generations too. I'm currently on a NixOS live system and running nixos-install with added paths outputs https://ptpb.pw/Pv0-
<tilpner__>
Any ideas on how to fix this? I don't know why it wouldn't have hostname... :/
digitus has quit [(Quit: digitus)]
sellout- has quit [(Quit: Leaving.)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]