<jeaye>
hodapp: Haven't ever tested it in rescue mode before, so that's new territory.
officialjustan has quit [(Ping timeout: 258 seconds)]
justanotheruser has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
<romanandreg>
if not, is there a way to get to the default.nix file from my local machine (without having to go to github and read it)?
k2s has quit [(Ping timeout: 252 seconds)]
markus1189 has joined #nixos
ryanartecona has joined #nixos
markus1199 has quit [(Ping timeout: 258 seconds)]
indi_ has joined #nixos
mkoenig has quit [(Read error: Connection reset by peer)]
<NixOS_GitHub>
[nixops] AmineChikhaoui opened pull request #576: Attempt to fix an issue introduced by #548 (master...fix-548) https://github.com/NixOS/nixops/pull/576
<jeaye>
hodapp: Only for the DigitalOcean install, which is the only place where -d should be used.
<hodapp>
jeaye: what I wasn't clear on is whether the similarities between DO and some other VPS providers necessitated its use or not.
<jeaye>
hodapp: I wouldn't recommend using -d unless you're on DigitalOcean. If your provider requires some specific setup, you'll likely need to manage that from a web console after install.
Rotaerk has quit [(Quit: Leaving)]
<gchristensen>
hodapp, jeaye: can you look at that gist up there and let me know how you like the formatting?
Rotaerk has joined #nixos
AllanEspinosa has quit [(Ping timeout: 258 seconds)]
goibhniu1 has quit [(Ping timeout: 250 seconds)]
goibhniu has joined #nixos
eacameron has quit [(Ping timeout: 264 seconds)]
herzmeister has joined #nixos
romanandreg has quit [(Quit: romanandreg)]
mkoenig has quit [(Read error: Connection reset by peer)]
<hodapp>
\o/
eacameron has joined #nixos
mkoenig has joined #nixos
eacameron has quit [(Ping timeout: 258 seconds)]
ryanartecona has quit [(Quit: ryanartecona)]
[0x4A6F] has quit [(Ping timeout: 258 seconds)]
sheenobu has quit [(Remote host closed the connection)]
Fare has joined #nixos
<hodapp>
gchristensen: formatting looks clear enough to me
<gchristensen>
hodapp: is it easy to tell / scan for where the branch changes?
goibhniu has quit [(Ping timeout: 252 seconds)]
<hodapp>
yeah, think so
<gchristensen>
cool. I'll send it out and ask for more feedback :)
moet has joined #nixos
[0x4A6F] has joined #nixos
eacameron has joined #nixos
mizerian has quit [(Remote host closed the connection)]
eacameron has quit [(Ping timeout: 245 seconds)]
<spacekitteh>
gchristensen: can you merge that second ncurses patch to staging?
thc202 has quit [(Ping timeout: 258 seconds)]
mkoenig has quit [(Read error: Connection reset by peer)]
mkoenig has joined #nixos
ericsagnes has quit [(Ping timeout: 240 seconds)]
k0001 has joined #nixos
eacameron has joined #nixos
* hodapp
may have just unintentionally coaxed another Arch user to try NixOS
ttuegel has quit [(Remote host closed the connection)]
AllanEspinosa has joined #nixos
Fare has quit [(Ping timeout: 268 seconds)]
ericsagnes has joined #nixos
bfrog has joined #nixos
Fare has joined #nixos
goibhniu has joined #nixos
mbrgm has quit [(Ping timeout: 258 seconds)]
mbrgm has joined #nixos
goibhniu1 has joined #nixos
goibhniu has quit [(Ping timeout: 252 seconds)]
mudri has quit [(Quit: WeeChat 1.6)]
phreedom has joined #nixos
jsgrant_ has quit [(Read error: Connection reset by peer)]
jsgrant_ has joined #nixos
moet has quit [(Quit: leaving)]
jsgrant_ has quit [(Ping timeout: 264 seconds)]
k0001 has quit [(Ping timeout: 265 seconds)]
derjohn_mobi has joined #nixos
zraexy has quit [(Ping timeout: 250 seconds)]
aj__ has quit [(Ping timeout: 264 seconds)]
bb010g has quit [(Quit: Connection closed for inactivity)]
kantor has quit [(Ping timeout: 264 seconds)]
filterfish has joined #nixos
echo-area has joined #nixos
jsgrant_ has joined #nixos
ebzzry has joined #nixos
sheenobu has joined #nixos
<NixOS_GitHub>
[nixpkgs] sh01 opened pull request #21370: nixos/stage2: Fix behavior when invoked with some early mounts present (master...stage2_mount_resilience) https://github.com/NixOS/nixpkgs/pull/21370
alx741 has quit [(Quit: alx741)]
<spacekitteh>
is there a better way to create symlinks in a derivation than just manually calling "ln -svf"?
PragCyph1 has joined #nixos
PragCyphr has quit [(Ping timeout: 258 seconds)]
<justanotheruser>
is there a guide to deploying to nixos' main repo
kantor has joined #nixos
alx741 has joined #nixos
<spacekitteh>
what do you mean justanotheruser?
<justanotheruser>
I mean I want to release a program written pythons main repo
<spacekitteh>
as in you want to create a new nix file and put it in nixpkgs?
phanimahesh has quit [(Ping timeout: 258 seconds)]
proteusguy has quit [(Ping timeout: 246 seconds)]
phanimahesh has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
mk-fg has joined #nixos
zraexy has joined #nixos
zraexy has quit [(Client Quit)]
proteusguy has joined #nixos
nixos_ has joined #nixos
nixos_ has left #nixos []
FossiFoo has joined #nixos
phanimahesh has quit [(Ping timeout: 248 seconds)]
phanimahesh has joined #nixos
eacameron has quit [(Remote host closed the connection)]
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
proteusguy has quit [(Ping timeout: 258 seconds)]
<FossiFoo>
hi. i tried to upgrade from 15.09 to 16.09 and ran into the sha512 hash problem because my nix is too old. i tried grabbing it manually, but when i got to hydra and klick on the .nixpkg link i get Path [...-debug] is no longer available
<NixOS_GitHub>
[nixpkgs] peti pushed 2 new commits to master: https://git.io/vMe8Q
<NixOS_GitHub>
nixpkgs/master d8a8e1c Matthew Pickering: Update GHC 8.0.2 to RC 2
<NixOS_GitHub>
nixpkgs/master 53bc16a Peter Simons: Merge pull request #21369 from mpickering/master...
<LnL>
^ sweet!
dgn has joined #nixos
<NixOS_GitHub>
[nixpkgs] 4z3 opened pull request #21371: nginx service: use `default_server` parameter instead of `default` (master...nginx-default) https://github.com/NixOS/nixpkgs/pull/21371
peti has quit [(Quit: WeeChat 1.6)]
peti has joined #nixos
<robert`>
Hi there! I am currently trying to debug a haskell package not building with ghcjs (ghcjs-dom-jsffi) it does not build as dependency (cabal version too new or something) - it does build when I check out the sources run cabal2nix and try to build it in the nix-shell. Now I am doing "nix-shell -A haskell.packages.ghcjs.ghcjs-dom-jsffi '<nixpkgs>' --argstr compiler ghcjs" but in the resulting shell no ghcjs is in path - what am I doing
<robert`>
wrong? Thanks in advance!
markus1 has joined #nixos
dmi3y has joined #nixos
dmi3y has quit [(Client Quit)]
FRidh has joined #nixos
ebzzry has joined #nixos
dmi3y has joined #nixos
<kmicu>
'<nixpkgs>' does not take compiler argument. ‘--argstr compiler ghcjs’ works with your local *.nix recipe with ‘{ … compiler ? "ghcFoo" }:’ and ‘pkgs.haskell.packages.${compiler}.ghcWithPackages’ idiom.
spacekitteh has quit [(Remote host closed the connection)]
<robert`>
ok thanks - that explains why it did not help, but leaving it off does not fix the problem.
<robert`>
it does work with ghcWithPackages? that's cool to know - thanks!
<LnL>
robert`: for haskell packages you can use the .env attribute to get a shell environment
m` has joined #nixos
filterfish has joined #nixos
<robert`>
arrgh - thaaank you! `LnL`!
Shou has quit [(Ping timeout: 256 seconds)]
<kmicu>
“If you need such an environment because you’d like to compile a Hackage package outside of Nix — i.e. because you’re hacking on the latest version from Git —, then the package set provides suitable nix-shell environments for you already! Every Haskell package has an env attribute that provides a shell environment suitable for compiling that particular package. If you’d like to hack the lens
<robert`>
Well that's not exactly what I want do do right now. What I want is do exactly what nix does by hand to see how it fails and why and get a clue how to fix it.
<robert`>
Thanks for the manual link! Unfortunately I read that aleady and it does not really help me here. Now I have my package.env based shell - how do I retrieve the sources nix would retrieve now?
<mpickering>
Is there something magical about fetchgit or have I messed something else up. If I change the rev then the unpackPhase no longer clones submodules
<m`>
hi! how do you guys handle auto-suspend on low battery status on your nix laptops?
Shou has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vMe00
<NixOS_GitHub>
nixpkgs/master 9f6bd82 Frederik Rietdijk: nvidia-x11: 375.20 -> 375.26
derjohn_mobi has joined #nixos
tommyangelo has joined #nixos
filterfish has quit [(Ping timeout: 258 seconds)]
<LnL>
mpickering: I think you might have to explicitly enable submodules
<robert`>
Ok the overall question is: How do I debug a haskell packages, the way the manual suggests for regular packages don't seem to fit. (patchPhase was the only one doing something sensible)
<mpickering>
robert`: What exactly is going wrong?
<mpickering>
LnL: I looked at the derivation and by default it should pull submodules and I am modifying a derivation which previously worked and just changing the commit and hash
Samvh has joined #nixos
<LnL>
robert`: you might have to run eg. eval "${configurePhase}" instead of just configurePhase
<Samvh>
and for most parameters I can figure out how it works, but for vhosts it's not obvious to me
jensens has joined #nixos
<robert`>
Thanks LnL, that's indeed better - now it does not try the standard ./configure but tries to run ./Setup - which is better, but fails as there is no Setup - but at least it does the right thing! :-)
<NixOS_GitHub>
[nixpkgs] globin closed pull request #21371: nginx service: use `default_server` parameter instead of `default` (master...nginx-default) https://github.com/NixOS/nixpkgs/pull/21371
<robert`>
Samvh - I can send you a working config of mine - wait a bit
<Samvh>
ah that would be great
<LnL>
robert`: I think that the haskell mkDerivation has some extra phasees
<LnL>
robert`: you can also just run genericBuild if you want to do everything at once
<robert`>
LnL how do I figure them out (I am really struggling with finding anything in nixpkgs :-( )
<NixOS_GitHub>
nixpkgs/master c8982c0 Robin Gloster: salt: fix patch after upstream code change...
Itkovian_ has quit [(Client Quit)]
mudri has joined #nixos
Itkovian has joined #nixos
Itkovian has quit [(Client Quit)]
wangoe has quit [(Quit: WeeChat 1.5)]
ixxie has joined #nixos
herzmeister has joined #nixos
Itkovian has joined #nixos
dmi3y has quit [(Quit: dmi3y)]
Itkovian has quit [(Client Quit)]
dmi3y has joined #nixos
Shou has quit [(Ping timeout: 258 seconds)]
johann__ has joined #nixos
FRidh has quit [(Remote host closed the connection)]
dmi3y has quit [(Quit: dmi3y)]
jensens has quit [(Ping timeout: 260 seconds)]
Shou has joined #nixos
dmi3y has joined #nixos
johann__ has quit [(Read error: No route to host)]
jensens has joined #nixos
oida has joined #nixos
jophish has quit [(Remote host closed the connection)]
nh2_ has joined #nixos
johann__ has joined #nixos
johann__ has quit [(Read error: No route to host)]
m` has quit [(Ping timeout: 250 seconds)]
<ToxicFrog>
So I think I have my first real complaint about nix (and, specifically, the first place where it's dramatically worse than SUSE or Debian): 'nixos-rebuild's UX.
<ToxicFrog>
If I do `zypper update`, it tells me how much it needs to download (important for bandwith-constrained sites) and how much space on disk this will take (important for space-constrained systems) and waits for confirmation
<ToxicFrog>
And then gives me one line per thing it's downloading, telling me what package and version, how far along it is, ETA, and how many things, in total, it has left to do.
<ToxicFrog>
(and similarly when installing)
<LnL>
ToxicFrog: nixos-rebuild dry-build shoul show you what will be downloaded
<ToxicFrog>
nixos-rebuild gives me no up front idea of what the cost of this is going to be; when downloading, it gives me ~5 lines per package, with the actual package name buried at the end of the has and most of the output consisting of curl's progress meter
<ToxicFrog>
(and no idea what the overall progress of the operation is -- it's been downloading stuff for five minutes, is this going to take ten minutes or three hours?)
<robert`>
LnL many thanks for your help I am finally getting somewhere and stop feeling lost _all_ the time.
johann__ has joined #nixos
<ToxicFrog>
And then when building, it gives me arbitrarily many lines per package because all the build-script and install-script output gets dumped to the terminal, but still no indication of overall progress then when building it
<ToxicFrog>
Is there an open bug for this? If not, should I file one, and/or attempt a patch?
<LnL>
ToxicFrog: -Q will hide the build output
<LnL>
robert`: :D
<ToxicFrog>
LnL: that helps a bit, but doesn't address my main point
<LnL>
I'm not saying you are wrong, it could be a lot nicer from a users perspective
mudri has quit [(Ping timeout: 268 seconds)]
<ToxicFrog>
Hmm. Looks like nixos-rebuild is just a shell script that calls nix-build to do the real work, so that's where I should file the bug, and write the patch if I can
abcrawf has quit [(Remote host closed the connection)]
mudri has joined #nixos
johann__ has joined #nixos
robert` has quit [(Remote host closed the connection)]
<LnL>
I tried to get curl out of the cmake closure, but apparently it insists on having a bunch of dependencies like that
<gchristensen>
isn't it in the stdenv?
<LnL>
not in the linux stdenv no
abcrawf has joined #nixos
<LnL>
but a lot of packages do depend on it
<ToxicFrog>
Ok, filed some feedback in the first one, may have a go at implementing part of it over the holidays if wee-slack/AoC/ttymor/general system administration stuff doesn't eat all the computer time
<gchristensen>
ah
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
nh2_ has quit [(Read error: Connection reset by peer)]
FRidh has joined #nixos
<FRidh>
domenkozar: am I correct nobody is maintaining openstack oslo? I might put in a couple of meta.broken then since it would make upgrading certain python packages easier then.
<domenkozar>
FRidh: I'm not interested maintaining (read: have no capacity) openstack atm
<domenkozar>
there is someone making PRs for my modules patches
<domenkozar>
so he might be
k0001 has joined #nixos
inf-rec has joined #nixos
sellout- has joined #nixos
sellout- has quit [(Max SendQ exceeded)]
sellout- has joined #nixos
nh2_ has joined #nixos
<inf-rec>
I am trying to define a x cursor theme to be used system wide. This requires me to define /share/icons/default, and as far as I know the best way to define something in /share is to let a package define them.
<inf-rec>
However when I try to do it like this in my environment.systemPackages: (pkgs.callPackage ({ stdenv }: stdenv.mkDerivation rec { ... }) {}) it will give me an infinite recursion error.
<inf-rec>
Any idea how I can prevent this from happening?
Itkovian has joined #nixos
mizu_no_oto has joined #nixos
roconnor has joined #nixos
Itkovian has quit [(Client Quit)]
rly has joined #nixos
<rly>
What was the portable way to install something via nix-env? Something like nix-env -f '<nixpkgs>' -iA foo ?
<LnL>
that should work
<rly>
LnL: yeah, I already see what I did wrong.
<rly>
LnL: thanks.
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
jensens has quit [(Ping timeout: 252 seconds)]
fpletz has quit [(Ping timeout: 258 seconds)]
fpletz has joined #nixos
dmi3y has quit [(Quit: dmi3y)]
<NixOS_GitHub>
[nixops] edolstra closed pull request #576: Attempt to fix an issue introduced by #548 (master...fix-548) https://git.io/v1jAk
johann__ has quit [(Quit: Leaving.)]
johann__ has joined #nixos
alx741 has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to staging: https://git.io/vMeyI
<NixOS_GitHub>
nixpkgs/staging 2fe61cb Frederik Rietdijk: pythonPackages.lockfile: 0.10.2 -> 0.12.2
<NixOS_GitHub>
nixpkgs/staging fd23914 Frederik Rietdijk: pythonPackages.sphinx: 1.4.6 -> 1.5.1
tommyangelo has quit [(Ping timeout: 258 seconds)]
mkoenig has joined #nixos
eacameron has joined #nixos
roconnor_ has joined #nixos
roconnor has quit [(Quit: Konversation terminated!)]
Fare has joined #nixos
JagaJaga has joined #nixos
eacameron has quit [(Remote host closed the connection)]
pi3r has joined #nixos
FareTower has joined #nixos
AllanEspinosa has joined #nixos
eacameron has joined #nixos
uralbash has quit [(Quit: Leaving.)]
Fare has quit [(Ping timeout: 258 seconds)]
k2s has joined #nixos
tommyangelo has joined #nixos
eacameron has quit [(Remote host closed the connection)]
eacameron has joined #nixos
Itkovian has joined #nixos
eacameron has quit [(Remote host closed the connection)]
eacameron has joined #nixos
_rht has quit [(Quit: Connection closed for inactivity)]
eacameron has quit [(Ping timeout: 252 seconds)]
ixxie has quit [(Ping timeout: 258 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<inf-rec>
The recursion was caused by referencing ${config.system.path} in my package, using /run/current-system/sw instead did solve it
<hodapp>
should be interesting... 3 separate repos are required for the "build"
<hodapp>
"build" used loosely, as it's all JS
<LnL>
oh boy
<hodapp>
oh, nevermind, just 2; I misread
<hodapp>
dumb question: how do I find the sha256 for fetchFromGitHub?
<phorse>
hodapp: nix-prefetch-git <url>
<LnL>
nix-prefetch-url actually
<phorse>
LnL: maybe that's why my current project isn't working!
<LnL>
and you can also use nix-prefetch-url '<nixpkgs>' -A hello.src for example
<hodapp>
these are giving me two different answers
<LnL>
phorse: fetchFromGitHub uses the archive tarball urls instead of git
<phorse>
LnL: that explains it
<phorse>
hodapp: ignore mine
<LnL>
and you can use nix-build '<nixpkgs>' -A hello.src --check to make verify if you're unsure if it's correct
<LnL>
/make /d
FareTower has joined #nixos
Itkovian has joined #nixos
<hodapp>
hrmph. I added turtl-desktop to all-packages.nix in the nixpkgs repo, and have stdenv.mkDerivation rec { ... src = fetchFromGitHub { ... }; } in pkgs/applications/office/turtl-desktop/default.nix, but just get "error: attribute ‘turtl-desktop’ in selection path ‘turtl-desktop.src’ not found"
<hodapp>
trying to figure out why...
sellout- has quit [(Quit: Leaving.)]
<hodapp>
ahh, needed something like 'nix-prefetch-url . -A turtl-desktop.src'
<hodapp>
and the sha256 is the same as nix-prefetch-git o_O
<LnL>
oh really?
<hodapp>
yeah, looks like it
<LnL>
I just nix-build and look what nix expects
<hodapp>
now, can I nix-shell my way into this expression when I get lost with what this idiotic JS/npm/node/bower/nwjs/whatever build is expecting, which is almost certainly going to happen?
<LnL>
you can get a shell with the build environment using nix-shell -A hello
<hodapp>
w00t
<LnL>
in there you can run genericBuild or manually run each phase like unpackPhase, ....
Itkovian_ has joined #nixos
<LnL>
and you can add --pure if you want to make sure it doesn't get polluted with your system environment
Itkovian has quit [(Ping timeout: 256 seconds)]
<hodapp>
to nix-shell?
<hodapp>
hmm. not totally sure how to approach this build... I may have to look at how other packages that rely on npm do it