<{^_^}>
[nixpkgs] @flokli closed pull request #74868 → test-driver.py: sleep in between executing things periodically inside the vm → https://git.io/JeMXn
fendor has quit [Read error: Connection reset by peer]
<samueldr>
I'm thinking... and I don't think there's a trick that could be used with the nixos module system to add an `imports` file depending on the value of an option
<zeta_0>
clever: ok, i added `lib` and replaced `pkgs` with `pkgsStable` in the ihaskell expression, i think that i am almost there? https://hastebin.com/kekuyilodo.bash
o1lo01ol1o has joined #nixos
smatting has quit [Ping timeout: 265 seconds]
<clever>
zeta_0: you dont need line 8, the pkgs on line 5 already gives you nixos unstable
o1lo01ol1o has quit [Remote host closed the connection]
tamase1 has joined #nixos
<zeta_0>
clever: oh, i figured that nixos-unstable is imported by default, what about the ihaskell expression(in environment.systemPackages), does that look correct?
o1lo01ol1o has joined #nixos
<{^_^}>
[nixpkgs] @mmilata opened pull request #74951 → libreoffice: use poppler_0_61 → https://git.io/JeDqH
<clever>
zeta_0: looks fine
<clever>
zeta_0: though i notice, you have 2 ihaskell's in there, that will cause problems
kckasumi has quit [Ping timeout: 245 seconds]
<zeta_0>
clever: nix has been throwing a bunch of errors every time i try build, so lets see if it works this time
growpotk- has joined #nixos
<{^_^}>
[nixpkgs] @mmilata opened pull request #74952 → libreoffice: use bundled version of poppler → https://git.io/JeDq5
<zeta_0>
clever: i thought i had the other ihaskell commented out
<zeta_0>
clever: anyways, lets see if the rebuild works or not
<{^_^}>
[mobile-nixos] @samueldr opened pull request #63 → Makes the demo more useful on a touch device → https://git.io/JeDmX
wildtrees has quit [Quit: Leaving]
o1lo01ol1o has joined #nixos
drakonis has quit [Ping timeout: 276 seconds]
o1lo01ol1o has quit [Ping timeout: 240 seconds]
Rusty1 has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<{^_^}>
[mobile-nixos] @samueldr pushed 13 commits to xiaomi-lavender: https://git.io/JeDmb
work_ has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @tomberek opened pull request #74959 → buildImageWithNixDb: export USER → https://git.io/JeDmN
zeta_0 has joined #nixos
<zeta_0>
clever: it worked, and ihaskell finally installed, thanks for the help
<zeta_0>
noneucat: thanks as well
<zeta_0>
clever++
<{^_^}>
clever's karma got increased to 261
<zeta_0>
noneucat++
<{^_^}>
noneucat's karma got increased to 1
<zeta_0>
i am not sure if this is an emacs problem but i am getting the error: `ein: [error] ein:ml-lang-setup: kernelspec language ’haskell’ unsupported` ?
m0rphism has quit [Ping timeout: 265 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<o1lo01ol1o>
Does anyone use hydra as a CD platform via nix-copy-closure? Is such a use recommeneded?
<{^_^}>
[mobile-nixos] @samueldr pushed 9 commits to xiaomi-lavender: https://git.io/JeDYC
<{^_^}>
[nixpkgs] @jtojnar opened pull request #74961 → gimp: use prefix-relative libdir → https://git.io/JeDYW
<emptyflask>
is there a preferred method of specifying a dependency that's no longer in nixpkgs? I want to add a PR for MapTool, but it depends on jdk10. I couldn't find any obvious examples in the nixpkgs repo of version pinning...
<emptyflask>
the other thing is that there's a potential conflict with a package called navit, which contains a `maptool` binary
<{^_^}>
[mobile-nixos] @samueldr pushed 10 commits to master: https://git.io/JeDYR
<{^_^}>
[mobile-nixos] @samueldr pushed 0 commits to xiaomi-lavender: https://git.io/JeDYE
<samueldr>
finally got rid of that branch, which was created on that repo way before when this was moved to the nixos org
doyougnu has quit [Quit: WeeChat 2.6]
<supermathieu>
When I modify a pkg that is in the same state in release-19.03/release-19.09 and master. Do I need to send multiple pull request to have the modification applied to all the branches?
<samueldr>
19.03 is not receiving updates anymore, at least is not supposed to
<samueldr>
and yeah, if the change is to be backported, you can either ask for the changes to be backported to stable on the PR, or open a PR doing the backport yourself
<supermathieu>
samueldr: So I should also send a PR for master?
<samueldr>
a change, generally, will not happen only on a stable branch, the same equivalent change has to have been accepted on master/unstable first
<samueldr>
(well, unless for some reason it makes no sense, e.g. security patch on a software that got updated to an incompatible version on master)
<supermathieu>
Oh okay, good to know! Thanks :)
<supermathieu>
So I should always start by sending my PR to master. Then who decide that it needs to be applied to ie. release-19.09?
boxscape has quit [Remote host closed the connection]
<samueldr>
if you know it has to be applied, you can directly ask that the committer also backports the change, or directly open a PR targeting the stable release with the cherry-picked change
<samueldr>
if you're unsure, ask in the PR :)
<samueldr>
(and/or here)
<supermathieu>
samueldr: Make sense, thanks for your help!
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
xkapastel has quit [Quit: Connection closed for inactivity]
ng0 has quit [Quit: Alexa, when is the end of world?]
<zeta_0>
after installing the nix package ihaskell, when i try to run it in emacs(ein), it throws an error: `[error] ein:ml-lang-setup: kernelspec language ’haskell’ unsupported` ?
<NoctisLabs>
Hey, uhh... I updated and rebooted and now my scroll wheel is inverted?
<NoctisLabs>
Like down scrolls up, up scrolls down.
<zeta_0>
vaibhavsagar: i am not sure why ihaskell isn't working in emacs anymore, it was before, i am using multiple nixos channels, nixos-unstable as my primary channel and i installed ihaskell in the nix-stable channel, i have no idea what to do at this point?
orivej has joined #nixos
<NoctisLabs>
I tried another mouse and the scroll wasn't inverted anymore. might be a hardware issue.
nuncanada has quit [Quit: Leaving]
NoctisLabs has quit [Quit: WeeChat 2.6]
<zeta_0>
vaibhavsagar: the debugging error thrown by emacs is large, so i am having a hard time trying to find what is causing this error
NoctisLabs has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
selfsymmetric-mu has quit [Remote host closed the connection]
roconnor_ has joined #nixos
roconnor has quit [Ping timeout: 240 seconds]
acarrico has joined #nixos
qubasa_ has joined #nixos
h0m1 has quit [Ping timeout: 276 seconds]
qubasa has quit [Ping timeout: 240 seconds]
h0m1 has joined #nixos
roconnor has joined #nixos
roconnor_ has quit [Ping timeout: 265 seconds]
jmeredith has joined #nixos
tamase1 has quit [Ping timeout: 250 seconds]
Henson has joined #nixos
<Henson>
I'm trying to make a Nix derivation for a calendar printing program called pcal written in C. It has a Makefile that assumes a specific location for gcc and the location of the installed binary and man pages. What is the correct way to adapt the original source to build in Nix?
<{^_^}>
[nixpkgs] @stigtsp opened pull request #74964 → micropython: init at 1.11 → https://git.io/JeDOa
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<clever>
Henson: patch the makefile, with either sed or a .patch file
<Henson>
clever: I tried programatically-generating a patch file in a buildCommand section, but it got upset because Makefiles need tabs, which didn't come across properly in the buildCommand section. Patch said the generated patch file contained garbage.
<qyliss>
Henson: use subsituteInPlace or sed
<qyliss>
You don't want to be generating patch files
<Henson>
qyliss: ok
growpotk- has quit [Ping timeout: 265 seconds]
<qyliss>
(And then, use sed for regex replaments, and substituteInPlace for non-regex, IMO)
<clever>
Henson: if you are making a patch, edit the makefile, and use diff -u to generate a patch
<clever>
then use patches = [ ./foo.patch ];
<clever>
but sed is probably simpler
<Henson>
clever: but the patch will be different every time based on the path to gcc and other build dependencies, and the derivation output, so it pretty much has to be programatically generated, right?
<clever>
ah right, ack!
<clever>
oh wait no
<clever>
stdenv puts gcc in PATH
<clever>
just replace /usr/bin/gcc with plain old gcc
<clever>
let PATH do things for you
<clever>
that also applies to using sed
halfbit has joined #nixos
<ornxka>
can i run nixos on arm sbcs
qualiaqq has joined #nixos
<ornxka>
oh whoa i can
drakonis1 has joined #nixos
aw_ has joined #nixos
jtcs_ has joined #nixos
andreas303 has quit [Ping timeout: 260 seconds]
Haskellfant has joined #nixos
justanotheruser has joined #nixos
mexisme has quit [Ping timeout: 250 seconds]
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
spacefrogg has joined #nixos
justanotheruser is now known as Guest9650
jtcs has quit [Ping timeout: 265 seconds]
zeta_0 has joined #nixos
cocreature has quit [Read error: Connection reset by peer]
Haskellfant is now known as cocreature
<fuzen>
Where can I find guidelines for adding a package to nix? I added a package to my repo (https://github.com/Fuzen-py/nixpkgs), but I cannot find all the requirements for a PR.
drakonis1 has quit [Quit: WeeChat 2.6]
andreas303 has joined #nixos
<fuzen>
The contributing file seems to be mostly baout making changes.
<zeta_0>
clever: i have emacs and ein(emacs ipython notebook) installed in nixos-unstable and i have ihaskell installed in nixos-stable, maybe thats why ihaskell does not work in emacs?
<zeta_0>
if i installed emacs in both nixos-stable and nixos-unstable channels how would i open emacs different channels?
<zeta_0>
clever: i think i am going to give up ihaskell for a while, i can't figure this out
<pistache>
fuzen: it's in the nixpkgs manual, I think
<Henson>
what kind of license should I specify for software that apparently doesn't have any license? Neither the homepage, nor the sourceforge page, nor any of the source code, nor documentation mention any license.
orivej has quit [Ping timeout: 265 seconds]
<Henson>
a related question: is it necessary for the license (or maintainer) to be specified in a software derivation that I intend to add to nixpkgs?
<yorick>
Izorkin: I've asked the fail2ban people when they will release 0.11 and if including betas for it in nixos is something they want
<yorick>
sometimes the security people are unhappy about that
cyraxjoe has joined #nixos
lsix has joined #nixos
MightyJoe has quit [Ping timeout: 265 seconds]
<cinimod>
If I try and build a package via a nix derivation I get "ar: illegal option -- H" but if I download the source and do "./configure --prefix=$out && make" then I don't get an error message
<cinimod>
It is a mystery as the nix ar seems to have the same options available as my native ar
leah2 has quit [*.net *.split]
mumuluxi has quit [*.net *.split]
mg- has quit [*.net *.split]
codezero has quit [*.net *.split]
W1lkins has quit [*.net *.split]
drgbr has quit [*.net *.split]
alexbakker has quit [*.net *.split]
puck has quit [*.net *.split]
efriend has quit [*.net *.split]
andromeda-galaxy has quit [*.net *.split]
nbp has quit [*.net *.split]
epta has quit [*.net *.split]
jonge has quit [*.net *.split]
endocrimes has quit [*.net *.split]
spacekookie has quit [*.net *.split]
liori has quit [*.net *.split]
dkibi_ has quit [*.net *.split]
jeschli has quit [*.net *.split]
thommey has quit [*.net *.split]
lux1 has quit [*.net *.split]
<yorick>
cinimod: stdenv.mkDerivation has a default builder that does exactly what yours does, but maybe better tested, try that?
mumuluxi has joined #nixos
leah2 has joined #nixos
W1lkins has joined #nixos
codezero has joined #nixos
puck has joined #nixos
liori has joined #nixos
jonge has joined #nixos
spacekookie has joined #nixos
epta has joined #nixos
andromeda-galaxy has joined #nixos
thommey has joined #nixos
dkibi_ has joined #nixos
efriend has joined #nixos
drgbr has joined #nixos
nbp has joined #nixos
mg- has joined #nixos
alexbakker has joined #nixos
lux1 has joined #nixos
endocrimes has joined #nixos
jeschli has joined #nixos
leah2 has quit [Max SendQ exceeded]
<Izorkin>
yorick: No one forbids having 2 versions of a package?
Maxdamantus has joined #nixos
leah2 has joined #nixos
<yorick>
Izorkin: I don't actually have merge rights, but I consider that package split to be technical debt that someone is going to have to go and undo in the future
Makaveli7 has quit [Quit: WeeChat 2.6]
<yorick>
maybe we can merge the module improvements and you can override it to 0.11 in your local config until they release that?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<yorick>
cinimod: also change the cd to postUnpack = "sourceRoot=$sourceRoot/src";
ng0 has joined #nixos
tamase1 has joined #nixos
<manveru>
how do you build nix in the flakes branch now? release.nix and shell.nix are gone...
<mabel>
hey, I'm having issues building pycuda (from python37Packages). it's failing to find -lcuda and -lboost_python3 during gcc
<mabel>
but I thought that Hydra was supposed to prevent these sorts of issues, right? doesn't it automatically build everything to prevent compile errors?
<mabel>
is there a way I can debug why a standard nixpkgs target isn't working?
qualiaqq has quit [Quit: ERC (IRC client for Emacs 26.3)]
pointfourone has quit [Read error: Connection reset by peer]
<enteee>
I am still tyring to fix the evaluation issue on PR [1]. Might be just me, but i find the error very cryptic. Can somebody explain to me what the error tries to tell me? [1]: https://github.com/NixOS/nixpkgs/pull/74657
<{^_^}>
#74657 (by Enteee, 4 days ago, open): rmapi: init at v0.0.7
<Aleksejs>
hi, since I did the last upgrade, php-fpm is disabled by default (it was enabled before and it worked). I see the info that I need to copy several lines of config to enable a php-fpm pool and I need to provide a user name for this pool. Is there a way to enable it in a simplier way?
m0rphism2 has joined #nixos
emmanuelrosa has joined #nixos
fendor has quit [Read error: Connection reset by peer]
bvdw has quit [Write error: Connection reset by peer]
<demfloro>
strace and backtrace from gdb with core should help
talqu has joined #nixos
<x123_>
I think it can't get terminfo
<x123_>
access("/nix/store/52s6r7cmfpj64laslphi0a02nqpdgv8x-rxvt-unicode-with-perl-with-unicode3-9.22-terminfo/share/terminfo/r/rxvt-256color", R_OK) = -1 ENOENT (No such file or directory)
<manveru>
yorick: so first i used `nixFlakes`, and then `:b (builtins.getFlake "nix").defaultPackage.x86_64-linux` in a repl... still have to find if there's a better way to build them
<manveru>
oh, just `nix build nix` does the trick
<manveru>
damn, that looks almost like we finally get good UX :D
<jboy>
My system has 60 generations and I'm currently in generation 58. I'd like to roll back so that 58 is the newest (basically drop 59 and 60). If I'm currently booted into gen 58, will `nixos-rebuild switch --rollback` take me to 57, or will it remove gen 60? I don't find the documentation clear on that.
<jboy>
Basically I'm asking: is rollback relative to newest generation, or to currently booted generation?
o1lo01ol1o has quit [Remote host closed the connection]
mexisme has quit [Ping timeout: 252 seconds]
rauno has quit [Ping timeout: 268 seconds]
mexisme has joined #nixos
noudle has joined #nixos
<clever>
jboy: rollback doesnt delete generationd
<clever>
jboy: if you `ls -l /nix/var/nix/profiles` you can see what every generation is pointing to, and the main `system` symlink points to the current one
<clever>
jboy: `nix-env --profile /nix/var/nix/profiles/system --set /nix/store/something` will ask nix to just make a given build current
dansho has quit [Ping timeout: 246 seconds]
mexisme has quit [Ping timeout: 250 seconds]
markus1189 has joined #nixos
dansho has joined #nixos
mexisme has joined #nixos
<jboy>
thanks clever
mexisme has quit [Ping timeout: 250 seconds]
bahamas has quit [Quit: leaving]
karavan has joined #nixos
genesis has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #nixos
nexgen has joined #nixos
nexgen has quit [Remote host closed the connection]
<zeta_0>
ddima: thanks, that's just what i was looking for
<zeta_0>
ddima++
<{^_^}>
ddima's karma got increased to 2
halfbit has joined #nixos
<jumper149>
Hi, I'm using NixOS and have a question about updating. When I run `nixos-rebuild switch --upgrade` as root. That won't affect the derivation versions I have installed as a normal user with `nix-env --install`, right?
<sondr3>
jumper149: correct
<jumper149>
Does `nix-env --upgrade` always use a constant state which is set by `nixos-rebuild switch` then?
mexisme has quit [Ping timeout: 250 seconds]
<sondr3>
state? No, it uses the version that the nixpkgs channels in `nix-channel --list` are pinned to
<sondr3>
so does nixos-rebuild for that matter, but doing --upgrade also updates all channels
<Krikke>
sondr3: I figured it out
o1lo01ol1o has quit [Remote host closed the connection]
<Krikke>
I had vim and vim_configurable in my packages
ThatDocsLady_ has quit [Remote host closed the connection]
<raboof>
I find myself doing 'nix-shell -p foo --run foo every now and then when i just want to try out something - is there a nice shorthand for that?
ThatDocsLady_ has joined #nixos
<gchristensen>
some people have helpers
sweep is now known as genesis
mexisme has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @flokli opened pull request #74991 → terraform-providers: bump version → https://git.io/JeDEn
drakonis has quit [Quit: WeeChat 2.6]
mariel__ has joined #nixos
ThatDocsLady_ has quit [Read error: Connection reset by peer]
<Athas>
Is linuxPackages_5_2 gone from nixpkgs unstable or is it called something new?
mexisme has joined #nixos
<gchristensen>
it is gone, Athas
<gchristensen>
5.2 is no longer a supported kernel version, better go to 5_3 or 5_4
<Athas>
Unfortunate. Let's see if rocm will play nice with something newer.
<gchristensen>
you can use 4_19 instead
<gchristensen>
5.2 was a "stable" kernel, but 4.19 isthe most recent "longterm" kernel
<gchristensen>
once upstream drops support for a kernel, we drop it too
<Athas>
Understandable.
<sondr3>
raboof: I prefer nix run nixpkgs.<pkg> -c <pkg>, but it is basically the same
syzygyzer has joined #nixos
fendor has quit [Ping timeout: 265 seconds]
<{^_^}>
[nixpkgs] @rnhmjoj opened pull request #74992 → nixos: add myself to maintainers → https://git.io/JeDEK
<syzygyzer>
hi, so ive been using nixos for a couple months now and at some point i added nixpkgs-unstable to my channels list and i recently learned i could update to 19.09 so i added the 19.09 channel and ran nixos-rebuild --upgrade, but now im in version 20.03, presumably beacuse of the unstable channel. so i removed the unstable channel and ran
<syzygyzer>
nixos-rebuild --upgrade again, but im still in 20.03. how can i downgrade to 19.09?
dansho has quit [Quit: Leaving]
<syzygyzer>
i dont think i knew what i was doing when i originally added nixpkgs-unstable
<Shoubit>
syzygyzer, afaik you just have to change the nix-channel as root to point to nixos-19.09 and ensure the system.stateVersion matches, run nix-channel --update; and nixos-rebuild switch should take care of the rest
<Shoubit>
(i.e. sudo nix-channel --add/remove ..., and system.stateVersion is in your configuration.nix)
<clever>
,stateVersion Shoubit
<{^_^}>
Shoubit: Setting stateVersion to the latest release doesn't upgrade anything and can only break your setup at best. To actually upgrade NixOS see https://nixos.org/nixos/manual/#sec-upgrading. If you want to update the stateVersion option regardless, Ctrl-F for "stateVersion" in https://nixos.org/nixos/manual/release-notes.html to see things that need to be manually migrated with the new value.
<syzygyzer>
ahhh, yes, i see i set channels to unstable as root as well lol.
<syzygyzer>
thank you
<clever>
syzygyzer: you usually dont want channels on the non-root user, only use channels on root
genesis has quit [Ping timeout: 250 seconds]
<syzygyzer>
why are channels not set in configuration.nix? using the nix-channel command feels imperative
<syzygyzer>
ahhh ok
mexisme has joined #nixos
<clever>
syzygyzer: the nixpkgs in the channel is what reads configuration.nix
<clever>
syzygyzer: so once its being read, its too late to change which nixpkgs your using
noudle has quit []
<syzygyzer>
ahhh
<Taneb>
I'm onto the third reason why some of my nix hashes have been different on identical checkouts
<Taneb>
The first two were the name of the directory of the checkout, and an issue with worktrees and submodules, respectively
<syzygyzer>
thanks :) im gonna have to stick around in here. after 2 months and getitng over the initial learning curve im totally sold on nix the package manager, not 100% sure on the OS yet. but i like it enough to use it for at least another couple months. think ill be sticking with the pm fo lyfe though
drakonis has joined #nixos
fendor has joined #nixos
<deni>
I'm trying to read a json file with builtins.readFile like so `let dev_key = builtins.readFile ./path/to/key.json`. And then I'm using it in pkgs.writeScript "foo.sh" '' echo ${dev_key} > /some/path/key.json''. The problem is that the file insn't valid json anymore. Instead of seeing `{"foo":"key"}` I'm seeing `foo key` when I cat the file. Any ideas whats going on?
<syzygyzer>
this is the first linux distro ive ever used where i feel like i want to contribute to someday rather than just being a user. still have awhile to go though
<clever>
deni: bash parsed all of the quotes in that and chewed it up
<gchristensen>
syzygyzer: that is the trap of nixos :P
mexisme has quit [Ping timeout: 276 seconds]
<clever>
deni: you want just `cat ${./path/to/key.json} > /some/path/key.json` without the echo of readFile
erasmas has joined #nixos
mexisme has joined #nixos
<deni>
clever: hmmm intersting...let me try it out. It's gonna take a while to test since this is actually building a docker image entrypoint so I have to rebuild the image
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
<clever>
deni: basically, try just doing `echo <json>` in a terminal, without any extra quoting
<clever>
$ echo {"key":"value"}
<clever>
{key:value}
<Taneb>
My current issue is my Hydra server doesn't seem to be respecting a source filter which is working fine locally, and is leaving a ".gitignore" in the source. This is resulting in my local Hydra and my computer coming up with different hashes for a derivation, causing it to be rebuilt
<deni>
clever: yeah it totally makes sense now....I just havne't thoguht of it since I was thinking in terms of nix and the issue has to be with nix right? :D
Ariakenom has quit [Quit: WeeChat 2.6]
<Taneb>
I'm out of ideas investigating this, does anyone else have any thoughts?
sweep has joined #nixos
<clever>
deni: nix is generating a bash script, and bash then runs that to produce the result
syzygyzer has quit [Remote host closed the connection]
<clever>
deni: '' echo ${dev_key} > /some/path/key.json'' just generates: 'echo {"key":"value"} > /some/path/key.json'' and then
<clever>
bash chews up the json
<lewo`>
Taneb: I've also hit this issue and there are issues related to this. Let me check:/
mexisme has quit [Ping timeout: 276 seconds]
<deni>
clever: encapsulating the variable in single quotes also works. But I'm intrigued by the idea of just being able to cat the file directly. I was somehow under the impression I need to read it in somehow to be able to use it anywhere
<clever>
deni: '${dev_key}' will blow up the instant you have a ' in the json
<deni>
clever: you are right of course!
<clever>
deni: in your case, your not even editing the file, so you can just use cat or even cp
<clever>
but if you where, you would use passAsFile
<Taneb>
lewo`: it's not, we're not using gitignoreSource. The names of the outputs are the same, just the hashes are different
<clever>
Taneb: you want builtins.path if you need to ensure ./. has the same name
<Taneb>
clever: that's not the issue I'm having
<clever>
Taneb: what is nix-diff saying the difference is?
<Taneb>
clever: my own investigation has shown that one version has a source with a .gitignore in it, the other has it filtered out
<clever>
Taneb: are you using filterSource?
<Taneb>
clever: yes
cosimone has joined #nixos
<clever>
then you may need to exclude .gitignore too
<Taneb>
I believe .gitignore is excluded
mexisme has joined #nixos
<clever>
Taneb: if its excluded, you wont see it in the nix store
<deni>
clever: hmmm.... cat ./path/to/foo.json > /foo.json doesn't actually work it seems. The file ends up being empty in the docker container when I start it. That's why I was surprised that this would work
<clever>
deni: did you use ${ like in my example?
erictapen has quit [Ping timeout: 245 seconds]
<deni>
clever: oh god....no I forgot
<deni>
let me restart it
<Taneb>
clever: I'm not seeing it in the nix store when I build locally, but I am when my Hydra server builds it
syzygyzer has joined #nixos
<clever>
Taneb: and are you looking at the src for the derivation hydra is building?
<clever>
Taneb: try using nix-copy-closure to pull the .drv from hydra, and use nix-diff to compare to a local one?
mexisme has quit [Ping timeout: 246 seconds]
<Taneb>
That's what I've been doing
<m0rphism>
Hi, after upgrading from `nixos-19.03` to `nixos-19.09` trying to install any rust-related package, e.g. `alacritty`, gives me an error about the `rustPlatform` attribute missing in `all-packages.nix`. Any idea how to debug this? I've checked the `nixpkgs` issues but couldn't find anything related.
<clever>
Taneb: can you paste a link to the hydra in question?
<Taneb>
No, it's private and only available on my office's LAN
<clever>
Taneb: can you pastebin the output from nix-diff?
<m0rphism>
the `rustPlatform` attribute is however defined in the `all-packages.nix` referenced in the error message.
bvdw has quit [Read error: Connection reset by peer]
syzygyzer has quit [Remote host closed the connection]
Neo-- has quit [Ping timeout: 250 seconds]
m0rphism has quit [Quit: WeeChat 2.4]
<dmj`>
clever: hey, I'm trying to set an argument ({optimization ? false}) in a servers.nix script (that nixops uses) so that I can use nixops set-arg to globally enable / disable optimizations on deploy
<dmj`>
clever: but when I refactor servers.nix to take a set argument with default value for optimization nix complains that the attribute is missing
<clever>
dmj`: is it a deployment file or nixos file?
<dmj`>
clever: its a nix file, like what machines.nix shows in the nixos user guide examples
m0rphism has joined #nixos
<clever>
dmj`: can you pastebin that file?
<dmj`>
it's just like this, with (builtins.fromJSON (builtins.readFile ../nix/nixpkgs.json)); let stuffGoesHere = ... in { inherit servers; network.description = "some network"; }
<{^_^}>
[nixpkgs] @zimbatm pushed commit from @flokli to master « terraform-providers: bump version (#74991) »: https://git.io/JeDg0
<dmj`>
clever: maybe its just a global variable nixops can use anywhere
dbmikus_ has joined #nixos
pbb has joined #nixos
jco has joined #nixos
<m0rphism>
nvm, the problem was my local configuration: some time ago there wasn't a `rustPackages` attribute, so I had my own defined containing my local packages. Apparently this changed and also prevented the `rustPlatform` and `rustc` attributes from being inherited.
<dmj`>
clever: nah, didn't work. But nixops info shows Nix arguments: optimization = true
lucc has quit [Quit: WeeChat 2.6]
<Aleksejs>
Is there a way to label generations?
<infinisil>
Aleksejs: Yeah with `system.nixos.label = "foo"`
<gchristensen>
hmm I suspect our openldap's dependency on GCC is not needed
cosimone has quit [Remote host closed the connection]
<o1lo01ol1o>
I have an attribute in a hydra job that seems to cause evaluation to silently terminate after 9 minutes. Is there any way to understand what might be happening here?
cosimone has joined #nixos
<clever>
o1lo01ol1o: as the hydra user, run hydra-eval-jobset <project> <jobset>
<clever>
then you can see the full eval output, without it getting mixed into other unrelated logs
<o1lo01ol1o>
clever: great, thanks
<o1lo01ol1o>
clever++
mexisme has joined #nixos
<{^_^}>
clever's karma got increased to 262
poprox has joined #nixos
domogled has joined #nixos
erasmas has quit [Quit: leaving]
poprox is now known as syzygyzer
<o1lo01ol1o>
clever: it seems like hydra-evel-jobset doesn't return and doesn't print anything to stderr. I imagine that's not supposed to happen . . .
<clever>
o1lo01ol1o: did it return to the hydra shell or the root shell?
<o1lo01ol1o>
i'm still in the hydra shell
<clever>
o1lo01ol1o: did you use sudo -i or plain sudo hydra-eval-jobset?
<o1lo01ol1o>
I ssh'd in as root and su hydra
<o1lo01ol1o>
then hydra-eval-jobset
<clever>
o1lo01ol1o: anything in dmesg?
<o1lo01ol1o>
clever: the process never returns, I entered a ";" and got ;Out of memory!
<bsima>
I looked at the implementation but still don't understand why
<clever>
bsima: the only way to get root is to run the entire command in a qemu vm
<clever>
bsima: i try to avoid runAsRoot, because it harms performance, even more if you lack access to /dev/kvm
bionicpup64_2042 has quit [Ping timeout: 240 seconds]
<bsima>
oh, runWithOverlay does everything inside a qemu vm
<bsima>
ok, thanks clever, i think i will just avoid runAsRoot
justan0theruser has quit [Ping timeout: 265 seconds]
<catern>
if my home directory is on a network filesystem that is shared between machines, do I have any good options for how to run Nix? (on top of non-NixOS)
<catern>
I don't want make /nix a network filesystem because that's notoriously awkward
<catern>
rather than a symlink directly to /nix/store/whatever
<clever>
and default itself, is another symlink
<catern>
yeah
<catern>
awesome, thank you eelco for yet another perfect design
drakonis has quit [Ping timeout: 265 seconds]
<gchristensen>
it is incredible, isn't it, catern?
Denommus has joined #nixos
<catern>
yes - although I'm still glad that NFS homedirs aren't normal, because it would be awkward for most people to deal with their homedir being shared but their Nix profile being unshared. but for those who have an NFS homedir, they have opted in to suffering...
<{^_^}>
[nixpkgs] @bjornfor opened pull request #75001 → makeDesktopItem: use runCommandLocal → https://git.io/JeDwD
acarrico has joined #nixos
<ornxka>
man i run all these nix commands and it does all this stuff and i have no clue whats going on
<vaibhavsagar>
ornxka: ah yes, completely unlike any of the other software you use
drakonis has joined #nixos
wildtrees has quit [Quit: Leaving]
<ornxka>
i would say that the unknown-ness of other programs is somewhat more limited though
<catern>
ornxka: what are you confused about? if you want to learn more, I'd encourage reading through the Nix manual - it's pretty short and gives some good understanding of how Nix works
<ornxka>
like for most programs i have a decent idea of stuff like what resources they use and what files they read and what governs their behavior
<vaibhavsagar>
ornxka: even e.g. apt-get install postgresql
<vaibhavsagar>
Nix only writes to `/nix/store` and creates a symlink at `./result`
<ornxka>
catern: i mostly just lack a high-level understanding of nix
<ornxka>
vaibhavsagar: ah thats actually very useful to know
hmpffff_ has quit [Quit: Bye…]
<vaibhavsagar>
at least with `nix-build`
<vaibhavsagar>
`nix-shell` is similar but also manipulates environment variables
<catern>
ornxka: yeah the Nix manual will give you a good high-level understanding of Nix
<o1lo01ol1o>
hydra-eval is giving me error: stack overflow (possible infinite recursion) on a jobset that I'm able to build on a local machine. is there a way to increase whatever it's overflowing?