berce has quit [(Read error: Connection reset by peer)]
filterfish has joined #nixos
ryanartecona has joined #nixos
filterfish has quit [(Remote host closed the connection)]
berce has joined #nixos
berce has quit [(Read error: Connection reset by peer)]
jensens has quit [(Ping timeout: 246 seconds)]
berce has joined #nixos
berce has quit [(Read error: Connection reset by peer)]
<NixOS_GitHub>
[nixpkgs] danbst opened pull request #21220: pg_similarity: init at 1.0 (master...pg_simil) https://git.io/v173i
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
c0bw3b has left #nixos []
berce has joined #nixos
sigmundv has joined #nixos
mizu_no_oto has joined #nixos
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
berce has quit [(Read error: Connection reset by peer)]
markus1199 has joined #nixos
berce has joined #nixos
Fare has quit [(Ping timeout: 258 seconds)]
markus1189 has quit [(Ping timeout: 250 seconds)]
berce has quit [(Read error: Connection reset by peer)]
erasmas has quit [(Quit: leaving)]
berce has joined #nixos
berce has quit [(Read error: Connection reset by peer)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] rardiol opened pull request #21221: Gplates (master...gplates) https://git.io/v17Gm
berce has joined #nixos
iyzsong has joined #nixos
jmiven has quit [(Quit: co'o)]
ryanartecona has quit [(Quit: ryanartecona)]
redmq has quit [(Ping timeout: 258 seconds)]
digitus has quit [(Quit: digitus)]
jmiven has joined #nixos
berce has quit [(Read error: Connection reset by peer)]
berce has joined #nixos
berce has quit [(Read error: Connection reset by peer)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
mudri` has joined #nixos
mudri has quit [(Ping timeout: 260 seconds)]
berce has joined #nixos
berce has quit [(Read error: Connection reset by peer)]
jazzencat has joined #nixos
brh_ has joined #nixos
berce has joined #nixos
<jazzencat>
https://lut.im/gallery#AFFnUw6JnV/CjJGadtLGuKut1UM.jpg,ndZ0Lf171W/kuli5gjjUTCXtV4w.jpg These errors show up any time I try to shutdown or reboot my computer and force me to do a hard-reset on the machine to get it turned off or rebooting.
systemfault has quit [(Quit: Bye!)]
herzmeister has quit [(Quit: Leaving)]
herzmeister has joined #nixos
Lowl3v3l_ has quit [(Ping timeout: 258 seconds)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
<brh_>
How do I pass an argument to stdenv when running `nix-build`? I'm trying to build GNU Hello out of a default.nix in a directory to familiarize myself with the process
<brh_>
Do I have to fork and clone the entire nixpkgs repo to build a package against it, or is there a way to pass the default channel as an arg?
<jazzencat>
Hmm, I wonder if my HD is corrupted or something because all of a sudden Enlightenment is screwed up, always starts in offline mode even if I change the mode it switches back, can't write settings files. And then there's all those error messages from the pictures above.
[0x4A6F] has quit [(Ping timeout: 252 seconds)]
mudri` has quit [(Quit: WeeChat 1.6)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
[0x4A6F] has joined #nixos
filterfish has joined #nixos
<brh_>
hmm I probably want nix-shell, not nix-build, to build my own library
warbo has quit [(Ping timeout: 248 seconds)]
<dash>
brh_: the typical incantation is: "with (import <nixpkgs> ());"
<dash>
oops I mean "with (import <nixpkgs> {});"
hotfuzz has quit [(Read error: Connection reset by peer)]
hotfuzz has joined #nixos
SovereignBleak has quit [(Quit: Connection closed for inactivity)]
<brh_>
Hmm, so something like `nix-build "with (import <nixpkgs {});" default.nix -A hello` ?
<brh_>
I'm getting a new set of errors this way, at least :D
<brh_>
Ohh, that should go into the default.nix file you mean?
AllanEspinosa has joined #nixos
<AtnNn>
brh_: you can create a release.nix file that does `with (import <nixpkgs> {}); { build = callPackage ./default.nix {}; }' and then run `nix-build release.nix'
<brh_>
Nice, that worked like a charm!
eacameron has joined #nixos
<jazzencat>
*Sigh* And now even wired connections aren't working in NixOS
sigmundv_ has joined #nixos
sigmundv has quit [(Ping timeout: 260 seconds)]
jensens has joined #nixos
thc202 has quit [(Quit: thc202)]
mizu_no_oto has joined #nixos
jazzencat has quit [(Quit: Leaving)]
ixxie has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
sigmundv_ has quit [(Quit: Leaving)]
bennofs has quit [(Quit: WeeChat 1.6)]
M-Rym has joined #nixos
jensens has quit [(Ping timeout: 260 seconds)]
MagBo has quit [(Ping timeout: 265 seconds)]
MagBo has joined #nixos
TimePath[m] is now known as TimePath`
mizu_no_oto has joined #nixos
ixxie has quit [(Ping timeout: 245 seconds)]
TimePath` has quit [(Quit: Bridged client killed)]
mbrgm has quit [(Ping timeout: 258 seconds)]
mbrgm has joined #nixos
derjohn_mob has quit [(Read error: Connection reset by peer)]
derjohn_mobi has joined #nixos
Fare has joined #nixos
sdothum has quit [(Quit: ZNC - 1.6.0 - http://znc.in)]
RchrdB has quit [(Ping timeout: 264 seconds)]
ben_____ has joined #nixos
xwvvvvwx has joined #nixos
flo[m] has left #nixos ["User left"]
<ben_____>
hi
Shoue has quit [(Ping timeout: 264 seconds)]
ben_____ has quit [(Quit: Page closed)]
eacameron has quit [(Remote host closed the connection)]
<angerman>
How do I create a null derivation, that just ensures all built inputs are build?
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
eacameron has joined #nixos
PragCyph1 has joined #nixos
PragCyphr has quit [(Ping timeout: 250 seconds)]
AveryC has quit [(Ping timeout: 250 seconds)]
herzmeister has quit [(Quit: Leaving)]
herzmeister has joined #nixos
eacameron has quit [(Remote host closed the connection)]
deepwater has quit [(Remote host closed the connection)]
slack1256 has joined #nixos
xwvvvvwx has quit [(Ping timeout: 258 seconds)]
eacameron has joined #nixos
hexagoxel has quit [(Ping timeout: 240 seconds)]
AveryC has joined #nixos
<NixOS_GitHub>
[nixpkgs] bhipple opened pull request #21223: Fix description metadata in cpp-ethereum (master...master) https://git.io/v174d
hexagoxel has joined #nixos
mguentner has quit [(Quit: WeeChat 1.6)]
mguentner has joined #nixos
acowley_away is now known as acowley
Fare has quit [(Remote host closed the connection)]
<Rotaerk>
hmm is there some way to run cabal2nix using cabal:// style input ... from within nix?
<Rotaerk>
it wants to fetch from hackage, but that requires you to have a ~/.cabal directory, but it's trying to create that in /homeless-shelter
<Rotaerk>
the script really should do a cabal update before running the cabal2nix
<Rotaerk>
ah... --hackage-db might resolve that
rardiol has quit [(Ping timeout: 250 seconds)]
<Fare>
every so many days, the X server spontaneously dies. That wasn't happening when I was using Ubuntu.
<Fare>
is it KDE or Chromium causing the server to run out of memory? I'm not sure how to properly diagnose the issue.
imode has joined #nixos
Fare has quit [(Ping timeout: 268 seconds)]
AveryC has quit [(Ping timeout: 258 seconds)]
ryanartecona has joined #nixos
<Ralith>
what do you mean by "dies"?
<Ralith>
neither KDE nor chromium should be capable of causing the X server to die short of gross malfunction
<dash>
does "oom killer" count as gross malfunction? :)
<Ralith>
yes
<imode>
ah, the oom killer... :P
Wizek_ has quit [(Ping timeout: 260 seconds)]
Wizek has quit [(Ping timeout: 250 seconds)]
Ethin has joined #nixos
<Ethin>
Guys, I have a small question regarding NixOS packages and rebuilding the net installation ISO.
slack1256 has quit [(Remote host closed the connection)]
<Ethin>
Have you guys heard of Speakup?
<imode>
so, if I have something like nano that I want to configure.. I have to specify all of that through the nixos config file, right.
<Rotaerk>
imode, no
<Rotaerk>
as I understand it, the nixos config is for system-wide configuration and setup of packages and such; you can always have user-specific stuff not managed by nix mechanisms in your home
<Rotaerk>
you can also have user-specific packages setup using nix-env
<imode>
I see.
<angerman>
acowley, I didn't know how deep this rabbit hole was :-/
<imode>
so I found out how to configure nano system-wide.
<imode>
my other question: who or what specifies the options for a specific program.
<imode>
and if I'm developing for nix/nixos, how would I allow my package to be used with nix.
<imode>
because obviously programs.nano.nanorc has to be defined somewhere..
<osa1>
OK, sorry, I had actually read that :) haven't got my morning coffee yet.
imode has quit [(Ping timeout: 245 seconds)]
<eacameron>
osa1: TBH that totally threw me off at first too. The word inherit doesn't seem like the best choice...
imode has joined #nixos
<osa1>
yeah, I'd expect it to bring keys into scope, e.g. `inherit abc` would do `a = abc.a; b = abc.b; ...`
<eacameron>
osa1: Yes...that's what "with" does...except it doesn't expand into a set like that.
<eacameron>
osa1: But you're right. I think some OOPers got a hold of nix a little too early and inherit made its way in...
<eacameron>
;)
<osa1>
so if I have a derivation in scope and I do something like: mkDerivation { buildPhase = '' ... "${derivation}" ... '' } what happens in that ${derivation} part?
<osa1>
haha yeah
<eacameron>
osa1: Is that pointing to some *other* derivation?
<osa1>
yes
<osa1>
the variable derivation is pointing to another derivation, it's already in scope (bound by a let)
<eacameron>
osa1: Ah yah...this is cool. It builds it, installs it, and that string resolves to its path.
<osa1>
eacameron: instead of that can I run mkDerivation on `derivation` and then splice the return value in?
<eacameron>
osa1: No. mkDerivation never calls a derivation. It creates one.
<eacameron>
If you need to fully resolve a derivation that doesn't have all its arguments passed in, use callPackage
<eacameron>
osa1: If you're calling a Haskell package (or some other sub-ecosystem), you'd use the "callPackage" for that subsystem; like "(import <nixpkgs> {}).haskellPackages.callPackage"
<osa1>
hmm
<eacameron>
osa1: Usually you see a file like this: "{ lib, otherthing }: mkDerivation "my-package" {blah}"
<eacameron>
That's actually a function.
<eacameron>
To get the derivation you need to call it.
<eacameron>
that's what callPackage does.
<osa1>
what does it pass for the arguments?
<osa1>
so when I run `nix-build -A target` it expects target to be a derivation, and then it calls a builtin function to run it, right? what's the builtin functions if I want to try it in the REPL?
<eacameron>
osa1: So "running it" in nix is equivalent to forcing its evaluation
<eacameron>
Which is done by using it somewhere.
<osa1>
right, sorry, I mean running the build rather than the expression
<eacameron>
osa1: That's done by nix-instantiate if you really want to get into the nitty-gritty
<eacameron>
osa1: However, you can't (or shouldn't) be doing anything like that in your nix code
<eacameron>
Simply referring to it will guarantee it's built
<osa1>
I won't do it in my nix files, I'm just experimenting in the REPL and I got a derivation that I want to build.
<osa1>
I was wondering what builtins do I need to call for that
<eacameron>
osa1: Hmmm...builtins.deepSeq?
<eacameron>
osa1: Or maybe just "${package}"
<eacameron>
which will force it to resolve to a path. (but may not build it)
AllanEspinosa has quit [(Ping timeout: 250 seconds)]
<osa1>
eacameron: OK.. what about .drv files? is there an easy way to build those?
<osa1>
either in repl or with a program
<eacameron>
osa1: I've always built with nix-build or nix-shell so I'm not sure. nix-instantiate is the low-level workhorse though that does a lot of this stuff. Maybe check out the man pages for it.
<osa1>
I think nix-env -i file_path
<eacameron>
osa1: That'll install it into your profile yah
<eacameron>
osa1: Heh...pretty funny that you wanted nix-env -i all this time. :P
<eacameron>
osa1: Post what you find. I'm on the other side of the world so I'm heading to bed. ;) TTYL
<osa1>
alright, good night
eacameron has quit [(Remote host closed the connection)]
FRidh has joined #nixos
FRidh has quit [(Remote host closed the connection)]
acowley is now known as acowley_away
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 258 seconds)]
jgertm_ has joined #nixos
k2s has joined #nixos
marusich has quit [(Quit: Leaving)]
jgertm has quit [(Remote host closed the connection)]
kampfschlaefer has joined #nixos
c0bw3b has joined #nixos
phanimah1sh has joined #nixos
phanimahesh has quit [(Ping timeout: 258 seconds)]
Lowl3v3l has joined #nixos
<toogley>
hello. i have "environment.systemPackages = with pkgs; [texlive-combined-full];" in my configuration.nix - but when i rebuild my system, i receive this error: https://dpaste.de/gyym
<toogley>
although i can install texlive-combined-full via nix-env
<kmicu>
Do you can install it with ‘nix-env -i’ or with ‘nix-env -iA’?
<toogley>
kmicu: i tried only the first one. what would be the comand of the second style? i know its different.
<kmicu>
You can check with ‘nix-env -qaP 'tex.*' -f '<nixpkgs>' --description’. The first column has attribute paths and this is what wants ‘nix-env -iA’ and systemPackages and the second column lists ‘names’.
<kmicu>
Prefer attribute paths and ‘nix-env -iA …’, b’c it’s faster and takes less resources.
<toogley>
kmicu: ah, "texlive.combined.scheme-full" seems to work. thanks. :)
moet has joined #nixos
k2s has quit [(Ping timeout: 264 seconds)]
moet has quit [(Quit: leaving)]
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 258 seconds)]
zagy has joined #nixos
phanimah1sh has quit [(Ping timeout: 250 seconds)]
jgertm_ has quit [(Ping timeout: 248 seconds)]
phanimahesh has joined #nixos
rmrfroot has joined #nixos
eacameron has joined #nixos
phanimah1sh has joined #nixos
eacameron has quit [(Ping timeout: 245 seconds)]
rmrfroot has quit [(Remote host closed the connection)]
phanimahesh has quit [(Ping timeout: 245 seconds)]
xwvvvvwx has quit [(Ping timeout: 240 seconds)]
zagy has quit [(Quit: Leaving.)]
<toogley>
do i have to set some option to automatically also install manpages of e.g. xfce4-terminal?
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 258 seconds)]
eacameron has joined #nixos
latk has joined #nixos
<kmicu>
toogley: I do not recall if you need to set anything on NixOS; ‘nix-shell -p xfce.terminal --command 'man xfce4-terminal'’ works here.
zagy has joined #nixos
eacameron has quit [(Ping timeout: 252 seconds)]
<kmicu>
(There are periodical problems with man pages so *maybe* you are on an affected Nixpkgs revision.)
wangoe has joined #nixos
osa1_ has joined #nixos
<toogley>
kmicu: hm, that works also here - but "man xfce4-terminal" doesn't
ambro718 has joined #nixos
<kmicu>
How did you install xfce4-terminal — with nix-env or via systemPackages?
eacameron has joined #nixos
roconnor has quit [(Ping timeout: 250 seconds)]
osa1 has quit [(Ping timeout: 258 seconds)]
zagy has quit [(Quit: Leaving.)]
zagy has joined #nixos
<toogley>
kmicu: nix-env
eacameron has quit [(Ping timeout: 264 seconds)]
zraexy has joined #nixos
osa1_ has quit [(Ping timeout: 252 seconds)]
<kmicu>
toogley: what’s the output of ‘ls -al $(which man)’?
<toogley>
kmicu: ah, via systemPackages also installs the manpages.
<kmicu>
Also check if ‘~/.nix-profile/share/man/man1/xfce4-terminal.1.gz’ exists.
zraexy has quit [(Ping timeout: 252 seconds)]
<toogley>
kmicu: thanks :)
<kmicu>
(When I install via nix-env then xfce4-terminal’s manpage is available.)
zagy has quit [(Quit: Leaving.)]
zagy has joined #nixos
zagy has quit [(Quit: Leaving.)]
<angerman>
I'm a bit confused, if I have a derivation that depends on something that's not available on my system. And the derivation itself also is marked as not buildable on the current system. Can I somehow filter a list of derivation, such that those that aren't buildable are excluded?
<NixOS_GitHub>
[nixpkgs] bjornfor pushed 1 new commit to master: https://git.io/v17oR
<NixOS_GitHub>
nixpkgs/master 3af715a Bjørn Forsman: Revert "fix 2 xml errors in the description of boot.loader.grub.efiInstallAsRemovable"...
<berce>
I 'm crosscompiling kenel 4.8 for cuboxi and trying to solve an error similar to https://github.com/NixOS/nixpkgs/pull/13405: "Error in reading or end of file" because of an invalid answer for the max number of CPUs
<berce>
Is there an easy way to overwrite the answer in my cross.nix file?
eacameron has joined #nixos
<berce>
now it seems to be reading 384 from /pkgs/os-specific/linux/kernel/common-config.nix
eacameron has quit [(Ping timeout: 250 seconds)]
mudri has joined #nixos
imode has quit [(Ping timeout: 246 seconds)]
<sphalerite>
If I want to try upgrading to unstable but be able to roll back, all I need to do is change the nixos channel and do a rebuild, right? Then if things go wrong I can boot the older generation and revert the channel changes. Are there any caveats to this?
<berce>
sphalerite: as long as the nix version stays compatible, yes (not based on experience, but read it somewhere in the manual)
<sphalerite>
Also, is there a way to tag a system generation or something so that it will never get removed by nix-store --gc -d unless its number is specified?
<berce>
yes, but I don't remember details of how to do it. Again my source is the manual.
<sphalerite>
Also, is there a particular reason that the system profile has to be locked for --list-generations? It would be nice to be able to run it as an unprivileged user.
<sphalerite>
Upgrading to unstable... Here goes!
randalltux has joined #nixos
zagy has quit [(Quit: Leaving.)]
<sphalerite>
Well, it hasn't broken anything horribly. That's nice.
<berce>
Cross-compiling kernel failed because of missing lzop. Should it be added to build dependencies?
Xackle has joined #nixos
<Xackle>
hi all!
<Xackle>
i was wondering if anyone here has a nixexpr for emacs from git
<Xackle>
i wanted to use the latest from git and change the SHA it refers to myself, but the default.nix in nixpkgs uses a tarball with some things (info page generation) already completed
<Xackle>
when i adjust the nixexpr to point to a specific shasum in git, the info page installation fails as it's trying to install to /usr/local, which obviously won't ever work
<Xackle>
the premade default.nix doesn't adjust that for me because Emacs tar balls have a few less steps than compiling from git
<Xackle>
all i need is someone with a default.nix from someone who uses emacs from git :)
<LnL>
FRidh: the only thing I see there is sqlite, that's a dependency of python
<clever>
Mic92: 3 <literal> pairs, then a </para> that never began
<gchristensen>
FRidh: as I understand it, the issue is pytest has a test where it chmods a directory to 0000 and expects to not be able to write in there. If it can write, the test fails. with user namespacing, it can write
<FRidh>
gchristensen: it does build locally
<gchristensen>
hydra is running unstable nix
<FRidh>
oh
<gchristensen>
which turns on user namespacing
<FRidh>
whch has been updated some days ago, right?
<gchristensen>
the reason this test started failing out of the blue is because the nix daemon is, technically, an impure input
<gchristensen>
so it didn't start failing as soon as nix was changed, but the next time a big rebuild came around
<LnL>
it's not ideal, but better then all those broken packages
civodul has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
<gchristensen>
to make things worse, nixUnstable had a schema change, so hydra can't just be reset to nix-stable, requiring a revert on github.com/nixos/nix itself
<gchristensen>
(again, this is all just "as I understand it ...")
<LnL>
oh
<clever>
gchristensen: ah, ive had to manualy downgrade nix.db before once
<gchristensen>
yeah, that could be an option, too
<clever>
my laptop was running a copy of nix from july of 2015, and i had to upgrade it with nix-store -r
<clever>
but i grabbed the latest build of nix master by mistake
<FRidh>
I can disable this test
<LnL>
FRidh: I was thinking the same thing
<FRidh>
does the failure occur on any system running nixUnstable?
<gchristensen>
I think so, FRidh
<FRidh>
I was thinking of switching to nixUnstable so I might test it then
<gchristensen>
heh ...
<FRidh>
fetchTarball with has :)
<FRidh>
hash
<LnL>
FRidh: with nix.package probably
<gchristensen>
FWIW: who knows what _else_ is broken
ryanartecona has joined #nixos
<gchristensen>
the test failures from before were from this issue, this pytest is from this issue, I don't think there is good insight in to what else is damaged
<gchristensen>
FRidh, LnL: what if we disabled the tests on staging and let hydra think on that a while?
filterfish has joined #nixos
<LnL>
not much point doing it on staging since it's "broken" at the moment
<gchristensen>
broken by this change? or something else?
<FRidh>
I was planning to update pytest to 3.0.5, but had to disable tests then because of a circular dependency with hypothesis
<FRidh>
might as well do that update now
<gchristensen>
what pytest do we have on 16.09?
* gchristensen
is very frustrated by this change in nix :(
<FRidh>
2.7 I think
<gchristensen>
aye ... probably shouldn't do that upgrade on 16.09 then.
<FRidh>
but yes, curious then whether other packages that use pytest work
<FRidh>
no, that definitely not
<FRidh>
does any of you have a hydra running nixUnstable?
<gchristensen>
and it isn't just pytest, user namespacing has broken posix I think
<FRidh>
oh
ryanartecona has quit [(Ping timeout: 264 seconds)]
<LnL>
sweet my first box with parts just arrived :D
<gchristensen>
FRidh: this is what user namespacing is allowing, which I think breaks posix: mkdir test; chmod 0000 test; touch test/foo
mw has joined #nixos
<clever>
Mic92: ah, i see the problem, every nixos option description is enclosed in a <para> pair
<clever>
Mic92: so that </para> is to match up with stuff outside of the string
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/v17ym
<NixOS_GitHub>
nixpkgs/master 45c1c50 Frederik Rietdijk: pythonPackages.pytest_29: disable tests temporarily
<clever>
Mic92: and it probably doesnt allow nesting a para in a para
acertain has quit [(Ping timeout: 244 seconds)]
<FRidh>
hydra queue is as good as empty so hopefully it picks it up fast
<gchristensen>
FRidh: I triggered it to evaluate :)
rardiol has quit [(Remote host closed the connection)]
<FRidh>
gchristensen: ahh you have superpowers :)
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<FRidh>
let's hope it is only pytest
<gchristensen>
it could be :) aszlig fixed (some of?) qemu's issues with it
rardiol has joined #nixos
<Mic92>
gchristensen: it was not revaluated, I think
<gchristensen>
"Last checked: 2016-12-17 15:13:39" I think this means it was
<gchristensen>
but the evaluation is actually still going
<NixOS_GitHub>
[nixpkgs] Mic92 closed pull request #20482: networkd: allow to supply own unit files (master...networkd) https://git.io/vX9mG
ryanartecona has joined #nixos
<gchristensen>
FRidh, Mic92 there we are -- running
<FRidh>
ronny: are you aware of the issue we're having with pytest?
<gchristensen>
I mean, really, we're having the issue with namespacing and are working around it in pytest
<FRidh>
yes, ok
<FRidh>
I don't see any issue on the tracker?
<NixOS_GitHub>
[nixpkgs] offlinehacker pushed 2 new commits to master: https://git.io/v17yA
<NixOS_GitHub>
nixpkgs/master 7ac33a2 Jaka Hudoklin: pachyderm: init at 1.3.0
<mahe2>
Hi, I'm trying to nix-build a haskell stack project. It works fine, but when building with stacks nix support enabled I get a strange error telling me "Executable named nix-shell not found on path". Any ideas?
Itkovian has joined #nixos
<mahe2>
I use pkgs.haskell.lib.buildStackProject for building it
<gchristensen>
FRidh: hrm. doesn't work. trying to debug...
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v17Sp
<NixOS_GitHub>
nixpkgs/master 987aac7 Peter Hoeg: /etc/hosts and /etc/nsswitch.conf cleanups...
scadu78 has quit [(Remote host closed the connection)]
<gchristensen>
fpletz: git remote add grahamc git@github.com:grahamc/nixpkgs.git; git fetch grahamc refs/notes/security:refs/notes/security; git checkout origin/release-16.09; git log --notes=security this one should do the trick (the difference is in the fetch.)
<gchristensen>
fpletz: right, and the notes can be updated later without changing history: `git checkout refs/notes/security` shows you how that ref works
<fpletz>
oh, just commit hash files
<fpletz>
that's neat
<gchristensen>
yeah :)
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<gchristensen>
fpletz: it has some nice attributes about it: 1. you can update notes on commits arbitrarily old, meaning we don't need to capture all the meta-data at commit time. 2. it is simple. 3. git's tools already support it. 4. it comes with all the same guarantees git has, since it is just another git tree. 5. you can sign the commits :)
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v179Q
<joepie91>
heh. seeing the tags appearing before my eyes :)
<joepie91>
seriously though, this is greatly irritating when trying to install NixOS over VNC on a VM...
<joepie91>
can't easily "disconnect the ethernet card" either
<joepie91>
the sysctl thing seems to at least disable it
<joepie91>
on runtime
<gchristensen>
joepie91: I set it as a goal for 17.03 (hopefully sooner) and labeled it as a blocker, it is very very bad UX
<joepie91>
yeah, no kidding :D
<gchristensen>
fpletz: none at all, I figured we can start anywhere and change them later if we add some format
<joepie91>
gchristensen: any chance the current release ISO might get updated to fix this?
<joepie91>
or is it set in stone?
scadu78 has quit [(Remote host closed the connection)]
<gchristensen>
joepie91: if it gets fixed in 16.09 the ISOs will get updated automatically :) the install ISOs are last updated 8 days ago
scadu78 has joined #nixos
<joepie91>
gchristensen: oh, I see. I thought the ISOs were generated as a one-off
phanimahesh has joined #nixos
<fpletz>
gchristensen: we'll probably just grep for CVEs anyway, right? :)
<joepie91>
gchristensen: are they built n Hydra also?
<joepie91>
on*
<gchristensen>
joepie91: yaeh
<joepie91>
neat :)
<gchristensen>
joepie91: I agree :D
<fpletz>
gchristensen: do you have a line for gitconfig to fetch and push that ref?
<joepie91>
gchristensen: currently beta-testing a KVM deployment for a VPS provider, and they were somewhat confused by the lack of a "netinstall" ISO for NixOS :P
<joepie91>
(I explained to them that effectively every NixOS ISO is a netinstall)
<joepie91>
(with some other info..)
<gchristensen>
fpletz: no, but I do have a little tool I've been working on, to make reviewing commits really nice
<gchristensen>
let me try and package it up to show you
phanimah1sh has quit [(Ping timeout: 248 seconds)]
<rardiol>
I try to run "du -sh /nix/store/* | sort -h", but it fails because there's more than the system limit of 2MB of things in /nix/store/*. Does anyone know an equivalent command?
<kmicu>
Xackle: if you are familiar with ‘packageOverrides’ and ‘overrideDerivation’ (info on http://nixos.org/nixpkgs/manual/#sec-pkg-overrideDerivation ) then you should have no problem with incorporating following ad–hoc incantation, which gives you Emacs from master, into your ~/.nixpkgs/config.nix or configuration.nix: ‘nix-shell --pure -p 'lib.overrideDerivation emacs25 (old: { name =
<rardiol>
just looks like it will take a long time to scan everything
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v17QL
<NixOS_GitHub>
nixpkgs/master fa80bf7 ikervagyok: packagekit: add 'enableNixBackend' as an option (#21157)...
<Xackle>
kmicu: i made a clone of nixpkgs, and added it to the include path using the -I switch
<Xackle>
problem is the `info` install fails
<Xackle>
i made a more detialed reddit posted
<gchristensen>
fpletz: clone nixos/security, check out the `notate` branch, and run ./notate.sh. note if you clone security to ~/projects/security, it is going to look for nixpkgs at ~/projects/nixpkgs
<Xackle>
updated a few hours ago, unstable was last updated on the 7th i believe
<Xackle>
would be on master but i didn't want to compile go on this thing
Shoue has quit [(Ping timeout: 246 seconds)]
<kmicu>
Xackle: Then you should be ok with that ‘nix-shell --pure -p 'lib.overrideDerivation (emacs25.override {srcRepo = true;}) (old: { name = "emacs-unstable-26.0.50.1"; src = fetchgit { url = git://git.savannah.gnu.org/emacs.git; sha256 = "0lgw3vh9ww1kncwq68xxd92kg80ys20g5n3nifap3dy1k7ncg1lp";}; patches = []; })'’. srcRepo already handles calling autogen.sh in preConfigure phase to generate a patched
<kmicu>
installation paths.
<MichaelRaskin>
joepie91: 1) thanks, interesting 2) I won't use it anyway, I usually don't get into the area where saving _on xargs invocations_ makes sense
<joepie91>
MichaelRaskin: well it wouldn't work here :P
<joepie91>
xargs I mean
<joepie91>
you'd lose the total thing
<MichaelRaskin>
Ah right, forgot about that
<MichaelRaskin>
But it looked like the sorting part counted the most
jensens has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
seanz has quit [(Quit: Leaving.)]
reinzelmann has quit [(Quit: Leaving)]
Shoue has joined #nixos
acertain has joined #nixos
<NixOS_GitHub>
[nixpkgs] devhell opened pull request #21240: libmesode: init at 0.9.1 (master...libmesode) https://git.io/v175c
<stepcut>
I'm trying to add support for GHC on ARM. The first step is to create the ghc801Binary target that uses the generic binary distribution supplied from GHC HQ. However, I am running into the exact same error the Fuuzetsu did here, http://lists.science.uu.nl/pipermail/nix-dev/2014-May/013231.html
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v17dX
<NixOS_GitHub>
nixpkgs/master dda4629 devhell: libmesode: init at 0.9.1...
eacameron has quit [(Ping timeout: 258 seconds)]
systemfault has joined #nixos
jgertm has joined #nixos
<rardiol>
how do I find out why I have 5 different ghc in /nix/store?
imode has joined #nixos
<rardiol>
and 15 gcc?
<MichaelRaskin>
Some of them may be old copies built say against old glibc
<MichaelRaskin>
The idea of Nix is that only explicit GC removes anything from store
<MichaelRaskin>
And then you need to explicitly do one more switch to remove old generattions of whatever you have explicitly built
<alphor>
anyone running nix (just the pkg manager) on a VPS? what's the minimum amount of RAM necessary to build packages (like ZNC) from a recipe?
<simpson>
alphor: IME about 1GiB minimum, 2GiB for more comfort.
nh2_ has quit [(Ping timeout: 240 seconds)]
<rardiol>
MichaelRaskin: ok, I just ran nix-collect-garbage. I wanted to see what is keeping them in, like the opposite nix-store -q --tree, showing what depends on something
jbgi has quit [(Quit: jbgi)]
<alphor>
simpson: you're not using Boehm GC, are you?
<simpson>
alphor: I don't know how I would check. I just know that 512MiB is not big enough for x86 VPS when trying to do nix-env.
<MichaelRaskin>
nix-store -q --referrers-closure
<alphor>
simpson: it has to be configured at compile time, so I'm guessing not. Thanks for the info!
<MichaelRaskin>
I guess I can run a LiveCD in a VM and check whether ZNC build works OK
<MichaelRaskin>
What is the memory size you care about?
<alphor>
MichaelRaskin: 512MiB
<rardiol>
MichaelRaskin: thanks
<alphor>
that would be great, if you can, but it's not a big deal if you don't want to.
<alphor>
MichaelRaskin: ^
<MichaelRaskin>
Turned out grabbing a fresh LiveCD is like 1.5 minutes
<MichaelRaskin>
Fast WiFi is nice…
<kmicu>
alphor: try with ‘GC_INITIAL_HEAP_SIZE=128k nix…’ it should stay below ~256MB.
<MichaelRaskin>
OK, 512 MiB with LiveCD at x86_64 arch with RAM overlays — Nix runs out of RAM
<MichaelRaskin>
Initial heap size doesn't help much
<kmicu>
What command do you test?
<MichaelRaskin>
nix-env -i znc
<kmicu>
alphor: ah, and never use ‘nix-env -i’, always ‘nix-env -iA’ :)
<MichaelRaskin>
I wanted a truly clean test
<MichaelRaskin>
On my real boxes I just use nix-build
ixxie has joined #nixos
<alphor>
MichaelRaskin: thanks for the test, I appreciate it a lot. 1 gig vps it is.
<MichaelRaskin>
Well, -iA _does_ work better
<kmicu>
Evaluating the whole YUGE Nixpkgs set is not a *practical* test for building a one recipe.
<alphor>
what about just nix-env -q
<alphor>
sorry, the one that queries for a package list
<kmicu>
(We should introduce concepts of ‘Nixpkgs memory requirements’ vs ‘Nix memory requirements’ to avoid confusion.)
<MichaelRaskin>
That's true…
<MichaelRaskin>
Let me try -iA without binary caches…
<MichaelRaskin>
OK, alphor: OK, so I tried to fetch the ZNC deps and then build locally ZNC at 512 MiB LiveCD VM (i.e. no HDD to store openssl there). Seems to work fine, will report when it finishes
<alphor>
MichaelRaskin: okay, great. Thanks.
<MichaelRaskin>
but a single nix-env -i without -A does start OOM
<MichaelRaskin>
ZNC seems to complain about running as root just fine
<MichaelRaskin>
(after the build)
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v17Fj
<Rotaerk>
peti, does --hackage-db for cabal2nix work?
<arianvp2>
Sooo
<arianvp2>
How is that interactive nix language tutorial called again?
<arianvp2>
I have googled all day and it is impossible to find for some reason
<peti>
Rotaerk: cabal2nix --help suggests it does. :-)
<Rotaerk>
if I run "cabal2nix cabal://mtl", it works, but if I do "cabal2nix --hackage-db=/home/rotaerk/blah/packages/hackage.haskell.org/00-index.tar cabal://mtl" it gives me the following error:
<Rotaerk>
so somehow it's not adding that custom field when I specify --hackage-db
<Rotaerk>
I mean, --hackage-db *does* work for some other packages, like cabal://transformers
<peti>
Rotaerk: Hmm. I'll have to investigate whether that's a bug or the unfortunate consequence of something I can't remember right now. It's been a long time since I implemented that code.
<Rotaerk>
k
<peti>
Rotaerk: Anyhow, I can re-produe the issue here, too. Not sure why it happens.
<Rotaerk>
well, it only checks for X-Cabal-File-Hash if the revision in the cabal file is > 0
pi3r has quit [(Ping timeout: 256 seconds)]
<Rotaerk>
i'm guessing you just didn't run the logic that injects the X-Cabal-File-Hash when --hackage-db is specified
<Rotaerk>
that or it *can't* be, and the code that expects it should accept its absence
<toogley>
when i type `systemctl --version`, i receive "systemd 231". but the last release of our forked systemd repo https://github.com/NixOS/systemd/releases is v224. - i don't understand that; are we currently shipping the upstream version directly?
<toogley>
i mean, it doesn't make sense that the __last__ systemd version on our nixos repository is **older** than what i receive via `systemctl --version`
ChongLi has joined #nixos
<NixOS_GitHub>
[nixpkgs] boronine opened pull request #21245: luarocks: enable Darwin (master...luarocks-darwin) https://git.io/v17j6
<berce>
When building linux-4.8 it fails with "lzop: command not found"
<berce>
How can I make sure lzop is available at build time?
danharaj has joined #nixos
<Baughn>
Figure out which package it's in. Add it to buildInputs.
<rly>
Why is OracleJDK installation not as automated as on Debian?
<rly>
Did Oracle send some kind of angry letter?
<berce>
I tried adding lsop to the first line of linux-4.8.nix: { stdenv, fetchurl, perl, buildLinux, lzop,... } @ args:
Lowl3v3l has quit [(Remote host closed the connection)]
<warbo>
hi, I've got one derivation which uses `runCommand` to write a Nix expression (using cabal2nix, FWIW) and another which imports the result
<berce>
But the error is still there
Lowl3v3l has joined #nixos
<warbo>
yet Nix seems to be *executing* the generated file as a bash script: I get "`mkDerivation,` command not found"
<Baughn>
berce: That just specifies what packages should be available in that environment.
<warbo>
any idea what might cause Nix to do this?
<Baughn>
berce: You still need to actually add it to buildInputs somewhere.
<berce>
Where is 'somewhere' :-)
<rly>
berce: the only thing that thing does is that a $lzop environment variable is present in the build environment, IIRC.
<warbo>
(I've seen it a few times, when saving a file as "$out", but don't recall it happening when "$out" is a directory)
<Baughn>
rly: It won't even do that. You don't get an envvar set unless the value is set in that specific derivation, outer lexical closures don't do it.
<Baughn>
rly: Which is what inherit is for.
<rly>
For a declarative OS, the documentation for many of the functions is rather undeclared ;)
<gchristensen>
rly: functional programming is self documenting!
<rly>
gchristensen: heh
<MichaelRaskin>
gchristensen: for that we have not enough cross-indexing of definitions, I guess
* gchristensen
is kidding
* rly
knew
<MichaelRaskin>
Well, ctags-nix could be nice anyway
<MichaelRaskin>
You would prefer something lke these Coq-to-prose converters that emit text which is technically speaking in English?
ixxie has quit [(Ping timeout: 268 seconds)]
way218 has joined #nixos
<offlinehacker[m]>
gchristensen: I'm afraid it got lost in a process, when i migrated mediawiki setup to docker.
<gchristensen>
offlinehacker[m]: what did?
<gchristensen>
oh I remember now
<gchristensen>
ok, well thank you for looking, anyway :)
<offlinehacker[m]>
gchristensen: I'm a bit late
<berce>
Baughn: would nativeBuildInputs = [ perl lzop ];
<offlinehacker[m]>
gchristensen: I suppose I built composer cache from generated file, but haven't used composer for a long time, and I used it only once, and I forgot how exactly it works.
<berce>
... be a good place to add it in kernel/generic.nix
<rly>
Does OpenJDK JRE also come with libjava.so?
<Baughn>
berce: It probably doesn't need to be native
<berce>
Baughn: would pkgs/stdenv/linux/make-bootstrap-tools-cross.nix be the file to edit? It also has gzip, bzip2 and several other tools defined.
redmq has joined #nixos
<Baughn>
berce: I honestly don't know, sorry. I've never tried to alter the kernel.
<Baughn>
berce: But.. probably not. That does not look like kernel code at all.
<rly>
Never mind.
<rly>
berce: The way it should work is that based on the configuration, different tooling should be selected, but just adding it there would likey fix it.
<rly>
berce: likely*
redmq has quit [(Ping timeout: 250 seconds)]
<berce>
Baughn: thank you for sharing what you do know :-)
<rly>
berce: never mind, I responded too quickly.
<rly>
berce: do you a stand-alone shell.nix expression?
<berce>
rly: no. I cloned nixpkgs and try to modify it to get this kernel built.
<rly>
berce: so, it's a kernel with a custom configuration? I.e. custom 'config'?
<berce>
rly: yes, I replaced the defconfig with imx-v6-v7_defconfig
<berce>
so not really exotic, just something that was not yet in Nixos
<rly>
berce: What's the attribute name you are trying to build?
<berce>
rly: linux-4.8
<berce>
rly: nix-build cross.nix -A linux_4_8.crossDrv
Kingsquee has joined #nixos
<berce>
cross.nix is based on a 2 year old snippet of dezgeg
zraexy has joined #nixos
<berce>
The best 'documentation about cross compiling was an old irc log
Wizek_ has quit [(Ping timeout: 260 seconds)]
<berce>
... referring to that snippet
Wizek has quit [(Ping timeout: 265 seconds)]
<rly>
berce: I would modify generic.nix.
<rly>
berce: this might not be what others would do, but I am fairly sure that it would work.
<Baughn>
So I'm trying to get the path of every directory and file immediately inside a derivation, but..
<rly>
berce: do you understand what I mean or do I need to give more details?
<Baughn>
(map (n: clientConfigDir + "/" + n) (builtins.attrNames (builtins.readDir clientConfigDir)))) <- This gives me "The string 'README.md" is not allowed to refer to a store path"
<berce>
rly: I think I understand: ...
<rly>
berce: great.
<berce>
... There's only one '.mkDerivation' and only one nativeBuildInpunts line in there, so I assume I 'll add lzop there.
<berce>
Do you think I can avoid recompiling it all? i.e. just skip to that LZO line of piggy_data?
herzmeisterderw has joined #nixos
herzmeisterderw has quit [(Remote host closed the connection)]
<rly>
berce: you could setup some ccache.
<rly>
berce: but that would be for next time.
<rly>
berce: so, it is perhaps possible, but I'd say that answering the question requires someone who builds kernels on Nix everyday, and that person would not be me.
<berce>
rly: it just started with donwloading lzop from cache. That gives me hope :-)
zraexy has quit [(Ping timeout: 260 seconds)]
<rly>
berce: what are you doing with arm?
<berce>
rly: I have a cubox-i4 pro and would like it to do more than playing video for the kids
<rly>
berce: how hardcore.
<Rotaerk>
peti, how do I build this cabal2nix project? the README mentions a release.nix, but that doesn't seem to exist
<Rotaerk>
oh, does it use stack now
<berce>
rly: About a year ago i discovered Nixos, for several months I 'm running it on my laptop, and I basically want to control all systems I have with Nix now :-)
<rly>
berce: yeah, I have basically done the same, except I allow other systems to exist, until they break,
<rly>
berce: I actually used the NixOS features a couple of times now.
k2s has quit [(Quit: Leaving)]
<rly>
berce: i.e. unbootable systems, which would work by just going back to a different generation.
<rly>
berce: things which would work only via LiveCDs otherwise.
<rly>
berce: to some degree, I also cannot live without NixOS.
<Mic92>
hyphon81: so the question is, which daemon should process qemu.conf?
<rui>
MichaelRaskin: No slider. The light on the fn wi-fi button is red, but it doesn't get green by pressing it
<MichaelRaskin>
For the USB option, I guess finding out what module is used in Ubuntu could be a good start
<rui>
On windows, pressing it turned airplane mode on and off, but the light remained green, and it didn't find the card
hiratara has joined #nixos
<MichaelRaskin>
What about /sys/class/rfkill entries?
<MichaelRaskin>
Would be fun if Fn-Fx had to be pressed while in BIOS Setup (i.e. without any driver loaded) to work…
<stepcut>
I have an ec2 server that us running ubuntu, but I want to switch to using nixos/nixops. Is there some way to tell nixops to use that existing ec2 instance? Or is that crazy talk? Perhaps nixops just creates a new instance, and use the AWS control panel to kill the old one?
<rui>
MichaelRaskin: The directory /sys/class/rkill/ is empty
<rui>
rfkill
<MichaelRaskin>
Pity
<rui>
MichaelRaskin: I think I tried pressing it on boot, but nos sure if in the bios (which I also upgraded)
<Mic92>
rui: in some weired cases, you can remove your battery and press the power button to uncharge it completly so that your bios is reset.
<rui>
MichaelRaskin: I did the hp test on boot, and it says "WLAN MODULE not loaded"
<rui>
So it sounds quite hardware-ish, right?
<MichaelRaskin>
And then in some notebooks you can switch off the WiFi module in BIOS Setup and OS can do nothing about that
<MichaelRaskin>
A hardware glitch is not out of question, though
<rui>
MichaelRaskin: BIOS seems to have no options regarding wifi
<rui>
Mic92: That sounds weirdly interesting
<MichaelRaskin>
I see. It's just that I have learnt some checklist entries that cost little to try and avoid a lot of pain once in twenty cases.
<MichaelRaskin>
Sorry that nothing seems to match
<rui>
MichaelRaskin: No sorries, on the contrary.
<MichaelRaskin>
Full power drain does help in very rare cases, yes
<MichaelRaskin>
Don't forget to unplug AC, of course.
<rui>
By the way, any ideas on how to check the module used by ubuntu?
<rui>
Hehe, right
<MichaelRaskin>
lsusb/lsmod
<MichaelRaskin>
It is often not that hard to understand which module in lsmod is the usb card
<Mic92>
wifi modules often start iw*
<MichaelRaskin>
I would expect it to be loded late (near the top of the list) if you plug the card in after boot
Itkovian has joined #nixos
<rui>
Great! Thanks guys (girls? xir?)
<MichaelRaskin>
rui: Given you are in the middle of _two_ intriguing plot arcs, you could tell us _what_ is great.
<simpson>
rui: My preferred pronoun is not available in English, unfortunately.
<MichaelRaskin>
simpson: in what languages is it available?
<MichaelRaskin>
Or is it beyond languages pronouncible by mere humans?
<simpson>
MichaelRaskin: Lojban. My preferred pronoun is {ko'a}, as in {lo prenu goi ko'a cu zabna} "That person {ko'a} is cool."
deepwater has quit [(Remote host closed the connection)]
jgertm_ has quit [(Ping timeout: 264 seconds)]
<MichaelRaskin>
ko'a is basically an indexed (and alphabetically the first one of the indexed options) third-person gender-universal singular, right?
<simpson>
Too tight. {ko'a} is a fully assignable pronoun.
<simpson>
It's nice to work in a language with no gender inflection whatsoever.
<MichaelRaskin>
Too tight on the singular count, right?
<Rotaerk>
the standard english pronoun for referring to a person in gender-neutral fashion is "they", but it sometimes just doesn't sound right... for me it sounds weird if you're referring to a *specific* person rather than an abstract one
<MichaelRaskin>
Or can you assign it to second-person?
<Rotaerk>
e.g I spoke to MichaelRaskin and they told me...
<joepie91>
quick sanity check. IPv6 is supposed to be automatically configured through DHCPv6, correct?
<simpson>
It doesn't have to be singular, it doesn't have to refer to gendered things, it can refer to *any* referent, including oneself...
<Rotaerk>
sounds weird to me
<simpson>
joepie91: Should be.
<joepie91>
and I shouldn't need to manually specify gateway etc for this?
<simpson>
Rotaerk: One gets used to it. (One also gets used to "one"!)
<MichaelRaskin>
simpson: gender-universal was my attempt to say that it doesn't put any limitations on the grammatical or social gender
<Rotaerk>
I usually just prefer to pick a gendered pronoun, and risk being wrong
<Rotaerk>
if I'm wrong, so be it; I can be corrected; not the gravest sin
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<MichaelRaskin>
That's how some people have to correct everyone addressing them…
<hyphon81>
Mic92: Maybe, it is libvirtd because it should be restart after edit qemu.conf. However, at least, libvirtd.extraConfig didn't work for my problem.
Shoue has quit [(Ping timeout: 258 seconds)]
imode has left #nixos ["WeeChat 1.6"]
<rui>
haha
<MichaelRaskin>
rui: so what have you found out that you called great?
<rui>
MichaelRaskin: Great all your suggestions, plus the light at the crappy end of the tunnel where I'll find the module and be able to at least use the usb wifi on nixos
<NixOS_GitHub>
[nixpkgs] FRidh force-pushed python-wip from 838b707 to 563eda5: https://git.io/vzaOS
<NixOS_GitHub>
nixpkgs/python-wip 66bb916 Frederik Rietdijk: pythonPackages.flake8: 2.6.2 -> 3.2.1
<NixOS_GitHub>
nixpkgs/python-wip 58c6952 Frederik Rietdijk: pythonPackages.flake8_3: remove...
<NixOS_GitHub>
nixpkgs/python-wip 0e9f82b Frederik Rietdijk: pythonPackages.lxml: 3.4.4 -> 3.7.0
deepwater has joined #nixos
<hyphon81>
Mic92: If I will try to fix it, do I have to add NixOS options? I'm searching how to add options in my local environment with NixOS at the moment...
eacameron has joined #nixos
kampfschlaefer has quit [(Ping timeout: 258 seconds)]
<rui>
rt2800usb
<rui>
found it!
<MichaelRaskin>
My 4.9 kernel seems to have this module
jazzencat has joined #nixos
<rui>
I think I'm on 4.4.6. Haven't been able to nixos-rebuild switch for a while
<rui>
(actually that's on my PC, didn't even try on my laptop)
<jazzencat>
I'm trying to add a .zip download url to services.xserver.displayManager.slim.theme = pkgurl = { url = "location"; } but the location doesn't give a sha256 hash, and nixos wants one.
<rui>
MichaelRaskin: if it has it, lsmod should list it, right?
<MichaelRaskin>
modinfo
<rui>
Yeah, I don't have it on my PC, so not a chance on the laptop
<MichaelRaskin>
It may be that autoloading doesn't happen for one of a million reasons and you need modprobe
<MichaelRaskin>
Ah, I see
<rui>
In conclusion, I need to finally succeed at nixos-rebuilding
<berce>
MichaelRaskin: could you tell me where to add a build dependency for crosscompiling a custom kernel?
<MichaelRaskin>
Well, I would try lib.overrideDerivation
<MichaelRaskin>
and add to nativeBuildInputs or buildInputs
<berce>
In what file?
<MichaelRaskin>
Ah, you want to actually patch NixPkgs from the get-go?
<MichaelRaskin>
then pkgs/os-specific/linux/kernel
<berce>
I have a local clone of nixpkgs
<berce>
then generic.nix?
<MichaelRaskin>
generic.nix, I guess
<rui>
MichaelRaskin: There seem to be several boot.kernel** stuff on "man configuration.nix"
<rui>
MichaelRaskin: If updating should fix it, ideally I should want to finally succeed updating. But given the past failures, a "plan B" seems appropriate
<berce>
I tried adding lzop next to perl in the only nativeBuildInputs in generic.nix. It didn't work.
<rui>
that can be whatever works. overrideDerivation, that generic.nix thing you suggested, I don't think I mind either way
<avn>
jazzencat: nix-prefetch-url tell you hash
<berce>
Lzop was downloaded, but the error stays
amarsman has joined #nixos
<MichaelRaskin>
rui: you are not cross-compiling, the kernel build should just work for you
<MichaelRaskin>
berce: do you have confidence what command actually fails?
<MichaelRaskin>
Inside the build
<berce>
MichaelRaskin: lzop
<MichaelRaskin>
Maybe kernel build specifies full path to a locally-built lzop?
<hyphon81>
Tentantively, I forked nixpkg in github. I attempted modifing it with blinding method like. Of course, it doesn't work. XD