gchristensen changed the topic of #nixos to: NixOS 18.03 and Nix 2.0 are released! || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
<spear2> joepie91: using the ramp crate for RSA signatures, it has a regression with the latest nightly allocation API
<joepie91> ahh
<joepie91> spear2: curious, why does an RSA signature implementation need nightly? that seems like something that should work in stable
<spear2> joepie91: ramp is actually just a "bignum" implementation (multi precision integers), it uses inline assembly
<joepie91> ah, hm
jackdk has joined #nixos
Ross has quit [Ping timeout: 240 seconds]
redj has joined #nixos
Ross has joined #nixos
pxc2 has quit [Ping timeout: 260 seconds]
spear3 has joined #nixos
markus1189 has joined #nixos
spear2 has quit [Ping timeout: 268 seconds]
mizu_no_oto has joined #nixos
smallville7123 has quit [Quit: rosa]
<adelbertc> is it possible to get just the path of a package without actually building the package?
<adelbertc> i have something like `${foo}` in the `runAsRoot` command for docker image building
<adelbertc> and i dont need/want `foo` to be build in the `runAsRoot` VM, i just need to refer to the path
<adelbertc> it will be provided through the `contents` mechanism
<clever> adelbertc: it will build it as a normal non-root derivation, then pass you the path to the built product
mekeor has quit [Ping timeout: 276 seconds]
<adelbertc> so even if i refer to it inside `runAsRoot` it will be built "normally" ?
<adelbertc> also i just learned i can use `.outPath`
<clever> yeah, and .outPath will still build it normally
<clever> > hello
<{^_^}> "«derivation /nix/store/3d4x54v34cmm67395ssh0p56pqfy0zqv-hello-2.10.drv»"
<clever> > hello.outPath
<{^_^}> "/nix/store/6mab2znnw7j96k3vsdw9vyckady29r46-hello-2.10"
endformationage has quit [Ping timeout: 256 seconds]
<clever> > "${hello}"
<{^_^}> "/nix/store/6mab2znnw7j96k3vsdw9vyckady29r46-hello-2.10"
<clever> adelbertc: treating an attribute set as a string always refers to .outPath automatically
<adelbertc> ahh gotcha
<clever> "${ { outPath = "foobar"; } }"
<clever> > "${ { outPath = "foobar"; } }"
<{^_^}> "foobar"
<adelbertc> sweet, thank you sir
markus1189 has quit [Ping timeout: 256 seconds]
palo_ is now known as palo
sbdchd has joined #nixos
<{^_^}> [nixpkgs] @YorikSar opened pull request #41291 → Update chromium → https://git.io/vhZUB
jbgi has quit [Ping timeout: 240 seconds]
atondwal has quit [Ping timeout: 276 seconds]
seafood has quit [Quit: seafood]
newhoggy_ has joined #nixos
leotaku has quit [Quit: WeeChat 2.1]
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
newhoggy_ has quit [Remote host closed the connection]
newhoggy has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #41292 → iperf2: 2.0.10 -> 2.0.11 → https://git.io/vhZTB
<palo> what is the nixops deploy equivialen to nixos-rebuild switch --upgrade ?
sigmundv_ has quit [Ping timeout: 260 seconds]
ericsagnes has joined #nixos
newhoggy has joined #nixos
<clever> palo: did you pin the nixpkgs with `nixops modify -I` (does `nixops info` show a -I nixpkgs=) ?
newhoggy has quit [Remote host closed the connection]
newhoggy has joined #nixos
<palo> no there is no -I nixpkgs= somehere
<palo> clever: for nixops info
<palo> status is Up / Up-to-date
silver has quit [Read error: Connection reset by peer]
tertle||eltret has joined #nixos
semilattice has joined #nixos
<clever> palo: then it will use the nixpkgs for the host that is running nixops
<clever> palo: (probably as root) do a nix-channel --update on that machine
<palo> ah i see, thanks
<Rusty1_> exit
liori has quit [Remote host closed the connection]
liori has joined #nixos
blankhart has joined #nixos
<{^_^}> [nixpkgs] @bhipple opened pull request #41293 → lz4: 131 -> v1.8.2 → https://git.io/vhZku
newhoggy_ has joined #nixos
newhoggy has quit [Ping timeout: 276 seconds]
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
thc202 has quit [Ping timeout: 248 seconds]
<clever> this is the source for builtins.fetchGit
<clever> arg0 can either be a string, or a set
<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)
<{^_^}> [nixpkgs] @r-ryantm opened pull request #41294 → folly: 2018.05.21.00 -> 2018.05.28.00 → https://git.io/vhZIP
smallville7123 has quit [Quit: rosa]
<gchristensen> I really liked my tests-to-instructions thing
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/b9d98c06ebc (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
smallville7123 has joined #nixos
olto has joined #nixos
oltoAltn has quit [Ping timeout: 255 seconds]
ikitat has joined #nixos
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 260 seconds]
lassulus_ is now known as lassulus
smallville7123 has quit [Quit: rosa]
<{^_^}> [nixpkgs] @nixy opened pull request #41295 → adapta-kde-theme: init 2018-05-12 → https://git.io/vhZtW
smallville7123 has joined #nixos
smallville7123 has quit [Client Quit]
linack has joined #nixos
<{^_^}> [nixpkgs] @dtzWill merged pull request #41255 → hub: 2.2.9 -> 2.3.0 → https://git.io/vhsQr
<{^_^}> [nixpkgs] @dtzWill pushed 3 commits to master: https://git.io/vhZtN
i0-dfn has quit [Remote host closed the connection]
aarvar has joined #nixos
i0-dfn has joined #nixos
<mpickering> I want to make a docker image which contains the necessary environment to build a haskell package, and the source of the haskell package
<mpickering> I tried using *.env for the "contents" but this didn't work
<mpickering> any pointers about how to achieve this?
<clever> mpickering: how exactly didnt it work?
stepcut has quit [Remote host closed the connection]
<clever> mpickering: you may need to add at least a shell to the contents, and set a Cmd that gives you a working shell: https://github.com/input-output-hk/cardano-sl/blob/develop/docker.nix#L31
stepcut has joined #nixos
<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?
stepcut has quit [Ping timeout: 256 seconds]
<clever> rotaerk: i would make it 3 derivations, the shaders, the haskell code, and then a `pkgs.runCommand` or `pkgs.buildEnv` that joins them up
<clever> rotaerk: there is no need to recompile the haskell code when changing the shaders
<rotaerk> hmm k
* rotaerk looks into runCommand and buildEnv.
<clever> rotaerk: runCommand may also help you with compiling the shaders, it just runs a bash script to create $out, all phase stuff is gone
<clever> rotaerk: buildEnv just merges 2 outputs into 1 with symlinks
<rotaerk> ah, nice
<rotaerk> thanks
<clever> rotaerk: oh, let me find another example
<clever> let pkgs = import <nixpkgs> {}; packages = self: { foo = self.callPackage ./foo {}; }; in pkgs.lib.makeScope pkgs.newScope packages
<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
<clever> yeah
seanz has joined #nixos
<rotaerk> k
<clever> { buildEnv, shaders, haskellthing }: buildEnv { name = "both"; paths = [ shaders haskellthing ]; }
<rotaerk> is that just unioning the outputs? is there a way to, say, have it put the shaders in a subfolder?
<rotaerk> or should I do the subfolder in the shaders derivation
<clever> id just do the subdir in the shaders derivation
<rotaerk> k
<clever> the tricky part is if you need to find that path at runtime
<clever> in that case, id instead use runcommand
<clever> or writeScriptBin
<clever> { writeScriptBin, shaders, haskellthing }: writeScriptBin ''
<clever> #!${stdenv.shell}
<clever> exec ${haskellthing}/bin/haskellthing --shaders ${shaders} "$@"
<clever> ''
<clever> rotaerk: now your 3rd derivation is just a 2 line bash script, that runs the haskell program, giving it a path to the shaders
<rotaerk> I was planning to hardcode a relative path in the haskell program, so it expects the shaders to be in a shaders/ folder adjacent to the exe
sir_guy_carleton has joined #nixos
<rotaerk> hmm
stepcut has joined #nixos
<clever> rotaerk: the problem is when the path to the exe winds up reading symlinks, and looks in the original derivation
<clever> rotaerk: ive had to copy the teamspeak client binary because its being too smart about that
<rotaerk> k
lukec has quit [Ping timeout: 245 seconds]
cloud-maingo has joined #nixos
sanscoeur has joined #nixos
endformationage has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
lukec has joined #nixos
MP2E has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #41296 → galen: 2.3.6 -> 2.3.7 → https://git.io/vhZmA
tzemanovic has quit [Ping timeout: 244 seconds]
schoppenhauer has quit [Ping timeout: 248 seconds]
cheater has quit [Ping timeout: 260 seconds]
sir_guy_carleton has quit [Quit: WeeChat 2.0]
seanz has quit [Quit: Leaving.]
schoppenhauer has joined #nixos
cheater has joined #nixos
Fare has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #41297 → git-hub: 1.0.0 -> 1.0.1 → https://git.io/vhZY3
spear3 has quit [Ping timeout: 248 seconds]
Ridout has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #41298 → flyway: 5.0.7 -> 5.1.1 → https://git.io/vhZYw
jD91mZM2 has joined #nixos
freeman42x[nix] has quit [Ping timeout: 256 seconds]
tzemanovic has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #41299 → fftwLongDouble: 3.3.7 -> 3.3.8 → https://git.io/vhZOf
<{^_^}> [nixpkgs] @lopsided98 opened pull request #41300 → python: grpcio: 1.9.0 -> 1.12.0 → https://git.io/vhZOk
moet has joined #nixos
<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...
Izorkin_ has quit [Ping timeout: 256 seconds]
asuryawanshi has joined #nixos
<justan0theruser> elvishjerricco: Yes, I usually do that, but this time I got this error: https://hastebin.com/raw/iqinucawuk
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
<justan0theruser> also, `nixops check` didn't sync
sary has quit [Ping timeout: 240 seconds]
<justan0theruser> ok, I think what went wrong was I did `nixops modify` and it was from the wrong dir
shikiryogy has joined #nixos
<justan0theruser> ok yeah, modifying again from the correct dir allowed me to destroy
<justan0theruser> and sync up
<shikiryogy> Hi guys, is there any way I can install emacs26 currently?
<justan0theruser> good question
<elvishjerricco> shikiryogy: Looks like that's on nixpkgs master, but not on any channel yet
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #41284 → tests.cc-wrapper: skip known-broken sanitizer cases → https://git.io/vhGMs
sary has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/vhZZO
jperras has quit [Ping timeout: 248 seconds]
owickstrom has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg closed pull request #40872 → fwupd: 1.0.5 -> 1.0.7 → https://git.io/vpjVR
<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?
toraritte has quit [Quit: leaving]
<elvishjerricco> shikiryogy: Just choose a REVISION and nix-prefetch-url --unpack that url to get the HASH: https://www.irccloud.com/pastebin/gKDRgPlv/
YaZko has quit [Quit: YaZko]
<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?
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/8aa385069f8 (from 12 hours ago, history: https://channels.nix.gsc.io/nixos-18.03)
<iqubic> I'm not going to update for a while yet.
ThatDocsLady has joined #nixos
<jD91mZM2> symphorien: I just tried it locally and it does seem to be in sync
<jD91mZM2> Cloned it and ran `cargo check`, Cargo.lock did not update
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ariakenom has joined #nixos
<symphorien> Is it the same revision? Sounds odd
<jD91mZM2> I might have forgotten to update the sha256 sums
Drakonis has quit [Read error: Connection reset by peer]
jbgi has joined #nixos
jackdk has quit [Ping timeout: 240 seconds]
rauno has joined #nixos
jackdk has joined #nixos
ThatDocsLady has quit [Ping timeout: 245 seconds]
<jD91mZM2> symphorien: Yep, that was it. Thanks :)
jbgi has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @jD91mZM2 opened pull request #41301 → cargo-edit: 0.1.6 -> 0.3.0-beta.1 → https://git.io/vhZc0
xy2_ has joined #nixos
vaninwagen has quit [Ping timeout: 256 seconds]
ThatDocsLady has joined #nixos
leat has quit [Ping timeout: 240 seconds]
jperras has joined #nixos
kitemikaze_ has joined #nixos
kitemikaze_ has quit [Client Quit]
kitemikaze has joined #nixos
xy2_ has quit [Ping timeout: 240 seconds]
jonafato has quit [Ping timeout: 260 seconds]
jperras has quit [Ping timeout: 244 seconds]
jonafato has joined #nixos
regulus_ has quit [Ping timeout: 245 seconds]
ixxie has joined #nixos
andreabedini has joined #nixos
Izorkin has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Izorkin has joined #nixos
Izorkin_ has joined #nixos
lostman has quit [Quit: Connection closed for inactivity]
regulus_ has joined #nixos
Izorkin has quit [Ping timeout: 276 seconds]
liori has quit [Remote host closed the connection]
liori has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #41283 → herwig 7.1.3 → https://git.io/vhGXR
<{^_^}> [nixpkgs] @xeji closed pull request #40634 → thepeg: 2.1.2 -> 2.1.3 → https://git.io/vpbP7
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/vhZCd
Jackneillll has joined #nixos
xAFFE has joined #nixos
Jackneilll has quit [Ping timeout: 240 seconds]
sbdchd has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @Mic92 merged pull request #41297 → git-hub: 1.0.0 -> 1.0.1 → https://git.io/vhZY3
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vhZWZ
hamishmack has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #41273 → opentsdb: 2.3.0 -> 2.3.1 → https://git.io/vhGgp
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « opentsdb: 2.3.0 -> 2.3.1 (#41273) »: https://git.io/vhZW8
sbdchd has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #41292 → iperf2: 2.0.10 -> 2.0.11 → https://git.io/vhZTB
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vhZWR
<{^_^}> [nixpkgs] @Mic92 merged pull request #41298 → flyway: 5.0.7 -> 5.1.1 → https://git.io/vhZYw
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vhZWz
<{^_^}> [nixpkgs] @xeji merged pull request #41275 → pacman: 5.0.2 -> 5.1.0 → https://git.io/vhGaN
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « pacman: 5.0.2 -> 5.1.0 (#41275) »: https://git.io/vhZWw
tzemanovic has quit []
<{^_^}> [nixpkgs] @xeji merged pull request #41274 → openshift: fix mkdir command → https://git.io/vhGaD
<{^_^}> [nixpkgs] @xeji pushed commit from @jensbin to master « openshift: fix mkdir command (#41274) »: https://git.io/vhZlf
Ariakenom has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #41302 → bison: 3.0.4 -> 3.0.5 → https://git.io/vhZlq
periklis has joined #nixos
periklis has quit [Remote host closed the connection]
periklis has joined #nixos
imalison has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @xeji merged pull request #41296 → galen: 2.3.6 -> 2.3.7 → https://git.io/vhZmA
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « galen: 2.3.6 -> 2.3.7 (#41296) »: https://git.io/vhZl8
olto has quit [Quit: ZNC - https://znc.in]
olto has joined #nixos
Guest21883 has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #41260 → librarian-puppet-go: update license → https://git.io/vhGv0
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vhZlw
magnetophon has joined #nixos
orivej has joined #nixos
newhoggy has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #41303 → bind: 9.12.1-P2 -> 9.13.0 → https://git.io/vhZ8J
coot has joined #nixos
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
<{^_^}> [nixpkgs] @xeji pushed 3 commits to release-18.03: https://git.io/vhZ83
<{^_^}> [nixpkgs] @Mic92 merged pull request #41294 → folly: 2018.05.21.00 -> 2018.05.28.00 → https://git.io/vhZIP
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vhZ8n
<{^_^}> [nixpkgs] @xeji merged pull request #41270 → groovy: 2.4.15 -> 2.5.0 → https://git.io/vhGz9
<{^_^}> [nixpkgs] @xeji pushed commit from @pSub to master « groovy: 2.4.15 -> 2.5.0 (#41270) »: https://git.io/vhZ8l
Guest21883 has quit [Changing host]
Guest21883 has joined #nixos
Guest21883 is now known as adamt
Have-Quick_ has joined #nixos
tzemanovic has joined #nixos
dmc has joined #nixos
viric has joined #nixos
Have-Quick has quit [Ping timeout: 256 seconds]
adamt has quit [Quit: WeeChat 2.0]
Have-Quick_ has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @7c6f434c merged pull request #41268 → consul-ui: fix build → https://git.io/vhG45
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/vhZ8w
semilattice has quit [Ping timeout: 276 seconds]
jbboehr has quit [Remote host closed the connection]
lord| has quit [Ping timeout: 244 seconds]
sbdchd has joined #nixos
lord| has joined #nixos
xy2_ has joined #nixos
sbdchd has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #41304 → byacc: 20180510 -> 20180525 → https://git.io/vhZ4v
Synthetica has joined #nixos
<magnetophon> sphalerite: yes
<{^_^}> [nixpkgs] @peti closed pull request #41303 → bind: 9.12.1-P2 -> 9.13.0 → https://git.io/vhZ8J
<sphalerite> huh, "while setting up the build environment"… Are you in a container or something?
xy2_ has quit [Ping timeout: 248 seconds]
patterson has quit []
lhart has joined #nixos
thc202 has joined #nixos
<magnetophon> sphalerite: no,just a newly installed sytem
<sphalerite> weird. Can you stat /etc/hosts? Can you build any derivations?
<magnetophon> sphalerite: https://hastebin.com/kunavaqoxe.js
<{^_^}> [nix] @peti merged pull request #767 → Implement --delete-generations + flag for keeping last N number of gens → https://git.io/vuwXs
<{^_^}> [nix] @peti pushed 6 commits to master: https://git.io/vhZ4y
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: p, thanks for helping!
<magnetophon> s/p/np/
<sphalerite> nix build '(with import <nixpkgs> {}; runCommand "test" {} "true > $out")'
<{^_^}> [nixpkgs] @jD91mZM2 closed pull request #41301 → cargo-edit: 0.1.6 -> 0.3.0-beta.1 → https://git.io/vhZc0
<magnetophon> seems to run OK
<magnetophon> sphalerite: https://pastebin.com/KNyVkWiF
<magnetophon> sphalerite: https://pastebin.com/zFPQurhH
<sphalerite> ok… how about nix build -f '<nixpkgs/nixos>' config.system.build.toplevel
MichaelRaskin has quit [Quit: MichaelRaskin]
cmb has joined #nixos
cmb has quit [Client Quit]
cmbtp has joined #nixos
alex`` has quit [Ping timeout: 276 seconds]
<magnetophon> sphalerite: it's running. It seems to get past the error.
<sphalerite> weird. I suspect that after that nixos-rebuild might succeed. Although the underlying problem probably still exists :/
<{^_^}> [nixpkgs] @pSub pushed 0 commits to groovy-update: https://git.io/vhZBB
<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
<sphalerite> !library
<{^_^}> Don't install libraries through nix-env or systemPackages. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<sphalerite> cmbtp: ^
liori has quit [Quit: leaving]
liori has joined #nixos
<magnetophon> sphalerite: https://pastebin.com/jpWUudTR
<{^_^}> [nixpkgs] @xeji merged pull request #41221 → yoshimi: 1.5.7 -> 1.5.8 → https://git.io/vh32H
<{^_^}> [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
<sphalerite> ugh it still uses packageOverrides
jperras has quit [Ping timeout: 240 seconds]
<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?
johnw has quit [Ping timeout: 245 seconds]
<magnetophon> sphalerite: https://pastebin.com/c9NpFa1T
<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
jperras has joined #nixos
travankor has quit [Quit: Mutter: www.mutterirc.com]
travankor has joined #nixos
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
<{^_^}> [nixpkgs] @xeji opened pull request #41305 → perlPackages.DBDPg: disable tests → https://git.io/vhZw7
MP2E has quit [Remote host closed the connection]
<manveru> i'm in talks with the mint-lang creator about the best way to handle dependencies, but i'm not sure about it myself :)
sbdchd has quit [Ping timeout: 248 seconds]
<lewo`> __Sander__: for projects that have a Gopkg.toml, i sometimes use go2nix v2 which is designed for it (but still wip afaik)
<__Sander__> hmm
<__Sander__> it seems that influxdb is such a project :(
newhoggy has quit [Remote host closed the connection]
<manveru> here's how i parse the Gopkg.toml
<{^_^}> [nixpkgs] @edolstra pushed to master « nix: 2.0.3 -> 2.0.4 »: https://git.io/vhZrR
<manveru> could be improved quite a bit... but didn't have much time for it
<manveru> err, i mean Gopkg.lock
<manveru> (that you get after running `dep ensure`
<lewo`> this is what go2nix v2 aims to do https://github.com/kamilchm/go2nix/tree/v2
capisce has quit [Read error: Connection reset by peer]
<__Sander__> hmm ok
capisce has joined #nixos
leat has joined #nixos
<__Sander__> maybe I'll have a look at it at some point
<__Sander__> but
<__Sander__> don't have time for it now
<__Sander__> and I'm maintaining two 2nix generators already :p
<{^_^}> [nix] @edolstra pushed to master « upload-release.pl: Copy the install script and sign everything »: https://git.io/vhZrA
<sphalerite> lewo`: I think monte uses nix as its package manager
<sphalerite> err, manveru ^
<manveru> thanks :)
simukis has joined #nixos
tzemanovic has joined #nixos
jtojnar has joined #nixos
i0-dfn has quit [Ping timeout: 244 seconds]
i0-dfn has joined #nixos
ThatDocsLady has quit [Remote host closed the connection]
owickstrom has quit [Ping timeout: 244 seconds]
travankor has quit [Quit: Mutter: www.mutterirc.com]
ThatDocsLady has joined #nixos
<{^_^}> [nixpkgs] @srhb merged pull request #41305 → perlPackages.DBDPg: disable tests → https://git.io/vhZw7
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/vhZoR
<{^_^}> [nixpkgs] @xeji pushed to release-18.03 « perlPackages.DBDPg: disable tests »: https://git.io/vhZoV
ashgillman has joined #nixos
ashgillman has quit [Remote host closed the connection]
thblt has quit [Remote host closed the connection]
tmaekawa has joined #nixos
thblt has joined #nixos
tmaekawa has quit [Client Quit]
<thblt> Does anybody use some kind of USB-C thunderbolt "dock" on NixOS (displayport, usb, ethernet output) that works on NixOS without complaining?
toby1851 has quit [Ping timeout: 240 seconds]
<sphalerite> thblt: I've got a little adapter with USB and ethernet, no displayport though
toby1851 has joined #nixos
<sphalerite> it didn't work 100% when I first got it, but it was a kernel bug which seems to be fixed now
<thblt> sphalerite: thanks. Do you know the manufacturer/model? I'll check if they have a version with video
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nixos
<sphalerite> trying to find it in my order history, and I can't \:|
tzemanovic has quit [Remote host closed the connection]
<thblt> sphalerite: it's not urgent, if you could check it and highlight me whenever you get near your desk it would be nice :)
<sphalerite> thblt: "CableCreation™" some no-name brand AFAICT
Jetien has joined #nixos
<Jetien> ,unfree Jetien
<{^_^}> Jetien: You cannot install your unfree software? See https://nixos.wiki/wiki/FAQ/unfree
<thblt> sphalerite: thanks. If no name works, I guess anything would
<Jetien> How to allow unfree packages on a hydra server?
<sphalerite> thblt: oh I see, " CableCreation is not Only a Brand But Also a Creative Team With Own Factory manufacturing " :D
<thblt> Woh actually the Dell docks could even power the laptop through USB-C.
<sphalerite> yep
<{^_^}> [nixpkgs] @srhb opened pull request #41308 → darcs: Allow newer graphviz → https://git.io/vhZ6m
<thblt> I thought 130W was too much for USB-C
<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:
jtojnar has quit [Remote host closed the connection]
tzemanovic has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
tmaekawa has joined #nixos
Deknos has joined #nixos
Deknos has left #nixos [#nixos]
coot has quit [Quit: coot]
<{^_^}> [nixpkgs] @xeji opened pull request #41309 → nixos/tests/iftop: fix non-deterministic failure → https://git.io/vhZiW
<{^_^}> [cabal2nix] @puffnfresh opened pull request #353 → Fix dbusmenu-gtk3 → https://git.io/vhZiE
chaker` has joined #nixos
silver has joined #nixos
chaker has quit [Ping timeout: 256 seconds]
tzemanovic has quit []
owickstrom has joined #nixos
owickstrom is now known as Guest26023
Have-Quick has joined #nixos
coot has joined #nixos
coot has quit [Remote host closed the connection]
jperras has joined #nixos
jbgi has joined #nixos
tmaekawa has quit [Quit: tmaekawa]
liori has quit [Remote host closed the connection]
jperras has quit [Ping timeout: 248 seconds]
Have-Quick has quit [Ping timeout: 244 seconds]
karlguy has quit [Ping timeout: 256 seconds]
psychic1 has joined #nixos
psychic1 has quit [Client Quit]
<{^_^}> [nixpkgs] @Assassinkin opened pull request #41310 → pythonPackage.amazon_kclpy: init at 1.5.0 → https://git.io/vhZMc
goibhniu has quit [Ping timeout: 260 seconds]
goibhniu has joined #nixos
achambe has quit [Quit: leaving]
leat has quit [Ping timeout: 240 seconds]
chaker`` has joined #nixos
chaker` has quit [Ping timeout: 244 seconds]
__monty__ has joined #nixos
toby1851 has quit [Ping timeout: 260 seconds]
truthadjustr has joined #nixos
<truthadjustr> ar: Command not found
newhoggy has joined #nixos
<truthadjustr> how to fix?
ericsagnes has joined #nixos
<srhb> truthadjustr: Depends where you need it. It's in binutils among other things.
<{^_^}> [nixpkgs] @peti merged pull request #41308 → darcs: Allow newer graphviz → https://git.io/vhZ6m
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/vhZD7
toby1851 has joined #nixos
truthadjustr has quit [Read error: Connection reset by peer]
<{^_^}> [cabal2nix] @peti merged pull request #353 → Fix dbusmenu-gtk3 → https://git.io/vhZiE
<{^_^}> [cabal2nix] @peti pushed 2 commits to master: https://git.io/vhZyG
Wharncliffe has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @AmineChikhaoui opened pull request #41311 → GCE image: properly remove the temporary ssh host keys files/directory → https://git.io/vhZy6
<{^_^}> [cabal2nix] @peti pushed to master « PostProcess: 'mesa' is now 'libGL' »: https://git.io/vhZyP
xAFFE has left #nixos ["Error from remote client"]
Guest26023 has quit [Ping timeout: 240 seconds]
<tazjin> can `builtins.fetchGit` fetch submodules?
nh2 has joined #nixos
leat has joined #nixos
jtojnar has joined #nixos
<gchristensen> I don't think so
dottedmag has joined #nixos
dottedmag has quit [Changing host]
dottedmag has joined #nixos
<tazjin> hmm
owickstrom has joined #nixos
owickstrom is now known as Guest88796
newhoggy has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @7c6f434c merged pull request #41291 → chromium: 66.0.3359.181 -> 67.0.3396.62 → https://git.io/vhZUB
<{^_^}> [nixpkgs] @7c6f434c pushed 7 commits to master: https://git.io/vhZ9S
kini has quit [Quit: No Ping reply in 180 seconds.]
<{^_^}> [nixpkgs] @xeji merged pull request #39348 → Fixes cargo-edit → https://git.io/vpOXt
<{^_^}> [nixpkgs] @xeji pushed commit from @Gerschtli to master « cargo-edit: Fixes build with carnix (#39348) »: https://git.io/vhZH2
<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]
thblt has joined #nixos
<symphorien> nix search has a cache
aramiscd has joined #nixos
steell has quit [Ping timeout: 260 seconds]
rauno has joined #nixos
alex`` has joined #nixos
Ariakenom has quit [Ping timeout: 248 seconds]
iyzsong has quit [Ping timeout: 260 seconds]
iyzsong has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to master « androidStudioPackages.{dev,canary}: 3.2.0.14 -> 3.2.0.15 »: https://git.io/vhZAF
ThatDocsLady has quit [Quit: Leaving]
<Myrl-saki> Uhhh
<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> Or am I doing something wrong?
<Myrl-saki> Maybe I should use genericBuild?
<Myrl-saki> `phases="checkPhase" genericBuild`
<Myrl-saki> Seems to work. :P
<{^_^}> [nixpkgs] @joachifm merged pull request #41218 → nixos/gitea: fix pre start script → https://git.io/vh30c
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to master: https://git.io/vhZxK
asuryawanshi has quit [Ping timeout: 268 seconds]
<Myrl-saki> eval "${!curPhase:-$curPhase}"
<Myrl-saki> What is this voodoo lmao
<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> i'm so confused
alex`` has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @primeos pushed to master « pythonPackages.raven: 6.8.0 -> 6.9.0 »: https://git.io/vhZxx
<LnL> :p
<Myrl-saki> Who wrote this
* Myrl-saki checks blame
<Myrl-saki> That's a 5 year old line. Wow.
<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`?
ixxie has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
sbdchd has quit [Remote host closed the connection]
<gchristensen> is there a way to import an overlay, without injecting it in to nixpkgs' overlay system?
<nc_> If I try to set `rustPackage = recurseIntoAttrs (makeRustPackage rustChannels.stable)`, then the build complains about not finding the std crate
Have-Quick has joined #nixos
<nc_> gchristensen: I do import it into the overlay system, and can correctly refer to it
<gchristensen> nc_: oh, sorry, that was unrelated to your question X)
sbdchd has joined #nixos
<nc_> Aha :-)
YaZko has joined #nixos
iyzsong has quit [Quit: ZNC 1.6.5 - http://znc.in]
oida has joined #nixos
iyzsong has joined #nixos
YaZko has quit [Client Quit]
newhoggy has quit [Remote host closed the connection]
<gchristensen> I guess I'm looking for something like callPackage, but callOverlay
halfbit has joined #nixos
ixxie has joined #nixos
toby1851 has quit [Ping timeout: 256 seconds]
ixxie has quit [Client Quit]
YaZko has joined #nixos
logzet has joined #nixos
Have-Quick has quit [Quit: Have-Quick]
sary has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #40708 → nixpkgs module: Fix defaulting of `localSystem` and `system` → https://git.io/vpAoo
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vhnLG
YaZko has quit [Quit: YaZko]
nc_ has quit [Ping timeout: 240 seconds]
shikiryogy has quit [Quit: Leaving]
dottedmag has quit [Quit: QUIT]
dbmikus_ has joined #nixos
dbmikus has quit [Ping timeout: 248 seconds]
jperras has quit [Ping timeout: 240 seconds]
YaZko has joined #nixos
nc_ has joined #nixos
romildo has quit [Quit: Leaving]
jperras has joined #nixos
das_j has quit [Quit: Page closed]
stepcut has quit []
YaZko has quit [Quit: YaZko]
<gchristensen> YegorTimoshenko[: oooh!
<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]
Sonarpulse has quit [Ping timeout: 276 seconds]
matthewbauer has joined #nixos
<{^_^}> [nixpkgs] @Twey opened pull request #41317 → compton-git: 2016-08-10 -> 2018-05-21 → https://git.io/vhn35
<steveeJ> when prototyping a set of expressions, is there a way to use callPackage on an expression that lives in the same file?
halfbit has quit [Ping timeout: 244 seconds]
<steveeJ> I'm trying to figure out how to write something inline which can later be moved to its own file without being changed
winem_ has quit [Ping timeout: 260 seconds]
halfbit has joined #nixos
YaZko has quit [Quit: YaZko]
YaZko has joined #nixos
<gchristensen> YegorTimoshenko[ I think it doesn't work, but only works on your example because you're importing a new nixpkgs
sbdchd has joined #nixos
YaZko has quit [Client Quit]
truthadjustr has quit [Quit: leaving]
<YegorTimoshenko[> gchristensen: hm, updated the example, now it uses (import <nixpkgs> {}).pkgs, still works
<{^_^}> [nixpkgs] @primeos merged pull request #41315 → scdoc: init at 1.3.3 → https://git.io/vhnOl
<{^_^}> [nixpkgs] @primeos pushed to master « scdoc: init at 1.3.3 (#41315) »: https://git.io/vhnGf
<{^_^}> [nixpkgs] @Synthetica9 opened pull request #41318 → atom, atom-beta: 1.27.1 -> 1.27.2, 1.28.0-beta1 -> 1.28.0-beta2 → https://git.io/vhnGU
iyzsong has quit [Ping timeout: 240 seconds]
dbmikus_ has quit [Ping timeout: 240 seconds]
dottedmag has joined #nixos
dottedmag has quit [Changing host]
dottedmag has joined #nixos
<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)
<maurer> I can't seem to find the rendered copy of https://github.com/NixOS/nixpkgs/blob/master/doc/multiple-output.xml
<maurer> Anyone know how to find that? Searching "multiple" in the nixos manual didn't help
<maurer> Nevermind, I was looking in the nixos manual rather than the nixpkgs manual
nicolaslekoala has quit [Read error: Connection reset by peer]
asuryawanshi has joined #nixos
<{^_^}> [nixpkgs] @fgaz opened pull request #41319 → jl: 0.0.4 -> 0.0.5 → https://git.io/vhnnq
nicolaslekoala has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
sbdchd has quit [Remote host closed the connection]
nc_ has quit [Ping timeout: 268 seconds]
<endformationage> Should I change a fetchurl URL if I find one is much faster? Still under the TLD, in this case, from: https://dist.neo4j.org/neo4j-community-3.4.0-unix.tar.gz to https://neo4j.com/artifact.php?name=neo4j-community-3.4.0-unix.tar.gz
<endformationage> The latter took me 5s while the former 9m :/
ikitat has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @matthewbauer pushed 19 commits to master: https://git.io/vhnCF
sbdchd has joined #nixos
nh2 has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @matthewbauer opened pull request #41320 → Switch Nixpkgs to using more NetBSD stuff → https://git.io/vhnWf
Guest88796 is now known as owickstrom
<{^_^}> [nixpkgs] @matthewbauer pushed to master « PowerManagement: init at 572.50.1 »: https://git.io/vhnWk
leat has joined #nixos
rihards has joined #nixos
<elvishjerricco> Is there anyone working on completely cross compiling NixOS to raspberry pi?
smallville7123 has quit [Quit: rosa]
hiroshi has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @matthewbauer pushed to master « Revert "cairo: fix build inputs" »: https://git.io/vhnWV
nc_ has joined #nixos
lonokhov has quit [Quit: WeeChat 2.0]
<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.
logzet has quit [Ping timeout: 276 seconds]
logzet_ has joined #nixos
sanscoeur has joined #nixos
avn has joined #nixos
erasmas has joined #nixos
dbmikus_ has joined #nixos
sigmundv_ has quit [Ping timeout: 260 seconds]
tmaekawa has joined #nixos
Sonarpulse has joined #nixos
<{^_^}> [nixpkgs] @jtojnar pushed to staging « json-glib: add updateScript »: https://git.io/vhnR6
<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...
<Baughn> I'm not sure what's going on here. 'tromso' is a different machine entirely.
<{^_^}> [nixpkgs] @xeji merged pull request #41319 → jl: 0.0.4 -> 0.0.5 → https://git.io/vhnnq
<{^_^}> [nixpkgs] @xeji pushed commit from @fgaz to master « jl: 0.0.4 -> 0.0.5 (#41319) »: https://git.io/vhnRx
<{^_^}> [nixpkgs] @xeji merged pull request #41317 → compton-git: 2016-08-10 -> 2018-05-21 → https://git.io/vhn35
<{^_^}> [nixpkgs] @xeji pushed commit from @Twey to master « compton-git: 2016-08-10 -> 2018-05-21 (#41317) »: https://git.io/vhn0P
matthewbauer has quit [Remote host closed the connection]
<johnw> shlevy: I found out how to get nix-buffer to nicely provide a package-scoped hoogle
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/vhnEy
<{^_^}> [nixpkgs] @xeji merged pull request #41280 → Update tryton 4 8 → https://git.io/vhGK0
owickstrom has quit [Ping timeout: 255 seconds]
raynold has joined #nixos
<eacameron> Anyone know why I would be able to get cups from cache but building it myself results in sha256 mismatch in output?
<shlevy> johnw: Ah, nice!
<johnw> my dir-locals.nix at ~ is just: { root }: (import <darwin> {}).pkgs.dirLocals root
<johnw> it's the code in packageDeps that uses compiler.withHoogle that generates the database
bebarker has joined #nixos
<{^_^}> [nixpkgs] @gnidorah closed pull request #40939 → compy package and module → https://git.io/vhJrv
<johnw> the magic for calling out to the local hoogle is here: https://github.com/jwiegley/dot-emacs/blob/master/init.el#L1791
<johnw> the key is to use `executable-find` before calling start-process
Jetien has quit [Ping timeout: 260 seconds]
<johnw> to ensure that the nix-bufferized exec-path is used
<colemickens> Is there any reason that I would be unable to build a NixOS container, mount /dev/kvm, and then use it to build NixOps base images?
<shlevy> Aaah nice
<colemickens> Or is there any prior art I could peak at?
<johnw> shlevy: the only touchy thing with this setup is making sure everything is built before I disconnect from the Net
jbgi has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #41278 → postgis: 2.4.3 -> 2.4.4 → https://git.io/vhGwV
<{^_^}> [nixpkgs] @xeji pushed commit from @lsix to master « postgis: 2.4.3 -> 2.4.4 (#41278) »: https://git.io/vhnuz
<johnw> shlevy: I "pre-build" the dir-locals.el for every project under ~/src using: nix-build -Q -j4 -E "((import <darwin> {}).pkgs.dirLocals $PWD)"
page has quit [Ping timeout: 240 seconds]
<shlevy> johnw: You could probably use builtins.readDir to actually make derivations for each project and ensure they're part of your environment
<shlevy> Of course, being "part of your environment" would just mean that they're gc roots
<johnw> hmmm... like a buildEnv whose only task is to provide a root for all the dependencies...
<johnw> i'll try that, thanks
<{^_^}> [nixpkgs] @xeji merged pull request #41195 → qgis: 2.18.17 -> 2.18.20 → https://git.io/vhOsm
<{^_^}> [nixpkgs] @xeji pushed commit from @lsix to master « qgis: 2.18.17 -> 2.18.20 (#41195) »: https://git.io/vhnzl
YaZko has joined #nixos
<andi-> has anyone tried running nixos on sparc64? (I know it is not really supported...)
kitemikaze has quit [Quit: Connection closed for inactivity]
owickstrom has joined #nixos
owickstrom is now known as Guest41788
matthewbauer has joined #nixos
sigmundv_ has joined #nixos
chpatrick has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @xeji merged pull request #41302 → bison: 3.0.4 -> 3.0.5 → https://git.io/vhZlq
jbaum98 has joined #nixos
<{^_^}> [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 merged pull request #41299 → fftwLongDouble: 3.3.7 -> 3.3.8 → https://git.io/vhZOf
<{^_^}> [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]
jbgi has joined #nixos
<{^_^}> [nixpkgs] @xeji opened pull request #41324 → procps-ng: 3.3.14 -> 3.3.15 → https://git.io/vhnwC
<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?
<gchristensen> !-A
<{^_^}> You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ/nix-env_-iA for details.
<gchristensen> nix-env -iA git
<mjrosenb> that gives me:
<mjrosenb> error: attribute 'git' in selection path 'git' not found
* gchristensen never remembers how to use nix-env.
<gchristensen> you'd need to do, nix-env -iA nixpkgs.git
leotaku has joined #nixos
mizu_no__ has quit [Quit: Computer has gone to sleep.]
<maurer> mjrosenb: You also probably want nix-env -iA nixpkgs.gitAndTools or similar, git will just be git and almost none of the bells/whistles
<LnL> you're thinking of gitMiniimal
<mjrosenb> ok, something is fishy here. I think I lost internet in the middle of running the install script.
<mjrosenb> ~/.nix-profile is a broken symlink.
<maurer> Oh, that
<maurer> is not good
<gchristensen> ~/.nix-profile doesn't point to anything until after the first time you install something
<mjrosenb> (not confusing at all)
<gchristensen> I know that is weird, maybe we should fix it to point to a dummy thing, but it is okay =)
<gchristensen> Error: target STRING not available
<gchristensen> oops ... weird
<maurer> I could have sworn that in both debian multi-user and nixos it autogenerated a blank profile
<maurer> maybe things changed
<gchristensen> it should point to /nix/var/nix/profiles/per-user/youruser/profile
halfbit has quit [Ping timeout: 260 seconds]
smallville7123 has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #41236 → uftp: 4.9.6 -> 4.9.7 → https://git.io/vh3p8
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « uftp: 4.9.6 -> 4.9.7 (#41236) »: https://git.io/vhnoL
vaninwagen has joined #nixos
halfbit has joined #nixos
<mjrosenb> it does, just that directory apparently doesn't exist until as mentioned before, I install something, which is kind of confusing.
freeman42x[nix] has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @veprbl opened pull request #41326 → procps-ng: fix CVE-2018-1124 → https://git.io/vhnKO
sir_guy_carleton has joined #nixos
<sir_guy_carleton> hello
lord| has quit [Ping timeout: 260 seconds]
<clever> maurer: on single-user installs, the install script has to install nix into that profile
<clever> maurer: on multi-user installs, its empty, because nix is in roots profile
<maurer> clever: Ah, OK
<maurer> I think old-school debian multi-user (back when it was manual) did not have root's profile
<gchristensen> true
lord| has joined #nixos
halfbit has quit [Ping timeout: 240 seconds]
halfbit has joined #nixos
asuryawa_ has joined #nixos
asuryawanshi has quit [Read error: Connection reset by peer]
matthewbauer has quit [Ping timeout: 245 seconds]
Thra11 has joined #nixos
MichaelRaskin has joined #nixos
raynold has quit []
thblt has quit [Remote host closed the connection]
thblt has joined #nixos
aarvar has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to master « multi-ghc-travis: update to latest git version for ghc-8.4.3 support »: https://git.io/vhnAu
<{^_^}> [nixpkgs] @xeji merged pull request #41197 → ocamlPackages.gapi_ocaml: minor cleaning → https://git.io/vhOWc
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/vhnA2
tsmeets has joined #nixos
<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]
grp has joined #nixos
asuryawanshi has joined #nixos
magnetop` has joined #nixos
magnetophon has quit [Ping timeout: 244 seconds]
civodul has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #41318 → atom, atom-beta: 1.27.1 -> 1.27.2, 1.28.0-beta1 -> 1.28.0-beta2 → https://git.io/vhnGU
<{^_^}> [nixpkgs] @xeji pushed commit from @Synthetica9 to master « atom, atom-beta: 1.27.1 -> 1.27.2, 1.28.0-beta1 -> 1.28.0-beta2 (#41318) »: https://git.io/vhnhy
rauno has joined #nixos
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « byacc: 20180510 -> 20180525 (#41304) »: https://git.io/vhnju
<{^_^}> [nixpkgs] @xeji merged pull request #41304 → byacc: 20180510 -> 20180525 → https://git.io/vhZ4v
<{^_^}> [nixpkgs] @lopsided98 opened pull request #41327 → raspberrypiWirelessFirmware: init → https://git.io/vhnjg
luigy has left #nixos [#nixos]
<{^_^}> [nixpkgs] @etu opened pull request #41328 → Add an additional dependency for home-assistant → https://git.io/vhnjA
YaZko has quit [Quit: YaZko]
page has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer pushed to master « Revert "nixpkgs module: Fix defaulting of `localSystem` and `system`" »: https://git.io/vhcec
robstr has quit [Quit: WeeChat 1.9.1]
warbo has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #41208 → traefik: 1.5.2 -> 1.6.2 → https://git.io/vhO9d
<{^_^}> [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] @xeji merged pull request #41322 → apache-kafka: include Kafka Connect shell scripts → https://git.io/vhn2n
<{^_^}> [nixpkgs] @xeji pushed commit from @hakujin to master « kafka: include Kafka Connect shell scripts (#41322) »: https://git.io/vhcvR
<rihards> sweet! thank you :)
srl295 has joined #nixos
Mateon1 has quit [Ping timeout: 256 seconds]
Mateon1 has joined #nixos
smallville7123 has quit [Quit: rosa]
<gchristensen> just got an email about a comment on a PR in the 17,000s range
<gchristensen> I remember when we were in the 17,000's...!
mahalel_ has joined #nixos
coot has quit [Quit: coot]
<{^_^}> [nixpkgs] @xeji merged pull request #41133 → os-prober: fix dependencies for version >= 1.75 → https://git.io/vhmek
<{^_^}> [nixpkgs] @xeji pushed 5 commits to master: https://git.io/vhcfp
page has quit [Ping timeout: 256 seconds]
page has joined #nixos
halfbit has quit [Ping timeout: 256 seconds]
jbaum98 has quit [Quit: Connection closed for inactivity]
<warbo> AHA!
<warbo> I had an extra quote mark in my definition :P
<stammon> Can someone tell me whether pythons scikit-neuralnetwork is packaged for nixos
Ariakenom has quit [Quit: Leaving]
<manveru> stammon: i don't see it
<stammon> Me neither
<stammon> but I need it
<manveru> there's a bunch of scikit-* things, don't think it's hard to package
<stammon> Even for someone with not that much experiance?
cybrian has quit [Ping timeout: 256 seconds]
<joepie91> bwa, I want recursive sets in JS :(
<manveru> sure, we're happy to lend a helping hand
<stammon> I'm quite in a hurry as I need it for a homework for university which has deadline tomorrow
<manveru> heh
<stammon> So I guess I will work around packaging it and pack it a few days later for exercise
cybrian has joined #nixos
<stammon> I can still use pythons buildenv and install everything with pip right?
<manveru> don't have experience with that, sorry
<stammon> me neither. So far everything was there already
<manveru> but you can create a shell from a requirements.txt dynamically via https://github.com/garbas/pypi2nix
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #41330 → haskell infra: Allow overriding `haskellSrc2nix` → https://git.io/vhcUw
<__monty__> Can't you just use a virtualenv?
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #41331 → haskell infra: Allow overriding `haskellSrc2nix` → https://git.io/vhcUP
<stammon> wow that looks very helpful
<manveru> there's a package for virtualenv, so i'd guess so
<stammon> thanks
<{^_^}> [nixpkgs] @volth closed pull request #40441 → cpan2nix: update perl packages → https://git.io/vp9Yb
<{^_^}> [nixpkgs] @symphorien opened pull request #41332 → etherape: 0.9.13 -> 0.9.17 → https://git.io/vhcU5
<{^_^}> [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] @Ericson2314 merged pull request #41330 → haskell infra: Allow overriding `haskellSrc2nix` → https://git.io/vhcUw
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/vhcTr
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #41331 → haskell infra: Allow overriding `haskellSrc2nix` → https://git.io/vhcUP
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to release-18.03: https://git.io/vhcTK
capisce has quit [Read error: Connection reset by peer]
<stammon> __monty__: I'll use virtualenv for now and package it, as it is a good exercise to package it
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/0b32220c074 (from 11 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<{^_^}> [nixpkgs] @volth opened pull request #41335 → graalvm8: 0.31 -> 1.0.0-rc1 → https://git.io/vhckr
nicolaslekoala has left #nixos ["Bye"]
dbe has joined #nixos
capisce has joined #nixos
dbe has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #41035 → dd-agent: fix compatibility issue with iostat → https://git.io/vhIzx
<{^_^}> [nixpkgs] @xeji pushed commit from @tazjin to master « dd-agent: fix compatibility issue with iostat (#41035) »: https://git.io/vhcI3
dmc is now known as cmd
dbe has joined #nixos
sbdchd has quit [Remote host closed the connection]
seanparsons has quit [Read error: Connection reset by peer]
Ross has quit [Ping timeout: 256 seconds]
Ross has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #41130 → gitkraken: 3.6.0 -> 3.6.1 → https://git.io/vhqxw
<{^_^}> [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
<{^_^}> [nixpkgs] @xeji merged pull request #41335 → graalvm8: 0.31 -> 1.0.0-rc1 → https://git.io/vhckr
<{^_^}> [nixpkgs] @xeji pushed commit from @volth to master « graalvm8: 0.31 -> 1.0.0-rc1 (#41335) »: https://git.io/vhcqX
alex`` has quit [Quit: WeeChat 2.1]
alex`` has joined #nixos
mconstant has quit [Ping timeout: 260 seconds]
magnetop` has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @xeji pushed commit from @symphorien to master « etherape: 0.9.13 -> 0.9.17 (#41332) »: https://git.io/vhcms
<{^_^}> [nixpkgs] @xeji merged pull request #41332 → etherape: 0.9.13 -> 0.9.17 → https://git.io/vhcU5
Thra11 has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @volth opened pull request #41336 → frostwire: 6.6.3 -> 6.6.7 → https://git.io/vhcm8
<{^_^}> [nixpkgs] @srhb opened pull request #41337 → haskell.packages.ghcjs.terminfo: Bump version → https://git.io/vhcm4
newhoggy has quit [Remote host closed the connection]
Thra11 has joined #nixos
<{^_^}> [nixpkgs] @volth closed pull request #41336 → frostwire: 6.6.3 -> 6.6.7 → https://git.io/vhcm8
tsmeets has quit [Quit: leaving]
<{^_^}> [nixpkgs] @patternspandemic opened pull request #41338 → neo4j: 3.3.4 -> 3.4.0 → https://git.io/vhcYB
<shlevy> Why does nix-mode not like normal indentation style for let bindings?
chreekat has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @xeji pushed commit from @tazjin to release-18.03 « dd-agent: fix compatibility issue with iostat (#41035) »: https://git.io/vhcYQ
hiratara has quit [Ping timeout: 276 seconds]
hiratara has joined #nixos
knupfer has joined #nixos
michas_ has joined #nixos
asuryawa_ has joined #nixos
asuryawanshi has quit [Read error: Connection reset by peer]
sanscoeur has quit [Ping timeout: 248 seconds]
iqubic has joined #nixos
<Baughn> https://cache.nixos.org/ <- Um, that's broken.
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mpickering> I am trying to use nix-prefetch-git but it fails to get out the ref
vaninwagen has quit [Quit: WeeChat 2.1]
<mpickering> which I can see exists
<mpickering> but using that with nix-prefetch-git fails
hamishmack has joined #nixos
<srhb> mpickering: nix-prefetch-git https://github.com/NixOS/nixpkgs.git --rev 651239d5ee66d6fe8e5e8c7b7a0eb54d2f4d8621 ?
hamishmack has quit [Client Quit]
<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.
<Baughn> It looked like this: https://www.irccloud.com/pastebin/imQwJ2CK/
<srhb> Baughn: The cloud is brittle. :-)
<srhb> And.. fluffy.. And sometimes it rains.
rihards has quit [Quit: rihards]
thblt has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @jtojnar pushed to revert-37028-auto-update/itstool « Revert "itstool: 2.0.2 -> 2.0.4" »: https://git.io/vhcOb
<elvishjerricco> srhb: It's raining here in Indiana. Maybe that's what did it :P
<{^_^}> [nixpkgs] @jtojnar opened pull request #41339 → Revert "itstool: 2.0.2 -> 2.0.4" → https://git.io/vhcOA
<srhb> elvishjerricco: :D
<iqubic> Well, python36Packages.pip is giving me some trouble.
<iqubic> I can't install anything at all.
<iqubic> Even upgrading pip fails.
<iqubic> That's the output from "pip install --upgrade pip"
<iqubic> I suppose I should have at least some python implementation installed before trying to use pip, right?
asuryawa_ has quit [Remote host closed the connection]
<srhb> iqubic: I don't think that either upgrading or uninstalling should work
<srhb> The store should be read only after all, so unless "upgrade" means installing it somewhere in your homedir, that's a no-no.
<iqubic> So how do I install libraries with pip?
<iqubic> Is that even what I want to do.
<srhb> iqubic: I don't think it is. Have you read the python infrastructure user guide?
<iqubic> No.
<srhb> I recommend it :)
<{^_^}> [nixpkgs] @volth reopened pull request #41336 → frostwire: 6.6.3 -> 6.6.7 → https://git.io/vhcm8
<nh2[m]> clever_: domenkozar here's a big one: https://github.com/NixOS/nixpkgs/issues/41340
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/8f374ba6312 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<iqubic> What I have is a python script that I want to run. I'm using pip so that I can install the dependencies for said script.
<srhb> iqubic: Yes, you probably don't want to do that.
<srhb> iqubic: Instead, you will probably want something like: nix-shell -p 'python.withPackages (ps: with ps; [ requests argparse ])'
newhoggy has joined #nixos
<srhb> Which spins up a shell with a python on PATH that has those packages ready.
<iqubic> I'm not doing any python development, just trying to run a few python scripts in NixOS.
<srhb> iqubic: The answer remains the same.
<clever> nh2[m]: i think we have been dealing with the exact same problem on windows, lol
<clever> nh2[m]: but in our case, its stack->ghc->gcc.exe
<iqubic> So to run a python script I should just spin up a nix-shell?
<srhb> iqubic: See sections 9.11.1.1.3.1 and 9.11.1.1.3.3 as well
<srhb> The latter will allow you to create a shebang line with the dependencies automatically in the python interpreter.
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<iqubic> Why do you have "(ps: with ps;)"?
<srhb> It just brings all the packages from the python set in scope so I don't have to prefix them all with ps in the list.
<srhb> ps is the python package set in this case.
<iqubic> I get it.
<iqubic> What does the -p flag do for nix-shell? Does it basically call a given nix expression?
<srhb> It installs a "package" (for some value of package) in the shell environment
<iqubic> I see. So could I use this to open up a nix-shell with some haskell packages loaded?
sbdchd has joined #nixos
jperras has quit [Ping timeout: 256 seconds]
<iqubic> Actually I believe the answer is yes.
<{^_^}> [nixpkgs] @jtojnar pushed 3 commits to master: https://git.io/vhcse
<mpickering> nix-shell -p "haskellPackages.ghcWithPackages (ps: [ps.lens])"
<iqubic> Now, is using nix-shell the only way to run a python program with NixOS?
grp has quit [Quit: box shutting down...]
<iqubic> Can't I just install a python interpreter and the dependecies globally and run it that way? Or is that not recommended.
<srhb> iqubic: Yeah, you can.
<symphorien> You can install a python.withPackages
<srhb> iqubic: I don't like doing that. Whether or not it's recommended, meh.
<iqubic> symphorien: Thank you for that.
<iqubic> Now, can I specify that I want a python3.x withPackages?
Fare has quit [Ping timeout: 268 seconds]
sbdchd has quit [Ping timeout: 260 seconds]
<symphorien> python3.withPackages
<iqubic> Cool.
<iqubic> And how do I specify which packages? Using the (ps: with ps; [argsparse]) syntax?
<symphorien> Yes
<symphorien> Put a lot of parens around the whole
YaZko has quit [Read error: No route to host]
<iqubic> Why a lot of parens?
YaZko has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to master « scdoc: 1.3.3 -> 1.3.4 »: https://git.io/vhcsu
<symphorien> in a list, python3.withPackages and (ps:...) could be treated as two dinstinct elements
<symphorien> The error message is unhelpful
<iqubic> Ah.
<iqubic> Is there a way to surpress the message about using an outdated cache when using "nix search"?
<symphorien> No idea
Fare has joined #nixos
<iqubic> Alright, is there a list of all the pythonPackaes availible for use in NixOS?
<iqubic> *pythonPackages
Wharncliffe has joined #nixos
<symphorien> The regular search page works https://nixos.org/nixos/packages.html#django
<iqubic> nix search pykeepass is returning nothing, which makes me unhappy.
hiratara has quit [Quit: ZNC - http://znc.in]
<iqubic> Yeah. Looks like I won't be able run this python script, because it has pykeepass as a dependency and that's not in nixpkgs yet.
<iqubic> Blerg.
hiratara has joined #nixos
Thra11 has quit [Quit: IRC for Sailfish 0.9]
<symphorien> You can use pip in a virtualenv, still
<iqubic> I need this: https://pypi.org/project/pykeepass/ but it isn't in nixpkgs.
<symphorien> Like on a regular ditro
<iqubic> symphorien: I don't really want to go through the trouble of setting up a virtual env.
dbe has quit [Ping timeout: 268 seconds]
<iqubic> How hard would it be to port this library to a form that is usable with python3.withPackages?
hamishmack has joined #nixos
<symphorien> Depends on the library :)
<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]
palo has quit [Ping timeout: 244 seconds]
matthewbauer has joined #nixos
palo has joined #nixos
palo has quit [Changing host]
palo has joined #nixos
alexteves__ has joined #nixos
andrewmiller1 has joined #nixos
sigmundv has quit [Quit: ZNC 1.7.0 - https://znc.in]
<andrewmiller1> my nixos nb is malformed
<andrewmiller1> is it safe to delete?
<andrewmiller1> db*
<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
<justan0theruser> something like `pkgs = <nixpkgs> {}; foo = <pkgs.python36Packages.callPackage ../pkgs/foo.nix> {}`
xy2_ has quit [Ping timeout: 240 seconds]
ericsagnes has quit [Ping timeout: 244 seconds]
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/c11a4a5f4d0 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
magnetop` has joined #nixos
<{^_^}> [nixpkgs] @xeji pushed to master « cargo-edit: remove reference to <nixpkgs> »: https://git.io/vhcWw
tertle||eltret has joined #nixos
magnetophon has quit [Ping timeout: 244 seconds]
aarvar has quit [Ping timeout: 248 seconds]
jackdk has joined #nixos