newhoggy_ has quit [Remote host closed the connection]
<justan0theruser>
what is the best resource for documentation of each expression, or at least the builtins? For example, I see fetchGit in source using "url" and "res" arguments. I then google fetchGit and the one relevant result is https://github.com/NixOS/nixpkgs/tree/master/pkgs/build-support/fetchgit however I don't see how "url" and "ref" are defined, or any other potential arguments.
aarvar has left #nixos [#nixos]
<justan0theruser>
or some tool within nixos to get more information
<palo>
justan0theruser: I'm also not aware of a tool like man configuration.nix for modules, so I use ag on the nixpkgs repo and read the code
<clever>
but everything under builtins is part of nix, not nixpkgs
<palo>
would be nice if there is a doxygen like rendering for the functions in nix
<clever>
and if its a set, it will contain a url, ref, ref, and name
<clever>
ref and/or rev
Sonarpulse has joined #nixos
smallville7123 has joined #nixos
<justan0theruser>
clever: thanks
<justan0theruser>
palo: do you know whether there is any work being done on auto-generating nix documentation based on code?
<palo>
justan0theruser: no I don't know anything about it.
<clever>
justan0theruser: gchristensen had made some code before, that tool the nixos-install tests, and auto-generated directions on how to install nixos
<palo>
I don't think there is a proper way to do it.
<clever>
justan0theruser: so the uefi testcase, turned into directions on creating a uefi install
<palo>
justan0theruser: man configuration.nix for example uses an AST which to generate the file, which is a proper way.
newhoggy has joined #nixos
<palo>
justan0theruser: parsing files (like doxygen) might now work that well in the nix situation, but maybe I'm wrong (hopefully)
<mpickering>
I have a shell as well in the contents
<mpickering>
It fails in a basic way, there is no "src" for the .env derivation
<mpickering>
I understood .env was a bit strange anyway
<clever>
mpickering: oh yeah, .env lacks $src
<rotaerk>
I have a haskell project with a default.nix that builds it. now I want to add some GLSL shader files to the project, and I want to modify default.nix such that the build output now includes the haskell-compiled binaries *and* a shaders folder containing the SPIR-V produced by compiling the GLSL shader files
<clever>
mpickering: you may want to set Cmd to be a script, that just does `export src=${./.}` or similar, then runs bash
<mpickering>
Could I say .env.buildInputs or sommething?
linack has left #nixos ["Leaving"]
<rotaerk>
the approach I have in mind is to put a default.nix stdenv derivation in my source shaders folder, which collects all the GLSL files, compiles them, and puts the result into the out directory, then make this derivation a dependency of my project default.nix, and add a install phase step that copies the output of the shader derivation to the output of the project
<rotaerk>
does this approach make sense or is there a better way?
<clever>
rotaerk: if you do this, then every package defined inside packages, can refer to eachother, as-if they where all in nixpkgs
<clever>
so you can do packages = self: { haskellthing = pkgs.haskellPackages.callPackage ./haskellthing {}; shaders = self.callPackage ./shaders {}; both = self.callPackage ./both {}; };
<clever>
and both/default.nix just has { runCommand, shaders, haskellthing }:
<rotaerk>
hmm interesting
<rotaerk>
is the body of both/default.nix then using buildEnv
<moet>
if i do `nix-shell -p blah` then i'm in an environment without nix-shell!
<moet>
how can i make sure nix-shell is available in a nix-shell environment? :)
<ryantm>
moet: Are you using nix-shell --pure?
steell has joined #nixos
sbdchd has quit [Remote host closed the connection]
markus1189 has joined #nixos
<moet>
ryantm: yes..
<moet>
i'm actually calling `nix-shell` from a test-executable run by `stack` with `nix:pure` .. :heh:
<ryantm>
moet: Without --pure you'll have access to it :)
<moet>
hmm.. yes, that's how i fixed it
<moet>
but i was wondering if there's some `-p` i can provide to ensure nix-shell is in the environment
<ryantm>
moet: `nix-shell --pure -p nix` has nix-shell
<ryantm>
moet: I figured that out by running `readlink `which nix-shell`` in the regular shell.
lostman has joined #nixos
<ryantm>
moet: I think you have to reset the NIX_PATH too
blankhart has quit [Quit: WeeChat 1.9.1]
<lostman>
hi all. is it possible to read contents of a file in a derivation and treat it as input? I want to store VERSION in a file and use it to build docker image (using buildImage)
<moet>
reset the NIX_PATH ?
<clever>
--pure will clear NIX_PATH
<clever>
and nix-shell -p requires it
<ryantm>
moet: I mean --pure will clear out environment variables, like NIX_PATH
andreabe_ has joined #nixos
andreabe_ has quit [Client Quit]
<ryantm>
lostman: Sure, just do ./VERSION
<moet>
yeah, adding that back in doesn't fix.. there's some other error about `warning: unknown setting 'signed-binary-caches'`
andreabedini has quit [Quit: ZNC 1.6.6 - http://znc.in]
<moet>
not sure this is a rabbit hole i want to dive all the way down
<clever>
moet: your running a different version of nix then the host
<lostman>
ryantm: ah cool, that simple :)
<moet>
clever: uh oh..
steell has quit [Ping timeout: 240 seconds]
<clever>
moet: you can also generally ignore that warning
<ryantm>
moet: that warning is related to different versions of nix, it doesn't cause problems from what i've seen though
<moet>
hrm...
<kreisys>
Random question... are there any good examples of using the nixos module infrastructure in different contexts?
<ryantm>
kreisys: Do you mean like not in NixOS?
<kreisys>
Also not in nix-darwin because it's a similar use case
andreabedini has joined #nixos
<moet>
clever: if i'm in a `--pure` nix environment, how can i know what to set NIX_PATH to?
<moet>
i'm thinking there's not actually a right way to do this
<clever>
moet: i would also have a nixpkgs-src.json that specifies where to fetch nixpkgs from, and point NIX_PATH to that
<ryantm>
moet: You could upgrade the nix version in your top-level environment by setting the NIX_PATH to whatever you are setting it inside the shell.
markus1189 has quit [Ping timeout: 256 seconds]
<ryantm>
Like if you are setting NIX_PATH with `NIX_PATH=nixpkgs=blah` you could do `nix-env -f blah -u nix`
newhoggy has quit [Ping timeout: 276 seconds]
smallville7123 has joined #nixos
liori has quit [Remote host closed the connection]
liori has joined #nixos
<clever>
ryantm: but dont try to install nix with nix-env on nixos
newhoggy has joined #nixos
sanscoeur has quit [Remote host closed the connection]
smallville7123 has quit [Quit: rosa]
<ryantm>
clever: Oh, what happens?
<clever>
ryantm: fun things happen when you later try to upgrade the system nix, and the one in nix-env stops it from upgrading
<ryantm>
clever: I was able to run the -u command though, is that bad too?
<clever>
ryantm: does nix-env -q say nix is installed?
<ryantm>
clever: yep nix 2.0.2
<clever>
ryantm: and are you on nixos?
<ryantm>
clever: Yep. I should uninstall it?
<clever>
ryantm: yeah
jackdk has quit [Ping timeout: 244 seconds]
<ryantm>
clever: Thanks for the tip!
Ross has quit [Ping timeout: 256 seconds]
Ross has joined #nixos
moet has quit [Ping timeout: 240 seconds]
jackdk has joined #nixos
Drakonis has joined #nixos
asuryawanshi has joined #nixos
<hyper_ch>
clever: could you do me a favor?
<clever>
hyper_ch: depends on what it is
<hyper_ch>
clever: can you ping roleplayer.org ?
steell has joined #nixos
jperras has quit [Ping timeout: 240 seconds]
<clever>
hyper_ch: no response from the dns server
<hyper_ch>
clever: :(
<hyper_ch>
what happened...
<clever>
hyper_ch: if i try again with `dig +trace`, i can see the NS records still exist
<clever>
and it has dnssec
asuryawanshi has quit [Remote host closed the connection]
<clever>
hyper_ch: ah, the glue records are missing, i see whats wrong
<clever>
hyper_ch: they messed up the dns config
<clever>
hyper_ch: the nameservers behind roleplayer.org are ns6.roleplayer.org and ns5.roleplayer.org, but there are no glue records to say what IP to find them at
<clever>
so you have to know the answer, to find the answer, to be able to ask for the answe
<clever>
r
<hyper_ch>
clever: wtf....
<clever>
the original admin of the site will need to fix their config at the registrar
markus1189 has joined #nixos
toraritte has joined #nixos
nocoolnametom has quit [Quit: ZNC 1.6.5 - http://znc.in]
nocoolnametom has joined #nixos
<hyper_ch>
that's all me....
<hyper_ch>
it's been working for .... dunno... years
<clever>
hyper_ch: double-check the settings in the dns registrar
iqubic has joined #nixos
* clever
heads to bed
tertle||eltret has quit [Quit: Connection closed for inactivity]
<johnw>
is the logic for how nix-env -i resolves package names documented anywhere?
<johnw>
I'm trying to debug a case where "nix-env -i coq" is getting resolved to something different from "nix-env -iA coqPackages.coq"
YaZko has joined #nixos
sbdchd has joined #nixos
rauno has quit [Ping timeout: 248 seconds]
Rusty1_ has quit [Quit: Konversation terminated!]
sbdchd has quit [Ping timeout: 248 seconds]
markus1189 has quit [Ping timeout: 276 seconds]
nocoolnametom has quit [Quit: ZNC 1.6.5 - http://znc.in]
nocoolnametom has joined #nixos
markus1189 has joined #nixos
robstr has joined #nixos
<hyper_ch>
clever: haven't changed anything and the seem to be fine... thx
<hyper_ch>
clever: server reboot helped :)
markus1189 has quit [Ping timeout: 244 seconds]
<toraritte>
Hi, to issue a pull request to Nixpkgs, should the changes simple be committed to master? Or did I misinterpret the line in the readme, "For pull-requests, please rebase onto nixpkgs master"?
jperras has joined #nixos
ikitat has quit [Ping timeout: 240 seconds]
mahalel_ has quit [Ping timeout: 244 seconds]
<johnw>
it means that whatever branch of yours you push them to in your fork of nixpkgs
cloud-maingo has quit [Quit: Connection closed for inactivity]
<johnw>
make sure that branch is rebased onto nixpkgs' master before creating the PR
<justan0theruser>
is there some way I can sync nixops with ec2? It's currently showing me 3 machines running when all are terminated
jperras has quit [Ping timeout: 240 seconds]
Have-Quick has quit [Quit: Have-Quick]
<jD91mZM2>
Wait, pacman is installable from nix? What?? (The nixpkgs.pacman package)
<justan0theruser>
jD91mZM2: my understanding is that this is just for build expression purposes and you can't actually install packages through them directly
avn has quit [Ping timeout: 245 seconds]
endformationage has quit [Quit: WeeChat 1.9.1]
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guanin has quit [Ping timeout: 248 seconds]
imalison has joined #nixos
Have-Quick has joined #nixos
<elvishjerricco>
justan0theruser: You mean the AWS console is showing you terminated instances?
<elvishjerricco>
They take quite a while after they've been terminated to be removed from view in the console. Not sure why
<toraritte>
johnw: thanks!
<jD91mZM2>
What was the nix build flag for keeping build output again?
<jD91mZM2>
oh nevermind that's not a thing, is it?
<jD91mZM2>
I confused it with another thing, my bad
Guanin has joined #nixos
Izorkin has joined #nixos
<justan0theruser>
elvishjerricco: yes, the instances are terminated, but nixops thinks they're still there after 15 minutes
steell has quit [Ping timeout: 248 seconds]
<elvishjerricco>
justan0theruser: Oh you terminated them in the console and want nixops to know that they're terminated?
<justan0theruser>
ya
<lewo`>
johnw: there are some elements in the --install section of the nix-env manpage
<johnw>
lewo`: thanks!
<elvishjerricco>
FWIW, you generally should terminate the instances from nixops with `nixops destroy`. But given you've already terminated them, you can use `nixops check` to make it sync with the actual state of the instances
<lewo`>
johnw: but not sure this would be sufficient...
asuryawanshi has quit [Remote host closed the connection]
<elvishjerricco>
justan0theruser: Looks like you moved or deleted the nix expression. With the nix file, it basically can't get as far as figuring out which instances to check
<elvishjerricco>
without the nix file*
markus1189 has joined #nixos
asuryawanshi has joined #nixos
<justan0theruser>
elvishjerricco: I didn't move it, however I did create another deployment of the same name from the wrong directory
<justan0theruser>
this resulted in me not being able to destroy it after it was deployed
<elvishjerricco>
justan0theruser: Shouldn't matter. But that does mean it'll require you to disambiguate using the UUID of the deployment
jperras has joined #nixos
<justan0theruser>
I'm not sure exactly what happened, but somehow I ended up with a state where I had successfully deployed, but not destroyed
<shikiryogy>
elvishjerricco: OK, thanks. I should probably wait for it to be added to unstable at least, or is there some other way to install it alongside the current version?
<elvishjerricco>
Yea you can always install a package from master alongside whatever your system channel is
vaninwagen has joined #nixos
<elvishjerricco>
Is this for a NixOS configuration.nix or just a normal nix-env?
<elvishjerricco>
I guess the answer doesn't actually matter; should be the same either way
<justan0theruser>
Is there a good way to have a service which can spawn or delete other nixops services programatically?
<elvishjerricco>
Assuming that's named `emacs26.nix`, you can do `nix-env -f emacs26.nix -i`, or in NixOS you can do `environment.systemPackages = [ (import ./emacs26.nix) ];`
<shikiryogy>
ok, thanks, I will look into it :)
<iqubic>
Is Emacs26 released?
patterson has joined #nixos
<shikiryogy>
Yeah, 2 days ago
<jD91mZM2>
What's this? "error: the lock file needs to be updated but --frozen was passed to prevent this"
<jD91mZM2>
Trying to build the cargo-edit package (it's marked as broken but I removed that and updated it)
<symphorien>
Cargo.toml is not in sync with cargo.lock
<jD91mZM2>
Oh, so it's an issue with cargo-edit itself?
Have-Quick has quit [Read error: Connection reset by peer]
<magnetophon>
When I nixos-rebuild I get "error: while setting up the build environment: getting attributes of path 'etc/hosts':permissio denied". What could cause that?
<sphalerite>
magnetophon: are you running it as root?
Have-Quick has joined #nixos
<{^_^}>
[nixpkgs] @xeji merged pull request #41272 → openshift: Fix path to mount and findmnt command → https://git.io/vhGga
tzemanovic has quit [Remote host closed the connection]
<magnetophon>
sphalerite: how should I test if I can build derivations? install a pkg in my profile?
<sphalerite>
sorry, I'm on a javascript-impaired laptop. Could you maybe paste it somewhere that doesn't require javascript to get at the text? (sorry for being a pain)
<magnetophon>
sphalerite: what amkes you think that?
<cmbtp>
Hi, I'm having issues figuring out how to install a split package with nix-env. For example I expect "nix-env -i -f '<nixpkgs>' -A pcre.dev" to install pcre-config
<cmbtp>
I've also tried overriding meta.outputsToInstall but that also doesn't seem to work
<sphalerite>
magnetophon: because it's built your new system, so nixos-rebuild won't actually build anything new
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « yoshimi: 1.5.7 -> 1.5.8 (#41221) »: https://git.io/vhZBy
<sphalerite>
magnetophon: it interpreted that as two separate commands.
<magnetophon>
sphalerite: maybe cause I'm usig zsh, not bash?
<sphalerite>
you want nix build -f '<nixpkgs/nixos>' config.system.build.toplevel, not nix build -f '<nixpkgs/nixos>'; config.system.build.toplevel
<sphalerite>
no, it's probably an artifact of pasting gone wrong or soemthing
<magnetophon>
yeah, it was 2 lines
<magnetophon>
running again
leat has joined #nixos
<cmbtp>
sphalerite: I know I shouldn't install libraries, I'm just using pcre as an example as I don't understand why I can't install parts of a split expression
jperras has joined #nixos
<sphalerite>
ok, right… in that case, the answer is "because nix-env is a pain" :p
<sphalerite>
I think your best bet is to make a declarative user environment and apply it using nix-env --set, so it doesn't build the user environment itself
<magnetophon>
sphalerite: the only output is the warning about the nix search path that I already had. nixos-rebuild still gives the same error.
adamt has joined #nixos
jackdk has quit [Ping timeout: 256 seconds]
<sphalerite>
whaaaaaaat… Ok, how about bash -x nixos-rebuild build
<sphalerite>
s/ build/ switch/ or whatever
<magnetophon>
sphalerite: that runs without errors and now my nixos-rebuild is running as well, thanks for at least fixing the symptom! :)
winem_ has joined #nixos
<sphalerite>
would probably be good to open an issue about this though, I'm still very confused as to what's going on there
magnetophon has quit [Remote host closed the connection]
newhoggy has joined #nixos
travankor has joined #nixos
<cmbtp>
sphalerite: Sorry I'm still very confused by this, for example "nix-env -i $(nix eval --raw -f '<nixpkgs>' pcre.dev.outPath)" installs what I expect but "nix-env -i $(nix eval --raw -f '<nixpkgs>' pcre.dev.drvPath)" doesn't (outPath vs drvPath)
<sphalerite>
yeah nix-env's env building is not ideal
<cmbtp>
I'm actually testing this with "nix repl" where I can't find any way of installing the sub package
<sphalerite>
although the drvPath bit makes sense, since the drvPath is the same for all the outputs
<cmbtp>
Ah I should have noticed that :P
magnetophon has joined #nixos
civodul has joined #nixos
<cmbtp>
Actually that makes everything make sense now
Have-Quick has joined #nixos
<magnetophon>
sphalerite: I did something stupid and had to reboot, and after that I got the same error with nixos-build. Your command fixed it again....
__Sander__ has joined #nixos
<sphalerite>
yeah I'm guessing it'll occur whenever it needs to build a new system, i.e. you've made configuration changes
<sphalerite>
could you try making some change so it has to rebuild, then running bash -x nixos-rebuild switch and pasting the output?
<magnetophon>
sure
<cmbtp>
Is there anyway of overriding the outputs to install? Using ":i (pcre.overrideAttrs (oldAttrs: rec { meta.outputsToInstal = [ "dev" ]; }))" in nix repl doesn't work
alex`` has joined #nixos
<sphalerite>
cmbtp: did you make the typo outputsToInstal in the repl too?
<sphalerite>
magnetophon: that's a successful run, no? I want the output from one that fails
<sphalerite>
wait no I see it does build the system
<cmbtp>
sphalerite: No the it was correct in the repl and I checked that the property was updated
<sphalerite>
aaaaah what
<sphalerite>
cmbtp: ok well… idk :p what are you trying to achieve anyway?
<magnetophon>
sphalerite: hmm,it doesn't give the error anymore. shall I try rebooting?
<magnetophon>
sphalerite: I did make changes in my config
<sphalerite>
I don't knoe what to try anymore :/
<magnetophon>
sphalerite: I'll reboot, since that triggered the error aminute ago.
magnetophon has quit [Remote host closed the connection]
chaker has joined #nixos
<chaker>
Hey, I'm having a kernel panic in GCE. I tried to go through the stage-1 script but I couldn't find where exactly the failure is happening. Does anyone have a hint for me? The log of the failure https://gist.github.com/Chakerbh/40c787899ff88e4564ad4c52c654cfe7
alex`` has quit [Ping timeout: 248 seconds]
johnw has joined #nixos
<sphalerite>
chaker: that looks odd, it doesn't finish writing the output of the init script before the stacktrace…
cmbtp has quit [Ping timeout: 260 seconds]
<sphalerite>
clever: what was the kernel parameter to delay those messages again?
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thblt has joined #nixos
magnetophon has joined #nixos
<sphalerite>
ah found it, boot_delay
<sphalerite>
chaker: can you try booting it with boot_delay=200 or so?
<magnetophon>
sphalerite: nope, the error doesn't come up anymore. Thanks so far!
<sphalerite>
magnetophon: <_< those bugs that can't be reproduced…
newhoggy has quit [Remote host closed the connection]
<sphalerite>
chaker: if you have a two-way serial console and not just output, you could also try passing boot.debug1devices on the kernel command line to get a shell so you can have a closer look at what's going on
ertes has quit [Read error: Connection reset by peer]
jperras has quit [Ping timeout: 255 seconds]
kwork has quit [Changing host]
kwork has joined #nixos
Have-Quick has quit [Ping timeout: 244 seconds]
lonokhov has joined #nixos
leat has quit [Ping timeout: 256 seconds]
newhoggy has joined #nixos
iqubic has quit [Ping timeout: 276 seconds]
<chaker>
sphalerit: Yes, I do. I will add them and then check the result.
balsoft has joined #nixos
sigmundv_ has joined #nixos
aarvar has quit [Ping timeout: 240 seconds]
<balsoft>
Hello everyone, I have a little problem: How do I import Gtk from gi.repository in python3? Currently, it segfaults when I try to do that.
<tfc[m]>
did anyone use nix expressions to do something like `fetchGit` on a gitlab repository that is private? i need to somehow "inject" the credentials
lhart has quit [Quit: lhart]
Wharncliffe has joined #nixos
balsoft has quit [Quit: Leaving]
tzemanovic has joined #nixos
periklis has quit [Ping timeout: 256 seconds]
<__Sander__>
hmm
<__Sander__>
packaging/updating go packages isn't as straight forward as I thought
<__Sander__>
for some weird reason the deps.nix is totally empty
balsoft has joined #nixos
balsoft has quit [Client Quit]
tzemanovic has quit [Ping timeout: 244 seconds]
<manveru>
go2nix isn't recursive
<lewo`>
__Sander__: if all deps are vendorized, deps.nix is empty
<manveru>
i'm using `dep` to make a lockfile and convert that to nix
<__Sander__>
hmm
<__Sander__>
I am trying to get influxdb updated
oida has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixos-homepage] @edolstra pushed 2 commits to master: https://git.io/vhZwE
sbdchd has joined #nixos
<{^_^}>
[nix] @edolstra pushed 0 commits to refs/tags/2.0.4: https://git.io/vhZwD
<manveru>
btw, are there any programming languages using nix as package manager yet?
<lewo`>
__Sander__: deps are not vendorized so deps.nix should not be empty
<sphalerite>
I charged my xps 15 with my friend's macbook charger a while back :D
<sphalerite>
although it didn't do 130W
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos
ericsagnes has quit [Ping timeout: 240 seconds]
<thblt>
sphalerite: you can charge with an underpowered charger, it's just slower (I'm going to buy a 35W charger to carry around, just to save weight), but heavy work loads may drain the battery even on AC.
<sphalerite>
yep
<sphalerite>
foudn that out the hard way with a previous laptop, a macbook pro, while charging it with a friend's macbook air charger…
<srhb>
Does anyone have an idea why this used to work? The commit log seems nonobvious:
<tazjin>
thblt: that's pkgs.fetchgit, which is different from builtins.fetchGit
<tazjin>
in our case we have to use the builtin one because we have no way of knowing the sha hashes in advance (version pins are dynamically updated by CI and set to a commit ref)
<thblt>
tazjin: sorry, I'm not case-sensitive :)
<tazjin>
hehe
kini has joined #nixos
kreisys has quit [Ping timeout: 240 seconds]
ThatDocsLady has quit [Remote host closed the connection]
ThatDocsLady has joined #nixos
sbdchd has joined #nixos
rauno has quit [Ping timeout: 255 seconds]
sbdchd has quit [Remote host closed the connection]
sbdchd has joined #nixos
Fare has joined #nixos
coot has joined #nixos
YaZko has joined #nixos
truthadjustr has joined #nixos
<Aleksejs>
Hi, is it possible to modify nix-env -qa command to get only attribute names of packages?
<symphorien>
-qaP ?
steell has joined #nixos
iyzsong has joined #nixos
<{^_^}>
[nixpkgs] @Scriptkiddi opened pull request #41313 → gams: move optgams and gamslice to $out/share/gams → https://git.io/vhZFg
jperras has joined #nixos
<Aleksejs>
symphorien: -qaP shows package name and attribute name. There's also a --no-name flag that hides package name. For example nix-env -qaP --no-name gives me entries like "nixos.firefox" but I need just "firefox"
<Aleksejs>
one more question: is it possible to use local cache for nix-env -q?
thblt has quit [Remote host closed the connection]
<Myrl-saki>
I know this is a bit nitpicky, but it's a bit grating that sometimes you have to run `buildPhase` and sometimes you have to run `eval "$buildPhase"` is there any work being done on "fixing" this?
<Myrl-saki>
"If the first character of parameter is an exclamation point (!), and parameter is not a nameref, it introduces a level of variable indirection."
<Myrl-saki>
Really though, can anyone explain that?
<LnL>
it's what makes $buildPhase have priority over the default buildPhase function
<Myrl-saki>
LnL: Yeah, I understand that, but how does it evaluate?
<Myrl-saki>
How does it check if $buildPhase exists
<Myrl-saki>
or something like that
<Myrl-saki>
i don't know
<Myrl-saki>
Oh wait, I think I get it now.
<Myrl-saki>
Okay, crap, that's... I think I get it.
alex`` has joined #nixos
<LnL>
if it's a variable you get the content otherwise you get the name
<Myrl-saki>
Oh wow.
<LnL>
and that's evaluated
<Myrl-saki>
eval((variable_exists(**x)) ? **x : *x;) or something like that.
<Myrl-saki>
In pseudo-C.
<Myrl-saki>
That's... pretty amazing, TBH.
<Myrl-saki>
I think it makes more sense if working with strings, I don't know.
steell has joined #nixos
YaZko has quit [Quit: YaZko]
<Myrl-saki>
Basically, if curPhase = buildPhase, for example. It will either result to the value of buildPhase, if it exists, or it's "buildPhase", the literal string, which when evaled, calls, the function. Just in case someone is as confused as me.
YaZko has joined #nixos
karlguy has joined #nixos
chreekat has joined #nixos
<Myrl-saki>
If you evaluate it by "one step" it becomes something like `eval "${patchPhase:-patchPhase}"`
<Myrl-saki>
cool.
nicolaslekoala has joined #nixos
Guanin has quit [Remote host closed the connection]
<{^_^}>
[nixos-hardware] @azazel75 opened pull request #60 → Add basic support for 6th-gen X1 → https://git.io/vhZjL
olto has quit [Read error: Connection reset by peer]
halfbit has quit [Ping timeout: 276 seconds]
commande1 has quit [Quit: leaving]
newhoggy has joined #nixos
commander has joined #nixos
olto has joined #nixos
szicari_ has joined #nixos
szicari_ has quit [Client Quit]
szicari has joined #nixos
adamt has quit [Quit: WeeChat 2.0]
steell has quit [Ping timeout: 245 seconds]
szicari has quit [Quit: Leaving.]
szicari has joined #nixos
endformationage has joined #nixos
YaZko has quit [Quit: YaZko]
das_j has joined #nixos
<das_j>
Hi, I'm trying to package a perl program which needs custom modules. I run wrapProgram and set PERL5PATH in the wrapper. However, it seems like perl ignores the variable
<das_j>
Is this the wrong variable name?
__Sander__ has quit [Quit: Konversation terminated!]
dottedmag has quit [Quit: QUIT]
YaZko has joined #nixos
dbmikus has joined #nixos
romildo has joined #nixos
page has joined #nixos
<romildo>
In NixOS (unstable) I want normal users to be able to use mount. What is an easy way of doing it?
dottedmag has joined #nixos
dottedmag has quit [Changing host]
dottedmag has joined #nixos
<niksnut>
no
<niksnut>
but there is 'udiskctl mount'
<niksnut>
*udisksctl
YaZko has quit [Quit: YaZko]
chpatrick has joined #nixos
<chpatrick>
hi, we're having a problem where there's so much in NIX_LDFLAGS that COLLECT_GCC_OPTIONS goes over MAX_ARG_STRLEN
<chpatrick>
do you know any way around that?
YaZko has joined #nixos
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
YaZko has quit [Client Quit]
hamishmack has joined #nixos
karlguy has quit [Quit: Leaving]
YaZko has joined #nixos
xy2_ has joined #nixos
ikitat has joined #nixos
<mpickering>
ghcWithPackages doesn't seem to work correctly with docker.buildImage, anyone else tried this?
<mpickering>
All the relevant packages appear in the store but ghc-pkg list doesn't show them in the package database
nc_ has joined #nixos
YaZko has quit [Client Quit]
Ariakenom has joined #nixos
<nc_>
Anyone know whether the mozilla rust overlay can be used with `buildRustPackage`?
<YegorTimoshenko[>
if you want to test against this expression against my overlay, run `nix-build call-overlay.nix -I nixos-overlay=https://github.com/yegortimoshenko/nixos-overlay/archive/master.tar.gz`
sary has joined #nixos
chaker`` has quit [Ping timeout: 244 seconds]
YaZko has joined #nixos
<{^_^}>
[nixpkgs] @primeos opened pull request #41315 → scdoc: init at 1.3.3 → https://git.io/vhnOl
YaZko has quit [Client Quit]
<{^_^}>
[nixpkgs] @7c6f434c pushed to release-18.03 « Merge pull request #41291 from YorikSar/update-chromium »: https://git.io/vhnOw
leat has quit [Ping timeout: 244 seconds]
YaZko has joined #nixos
smallville7123 has joined #nixos
brtknr has joined #nixos
<mpickering>
I have a folder, called "benchmarks" and I want to put this into a folder called "benchmarks" in a docker container - how can this be achieved? If I just list it in contents, it splurges all the files into /
sbdchd has quit [Remote host closed the connection]
<Jetien>
"nix-channel --update mychannel" isn't updating with my channel. Even though the server responds with a different ETag. I've already read the source of nix-channel and libstore/download.cc but I can't figured it. Anybody had issues with that too?
<Jetien>
If i delete everything in ~/.cache/nix/tarballs the channel updates to a updated hash
<Jetien>
s/hash/store path
<YegorTimoshenko[>
gchristensen: what is the error that you're getting? (with --show-trace)
<Myrl-saki>
elvishjerricco: Isn't Dezgeg working on something like that?
<Dezgeg>
I haven't tried cross compilation
<Myrl-saki>
Oh wait.
<Myrl-saki>
Dezgeg: Yeah, sorry, misunderstood.
<__monty__>
I have a command available in a myEnvFun environment. I'd like to use this in a script but I'm getting command not found. The script is called by vim if that matters.
<jtojnar>
matthewbauer: the revert breaks nix-build nixos/release.nix -A tests.gdk-pixbuf.x86_64-linux
deepfire` has quit [Ping timeout: 240 seconds]
<Baughn>
I'm recovering from needing to manually rebuild a nixops server. Accordingly, I wanted to delete the machine from nixops and re-add it, but...
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to staging « bison: 3.0.4 -> 3.0.5 (#41302) »: https://git.io/vhng7
<jbaum98>
is there a way simply to reexport environment variables using wrapProgram? because it uses exec, so any unexported variables don't get through to the original program.
<clever>
jbaum98: export variable
<{^_^}>
[nixpkgs] @thoughtpolice pushed to master « haskellPackages.ghc84x.singletons: disable test suite for ghc-8.4.3 »: https://git.io/vhn2k
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to staging « fftwLongDouble: 3.3.7 -> 3.3.8 (#41299) »: https://git.io/vhn2t
<jbaum98>
right, but is there a good way to insert that export variable into the wrapped program created by wrapProgram?
<{^_^}>
[nixpkgs] @hakujin opened pull request #41322 → kafka: include Kafka Connect shell scripts → https://git.io/vhn2n
YaZko has quit [Quit: YaZko]
<clever>
jbaum98: not sure
mizu_no__ has joined #nixos
<jbaum98>
clever: do you think it'd be worth a pull request to add an export option to makeWrappedProgram for this?
<clever>
yeah, that sounds useful
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vhn2M
jD91mZM2 has quit [Ping timeout: 240 seconds]
freeman42x[nix] has joined #nixos
<{^_^}>
[nixpkgs] @thoughtpolice pushed to master « haskellPackages.ghc84x.criterion: bump to criterion 1.4.1.0 »: https://git.io/vhn2Q
<__monty__>
johnw: I haven't kept up with your nix config changes. Do we still need myEnvFun?
Guest41788 has quit [Quit: leaving]
<{^_^}>
[nixpkgs] @matthewbauer pushed to master « haskell: fixup merge of c425a1fc5002a1642036a74d67b200e47f19cefb »: https://git.io/vhnak
hlolli has joined #nixos
<Myrl-saki>
What happens if you readFile /dev/stdin?
dottedmag has quit [Quit: QUIT]
<bebarker>
Setting e.g. services.openssh.whatever doesn't seem to work for config.nix in nixpkgs; I assume this is a NixOS-specific mechanism. What's the recommended way to configure openssh installed from nixpkgs on a non-nixos system?
dottedmag has joined #nixos
dottedmag has quit [Changing host]
dottedmag has joined #nixos
<johnw>
__monty__: yes
<johnw>
__monty__: I added many comments concerning why to the issue on this topic
alexteves_ has joined #nixos
<johnw>
__monty__: I'm in the process of trying to make nix-shell workable, but it still sucks along several vectors
jperras has quit [Read error: Connection reset by peer]
jperras has joined #nixos
<bebarker>
actually, nevermind - it does work (probably), I had a typo
alexteves_ has quit [Remote host closed the connection]
mizu_no__ has quit [Quit: Computer has gone to sleep.]
alexteves_ has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
YaZko has joined #nixos
asuryawanshi has joined #nixos
mizu_no__ has joined #nixos
sigmundv_ has quit [Remote host closed the connection]
<mjrosenb>
I just installed nix on OSX, and nix-env -i git is telling me that there are two derivations named git-2.16.3. Is this expected, or is something (subtly) wrong?
<tsmeets>
Hello, does any one here know how I could get a cross compiler to powerpc?
<{^_^}>
[cabal2nix] @peti pushed to master « travis-ci: run tests with ghc 8.4.3 »: https://git.io/vhnAh
alex`` has quit [Ping timeout: 260 seconds]
<tsmeets>
I want to compile for the wii (a powerpc machine). Compiling the devkitPro tools was no problem, but I failed to get a crosscompiler.
<Aleksejs>
I have a strange "bug": when I put my laptop in a bag, it resumes from suspend. It's because I have a portable monitor in that bag and it has a cover that has some rfid inside (my phone detects that cover). It seems that my laptop also reacts on that cover. Does anyone know how can I disable that event?
matthewbauer has joined #nixos
rauno has quit [Ping timeout: 240 seconds]
alex`` has joined #nixos
<MichaelRaskin>
Does nix copy have an undocumented switch that would try fetching at least the build dependencies if a path is not available on the source?
thblt has quit [Remote host closed the connection]
asuryawa_ has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @xeji pushed commit from @vdemeester to master « traefik: 1.5.2 -> 1.6.2 (#41208) »: https://git.io/vhcer
<warbo>
Hi I'm trying to add a udev rule to my nixos system (17.09) to fire when USB keyboard is inserted or removed
<warbo>
based on tutorials, stackoverflow, etc. I've got services.udev.extraRules = ''SUBSYSTEM=="usb", ACTION=="add", RUN+="${myscript}"''' but it doesn't seem to fire on USB add/remove
YaZko has joined #nixos
<warbo>
trying at the moment with a simple echo command, to rule outproblems with my script
<rihards>
hi, does anyone know how to get the git revision of my current channel so that i can pin it?
<clever>
nix-instantiate '<nixpkgs>' -A lib.nixpkgsVersion --eval
<clever>
"18.09pre135256.6c064e6b1f3"
<clever>
rihards: the 6c064e6b1f3 at the end is a git rev
<{^_^}>
[nixpkgs] @jhenahan opened pull request #41333 → haskell-modules/configuration-ghc-8.2.x: bugfix - hoopl is still a core library → https://git.io/vhcUA
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<{^_^}>
[nixpkgs] @jhenahan opened pull request #41334 → configuration-ghc-8.4.x: bump to dhall_1_14_0 → https://git.io/vhcTZ
<{^_^}>
[nixpkgs] @xeji pushed commit from @megheaiulian to master « gitkraken: 3.6.0 -> 3.6.1 (#41130) »: https://git.io/vhcIj
tmaekawa has quit [Quit: tmaekawa]
<__monty__>
johnw: Thanks for keeping notes in that PR.
dbe has quit [Ping timeout: 260 seconds]
dbe has joined #nixos
coot has joined #nixos
__monty__ has quit [Quit: leaving]
seanparsons has joined #nixos
<{^_^}>
[nixpkgs] @xeji merged pull request #41039 → dnscrypt-proxy: make man 8 dnscrypt-proxy work → https://git.io/vhIwE
<{^_^}>
[nixpkgs] @xeji pushed commit from @coretemp to master « dnscrypt-proxy: make man 8 dnscrypt-proxy work (#41039) »: https://git.io/vhctW
hiroshi has joined #nixos
simukis has quit [Ping timeout: 260 seconds]
mconstant has joined #nixos
szicari has quit [Quit: Leaving.]
newhoggy has joined #nixos
<mconstant>
I have a laptop that has Ubuntu. I cannot get into the BIOS because the screen is broken (I use an external monitor). is there a way to install NixOS in Ubuntu then reboot when done into nix? it currently has a dual boot with windows 10 which I am fine with destroying.
jbgi has quit [Ping timeout: 248 seconds]
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
Acou_Bass has joined #nixos
dbmikus_ has quit [Ping timeout: 244 seconds]
<symphorien>
mconstant: look for NIXOS_LUSTRATE in the manual
<mconstant>
that's what I was looking for. forgot the word
<iqubic>
How often should one run "nix search -u"?
thblt has joined #nixos
<Baughn>
So cache.nixos.org is using an outdated SSL certificate.
<Baughn>
Or at least, I presume that's what it's doing. The alternatives are worse.
<srhb>
iqubic: When you think a package should be there and you're not finding it perhaps?
<srhb>
Baughn: Oh fun, the Symantec shenanigans...
<Baughn>
Yup. Well, nixos-rebuild is broken until that's fixed.
<iqubic>
srhb: Well, except I keep getting this "Warning using cached version. Run 'nix search -u' to update cache"
<srhb>
Baughn: It shouldn't be..
<Baughn>
If you bypass the cert error, you get a cloudfront error instead.
<srhb>
iqubic: That will always be true.
<Baughn>
"CloudFront is currently experiencing problems with requesting objects from Amazon S3."
<srhb>
Baughn: Must be a regional thing.
<srhb>
Looks fine here, EU west something I think.
<elvishjerricco>
Baughn: Looks fine to me too
<iqubic>
srhb: Why is that?
<Baughn>
Looks like it's already fixed...
<mpickering>
srhb: ah
<srhb>
iqubic: Because it doesn't live-compute it. That's what the cache is for. But the cache is only instantaneously correct (or at least with one nixpkgs)
<srhb>
iqubic: It could keep track of a hash of the nixpkgs it cached or something. But it doesn't.
<symphorien>
But if you just want to run this script, a virtualenv will probably be quicker
<iqubic>
Why do you say no way?
<iqubic>
symphorien: I'll look into that.
<samueldr>
iqubic: to hide the warning for nix search
<iqubic>
Oh. I thought you were telling me there was no way to port pykeepass to nix.
<samueldr>
that, there must be a way :) (though I don't know it)
newhoggy has quit [Remote host closed the connection]
acarrico has quit [Ping timeout: 268 seconds]
matthewbauer has quit [Remote host closed the connection]
warbo has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
matthewbauer has joined #nixos
newhoggy has joined #nixos
newhoggy_ has joined #nixos
deepfire` has joined #nixos
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nixos
newhoggy has quit [Ping timeout: 244 seconds]
Fare has quit [Ping timeout: 240 seconds]
<iqubic>
samueldr: Why do they make it impossible to remove the warning?
<samueldr>
I don't know, I would assume when they wrote the search function, they didn't overthink it
<iqubic>
Yeah, but the warning is going to be there like 99% of the time.
erasmas has quit [Quit: leaving]
sigmundv_ has joined #nixos
matthewbauer has quit [Remote host closed the connection]
jperras has joined #nixos
matthewbauer has joined #nixos
YaZko has left #nixos [#nixos]
magnetophon has joined #nixos
asuryawanshi has joined #nixos
<samueldr>
as part of the changes one would have to do when changing stateVersion (I know you shouldn't really), would it be a good idea (and possible) to also force a change in a [/nix/]/var/stateVersion file, which could be used by the module system to throw an error for those changing stateVersion hoping to update to the next release?
alex`` has quit [Ping timeout: 240 seconds]
<magnetophon>
sphalerite: I have a log of a failed build of the kind we talked about yesterday: https://pastebin.com/TEKtrza4
matthewbauer has quit [Remote host closed the connection]
<andrewmiller1>
or, how to do "turn it off and turn it on"?
sigmundv__ has joined #nixos
matthewbauer has quit [Read error: Connection reset by peer]
alexteves_ has quit [Ping timeout: 244 seconds]
acarrico has joined #nixos
coot has quit [Quit: coot]
seafood has joined #nixos
<shachaf>
I'm trying to install NixOS on my laptop but X11 doesn't start. Unfortunately I don't have another computer handy to look into the errors while it's running.
<clever>
andrewmiller1: which nixos db?
<andrewmiller1>
clever: /nix/var/nix/db
<clever>
andrewmiller1: if that db is lost, then everything in /nix/store is toast
<shachaf>
"V_BIOS address 0x0 out of range" was the error that looked relevant. Some people are saying to install video drivers but I'm not quite sure how to debug it.
<clever>
andrewmiller1: what signs are saying its corrupt?
<shachaf>
Also, should iwconfig/iwlist/iw/any program like that be available in the livecd environment?
<clever>
shachaf: they should be
<andrewmiller1>
nixos-rebuild switch --upgrade
<andrewmiller1>
error: executing SQLite query 'select * from NARs where cache = ? and hashPart = ? and ((present = 0 and timestamp > ?) or (present = 1 and timestamp > ?))': database disk image is malformed (in '/root/.cache/nix/binary-cache-v5.sqlite')
<shachaf>
They weren't as far as I could tell. Nothing in `find / | grep bin/iw`
<clever>
andrewmiller1: thats the other database, which is safe to delete, `rm /root/.cache/nix/binary-cache-v5.sqlite*`
<shachaf>
I thought I might try to install and then figure it out from the installed environment. But I don't think my disk was recognized either.
<andrewmiller1>
i did that
<andrewmiller1>
but what happens if i did rm -rf /nix/var/nix/db just before?
<clever>
andrewmiller1: then everything in /nix is toast and you have to reinstall
<andrewmiller1>
derp
michas_ has quit [Ping timeout: 256 seconds]
<clever>
andrewmiller1: it should be enough to just run `nixos-install` from the livecd after mounting, and it will repair nearly all of it
<clever>
andrewmiller1: just mount the existing FS's and run that
blankhart has joined #nixos
seafood has quit [Quit: seafood]
<palo>
Is is possible to "install" a computer using nixops ? I mean I put a USB stick in there, setup ssh and than install the machine using nixops ?
<justan0theruser>
how can I do `with import <nixpkgs> {};`, but specify multiple named imports
<adelbertc>
if i create a script with `writeShellScriptBin` how do i get the Nix store path of the script itself? i thought `${placeholder "out"}` would do it but for one it doesnt give me the full nix store path, only a suffix, for two it doesnt look like that is actually the path of the script itself