worldofpeace changed the topic of #nixos to: NixOS stable: 19.09 \o/ https://discourse.nixos.org/t/nixos-19-09-release/4306/2 || 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, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018 || For best support,
<clever> aranea: nixpkgs already has a muslc "cross-compile" target
<aranea> Yeah, I heard, but since that appears to be a recent project with just a small user base, I'm expecting that a lot of packages in the official repos will be lacking neccessary patches for musl compatibility.
<clever> aranea: yeah
<clever> > pkgsCross.musl64.hello
<{^_^}> "<derivation /nix/store/d902g97v0qyspn90fqm8g8gdk9x2vr1b-hello-2.10-x86_64-unknown-linux-musl.drv>"
<clever> aranea: if you build attributes like this, you can build software against the static musl
<clever> $ nix-build -A pkgsCross.musl64.hello '<nixpkgs>'
<clever> like so
<aranea> What about dynamic linking with musl?
fragamus has quit [Ping timeout: 276 seconds]
<clever> aranea: i dont think dynamic musl is an option currently
cosimone has quit [Ping timeout: 245 seconds]
<aranea> Too bad. But if you can have (dynamically linked?) arm and x86 binaries on the same host, I'm sure that's something I could figure out eventually.
<aranea> I mean, nix binaries appear to hardcode the path to the appropriate dynamic linker, so I don't see why it shouldn't be possible.
rossabaker has quit [Ping timeout: 245 seconds]
<clever> aranea: yeah, its just a matter of adding a dynamic musl option in nixpkgs
<clever> aranea: i once had a system booting on both x86-64 and a raspberry pi, with a single rootfs
<clever> aranea: the key, is that they have different bootloaders, so the main entry point differs
<infinisil> Wait why is pkgsCross.musl64 static? Shouldn't only pkgsStatic be static?
<aranea> Any idea why that wasn't done so far? Just because everyone currently using musl with nix is only interested in static linking for their purposes, or were there any technical hurdles?
<clever> result/bin/hello: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /nix/store/nyhfmdfhidgmla484f42pla5ai7m9hbv-musl-1.1.24-x86_64-unknown-linux-musl/lib/ld-musl-x86_64.so.1, not stripped
<clever> infinisil: oh, your right
<clever> aranea: we already have dynamic musl! lol
<aranea> Haha, great. :)
<aranea> And you even have a newer version of musl than our distro which is entirely focused on it. :D
<aranea> (Though to be fair we've been in a package freeze for a while now.)
<clever> $ nix-store -qR ./result
<clever> /nix/store/j997iypa5yvbn8f8k4mqr9qfr998r521-hello-2.10-x86_64-unknown-linux-musl
<clever> /nix/store/nyhfmdfhidgmla484f42pla5ai7m9hbv-musl-1.1.24-x86_64-unknown-linux-musl
<clever> and a simple hello-world binary, only depends on itself and musl, nothing else
<clever> 1.8M /nix/store/nyhfmdfhidgmla484f42pla5ai7m9hbv-musl-1.1.24-x86_64-unknown-linux-musl
<clever> 58K /nix/store/j997iypa5yvbn8f8k4mqr9qfr998r521-hello-2.10-x86_64-unknown-linux-musl
<clever> 1.9M total
acarrico has joined #nixos
<witchof0x20> What's the most reasonable way to get zfs on luks working with nixos config? I have 4 drives, each LUKS encrypted, with keyfiles in /root/.../driveN/keyfile, and then ZFS on top of the decrypted luks devices
<clever> witchof0x20: put each luks device into boot.initrd.luks.devices
<clever> is an example entry
<clever> { name = "root"; device = "/dev/nvme0n1p2"; preLVM = true; }
<clever> then zfs will find them as it imports the pool
<clever> the keyfiles could be an issue though, i only use passphrase
<witchof0x20> Yeah the keyfiles are the issue there
<witchof0x20> I can move them somewhere else potentially, but i dunno
<clever> witchof0x20: does it need to auto-unlock without user intervention?
<witchof0x20> preferably, yes
<clever> witchof0x20: boot.loader.grub.extraInitrd
<bdju> anyone had a problem with mpv where it struggles to play back a part at normal speed so it desyncs from the audio and then eventually plays it all back super fast to catch up?
<clever> witchof0x20: youll need to make an initrd file that contains the keyfiles, and put it into this option
<witchof0x20> Oh I guess I can stick the keyfiles for those volumes in there
<witchof0x20> i'm already doing that actually for /
<witchof0x20> thanks!
drakonis has joined #nixos
waleee-cl has quit [Quit: Connection closed for inactivity]
<CMCDragonkai> so i added some debug make option, and run it again
<CMCDragonkai> it says that `X509 chain 0xbe66f1e8 found no usable certificates`
<CMCDragonkai> prior to that it says `0xbe678368 found certificate GTS CA 101`
<CMCDragonkai> then adds GlobalSign
<CMCDragonkai> then says `*.google.com` is valid at time..., is not a root certificate, has no issuer... etc etc
<{^_^}> [nixpkgs] @risicle opened pull request #73432 → [r19.03] pythonPackages.cherrypy: fix build → https://git.io/Jer5b
<CMCDragonkai> i was testing `chain https://google.com`
<CMCDragonkai> which i know will fail with incorrect format
<CMCDragonkai> but when using https it says permission denied, certificat validation failed, so didnt even get to the incorrect format
drakonis has quit [Ping timeout: 246 seconds]
<CMCDragonkai> going to try again, this time with https://curl.haxx.se/docs/caextract.html instead of the nixpkgs cacert
<CMCDragonkai> it still fails! this is very strange...
<clever> CMCDragonkai: what if you grab the cert for the domain in question, and trust it directly
<CMCDragonkai> clever: how to do that?
<CMCDragonkai> let's suppose the domain is `https://google.com`
<clever> CMCDragonkai: `openssl s_client -connect google.com:443`
<clever> that will open an ssl connection, and dump the certs
<clever> its also good for testing ssl problems on servers
<clever> `openssl x509 -in ./foo.pem -noout -text` will pretty-print a cert, once you shove all the base64 into a file
<CMCDragonkai> clever: you suggest just to copy the part which begins with certificate and ends? and set that as a file `google.com.crt`?
<clever> yeay
<clever> yeah*
drakonis has joined #nixos
<clever> then you are directly trusting that hosts current cert, and ignoring the whole ca mess
<clever> if you run the server you use, and arent using lets encrypt, youll know when the certs are changing
<CMCDragonkai> i was trying to get something out of s3
<clever> ah
<CMCDragonkai> is this the correct pem format?
silver has quit [Quit: rakede]
noudle has quit []
<clever> CMCDragonkai: you can test it with the x509 cmd i gave above
<CMCDragonkai> tested it
<clever> CMCDragonkai: the pastebin also looks good
abathur has joined #nixos
jluttine has quit [Ping timeout: 268 seconds]
<CMCDragonkai> clever: its very quick
<CMCDragonkai> but theres a message
<CMCDragonkai> i just saw
<CMCDragonkai> something like "could not parse..."
<CMCDragonkai> before jumping into my menu
<CMCDragonkai> note that it still fails btw
<CMCDragonkai> even with google.com's cert
<clever> not sure then
<CMCDragonkai> `Could not parse permanent certificate: Operation not supported`
<CMCDragonkai> cert store
<clever> youll need to check with the ipxe devs maybe
<CMCDragonkai> the link goes to: http://ipxe.org/err/3c00e1
mbrgm_ has joined #nixos
<clever> One example is SHA1 certificates which is not supported (they are considered broken anyway so upgrade your certificate)
<clever> CMCDragonkai: youll need to use the x509 command to see which algo is being used, then enable the right compile time flag
<CMCDragonkai> * Signature Algorithm: sha256WithRSAEncryption
<CMCDragonkai> * Public Key Algorithm: id-ecPublicKey
<clever> sha256 is likely what you want enabled
<CMCDragonkai> those are the 2 i found
mbrgm_ is now known as mbrgm
<CMCDragonkai> so i need to enable sha256 in the make flags?
<clever> with the rest of the cfg flags
<clever> enabledFestures
<clever> src/config/config_crypto.c:#if defined ( CRYPTO_PUBKEY_RSA ) && defined ( CRYPTO_DIGEST_SHA256 )
<clever> CMCDragonkai: these 2 i think
idk has joined #nixos
idk is now known as Guest46815
Okinan has joined #nixos
<inkbottle> Is it possible that "libusb-1.0.so.0" wouldn't be fount by some installers, like npm?
<clever> inkbottle: it will only be found if you tell nix-shell to provide it
<inkbottle> I can't succeed having "npm install node-hid"
<CMCDragonkai> clever: does that go into enabledOPtions?
<clever> CMCDragonkai: i think so
<inkbottle> clever: I have "nix-shell -p python nodejs-10_x libudev libusb"
<clever> inkbottle: libusb only has libusb-0.1.so
<inkbottle> and locate libusb-1.0.so.0 returns 2 files in the /nox/store
<clever> inkbottle: libusb1 has libusb-1.0.so
<inkbottle> OK, I try that
<redredred> inkbottle: also - just because locate find it, doesn't mean that your profile sees it
<clever> $ nix-build '<nixpkgs>' -A libusb1
<clever> $ ls result/lib/ -lh
<clever> inkbottle: this is how i confirm what is inside a package
<clever> locate will just blindly search /nix/store and can find things nix-shell isnt making available
NoctisLa1 has joined #nixos
<Guest46815> Hi, I'm trying to use some packages from master, while the rest of my system is built on stable. I've managed to add a long line of code my `environment.systemPackages`, but now I want to use it in more than one place. I tried this: nixpkgsLatest = # ... environment.systemPackages = with pkgs; [ nixpkgsLatest #... ];But I get "The option
<Guest46815> `nixpkgsLatest' defined in `/etc/nixos/configuration.nix' does not exist."I tried to use `with` and `let`, but never managed to get them to work without syntax errors. Any ideas?
NoctisLabs has quit [Ping timeout: 245 seconds]
<inkbottle> clever: yes, everything seems alright: https://paste.debian.net/1116306/
<inkbottle> but still doesn't work
sb0 has joined #nixos
<inkbottle> The lib really seems to be here, but isn't found by npm install
<inkbottle> I'm temporarily adding the lib globally
halfbit has quit [Ping timeout: 245 seconds]
<inkbottle> libusb1
<clever> ,libraries inkbottle
<{^_^}> inkbottle: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<clever> $ nix-build '<nixpkgs>' -A libusb1.dev
<clever> $ ls result-dev/include/libusb-1.0/libusb.h
<clever> result-dev/include/libusb-1.0/libusb.h
m0rphism has quit [Ping timeout: 240 seconds]
<clever> inkbottle: nix added the include dir to the -I path
<clever> inkbottle: but libusb deviced to break things, and hid the files under include/libusb-1.0
<CMCDragonkai> clever: those options don't work
<clever> inkbottle: so you must use pkgconfig to find the path
<CMCDragonkai> clever: funny enough if i enable ipv6 the ping fails to work, ive since removed it
<clever> inkbottle: pkgconfig must also be in the nix-shell args, it wont work when globally installed
<CMCDragonkai> clever: something is broken in the ipxe's TLS
<CMCDragonkai> clever: the current nixpkgs ipxe hash is set to Feb 15
<CMCDragonkai> clever: and there's been later ipxe code
<CMCDragonkai> clever: going to try getting the master commit
<inkbottle> clever: plenty of things but I might get it: adding pkgconfig after nix-shell
Rusty1 has quit [Remote host closed the connection]
hlolli__ has joined #nixos
jchw has joined #nixos
heatm1s3r has quit [Ping timeout: 252 seconds]
alunduil has quit [Ping timeout: 252 seconds]
hoek has quit [Ping timeout: 250 seconds]
taktoa[c] has joined #nixos
AmandaC has joined #nixos
nkaretnikov has joined #nixos
smatting has quit [Ping timeout: 245 seconds]
thoughtpolice has joined #nixos
lightbulbjim has joined #nixos
heatm1s3r has joined #nixos
nimblepoultry has joined #nixos
alunduil has joined #nixos
gausby_ has joined #nixos
sdier has joined #nixos
ctp has joined #nixos
mankyKitty has joined #nixos
aria has joined #nixos
newhoggy has joined #nixos
hlolli_ has quit [Ping timeout: 276 seconds]
feepo has joined #nixos
jw358 has joined #nixos
elvishjerricco has joined #nixos
nh2 has joined #nixos
dukedave has joined #nixos
parseval has joined #nixos
valwal has joined #nixos
TallerGhostWalt_ has joined #nixos
higherorder has joined #nixos
englishm has joined #nixos
d10n-work has joined #nixos
rizary_ has joined #nixos
hoek has joined #nixos
<inkbottle> clever: nix-shell -p python nodejs-10_x libudev libusb1 pkgconfig; npm install node-hid; still produces the same errors: libusb-1.0.so.0: cannot open shared object file: No such file or directory
<infinisil> Guest46815: Use such a structure for your file: `{ pkgs, lib, ... }: let nixpkgsLatest = ...; in { environment.systemPackages = [ nixpkgsLatest.foo ... ]; }`
<inkbottle> shouldn't I need a file: libusb-1.0.pc?
<clever> $ ls result-dev/lib/pkgconfig/
<clever> libusb-1.0.pc
<clever> inkbottle: its in libusb1.dev
<{^_^}> [nixpkgs] @kim0 opened pull request #73433 → xmrig: 3.2.0 -> 5.0.0 → https://git.io/JerFI
Rusty1 has joined #nixos
<inkbottle> clever: pkg-config --cflags --libs ./result-dev/lib/pkgconfig/libusb-1.0.pc; seems the right thing to do; however, I still get libusb-1.0.so.0: cannot open shared object file: No such file or directory
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @cdepillabout opened pull request #73434 → haskellPackages.llvm-hs: fix build on darwin → https://git.io/JerFL
<clever> inkbottle: maybe npm isnt obeying pkgconfig?
<clever> inkbottle: does ` pkg-config --cflags --libs libusb-1.0` work in the nix-shell?
<inkbottle> clever: yes
<clever> inkbottle: all i can think of then is to try using yarn2nix instead of plain npm
werner291 has quit [Quit: werner291]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JerF3
drakonis has quit [Ping timeout: 252 seconds]
<inkbottle> clever: I've been suggested to use debian of even a virtual machine until I can find a solution to the problem...
<bdju> what can I do about really bad video playback with intel graphics? had better performance on an older machine that also had intel graphics so something is very wrong
<inkbottle> clever: but I'm very new with nix. things will be easier. like later
<clever> inkbottle: a docker is likely the simplest way to get a debian like env
<clever> inkbottle: and its easy enough to enable docker in nixos
<inkbottle> clever: I've got an old debian next to my nixos
<inkbottle> like different machine
<clever> that also works
drakonis has joined #nixos
<{^_^}> [nixpkgs] @nixos-channel-bot pushed commit from @davidak to nixpkgs-19.09-darwin « doc/rl-1909: fix language »: https://git.io/Jer5f
acarrico has quit [Ping timeout: 252 seconds]
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/259a67ca221 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
thc202 has quit [Ping timeout: 245 seconds]
<lordcirth__> I'm trying to update the package for CKAN, and I cannot figure out where the build is actually being done... https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/ckan/default.nix
<lordcirth__> We download source, then we copy the exe's.... where's the compile??
cyris212 has joined #nixos
<clever> lordcirth__: that file is the one that builds it
<clever> lordcirth__: phases hasnt been set, so it will do the usual configure/build/install stuff, which includes running ./configure and then running `make install`
<clever> lordcirth__: oh, and `make` in the middle
<lordcirth__> clever, so configure, make, install is entirely implicit?
<clever> lordcirth__: yeah
<lordcirth__> Well that's confusing
<lordcirth__> Anyway, the project no longer uses "make"
<clever> did the old version use it?
<lordcirth__> Yes
<clever> what does the new version use in its place?
<lordcirth__> At least, I assume so, if this built
<lordcirth__> Just a ./build
<clever> what are the contents of build?
<clever> lordcirth__: try buildPhase = "./build"; ?
<lordcirth__> So, installPhase defaults to "make install", etc?
o1lo01ol1o has quit [Remote host closed the connection]
<clever> lordcirth__: yep
reallymemorable has quit [Quit: reallymemorable]
reallymemorable has joined #nixos
<lordcirth__> Ok, it runs the script. Just missing some deps now (nuget)
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @marsam opened pull request #73436 → postgresql: 9.5.19 -> 9.5.20, 9.6.15 -> 9.6.16, 10.10 -> 10.11, 11.5 -> 11.6, 12.0 -> 12.1 → https://git.io/JerF8
<clever> rootDir=$(dirname $0)
<clever> toolsDir="$buildDir/tools"
<clever> buildDir="$rootDir/_build"
<clever> nugetExe="$toolsDir/NuGet/$nugetVersion/nuget.exe"
<clever> if [ ! -f "$nugetExe" ]; then
<clever> lordcirth__: if it cant find nuget.exe, it will try to download it, but nix wont allow that
<lordcirth__> Yeah, looking into that
<clever> lordcirth__: use fetchurl to grab a copy using nix, and then in buildPhase copy it to the right place before you ./build
<clever> let foo = fetchurl {...}; in stdenv.mkDerivation { ... buildPhase = ''
<clever> cp ${foo} something/bar/nuget.exe
<clever> ./build
<lordcirth__> Yeah, just looking to see if there's a nuget pacakge
<lordcirth__> pkgs/development/tools/build-managers/msbuild/nuget.nix
<lordcirth__> This seems to just import "Nuget", but I can't: https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/nosql/eventstore/default.nix
wildtrees has quit [Quit: Leaving]
<clever> lordcirth__: that only works if the program tries to run Nuget directly
<lordcirth__> anonymous function at /.../default.nix:1:1 called without required argument 'Nuget', at /../nixpkgs/lib/customisation.nix:69:16
<clever> lordcirth__: also, check the callPackage for eventstore, in all-packages.nix
<lordcirth__> Nuget = dotnetPackages.Nuget;
<clever> lordcirth__: Baughn is also on irc
pie_ has quit [Ping timeout: 240 seconds]
shyim has quit [Quit: Ping timeout (120 seconds)]
shyim has joined #nixos
<lordcirth__> It doesn't seem to be possible to use ${version} in the url without passing it in from the outside? I can't just declare it on the line above?
<{^_^}> [nixpkgs] @jumper149 opened pull request #73437 → blugon: init at 1.11.4 → https://git.io/JerFX
<clever> lordcirth__: you probably need a recursive set, or a let block
ddellacosta has quit [Ping timeout: 252 seconds]
<lordcirth__> Ah, let, yeah
<lordcirth__> Wait, this is already a let block, can/should they be nested?
<clever> what is the error and can you pastebin the code?
h0m1 has quit [Ping timeout: 276 seconds]
sondr3 has quit [Quit: WeeChat 2.6]
<{^_^}> [nixpkgs] @marsam opened pull request #73438 → terraform: 0.12.14 -> 0.12.15 → https://git.io/JerFM
h0m1 has joined #nixos
<lordcirth__> I think I figured it out, actually
srl295 has quit [Quit: Connection closed for inactivity]
lambda-11235 has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
reallymemorable has joined #nixos
zeta_0 has joined #nixos
<exarkun> Okay I did this on a remote host
<exarkun> nix copy --to file:///tmp/rpikernel /nix/store/5cnbq72lgp7n618wxxf8n2n85n6vgdsv-raspberrypi-kernel_1.20180619-1.tar.gz
<exarkun> And then I rsync'd /tmp/rpikernel to my local machine
<zeta_0> does nix-emacs automatically come with all these other packages or do i have to install them seperately ? https://github.com/travisbhartwell/nix-emacs/tree/45c8d90748304c90e1503c9fa8db0443f3d4bd89
* exarkun figures out the answer to the eventual question at this point
<exarkun> The file:/// path must be the same on both ends or the hash doesn't match and nix copy rejects the operation
<exarkun> I guess?
notgne2 has joined #nixos
<clever> exarkun: nope
<clever> exarkun: are you doing the --from as root?
jluttine has joined #nixos
<exarkun> nope
<clever> exarkun: try it as root
<exarkun> First I rsync'd /tmp/rpikernel to ~/rpikernel
<exarkun> And `nix copy --from ...` as my normal user said:
<exarkun> error: path '/nix/store/5cnbq72lgp7n618wxxf8n2n85n6vgdsv-raspberrypi-kernel_1.20180619-1.tar.gz' is not valid
<exarkun> Then I moved ~/rpikernel to /tmp/rpikernel and reran the same command and it worked
<clever> exarkun: did you give file:// an absolute path?
<zeta_0> clever: do i need to install the other packages seperately ?
<exarkun> both times, yes
<clever> zeta_0: i dont use emacs
<exarkun> file:///home/exarkun/rpikernel and file:///tmp/rpikernel
<clever> exarkun: those should behave the same way
ng0_ has joined #nixos
<{^_^}> [nixpkgs] @marsam opened pull request #73439 → rclone: 1.49.5 -> 1.50.1 → https://git.io/JerFb
ng0 has quit [Ping timeout: 260 seconds]
<lordcirth__> clever, ok, so I got nuget in place, but now nuget is trying to download a bunch of stuff
<clever> lordcirth__: ive not used nuget, so i'm not sure what you can do to solve that
Supersonic has quit [Ping timeout: 276 seconds]
Supersonic has joined #nixos
<lordcirth__> Hmm, it seems that fetchNuget might be made for exactly this
<clever> lordcirth__: sounds likely
<{^_^}> [nixpkgs] @kim0 opened pull request #73440 → xmrig-proxy: 3.2.0 -> 5.0.0 → https://git.io/JerFh
reallymemorable has quit [Quit: reallymemorable]
hlolli__ has quit [Ping timeout: 246 seconds]
MmeQuignon has quit [Ping timeout: 252 seconds]
<exarkun> Oh cool this .tar.gz isn't from a fixed output derivation at all, it's downloaded by some janky shell script and pre-adding it to my store makes no difference at all.
<clever> exarkun: ?
<exarkun> so successfully copying across three hosts with `nix copy` was a waste of time
<clever> exarkun: where do you see the file being added to the nix store?
<exarkun> I probably don't. What I see is https://gist.github.com/exarkun/7c20f74c4da11f21ef8cc9b64d5d3c9b and I guess I jumped to a conclusion.
<clever> exarkun: thats a fixed-output derivation
bvdw has quit [Read error: Connection reset by peer]
<exarkun> What is, exactly?
<clever> exarkun: /nix/store/45r705j2ig7227nmbx8l50wpiww87992-source.drv
<clever> exarkun: run `nix show-derivation` on it
bvdw has joined #nixos
<clever> > hello.src
<{^_^}> "<derivation /nix/store/i7bl3bw4xll9zsijhj619s3sj6ikra4k-hello-2.10.tar.gz.drv>"
<exarkun> I don't understand how this helps me at all
<clever> exarkun: to start, with, run nix show-derivation on that source.drv, and pastebin the contents
<exarkun> that's the source.drv
<clever> "outputHashMode": "recursive",
<clever> exarkun: you must unpack the tar.gz, before you add it to the nix store
<clever> exarkun: this was made by pkgs.fetchzip (which auto-unpacks), not pkgs.fetchurl
<clever> so you must unpack the file, and then add the directory
<clever> exarkun: the name must also be set to source, or it wont line up
<clever> nix-build -E 'with import <nixpkgs> {}; fetchzip { url = "https://github.com/raspberrypi/linux/archive/raspberrypi-kernel_1.20180619-1.tar.gz"; sha256 = "0yccz8j3vrzv6h23b7yn7dx84kkzq3dmicm3shhz18nkpyyq71ch"; name = "source"; }'
<exarkun> I think that's the part I missed
<clever> exarkun: try this on an x86 machine
<clever> exarkun: and confirm it has the same output as line 58 of the `show-derivation` gist
magnetophon has quit [Ping timeout: 245 seconds]
<exarkun> yea it does
<clever> exarkun: i can confirm the above nix-build generates the same $out
<clever> which you can now nix copy over
<lordcirth__> Ok, so I think I'm starting to figure this out. The Cake drv produced by "buildDotnetPackage" has it's built .dll's in the root, but they are not copied into the store
<lordcirth__> So the question is, do I try adding some option to buildDotnetPackage to keep the dlls, or do I just do a generic fetchurl and get on with it?
<exarkun> clever: that worked, thanks.
mexisme has quit [Ping timeout: 252 seconds]
Soo_Slow has quit [Quit: Soo_Slow]
felixfoertsch23 has joined #nixos
leungbk has joined #nixos
<{^_^}> [nixpkgs] @Moredread opened pull request #73441 → prusa-slicer: use wxGTK31 instead of wxGTK30 → https://git.io/Jerb0
<leungbk> I'm having some trouble with nix-prefetch-git.
<{^_^}> [nixpkgs] @nixos-channel-bot pushed commit from @davidak to nixos-19.09-small « doc/rl-1909: fix language »: https://git.io/Jer5f
<leungbk> nix-prefetch-git https://github.com/escherdragon/sunrise-commander.git 7a44ca7abd9fe79f87934c78d00dc2a91419a4f1
felixfoertsch has quit [Ping timeout: 276 seconds]
<leungbk> ^ the output sha256 has way fewer characters than what is in the nixpkgs repo.
<leungbk> How I can output the correct sha256?
<clever> lordcirth__: base32 vs base64
magnetophon has joined #nixos
<lordcirth__> leungbk, *
<clever> lordcirth__: nix will accept both
<clever> oops
<DigitalKiwi> there's a manual page somewhere that as commands to convert between if you really want to
<clever> `man nix-hash`
<leungbk> clever: I see, thanks!
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/259a67ca221 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
<{^_^}> [nixpkgs] @bcdarwin opened pull request #73442 → nifticlib and niftseg: change platform from linux to unix since these… → https://git.io/JerbE
mexisme has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #73427 → Revert "python37Packages.pyspf: 2.0.12 -> 2.0.13" → https://git.io/Jer74
<{^_^}> [nixpkgs] @jonringer pushed commit from @petabyteboy to master « Revert "python37Packages.pyspf: 2.0.12 -> 2.0.13" »: https://git.io/Jerbi
worldofpeace has quit [Quit: worldofpeace]
drakonis_ has joined #nixos
leungbk has quit [Read error: Connection reset by peer]
leungbk has joined #nixos
aw has quit [Quit: Quitting.]
aw has joined #nixos
spacefrogg has joined #nixos
leungbk has quit [Client Quit]
klntsky has joined #nixos
<lordcirth__> Ugh, it's looking like the new CKAN has tons of little dependencies...
<drakonis_> ckan?
LysergicDreams has joined #nixos
<lordcirth__> Drakonis_, the community mod manager for Kerbal Space Program.
<lordcirth__> It's a mono app, and it seems their new build system involves running a program called "Cake" to go and fetch all the deps. It's going to be hard to package.
<drakonis_> hm
<lordcirth__> It's normally a magic "./build".
<lordcirth__> But it downloads a ton of little .NET packages
drakonis1 has joined #nixos
drakonis has quit [Ping timeout: 252 seconds]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
pareidolia has quit [Ping timeout: 246 seconds]
mexisme has quit [Ping timeout: 252 seconds]
pareidolia has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 252 seconds]
drakonis_ has quit [Read error: Connection reset by peer]
mexisme has joined #nixos
vonfry has joined #nixos
abathur has quit [Ping timeout: 240 seconds]
lovesegfault has joined #nixos
<lovesegfault> Some timeouts
<lovesegfault> Could someone restart the jobs?
<lovesegfault> Really hoping this yields a nixos-unstable release
felixfoertsch23 has quit [Quit: ZNC 1.7.3 - https://znc.in]
felixfoertsch has joined #nixos
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
evanjs has joined #nixos
mexisme has quit [Ping timeout: 246 seconds]
evanjs has quit [Client Quit]
evanjs has joined #nixos
tghume has joined #nixos
Fare has quit [Ping timeout: 245 seconds]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 268 seconds]
Rusty1 has quit [Quit: Konversation terminated!]
Emiller88 has joined #nixos
endformationage has quit [Ping timeout: 240 seconds]
treffynn1n has joined #nixos
<{^_^}> [nixpkgs] @nixos-channel-bot pushed 11 commits to nixos-unstable-small: https://git.io/JerNA
treffynn1n has quit [Client Quit]
treffynn1n has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/d793d53b0d8 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
Guest46815 has quit [Ping timeout: 260 seconds]
Emiller88 has quit [Remote host closed the connection]
sb0 has quit [Quit: Leaving]
treffynn1n has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @ryantm opened pull request #73444 → Add configuration for GitHub stale bot → https://git.io/JerAI
<lovesegfault> ryantm: Hey, regarding the stale issue PR, it seems like the bot won't close the issues?
<lovesegfault> What to do with the issues marked as stale then?
<ryantm> lovesegfault: Correct, we decided to only have humans close them after using their judgement.
<lovesegfault> ryantm: Does GH provide some form of automation for this? I can see it being _very_ painful to do manually
<ryantm> lovesegfault: automation for what?
<lovesegfault> ryantm: nvm, it would obviously have to be built; I'd imagine some sort of TUI/CLI tool that shows you a stale issue and then a y/n prompt on whether to close it so it's easier to manage dealing with hundreds of stale issues
<lovesegfault> (Which I assume we currently have)
<ryantm> It will be interesting to see which ones remain stale after the bot sends the hopefully helpful message to those involved.
<lovesegfault> ryantm: I missed in the RFC, do we have a timeframe for an answer to be posted after the bot msg for it to be considered stale?
<ryantm> I kind of doubt we will see many bot messages for a while, because I think mmahut triaged like every issue and PR a month ago.
<infinisil> lovesegfault: It's really not about closing them, just marking as stale
<lovesegfault> Also, is the issue un-staled when someone posts?
<lovesegfault> infinisil: I meant for the point where they've been marked stale and no one posted showing interest for $days
<infinisil> Yeah, but that's like orthogonal to the RFC
<ryantm> It's automatically labeled stale after 180 days of inactivity, then when activity happens the label is automatically removed
[Leary] has joined #nixos
<lovesegfault> ryantm: Sweet!
<lovesegfault> infinisil: I'm not sure I'd say it's _orthogonal_; I definitely agree it's weakly linked
Mateon2 has joined #nixos
atriq has joined #nixos
callahad87 has joined #nixos
<lovesegfault> (the logical next step after marking stale is closure, given time + judgement)
<infinisil> Hm yeah, weakly linked sounds good
tylerjl has joined #nixos
<ryantm> Hopefully the logical next step is the appropriate resources being able to resolve it.
<lovesegfault> ryantm: If the issue needs to be resolved then it's not "semantically" stale; I suspect there is a class of issues alive right now that have already been solved
sigtrm_ has joined #nixos
<lovesegfault> also mmahut is a hero for triaging stuff :)
sshow_ has joined #nixos
chreekat has joined #nixos
monsieur1 has joined #nixos
<lovesegfault> We hired some Nix contractors who convinced me to try NixOS after being a long-term Gentoo guy; now I'm getting invested :P
habbah_ has joined #nixos
<ryantm> Great. Welcome.
page_ has joined #nixos
arianvp_ has joined #nixos
ng0_ has quit [Remote host closed the connection]
zaeph1 has joined #nixos
lux3 has joined #nixos
<lovesegfault> Anyways, thanks for all the clarifications ryantm :)
ng0_ has joined #nixos
tjgee has joined #nixos
rotaerk_ has joined #nixos
wrl has quit [*.net *.split]
detran has quit [*.net *.split]
leothrix has quit [*.net *.split]
leotaku has quit [*.net *.split]
Mateon1 has quit [*.net *.split]
callahad8 has quit [*.net *.split]
grumble has quit [*.net *.split]
wolke has quit [*.net *.split]
Rovanion has quit [*.net *.split]
kandinski has quit [*.net *.split]
Mateon2 is now known as Mateon1
<{^_^}> [nixpkgs] @nixos-channel-bot pushed commit from @petabyteboy to nixos-unstable-small « Revert "python37Packages.pyspf: 2.0.12 -> 2.0.13" »: https://git.io/Jerbi
luigy has quit [*.net *.split]
<{^_^}> [nixpkgs] @srhb merged pull request #70905 → kubernetes: 1.15.4 -> 1.16.3 → https://git.io/Jele4
<{^_^}> [nixpkgs] @srhb pushed 3 commits to master: https://git.io/JerAW
xd1le has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/dafbcb986ab (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
__Myst__ has joined #nixos
chreekat has quit [Ping timeout: 252 seconds]
vonfry has quit [Quit: WeeChat 2.6]
zupo has joined #nixos
kgz has quit [Ping timeout: 240 seconds]
grw has joined #nixos
pepesza has joined #nixos
greymalkin has joined #nixos
glines has joined #nixos
edcragg has joined #nixos
luigy has joined #nixos
samueldr has joined #nixos
dweller has joined #nixos
tarruda has joined #nixos
gambpang has joined #nixos
teto has joined #nixos
bob_twinkles has joined #nixos
n1x_ has joined #nixos
superbaloo has joined #nixos
stew has joined #nixos
lvmond has joined #nixos
Aleksejs has joined #nixos
rixed has joined #nixos
ixiqem has joined #nixos
boegel has joined #nixos
djanatyn has joined #nixos
Guest86933 has joined #nixos
mg- has joined #nixos
chreekat has joined #nixos
edef has joined #nixos
<xd1le> is there a way to have multiple "src" attributes for one package? I found out about "srcs" via searching but can't find anything about how to use it.
<xd1le> I have a package which needs a c header file from another package during building (I believe).
<srhb> xd1le: Try grepping for "srcs =" in pkgs :)
<xd1le> thanks, good point
<xd1le> srhb: ^
<srhb> Going by examples is usually the best way to get started. ^_^
myme has joined #nixos
<srhb> xd1le: This one looks like a good example: pkgs/development/tools/dtools/default.nix
palo1 has joined #nixos
kgz has joined #nixos
chreekat has quit [Ping timeout: 252 seconds]
<xd1le> srhb: ah sweet, ty!
<srhb> Welcome. :)
<srhb> (Alternatively, by your description, maybe you just want to have two distinct packages instead of two sources)
palo has quit [Ping timeout: 245 seconds]
palo1 is now known as palo
detran has joined #nixos
wrl has joined #nixos
andymandias has joined #nixos
lecethimon has joined #nixos
grumble has joined #nixos
wolke has joined #nixos
acertain has joined #nixos
leotaku has joined #nixos
emacsomancer has joined #nixos
puffnfresh has joined #nixos
multun has joined #nixos
Rovanion has joined #nixos
immae has joined #nixos
realrokka has joined #nixos
jfroche has joined #nixos
adisbladis has joined #nixos
jaeckel has joined #nixos
exarkun has joined #nixos
codedmart has joined #nixos
kandinski has joined #nixos
dashkal has joined #nixos
coderobe has joined #nixos
dbe has joined #nixos
Raito_Bezarius has joined #nixos
Serus has joined #nixos
kraem has joined #nixos
plp_ has joined #nixos
bigvalen has joined #nixos
juhoh has joined #nixos
xantoz has joined #nixos
phI||Ip has joined #nixos
cransom has joined #nixos
acowley has joined #nixos
mightybyte has joined #nixos
nurelin has joined #nixos
AstroBadger has joined #nixos
drgbr has joined #nixos
treffynn1n has joined #nixos
<xd1le> nah I think it's just a weird way the author set it up their project(s), doesn't seem like a conventional c library set up
<srhb> Alright :)
chreekat has joined #nixos
<xd1le> https://github.com/cylgom/dragonfail is the library if you're curious btw
<xd1le> but I might be wrong too
<{^_^}> [nixpkgs] @jtojnar merged pull request #72903 → denemo: add WrapGAppsHook → https://git.io/Jea4H
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/JerA0
kenran has joined #nixos
treffynn1n has quit [Quit: leaving]
markasoftware has joined #nixos
orivej has quit [Ping timeout: 265 seconds]
kuznero has joined #nixos
<kuznero> Hi All!
mexisme has joined #nixos
wrl has quit [*.net *.split]
leotaku has quit [*.net *.split]
detran has quit [*.net *.split]
grumble has quit [*.net *.split]
wolke has quit [*.net *.split]
acertain has quit [*.net *.split]
lecethimon has quit [*.net *.split]
andymandias has quit [*.net *.split]
adisbladis has quit [*.net *.split]
emacsomancer has quit [*.net *.split]
exarkun has quit [*.net *.split]
realrokka has quit [*.net *.split]
jfroche has quit [*.net *.split]
immae has quit [*.net *.split]
Rovanion has quit [*.net *.split]
jaeckel has quit [*.net *.split]
puffnfresh has quit [*.net *.split]
multun has quit [*.net *.split]
coderobe has quit [*.net *.split]
codedmart has quit [*.net *.split]
kandinski has quit [*.net *.split]
dashkal has quit [*.net *.split]
dbe has quit [*.net *.split]
Serus has quit [*.net *.split]
phI||Ip has quit [*.net *.split]
xantoz has quit [*.net *.split]
juhoh has quit [*.net *.split]
bigvalen has quit [*.net *.split]
plp_ has quit [*.net *.split]
kraem has quit [*.net *.split]
acowley has quit [*.net *.split]
drgbr has quit [*.net *.split]
Raito_Bezarius has quit [*.net *.split]
AstroBadger has quit [*.net *.split]
mightybyte has quit [*.net *.split]
cransom has quit [*.net *.split]
nurelin has quit [*.net *.split]
sigmundv has joined #nixos
<buckley310> can anyone else who is running unstable test the steam client? steam just updated and now doesnt work. not sure if its the package or just me.
monsieur1 is now known as monsieurp
<{^_^}> [nixpkgs] @Synthetica9 opened pull request #73446 → vscodium: 1.39.2 -> 1.40.0 → https://git.io/JerA6
detran has joined #nixos
wrl has joined #nixos
realrokka has joined #nixos
adisbladis has joined #nixos
emacsomancer has joined #nixos
lecethimon has joined #nixos
acertain has joined #nixos
wolke has joined #nixos
exarkun has joined #nixos
andymandias has joined #nixos
jfroche has joined #nixos
jaeckel has joined #nixos
multun has joined #nixos
grumble has joined #nixos
Rovanion has joined #nixos
immae has joined #nixos
leotaku has joined #nixos
puffnfresh has joined #nixos
Serus has joined #nixos
dashkal has joined #nixos
Raito_Bezarius has joined #nixos
kandinski has joined #nixos
coderobe has joined #nixos
codedmart has joined #nixos
dbe has joined #nixos
acowley has joined #nixos
juhoh has joined #nixos
drgbr has joined #nixos
cransom has joined #nixos
phI||Ip has joined #nixos
bigvalen has joined #nixos
plp_ has joined #nixos
mightybyte has joined #nixos
xantoz has joined #nixos
kraem has joined #nixos
nurelin has joined #nixos
AstroBadger has joined #nixos
Serus has quit [Max SendQ exceeded]
emacsomancer has quit [Max SendQ exceeded]
Synthetica has joined #nixos
emacsomancer has joined #nixos
<kenran> In a haskell+nix project, I'm using packageOverrides to jailbreak/dontCheck a couple of haskell dependencies. Now I need to patch the 'ghc' this is compiled with. Are there any good resources on how to do that? For instance, I wonder whether I should try and switch to overlays instead of packageOverrides first.
fusion809 has joined #nixos
<kenran> If I understand correctly, an overly would nowadays be the idiomatic way to modify my package set. But I also don't yet know how this plays with haskellPackages.
Serus has joined #nixos
<DigitalKiwi> what's this mean:
<DigitalKiwi> Could not load host key: /etc/ssh/ssh_host_rsa_key
<DigitalKiwi> Could not load host key: /etc/ssh/ssh_host_ed25519_key
<DigitalKiwi> when nixos-rebuild switch
<etu> DigitalKiwi: Do those files exists?
<DigitalKiwi> yes
page_ is now known as page
<DigitalKiwi> (in this case it was right around lines that said on a different builder machine but they exist on both machines and i'm not sure if that's relevant but possibly)
<DigitalKiwi> https://gist.github.com/Kiwi/614919e0de220e30361f7dbd818b8326 mvp-nixos is the machine i'm running it on
philr has joined #nixos
aveltras has joined #nixos
zaeph1 is now known as zaeph
rauno has joined #nixos
<{^_^}> [nixpkgs] @yrashk opened pull request #73447 → streamlit: 0.49.0 -> 0.50.2 → https://git.io/JerA5
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eon` has joined #nixos
<clever> kenran: packageOverrides just takes a previous version of the package set, and returns the top-level attrs to overwrite
eon_ has quit [Quit: leaving]
<clever> kenran: overlays are list a list of functions, that take both the previous package set, and the final package set, and return the top-level attrs to overwrite
<clever> kenran: the only real difference, is that you can have several of them, and you use the 2nd argument to refer to other packages+overrides, rather then rec{
eon` has joined #nixos
<niso> by chance somebody already wrote a script to generate a hydra-jobset per git-branch?
<clever> niso: currently, you need to hard-code the list of branches into a nix file, and use declarative jobsets to generate the jobsets
<niso> clever: like this? https://github.com/shlevy/declarative-hydra-example/blob/master/default.nix (but generate the json with e.g. jq)
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
<clever> niso: i would generate the json using nix, things like map and listToAttrs
eon` has quit [Quit: leaving]
<niso> clever: how would you get the input of "git for-each-ref --format='%(refname:short)' refs/heads/*" in nix?
<niso> *output
<clever> niso: there is no real way to get the list of branches from this job
<niso> clever: uhm, but the link i sent generates it via bash - shouldn't it be possible that way?
Heirlung has quit [Quit: ZNC - http://znc.in]
<clever> niso: that bash still runs in the nix sandbox, and has to follow all the normal rules when building things
<niso> clever: hmm, means the cleanest solution would prolly be to write a hydra-plugin for (in my case) gitea?
<clever> niso: yeah, one second
kleisli has quit [Ping timeout: 240 seconds]
hmpffff has joined #nixos
<clever> niso: this adds an input to the jobset, of type githubpulls, which will fetch a list of all PR's, and pass it to toxvpn/default.nix (line 6) as a json file
<clever> niso: hydra will call fetchInput for every plugin, and pass it the value and type
<clever> niso: the first plugin to return non-undefined will terminate the search, and whatever it returned is used
<clever> niso: in this case, it fetches all pulls, and generates json
Heirlung has joined #nixos
<clever> so if you just duplicate that plugin, and switch it to the branches api, your done
<niso> clever: is implementing Pulls enoth? or do i have to implement GiteaStatus.pm too?
<niso> clever: i'll give it a try (not used to that funny looking language :P)
<clever> niso: the status plugin is optional, its just to report pass/fail back to the vcs system
<niso> perfect, thanks!
ng0_ is now known as ng0
cfricke has joined #nixos
civodul has joined #nixos
Makaveli7 has joined #nixos
<dminuoso> nixops talks about "copying closures", in what sense is nixops using the word closure?
<clever> dminuoso: the nixos build for the target machine, and everything it depends on
<dminuoso> clever: And how does that relate to the comp sci notion of a closure?
<dminuoso> if at all
<clever> dminuoso: not sure, i havent really seen it used much before nix
<clever> dminuoso: there is also a `nix-copy-closure` command you could check the man page of
<dminuoso> clever: Thanks. Your pointer helped me find this https://nixos.org/~eelco/pubs/phd-thesis.pdf
<dminuoso> And that seems to give it a definition.
mexisme has quit [Ping timeout: 250 seconds]
<dminuoso> Now the closure of a set of files C is the smallest set C′⊇ C satisfying ∀(p,c)∈C′:∀_p_ref ∈references(c): ∃(p′,c′) ∈ C′: p_ref=p′
<dminuoso> I think I can make sense of this
Jackneill has joined #nixos
<clever> that makes even less sense to me, lol
Jackneill has quit [Remote host closed the connection]
Jackneill has joined #nixos
<dminuoso> If I understand it right: when you have a thing containing free variables, a closure is basically that thing plus an environment that maps free variables to some values
<dminuoso> But that thesis seems very approachable
<dminuoso> Should give it a thorough read.
<clever> i still havent read it
<clever> and ive been using nix for years
zupo has joined #nixos
<{^_^}> [nixpkgs] @ckauhaus merged pull request #72028 → [r19.09] libpcap, tcpdump: 1.9.1 and 4.9.3 for many security fixes → https://git.io/Jerxb
<{^_^}> [nixpkgs] @ckauhaus pushed 3 commits to staging-19.09: https://git.io/JerxN
pareidolia has quit [Ping timeout: 250 seconds]
pareidolia has joined #nixos
Jackneill has quit [Read error: Connection reset by peer]
lambda-11235 has quit [Read error: Connection reset by peer]
zupo has quit [Client Quit]
lambda-11235 has joined #nixos
chloekek has joined #nixos
smatting has joined #nixos
LysergicDreams has quit [Ping timeout: 245 seconds]
lovesegfault has quit [Quit: WeeChat 2.6]
LysergicDreams has joined #nixos
m0rphism has joined #nixos
<{^_^}> [nixpkgs] @cw789 opened pull request #73448 → elixir_1_9: 1.9.2 -> 1.9.4 → https://git.io/Jerpq
pareidolia has quit [Quit: ZNC 1.7.3 - https://znc.in]
pareidolia has joined #nixos
<kenran> clever: Thanks (again)! I got this to work quite easily, because as you said, it's not as much of a change as I expected. Now I'll test it a bit and then I'll try and see if/how I can patch the GHC.
<clever> kenran: haskellPackages = super.haskellPackages.override { ghc = something; };
CMCDragonkai has quit [Quit: Connection closed for inactivity]
jgt1 has joined #nixos
lambda-11235 has quit [Quit: Bye]
__monty__ has joined #nixos
eon` has joined #nixos
<kenran> When I simply want to jailbreak a package, I don't need to do "cabal2nix cabal://bla-1.2.3 > bla.nix" and then use that, but (at least with overlays) I could do "super.haskell.lib.doJailbreak hsuper.bla", assuming that bla is on hackage. Is that correct? It seems to work but I'm skeptical.
<clever> kenran: yes
<kenran> That would mean I only have to use cabal2nix on packages where I want to manually change something in the resulting nix expression afterwards.
<clever> kenran: you can also use self.callCabal2nix "name" ./path {}
<clever> that will call cabal2nix for you, look for name.cabal in ./path, then callPackage the generated file with {}
<kenran> Oh, good to know, thanks
<kenran> There's so much utility stuff already :)
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
<__monty__> kenran: callHackage is very useful too.
zupo has joined #nixos
pareidolia has quit [Read error: Connection reset by peer]
<clever> and callHackageDirect
<__monty__> Hmm, haven't come across that before.
<clever> callHackage is a helper around callCabal2nix, using a tarball of cabalfiles and sha256's
<clever> so its limited to what was in the hackage snapshot, when the tarball was made
<clever> callHackageDirect will just fetchurl the given version, but needs a sha256
pareidolia has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #73438 → terraform: 0.12.14 -> 0.12.15 → https://git.io/JerFM
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jerp9
<__monty__> TIL, thank you! Kind of a misleading name though.
<__monty__> The former not the latter.
ckauhaus has joined #nixos
captn3m0 has quit [Ping timeout: 240 seconds]
captn3m0 has joined #nixos
LysergicDreams has quit [Ping timeout: 250 seconds]
LysergicDreams has joined #nixos
cfricke has quit [Quit: WeeChat 2.6]
Jackneill has joined #nixos
chreekat_ has quit [Quit: reboot]
<{^_^}> [nixpkgs] @etu merged pull request #73415 → gitea: 1.9.5 -> 1.9.6 → https://git.io/Jeryw
<{^_^}> [nixpkgs] @etu pushed 2 commits to master: https://git.io/Jerhk
<{^_^}> [nixpkgs] @etu opened pull request #73449 → [19.09] gitea: 1.9.5 -> 1.9.6 → https://git.io/JerhI
Makaveli7 has quit [Ping timeout: 250 seconds]
makaveli1 has joined #nixos
kuznero_ has joined #nixos
exfalso has joined #nixos
kuznero has quit [Ping timeout: 250 seconds]
thc202 has joined #nixos
<niso> uhm, where are hydra config parameters like "github_authorization" configured? (i can't find it in the documentation)
pointfourone has quit [Ping timeout: 240 seconds]
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen1 has joined #nixos
pointfourone has joined #nixos
dingenskirchen1 is now known as dingenskirchen
<niso> clever: nice config, thanks!
aveltras has quit [Quit: Connection closed for inactivity]
smatting has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @marsam opened pull request #73450 → vault: 1.2.4 -> 1.3.0 → https://git.io/Jerh6
genesis has quit [Ping timeout: 240 seconds]
dingenskirchen has quit [Quit: dingenskirchen]
smatting has joined #nixos
logzet has joined #nixos
pareidolia has quit [Ping timeout: 276 seconds]
pareidolia has joined #nixos
smatting has quit [Ping timeout: 265 seconds]
dingenskirchen has joined #nixos
emmanuelrosa has joined #nixos
alex```77 has joined #nixos
jgt1 has quit [Ping timeout: 250 seconds]
pareidolia has quit [Ping timeout: 240 seconds]
o1lo01ol1o has joined #nixos
pareidolia has joined #nixos
jgt1 has joined #nixos
magnetophon has quit [Ping timeout: 250 seconds]
kuznero__ has joined #nixos
pareidolia has quit [Ping timeout: 252 seconds]
pareidolia has joined #nixos
kuznero_ has quit [Ping timeout: 252 seconds]
<exfalso> Just to have a trace of this somewhere: the issue where nix-daemon seemed to consistently kill a user's shell when they invoked nix-env is solved. The issue was that all users were part of the nixbld group, and nix-daemon picked the same user that issued the build as the build user. The last step of build cleanup involves killing *all* processes belonging to the build user, which in this case included the
<exfalso> user's shell that issued the build command (as it was first in the alphabet). Long story short: do *NOT* add users to nixbld other than the usual nixbldN users.
wfranzini has joined #nixos
adam| has quit [Quit: ZNC 1.7.5 - https://znc.in]
adam| has joined #nixos
psyanticy has joined #nixos
magnetophon has joined #nixos
<{^_^}> [nixpkgs] @c0bw3b merged pull request #73383 → microcodeIntel: 20191112 -> 20191113 → https://git.io/JerVL
<{^_^}> [nixpkgs] @c0bw3b pushed commit from @herrwiese to master « microcodeIntel: 20191112 -> 20191113 »: https://git.io/JerjY
<{^_^}> [nixpkgs] @c0bw3b merged pull request #73384 → [19.09] microcodeIntel: 20190618 -> 20191113 → https://git.io/JerVg
<{^_^}> [nixpkgs] @c0bw3b pushed 4 commits to release-19.09: https://git.io/Jerjs
adam| has quit [Quit: ZNC 1.7.5 - https://znc.in]
adam| has joined #nixos
jgeerds_ has joined #nixos
adam| has quit [Client Quit]
adam| has joined #nixos
sshow_ is now known as sshow
jgt1 is now known as jgt
iyzsong has joined #nixos
<{^_^}> [nixpkgs] @JohnAZoidberg merged pull request #73422 → dragon-drop: 1.1.0 -> 1.1.1 → https://git.io/JerHC
<{^_^}> [nixpkgs] @JohnAZoidberg pushed 2 commits to master: https://git.io/Jerju
FRidh has joined #nixos
magnetophon has quit [Ping timeout: 250 seconds]
squirrel1 has joined #nixos
<manveru> ,benchmarking
smatting has joined #nixos
<clever> ,profiling manveru
<{^_^}> manveru: Use NIX_COUNT_CALLS=1 and/or NIX_SHOW_STATS=1 to profile Nix evaluation
<manveru> ah, you're up :)
<manveru> yeah, i found it in the manpage anyway, was wondering what the other variable was that outputs the trace into a file
<manveru> thx
<clever> manveru: its not in the docs, i keep checking for it in the source
<clever> partially my fault, i added it to the source, and not the docs
<{^_^}> [nixpkgs] @Ma27 pushed 3 commits to structured-attrs: https://git.io/Jerjo
<{^_^}> [nixpkgs] @marsam merged pull request #73390 → nodejs-13_x: 13.0.1 -> 13.1.0 → https://git.io/Jerom
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JerjK
<manveru> clever: we were just wondering how to profile IFD easiest
<clever> manveru: main thing i was doing, is building with -Q, and noting everything it build during eval
<clever> manveru: then using `nix copy --to file:///tmp/cache /nix/store/foo` to copy the things it built to a dummy cache
<clever> substituters = http://nas.localnet:8081/ file:///tmp/cache
<clever> and then it can get things from there after a gc
<clever> the main problem i ran into, is that builtins.fetchTarball, without a sha256, cant use the binary cache
<clever> and thats a major bottleneck
_d0t has joined #nixos
<_d0t> ohai! What is the easiest way to create a nixos container with custom nixpkgs?
<manveru> yeah, but even with a hash, it can still be removed after the TTL... i think
<_d0t> nixos-container command doesn't accept a custom nixpkgs path as an argument.
fendor has joined #nixos
zupo has quit [Ping timeout: 265 seconds]
<clever> manveru: when nix is fetching things at eval time, it manages some symlinks in ~/.cache/nix/tarballs/
<Twey> _d0t: There's a `--nixos-path`, does that do it?
<_d0t> Twey: apparently no
kenran has quit [Ping timeout: 246 seconds]
<clever> manveru: the .info files contain metadata, like when it was last checked (to control how often it rechecsk), and the etags (to help with cache control headers)
<Twey> _d0t: Or setting NIX_PATH=nixpkgs=/path?
<{^_^}> [nixpkgs] @aanderse merged pull request #73449 → [19.09] gitea: 1.9.5 -> 1.9.6 → https://git.io/JerhI
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to release-19.09: https://git.io/JerjD
<clever> manveru: the file and unpacked links, point into the nix store, but arent GC roots, so nix can GC things, and they just act as a shortcut to save time
<clever> manveru: if you provide a sha256 ahead of time, it can also search the binary cache for things, and fetch it in a faster manner
<manveru> aye
<_d0t> Twey: doesn't work either
<clever> manveru: when using things like fetchTarball against github, you first have a slow delay at github, generating the tar and streaming it over
<clever> manveru: then you have a cpu delay to uncompress and untar it to a tmp folder, as your current user
<clever> manveru: then more cpu churn, as its serialized, hashed, and sent to nix-daemon, and deserialized back into /nix/store/
jgt has quit [Ping timeout: 252 seconds]
<clever> manveru: but if you use a binary cache, it will stream it thru a decompressor, and deserialized into /nix/store
<clever> manveru: far fewer steps
nakkle has joined #nixos
<{^_^}> [nixpkgs] @aanderse merged pull request #73244 → perlPackages.LWPUserAgentDNSHosts: init at 0.13 → https://git.io/Jew0G
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to staging: https://git.io/Jerj7
<manveru> yeah, i wonder if it would make sense to have separate ttls for fetchTarball with/without hash :)
<clever> manveru: the ttl mainly controls re-checking http for changes, when you already have the file
<manveru> so i can set one to infinity and never have to worry about fetching during nixos-rebuild as long as i manage everything via niv
<clever> manveru: if a sha256 is present, i think it just ignores the ttl entirely, and uses the $out if it exists in /nix/store/
<clever> no need to check for changes, if you know the content is unchanging
<manveru> maybe it just gets removed by GC then?
<clever> yeah
<manveru> guess i can make a root for that...
<clever> another thing, switching from fetchTarball to pkgs.fetchzip would help
<clever> pkgs.fetchzip forces you to supply a sha256, and makes it simpler to cache
<manveru> aye
o1lo01ol1o has quit [Ping timeout: 252 seconds]
<clever> manveru: as for making hydra cache things properly, you just need to generate a derivation that depends on the same fetchurl calls, and expose it in release.nix
<clever> manveru: my prefered way, is to generate symlinks, like ln -sv ${fetchurl ...} reponame
<manveru> i don't use hydra myself ^^;
<clever> manveru: then you can follow those to see the code behind the pin
<clever> and to make a link to your deps's source pin derivations
<clever> so you can recursively go down the pins
mariel__ has joined #nixos
chloekek has quit [Quit: WeeChat 2.6]
dingenskirchen has quit [Quit: dingenskirchen]
pareidolia has quit [Ping timeout: 240 seconds]
pareidolia has joined #nixos
<clever> manveru: with this, you can just nix-build release.nix -A source-pins, to pre-download everything it hould need at IFD time
<manveru> yeah, i got that :)
<clever> manveru: and line 39 is pulling in the source-pins of iohk-nix, so you also get all of those
<manveru> atm i don't do that for all of my inputs though, only nixpkgs... so will fix it
<{^_^}> [nixpkgs] @Profpatsch opened pull request #73451 → Lorri init backport 19.09 → https://git.io/Jeoem
Scriptkiddi has quit [Remote host closed the connection]
das_j has quit [Remote host closed the connection]
mariel__ has quit [Quit: Leaving]
mananamenos has joined #nixos
das_j has joined #nixos
Scriptkiddi has joined #nixos
pareidolia has quit [Ping timeout: 250 seconds]
magneticduck has joined #nixos
pareidolia has joined #nixos
<{^_^}> [nixpkgs] @thefenriswolf opened pull request #73452 → tensorman: init at 0.1.0 → https://git.io/Jeoen
<emmanuelrosa> _d0t, nixos-container doesn't have a way to pass in "-I" options, which would make it possible to specify a path for nixpkgs. I'm not sure if there's a way to get it to pick up NIXPATH. By default it must be getting it from somewhere. https://github.com/NixOS/nixpkgs/blob/a0a3f5c86ce04a820035855a081d3acb7f353201/pkgs/tools/virtualization/nixos-container/nixos-container.pl#L338
squirrel1 is now known as veverak
adam| has quit [Quit: ZNC 1.7.5 - https://znc.in]
<{^_^}> [nixpkgs] @mmahut opened pull request #73453 → prometheus-nginxlog-exporter: init at 1.3.0 → https://git.io/JeoeW
adam| has joined #nixos
pareidolia has quit [Ping timeout: 240 seconds]
pareidolia has joined #nixos
minicom has joined #nixos
<magneticduck> Hi, I'm having some trouble with a very basic UEFI installation of nixos. I've followed the instructions in the NixOS manual and set up these file systems and partitions: https://i.imgur.com/tCQ9Ox4.png . I have set "boot.loader.systemd-boot.enable = true" in my configuration.nix, and have not fiddled with boot-related things in any other way. `nixos-install` appears to succeed, giving this output: https://hastebin.com/raw/o
<magneticduck> kawefigih . However, when I reboot the system and ask to boot into the "UEFI OS", nothing happens---it returns back to the UEFI setup utility immediately, without any error.
evanjs has quit [Quit: ZNC 1.7.5 - https://znc.in]
<magneticduck> Is there anything obvious from those two pieces of evidence (the partition table and the nixos-install output) that I'm doing wrong?
evanjs has joined #nixos
<dminuoso> magneticduck: Did you boot the nixos installation iso with UEFI?
<magneticduck> Oops, a linebreak broke my link. Try: https://hastebin.com/raw/okawefigih
<magneticduck> dminuoso, I don't think so. I didn't do anything special, and nixos-install claims it was "Not booted with EFI"
<magneticduck> How do I do that?
xd1le has quit [Quit: leaving]
<dminuoso> magneticduck: Is this on a VM or a physical machine?
<clever> magneticduck: just tell the firmware to boot the usb stick in efi mode
<magneticduck> physical machine
<clever> you may need to disable the CSM
<{^_^}> [nixpkgs] @mmahut pushed 4 commits to master: https://git.io/JeoeV
<{^_^}> [nixpkgs] @mmahut merged pull request #73426 → signal-desktop: 1.27.4 -> 1.28.0 → https://git.io/JerQw
<magneticduck> disabling the CSM is something I can do from the setup utility?
<dminuoso> magneticduck: Boot the iso with efi and repeat the installation procedures. You shouldn't have to modify any boot things - nixos will generate everything automatically. :)
<clever> magneticduck: yeah
<dminuoso> magneticduck: (You just need to do the disk partition specially in that case)
<magneticduck> dminuoso, should I redo everything starting with the partitions, or just this final `nixos-install` step?
<clever> magneticduck: just mount things to the right places and re-run nixos-install
<dminuoso> magneticduck: You can reuse the partitions if you have configured them and saved them
<clever> magneticduck: remember to mount /mnt/boot too
<magneticduck> Okay, thanks. I'll be back...
magneticduck has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Mic92 merged pull request #70924 → mariadb: remove development components → https://git.io/Jeltl
<{^_^}> [nixpkgs] @Mic92 pushed 5 commits to master: https://git.io/Jeoei
<{^_^}> [nixpkgs] @Mic92 merged pull request #73440 → xmrig-proxy: 3.2.0 -> 5.0.0 → https://git.io/JerFh
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JeoeM
pareidolia has quit [Ping timeout: 252 seconds]
pareidolia_ has joined #nixos
_d0t has quit [Ping timeout: 265 seconds]
_d0t has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #73442 → nifticlib and niftseg: change platform from linux to unix sinc… → https://git.io/JerbE
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JeoeF
pareidolia_ has quit [Ping timeout: 246 seconds]
jb55 has joined #nixos
pareidolia has joined #nixos
philr has quit [Ping timeout: 265 seconds]
kenran has joined #nixos
avn has joined #nixos
sweep has joined #nixos
sweep has quit [Changing host]
sweep has joined #nixos
sweep is now known as genesis
pareidolia has quit [Quit: ZNC 1.7.3 - https://znc.in]
<boolman> do I just do rm -rf result/ to do a cleanup after a nixos-rebuild build-vm ?
<boolman> and gc I guess
Okinan has quit [Quit: Konversation terminated!]
<_d0t> boolman: yup
<clever> boolman: you want just `rm result`, no `-rf` needed, no `/` needed
<boolman> ah right, its just a symlink
<boolman> ty
hyper_ch2 has joined #nixos
<_d0t> So, in the beginning of my container.nix file I have arguments like { config, pkgs, ... }. How do I override them?
<_d0t> Without changing the rest of container description.
<dminuoso> Mmm, how can I persist deployment.keys on the target machine?
<clever> dminuoso: configure nixops to copy them to a dir that isnt a tmpfs
<clever> dest= i think it was, it should be in the nixops manual
<dminuoso> clever: Mmm. I somehow remember the manual giving an option like `deployment.keys.foo.persist = true;` or something..
chloekek has joined #nixos
<dminuoso> Fair enough, cheers
eon`_ has joined #nixos
eon`_ has quit [Client Quit]
pareidolia has joined #nixos
<dminuoso> Unrelatedly, the manual have examples containing lines like this:
<dminuoso> type = with types; submodule { ... }
<dminuoso> Do people actually use `with` like that?
<chloekek> Note that this is parsed like this: type = (with types; submodule { ... })
* chloekek never uses with
pareidolia has quit [Read error: Connection reset by peer]
pareidolia has joined #nixos
jgeerds_ has quit [Ping timeout: 245 seconds]
* dminuoso still wants `where-clauses` in nix
<{^_^}> [cabal2nix] @unode opened pull request #435 → Fix pandoc-placetable failure due to dependency on pandoc at setup → https://git.io/JeovW
emmanuelrosa has quit [Ping timeout: 246 seconds]
emmanuelrosa has joined #nixos
smatting has quit [Ping timeout: 245 seconds]
adam| has quit [Quit: ZNC 1.7.5 - https://znc.in]
smatting has joined #nixos
adam- has joined #nixos
adam- has quit [Client Quit]
pareidolia has quit [Ping timeout: 252 seconds]
adam- has joined #nixos
pareidolia has joined #nixos
<asymmetric> does anyone use the weechat module? i can't attach to the screen session, nor list it
pareidolia has quit [Ping timeout: 250 seconds]
pareidolia has joined #nixos
<{^_^}> [nixpkgs] @nixos-channel-bot pushed 9 commits to nixos-19.09: https://git.io/Jeovo
_d0t has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #nixos
_d0t has joined #nixos
dingenskirchen has joined #nixos
jgt has joined #nixos
<{^_^}> Channel nixos-19.09 advanced to https://github.com/NixOS/nixpkgs/commit/133d836dafa (from 2 days ago, history: https://channels.nix.gsc.io/nixos-19.09)
smatting has quit [Ping timeout: 252 seconds]
kuznero_ has joined #nixos
o1lo01ol1o has quit [Ping timeout: 240 seconds]
kuznero__ has quit [Ping timeout: 240 seconds]
asymmetric has joined #nixos
asymmetric has quit [Changing host]
horner has joined #nixos
<tilpner> asymmetric: I don't use the weechat module, but I have my own without screen if you're just looking for a solution
pareidolia has quit [Ping timeout: 250 seconds]
<asymmetric> tilpner: i'd just like to run it in headless mode and connect with glowingbear
LysergicDreams has quit [Ping timeout: 245 seconds]
<tilpner> asymmetric: https://tx0.co/abk
<tilpner> It's uncomfortably dependent on TERM, but otherwise great so far
pareidolia has joined #nixos
<tilpner> If you don't plan to attach at all, you can remove a lot of it
orivej has joined #nixos
<tilpner> (But you will need to attach at least to configure the relay)
<{^_^}> [nixpkgs] @cw789 opened pull request #73457 → erlangR22: 22.0.4 -> 22.1.7 → https://git.io/Jeovd
LysergicDreams has joined #nixos
<asymmetric> tilpner: thanks, i'll have a look!
<asymmetric> strange that weechat doesn't allow configuration-at-rest
<tilpner> asymmetric: I migrated to this from an entirely declarative weechat config
<tilpner> It was not fun
<asymmetric> what was the problem with the declarative config?
<tilpner> Turns out weechat was meant to be configured interactively
<tilpner> Things like changing buffer notification levels
<tilpner> You don't want a rebuild every time
hlolli__ has joined #nixos
ajtaktolpo has joined #nixos
domogled has joined #nixos
<{^_^}> [nixpkgs] @nixos-channel-bot pushed 7 commits to nixos-unstable-small: https://git.io/Jeovh
pareidolia has quit [Ping timeout: 250 seconds]
thc202 has quit [Ping timeout: 250 seconds]
<ajtaktolpo> please, anyone has a good example of how to use overlays to create a new module (like the one from nixpkgs) but using a different package version?
<FRidh> ajtaktolpo: you cannot. overlays only extend the package set. Modules are outside of the package set.
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/0d7a2c13540 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<tilpner> You can carry modules in overlays
<tilpner> And then import them
<tilpner> But it's very brittle, you need to be very careful to not cause infinite recursion
<ajtaktolpo> do you have an example?
<ajtaktolpo> I know how to overlay a package, but not a service
reallymemorable has joined #nixos
<tilpner> My NUR package-set has modules. I locally overlay my own NUR repo, and import modules from it into my config
pareidolia has joined #nixos
thc202 has joined #nixos
alex```77 has quit [Quit: The Lounge - https://thelounge.chat]
<tilpner> FRidh is right in that overlays can't change options on their own, they can only change values in your package set
reallymemorable has quit [Client Quit]
<tilpner> So you can put a module as a value in an overlay, and later import that
<tilpner> But you don't need the overlay to use the module, it would be simpler without
reallymemorable has joined #nixos
alexherbo2 has joined #nixos
mg- has quit [Quit: "upgrading box"]
<pingiun> why is /etc/nixos/configuration.nix read-only on the AWS AMI?
alexherbo2 is now known as alex```
<ajtaktolpo> tilpner: I want to keep the same service as it is and just creare a "fork" of it as unstable
<hyper_ch2> eyJhb: howdy
<tilpner> ajtaktolpo: Do you want the two modules to coexist, or have your new module replace the old one?
steevveen has joined #nixos
* tilpner reboot
<ajtaktolpo> tilpner: coexist, two services
tilpner has quit [Quit: tilpner]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
acarrico has joined #nixos
andreas303 has joined #nixos
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
Okinan has joined #nixos
Chiliparrot has joined #nixos
ajtaktolpo has quit [Remote host closed the connection]
emmanuelrosa has quit [Quit: leaving]
kleisli has joined #nixos
<steevveen> Hi! I have a question about virtualisation. I don't have to install any package, i do it with options avialable from from virtualisation.virtualbox . My problem is that (with version 19.09à, every time I do an update, vritual box cpp files get recompiled,at that takes about one hour on my machine. When I have such a problem with a package I
<steevveen> usually set my configuration to use the version of the previous nixos channel which tends to remain the same over time. So I would have like to use my n1903 channel pointing on 19.03. However I have no package to indicate in environment.systemPackages since vbox is all configrued through the option vitualisation.virtualbox . Anybody any advice ?
tilpner has joined #nixos
MmeQuignon has joined #nixos
<hyper_ch2> eyJhb: in case you haven't seen: displaylink got updated
magneticduck has joined #nixos
<tilpner> Did ajtaktolpo leave?
<magneticduck> hooray \o/
<magneticduck> it took me a while to realize I had to disable "secure boot"
<tilpner> Yes, it took longer than expected: "4min 30.034s systemd-tmpfiles-setup.service". But still?
pareidolia has quit [Ping timeout: 240 seconds]
<hyper_ch2> magneticduck: doesn't every sane person disable it?
<magneticduck> perhaps every sane person who pays attention. I was unaware that such a thing existed.
<Twey> SecureBoot can be nice to protect yourself from Evil Maid attacks, if you can install your own key
<Twey> It's pretty high up the paranoia scale though
<hyper_ch2> how would a "maid" know how to tamper with uefi boot?
<Twey> hyper_ch2: It's the first thing they teach you in Evil School
<hyper_ch2> they do? oh....
<chloekek> steevveen: You can set the vbox package with the virtualisation.virtualbox.host.package option
<chloekek> steevveen: most package-related options in NixOS have such a package option, which you can use to specify which package of the software to use for that service.
<{^_^}> [nix] @Ma27 opened pull request #3229 → builtins.fetchGit: Fix build when fetching a git worktree → https://git.io/Jeofg
<steevveen> chloekek now that you say that sounds obvious nixos had a solution for this. Thanks for telling me.
orivej has quit [Ping timeout: 250 seconds]
pareidolia has joined #nixos
<{^_^}> [nixpkgs] @greydot opened pull request #73458 → nixos-container: allow custom nixpkgs path. → https://git.io/JeofV
kuznero__ has joined #nixos
<_d0t> Anyway, who maintains nixos-container? default.nix has not mention of that.
pareidolia has quit [Client Quit]
pareidolia has joined #nixos
kuznero_ has quit [Ping timeout: 246 seconds]
pareidolia has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @nixos-channel-bot pushed 9 commits to nixos-19.09: https://git.io/JeofH
adam- has quit [Quit: ZNC 1.7.5 - https://znc.in]
pareidolia has joined #nixos
<{^_^}> Channel nixos-19.09 advanced to https://github.com/NixOS/nixpkgs/commit/259a67ca221 (from 14 hours ago, history: https://channels.nix.gsc.io/nixos-19.09)
steevveen has quit [Remote host closed the connection]
adam- has joined #nixos
kai_w has joined #nixos
kai_w has quit [Client Quit]
_d0t has quit [Ping timeout: 252 seconds]
kai_w has joined #nixos
pareidolia has quit [Ping timeout: 240 seconds]
andreas303 has quit [Remote host closed the connection]
reallymemorable has quit [Quit: reallymemorable]
o1lo01ol1o has joined #nixos
Rusty1 has joined #nixos
reallymemorable has joined #nixos
andreas303 has joined #nixos
sigmundv has quit [Ping timeout: 246 seconds]
reallymemorable has quit [Client Quit]
sondr3 has joined #nixos
reallymemorable has joined #nixos
_d0t has joined #nixos
makaveli1 has quit [Quit: WeeChat 2.6]
domogled has quit [Quit: domogled]
<{^_^}> [nixpkgs] @Profpatsch merged pull request #73451 → [19.09] lorri: init at unstable-2019-10-30 (backport) → https://git.io/Jeoem
<{^_^}> [nixpkgs] @Profpatsch pushed 2 commits to release-19.09: https://git.io/JeoJI
noudle has joined #nixos
<{^_^}> [nixpkgs] @nixos-channel-bot pushed 6 commits to nixos-19.09-small: https://git.io/JeoJq
endformationage has joined #nixos
<{^_^}> [nixpkgs] @nixos-channel-bot pushed 6 commits to nixpkgs-19.09-darwin: https://git.io/JeoJq
<{^_^}> [nixpkgs] @Profpatsch opened pull request #73459 → doc/contributing: mention the word “backporting” for grep-ability → https://git.io/JeoJc
nakkle has quit [Ping timeout: 246 seconds]
<kenran> I found the following patch file that I wish to use in my Haskell project as well: https://github.com/input-output-hk/haskell.nix/blob/master/overlays/patches/ghc/ghc-macOS-loadArchive-fix.patch . But, digging through that code, I don't understand how I can apply this patch to `ghc` in my project. I already use an overlay to modify a couple of (Haskell) packages, and I guess I need to change the `ghc`
<kenran> attribute with that patch (as clever said earlier today). But how do I patch a package?
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/851d5bdfb04 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/851d5bdfb04 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
eri has joined #nixos
ehmry has joined #nixos
<{^_^}> [nixpkgs] @flokli merged pull request #73459 → doc/contributing: mention the word “backporting” for grep-ability → https://git.io/JeoJc
<{^_^}> [nixpkgs] @flokli pushed 2 commits to master: https://git.io/JeoJR
<kenran> (or rather, the source thereof)
blaggacao has joined #nixos
pareidolia has joined #nixos
hlolli_ has joined #nixos
smatting has joined #nixos
hlolli__ has quit [Ping timeout: 252 seconds]
dkellner[m] has joined #nixos
Thra11_ has quit [Ping timeout: 250 seconds]
blaggacao has quit [Ping timeout: 276 seconds]
jgt has quit [Ping timeout: 246 seconds]
blaggacao has joined #nixos
ddellacosta has joined #nixos
pareidolia has quit [Read error: Connection reset by peer]
worldofpeace has joined #nixos
pareidolia has joined #nixos
<tilpner> kenran: ghc.overrideAttrs (old: { patches = old.patches ++ [ ./your.patch ]; })
pareidolia has quit [Client Quit]
<kenran> tilpner: the result of overrideAttrs is "ghc" again? That is, I could do `ghc = hsuper.ghc.overrideAttrs (...)`?
alexarice[m] has joined #nixos
<tilpner> Yes, the result is another ghc
<tilpner> I don't know that you can overlay it like you mentioned
pareidolia has joined #nixos
avn has quit [Read error: Connection reset by peer]
avn has joined #nixos
<kenran> tilpner: We'll see :) It's not terribly important for the project, but I'm reasonably sure that this patch will make my emacs behave nicely again in this project.
<kenran> thanks
<kenran> tilpner: Indeed it seems to work with the overlay. If it really does go through I don't know yet, as it (ofc) needs to build ghc again first. That might take a while. Thanks again!
<kenran> Also I should probably make the patch conditional on my operating system, but I've definitely seen examples of that somewhere before. Should be easy.
Thra11_ has joined #nixos
<chloekek> Is there some cheap (e.g. O(1)) way to see if a store path I have, I downloaded from Nixpkgs cache?
<chloekek> Then I could write a script that filters those out before pushing to my own cache, and save disk space and outbound traffic.
<tilpner> You can check the signature
<LnL> yeah, nix path-info --sigs <path>
<tilpner> Ahh, path-info
<LnL> if that has a nixos.org signature it was downloaded
* tilpner was still reading nix-store(1)
<chloekek> Thanks!! I will give that a try.
<LnL> I think the new cli is the only way to get signature information currently
adam- is now known as rprospero
<tilpner> I really should fix my setup so that the new CLI works
* tilpner todo add
rardiol has joined #nixos
<chloekek> The new CLI is marked experimental, but this is luckily not a problem, because if the interface changes I can just change my code to work with the new interface. :)
orivej has joined #nixos
waleee-cl has joined #nixos
genesis has quit [Ping timeout: 265 seconds]
<evanjs> Hey guys, anything I can do to get this nodePackages PR merged? #73225
<{^_^}> https://github.com/NixOS/nixpkgs/pull/73225 (by evanjs, 3 days ago, open): nodePackages."@angular/cli": disable analytics
<evanjs> Hopefully I can do so before it reaches the build system at work 😂
_d0t has quit [Ping timeout: 240 seconds]
<gchristensen> evanjs: regen & ping me when ofborg passes
knupfer1 has joined #nixos
<{^_^}> [nixpkgs] @tilpner opened pull request #73460 → weechatScripts.weechat-matrix: init at unstable-2019-11-10 → https://git.io/JeoJp
<tilpner> gchristensen: ping about message queue credentials
<{^_^}> [nixpkgs] @c0bw3b merged pull request #71728 → ntl: 11.3.4 -> 11.4.1 → https://git.io/JeRpg
<{^_^}> [nixpkgs] @c0bw3b pushed commit from @r-ryantm to master « ntl: 11.3.4 -> 11.4.1 »: https://git.io/JeoUe
knupfer has quit [Ping timeout: 245 seconds]
knupfer1 is now known as knupfer
<kuznero__> Does anybody use pyvenv/venv in NixOS (with or without conda)?
kuznero__ is now known as kuznero
<sondr3> I have a JSON file I want to include in my NixOS configuration, do I simply write a nix derivation and do `"file".source = builtin.toJSON (der)`?
iyzsong has quit [Ping timeout: 252 seconds]
<sondr3> kuznero: yeah, I've done it a few times
<tilpner> sondr3: Include how?
<kuznero> sondr3, any particular problems with that?
<tilpner> sondr3: toJSON transforms a Nix value into JSON
<sondr3> tilpner: no, was just wondering it it was the right approach, I haven't done it yet but wanted to make sure I was on the right path
<tilpner> sondr3: I don't have enough context, but that looks wrong
<kuznero> sondr3, that is not the same thing, please see the answer to this SO: https://stackoverflow.com/questions/29950300/what-is-the-relationship-between-virtualenv-and-pyenv
<tilpner> (In most cases, it won't work)
<sondr3> kuznero: you mentioned venv so I thought you meant one or the other
pie_ has joined #nixos
<kuznero> no, it seems that starting from Python 3.3 they have baked-in virtualenv alternative called venv (or pyvenv, not to be mixed with pyenv)
bvdw has quit [Read error: Connection reset by peer]
<sondr3> tilpner: home-manager does this with some configuration files, you write it in Nix and it converts it to JSON and saves it to the correct file
<sondr3> I want to do that on my own
bvdw has joined #nixos
<sondr3> (if that makes more sense)
rprospero has quit [Quit: ZNC 1.7.5 - https://znc.in]
<{^_^}> [nixpkgs] @c0bw3b merged pull request #72214 → perlPackages.CryptECB: init at 2.21 → https://git.io/Jeuoq
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/JeoU3
<tilpner> See, that's very important context
<tilpner> You didn't mention HM before, so I assumed you were using the NixOS module
rprospero has joined #nixos
<sondr3> tilpner: yeah, sorry
dsg has quit [Ping timeout: 240 seconds]
tilpner has quit [Quit: tilpner]
<sondr3> but do you know if it would be possible to do say `"filename".source = (builtins.toJSON { ... })`?
orivej has quit [Ping timeout: 252 seconds]
dsg has joined #nixos
<magneticduck> you want "writeTextFile"
<sondr3> thanks, I think I got it working
hyper_ch2 has quit [Remote host closed the connection]
<sondr3> followup, is there a way to run execute nix like `python -c`? I want to use `builtins.fromJSON`
worldofpeace has quit [Ping timeout: 252 seconds]
<magneticduck> `nix eval` perhaps?
pareidolia has quit [Read error: Connection reset by peer]
<magneticduck> `nix repl` if you're not producing a derivation
<magneticduck> ah, `nix eval` can evaluate non-derivations tool. `nix eval '(1 + 1)'`
halfbit has joined #nixos
<sondr3> magneticduck: thanks! I thought `nix eval` only worked with derivations
<sondr3> got it working with `nix eval "(builtins.fromJSON (builtins.readFile ./file.json))"`
<sondr3> magneticduck++
<{^_^}> magneticduck's karma got increased to 1
pareidolia has joined #nixos
kenshinCH has joined #nixos
logzet has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
pareidolia has quit [Ping timeout: 245 seconds]
kenshinCH has quit [Quit: WeeChat 2.6]
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #nixos
ckauhaus has quit [Quit: WeeChat 2.6]
eri is now known as eri451
sweep has joined #nixos
sweep is now known as genesis
genesis has joined #nixos
genesis has quit [Changing host]
pareidolia has joined #nixos
kuznero has quit [Quit: Leaving]
worldofpeace has joined #nixos
<Ankhers> I just read about buildGoModule where you do not need to explicitly tell nix about your deps as it will fetch them for you. Is this the preferred way to go about things, or is it preferred to be explicit about your deps? Or is it a bit of a toss up?
pareidolia has quit [Read error: Connection reset by peer]
<gchristensen> there has been chat about removing buildGoModule because it is a bit of a hack, and isn't inline with the ideals of Nix
<Ankhers> Is there anywhere I can read about that?
xkapastel has joined #nixos
worldofpeace1 has joined #nixos
ninjatrappeur[m] has joined #nixos
Guest67567 has joined #nixos
tilpner2 has joined #nixos
marius851000[m] has joined #nixos
Ox4A6F has joined #nixos
joelpet1 has joined #nixos
DenisLehmann[m] has joined #nixos
spacekitteh[m] has joined #nixos
ilya-fedin has joined #nixos
Gopal[m] has joined #nixos
manveru[m] has joined #nixos
yangm has joined #nixos
timokau[m] has joined #nixos
segfault[m] has joined #nixos
philipp[m] has joined #nixos
eddyb has joined #nixos
snupples[m] has joined #nixos
null_radix[m] has joined #nixos
rihardsk[m] has joined #nixos
Nyanloutre[m] has joined #nixos
Brio[m] has joined #nixos
aymenstudios[m] has joined #nixos
yoho[m]1 has joined #nixos
momack2[m] has joined #nixos
corpix[m] has joined #nixos
Thinkofname[m] has joined #nixos
DanP[m] has joined #nixos
Smith[m] has joined #nixos
NoblesseOblige24 has joined #nixos
bikki[m] has joined #nixos
chreekat[m] has joined #nixos
zurdo has joined #nixos
domenkozar[m] has joined #nixos
regnat[m] has joined #nixos
coniferous-cube[ has joined #nixos
phyfey[m] has joined #nixos
danielrf[m] has joined #nixos
thefloweringash has joined #nixos
clacke[m] has joined #nixos
nilsirl[m] has joined #nixos
hiroshi[m] has joined #nixos
wildtrees[m] has joined #nixos
siraben has joined #nixos
MilkManzJourDadd has joined #nixos
LiuWeiHua[m] has joined #nixos
Yakulu[m] has joined #nixos
layus[m] has joined #nixos
IslandUsurper has joined #nixos
slabity has joined #nixos
ronny has joined #nixos
VaNilLa[m] has joined #nixos
abbradar[m] has joined #nixos
mirsal has joined #nixos
peel1 has joined #nixos
am3on[m] has joined #nixos
copy` has joined #nixos
musicmatze has joined #nixos
malteof[m] has joined #nixos
lel[m] has joined #nixos
rycee has joined #nixos
blitzclone_ has joined #nixos
florianjacob has joined #nixos
joepie91[m] has joined #nixos
wrunt[m] has joined #nixos
colemickens has joined #nixos
sonercirit[m] has joined #nixos
ejpcmac has joined #nixos
clefru has joined #nixos
marijan[m] has joined #nixos
mica[m] has joined #nixos
frislie[m] has joined #nixos
vaibhavsagar has joined #nixos
zmlww[m] has joined #nixos
tokudan[m] has joined #nixos
Ericson2314 has joined #nixos
zer0xp[m] has joined #nixos
y0x3y[m] has joined #nixos
MerlinGttlinger[ has joined #nixos
Sisyphe[m] has joined #nixos
talvdav[m] has joined #nixos
roberth has joined #nixos
xavierm02 has joined #nixos
offlinehacker has joined #nixos
ndarwincorn has joined #nixos
nh2[m] has joined #nixos
dtz has joined #nixos
Vskilet has joined #nixos
sylvie[m] has joined #nixos
sauyon[m] has joined #nixos
bachp has joined #nixos
jak[m]1 has joined #nixos
codyopel has joined #nixos
gaisseml[m]1 has joined #nixos
harkenedraven has joined #nixos
li_matrix has joined #nixos
zummed[m] has joined #nixos
NickHu has joined #nixos
jonge[m] has joined #nixos
MarkOtaris has joined #nixos
aloysius[m] has joined #nixos
arianvp[m] has joined #nixos
bennofs[m] has joined #nixos
gaisseml[m] has joined #nixos
attero has joined #nixos
alex[m]9 has joined #nixos
ZerataX has joined #nixos
wangoe[m] has joined #nixos
bkl[m] has joined #nixos
divansantana has joined #nixos
isgy[m] has joined #nixos
cornu has joined #nixos
schmittlauch[m] has joined #nixos
atopuzov[m] has joined #nixos
kaychaks[m] has joined #nixos
aanderse has joined #nixos
jtojnar has joined #nixos
JaakkoLuttinen[m has joined #nixos
ma27[m] has joined #nixos
icetan has joined #nixos
escaP[m] has joined #nixos
thequux[m] has joined #nixos
hienergy[m] has joined #nixos
LinuXit has joined #nixos
groggy[m] has joined #nixos
balsoft has joined #nixos
bricewge has joined #nixos
roadt[m] has joined #nixos
haslersn has joined #nixos
gudea[m] has joined #nixos
sevcsik- has joined #nixos
jwaksbaum[m] has joined #nixos
arcnmx has joined #nixos
luftmensch[m] has joined #nixos
deluvi[m] has joined #nixos
otini has joined #nixos
MayeulC_backup has joined #nixos
macerbi[m]1 has joined #nixos
Christian[m]1 has joined #nixos
Moredread[m] has joined #nixos
contrun[m] has joined #nixos
Seb[m] has joined #nixos
sputny[m] has joined #nixos
MichaelEden[m] has joined #nixos
truby has joined #nixos
TravisRt2botio[m has joined #nixos
bohan[m] has joined #nixos
simbergm has joined #nixos
fasd has joined #nixos
BrightOne[m] has joined #nixos
l33[m] has joined #nixos
Brian[m]4 has joined #nixos
shizonic has joined #nixos
MiloIgnis[m] has joined #nixos
rnhmjoj has joined #nixos
Victor[m]1 has joined #nixos
fpletz[m] has joined #nixos
goibhniu has joined #nixos
nbardiuk has joined #nixos
ZD[m] has joined #nixos
fgaz has joined #nixos
alienpirate5 has joined #nixos
wedens[m] has joined #nixos
jschievink has joined #nixos
aterius has joined #nixos
geemili has joined #nixos
HappyEnt[m] has joined #nixos
tyrion1 has joined #nixos
mt[m] has joined #nixos
frederic_chopwn[ has joined #nixos
tails[m] has joined #nixos
pachacuti[m] has joined #nixos
Minijackson[m] has joined #nixos
craige[m] has joined #nixos
leons has joined #nixos
Noughtmare[m] has joined #nixos
cyberwolf[m] has joined #nixos
truh[m] has joined #nixos
setthemfree[m] has joined #nixos
arturo[m] has joined #nixos
blahaj[m] has joined #nixos
flacks has joined #nixos
Notkea[m] has joined #nixos
crabemis[m] has joined #nixos
EuAndreh[m] has joined #nixos
pingveno[m] has joined #nixos
submoo[m] has joined #nixos
Dandellion[m] has joined #nixos
midi[m] has joined #nixos
hackeryarn[m] has joined #nixos
tobim[m] has joined #nixos
GerdFlaig[m] has joined #nixos
abbec has joined #nixos
veleiro has joined #nixos
pinage404[m] has joined #nixos
kirelagin has joined #nixos
das-g[m] has joined #nixos
imj[m] has joined #nixos
quiet_laika[m] has joined #nixos
babariviere[m] has joined #nixos
wak-work has joined #nixos
abbafei[m] has joined #nixos
hpfr[m] has joined #nixos
bendlas has joined #nixos
joelwallis1[m] has joined #nixos
pheoxy has joined #nixos
is0x3F has joined #nixos
olejorgenb[m] has joined #nixos
provessor[m] has joined #nixos
grahamc[m] has joined #nixos
<Ankhers> gotta love matrix...
pareidolia has joined #nixos
frrrftt has joined #nixos
<Ankhers> gchristensen: Sorry if you saw the message, but is there anywhere I can read about that?
<frrrftt> how to convert an arrtibe set to yaml?
calbrecht[mb] has quit [Remote host closed the connection]
<frrrftt> error: attribute 'toYAML' missing, at /home/mmahut/repo/morph/roles/log/promtail_config.nix:4:53
orivej has joined #nixos
<gchristensen> frrrftt: builtins.toJSON produces valid YAML
<frrrftt> gchristensen: hmm thank you
frrrftt has quit [Remote host closed the connection]
calbrecht[mb] has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
pareidolia has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @nixos-channel-bot pushed 20 commits to nixos-unstable-small: https://git.io/JeoT8
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/d729fdcd6ec (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
pareidolia has joined #nixos
<Twey> It's weird, we have builtins.toXML but no builtins.fromXML, and builtins.fromTOML but no builtins.toTOML
<{^_^}> [nixpkgs] @SRGOM opened pull request #73461 → pplatex: init at 1.0-rc2 → https://git.io/JeoT0
tilpner has joined #nixos
<chloekek> Implementing fromXML is extremely difficult.
<chloekek> It involves parsing XML.
<infinisil> Twey: Because there's no reasonable way to convert XML to Nix, and toTOML isn't needed because toJSON does that
<infinisil> I guess you could convert it to Nix, but it would be a weird representation
orivej has quit [Ping timeout: 246 seconds]
inkwell has joined #nixos
<__monty__> TOML's a json superset too?
<infinisil> Oh
<infinisil> Y was thinking of YAML, not sure about TOML
<exarkun> I don't think toml is
<tilpner> gjabell: ping
<exarkun> actually I'll just say no toml isn't
<{^_^}> [nixpkgs] @flokli opened pull request #73462 → nixos/lorri: add to environment.systemPackages → https://git.io/JeoTa
<Twey> infinisil: TOML isn't a JSON superset :(
<infinisil> Hm yeah seems that way
<infinisil> So toTOML might be nice
<Twey> The TOML syntax uses equals signs where JSON uses colons, just for starters
<Twey> I imagine it's because toTOML would be partial
<Twey> TOML only supports arrays of tables, not arrays of general values, and the top-level value must always be a table
<Twey> It's a pretty weird format in many ways
<__monty__> Yeah, think so. Since `{ key = "value" } isn't valid TOML for instance.
<Twey> s/must always be a table/must always be a table or array of tables/
<__monty__> Hmm, maybe I'm reading this wrong because Twey seems to be saying the opposite: https://users.rust-lang.org/t/why-does-cargo-use-toml/3577/6
<Twey> __monty__: That comment agrees with me :)
<Twey> TOML is not a superset of JSON
<__monty__> But you said top-level value must always be a table. While that seems to say that's not valid?
<Twey> __monty__: Ah, no. TOML also has two syntaxes for tables, the ‘inline table’ syntax and the ‘multiline table’ (I think that's what it's called?) syntax
<Twey> __monty__: Inline table syntax (which is what's used in that comment, and looks most like JSON) isn't valid at the top level, only as a value of a key
pareidolia has quit [Ping timeout: 240 seconds]
<Twey> __monty__: But multiline table syntax (or multiline array-of-table syntax) is valid (and required) at the top level
hmpffff has quit [Quit: nchrrrr…]
reallymemorable has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #73251 → nixos/slim: remove → https://git.io/Jewup
<{^_^}> [nixpkgs] @worldofpeace pushed 4 commits to master: https://git.io/JeoTD
smatting has quit [Ping timeout: 252 seconds]
pareidolia has joined #nixos
blaggacao has quit [Read error: Connection reset by peer]
<noonien> i'm spawning a shell with nix-shell that requires the compilation of gcc
blaggacao has joined #nixos
<{^_^}> [nixos-channel-scripts] @grahamc pushed to back-in-time-exit-code « mirror-nixos-branch.pl: exit 0 if the channel would go back in time »: https://git.io/JeoTd
<noonien> but the compilation seems to only use one core, can i do something for it to use all cores?
<Twey> Hm, though to be fair — not all Nix expressions are valid JSON, either
inkwell is now known as zebrag
<tilpner> noonien: Try nix-shell --cores 4
<{^_^}> [nixos-channel-scripts] @grahamc opened pull request #28 → mirror-nixos-branch.pl: exit 0 if the channel would go back in time → https://git.io/JeoTb
<noonien> i will, but is there a way of setting it system-wide?
<tilpner> noonien: Yes, set cores in nix.conf
<tilpner> noonien: nix.buildCores on NixOS
<noonien> awesome, thanks!
<noonien> yeah, i already got buildCores in NixOS
<tilpner> Huh
<Twey> If you set it to 0 it will use all the system's cores
<gjabell> tilpner: hey
<tilpner> noonien: nix show-config | grep cores
<chloekek> Twey: almost no Nix expressions are valid JSON. It seems like besides Booleans, numbers, strings, only empty sets and empty/singleton lists can be.
<tilpner> gjabell: Can I see the expression you use weechat-matrix in?
<Twey> chloekek: Oh, sorry, I didn't mean literally but semantically
<noonien> nix.maxJobs = lib.mkDefault 8; nix.buildCores = 0; in my configuration.nix
<tilpner> gjabell: I had to patch the weechat wrapper to get it working
<noonien> should cores = 0 not use all cores?
<Twey> chloekek: There's no JSON equivalent to which to map e.g. functions
<{^_^}> [nixos-channel-scripts] @edolstra merged pull request #28 → mirror-nixos-branch.pl: exit 0 if the channel would go back in time → https://git.io/JeoTb
<{^_^}> [nixos-channel-scripts] @edolstra pushed 2 commits to master: https://git.io/JeoTh
<chloekek> Twey: oh :þ yeah you can't serialize functions, and serializing derivations loses info
<tilpner> noonien: Use show-config
<{^_^}> [nixos-channel-scripts] @edolstra pushed 0 commits to back-in-time-exit-code: https://git.io/JeoTj
<gjabell> tilpner yeah I'll post it when I get back home, on my phone atm
<Twey> chloekek: ⁵ for the use of the highly-underrated ‘:þ’ emoticon :þ
<noonien> show-config says `cores = 0`
<tilpner> noonien: That should work then :/
<Twey> chloekek: We were discussing why Nix has no builtins.toTOML, and I thought perhaps it was because TOML can't map a lot of Nix expressions. But the same is true of other formats that are supported.
<chloekek> Twey: thanks :Ð
<noonien> i see more cores are being used now(the compilation still has not finished), but i'm unsure if the tests are running or something
<Twey> noonien: If any attribute of your derivation uses IFD, the shell will be pinned to a single core (I discovered the hard way)
<lordcirth> IFD?
<Twey> ,ifd
<{^_^}> import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2. This is sometimes problematic because it requires evaluating some, building some, and then evaluating the build result. It has been described as "such a nice footgun."
<tilpner> gjabell: Do you also need matrix_decrypt or matrix_sso_helper?
pistache has joined #nixos
<lordcirth> So basically eval() on nix code you just constructed? Yeah that sounds chaotic
<dingenskirchen> I'm encountering an issue when trying to use a simple mkShell derivation for nix-shell. When I try to run nix-shell, it fails to parse the file with the error message "can't coerce function to string", pointing to https://github.com/NixOS/nixpkgs/blob/release-19.09/pkgs/build-support/mkshell/default.nix#L28
<dingenskirchen> That line, however, seems to be a string, as intended, and not a function.
<pistache> is there a way to override the existing activation scripts ?
<dingenskirchen> (the file itself: https://pastebin.com/fdhqnVLT)
<pistache> I tried 'system.activationScripts.specialfs = "";', but it has no effect
<gjabell> tilpner: I don't but might be good to include them for completeness? As long as it's easy
<noonien> Thanks!
<__monty__> ,locate sha256sum
<{^_^}> Found in packages: busybox, coreutils, coreutils-full
<{^_^}> [nixpkgs] @bjornfor merged pull request #73054 → riot-desktop: fix missing tray icon → https://git.io/JeokY
<{^_^}> [nixpkgs] @bjornfor pushed commit from @layus to master « riot-desktop: fix missing tray icon »: https://git.io/JeokO
<__monty__> Hmm, 2 directory entries with the same filename and the same hash, how is this possible?
pareidolia has quit [Ping timeout: 252 seconds]
mexisme has joined #nixos
<pistache> __monty__: filename normalization, possibly
<{^_^}> [nixpkgs] @Pamplemousse closed pull request #68430 → pythonPackages.z3-solver: init at 4.8.5.0 → https://git.io/JemTY
<tilpner> gjabell: I thought it would be, but patchShebangs disagrees
<tilpner> gjabell: I don't understand what "#!/usr/bin/env -S python3 -u" in matrix_upload does
orivej has joined #nixos
<gjabell> Ah that's annoying
<tilpner> gjabell: -u is for unsetting variables, but what variable is it unsetting?
reallymemorable has quit [Quit: reallymemorable]
<gjabell> Could maybe just add our own patch that changes it to normal #!/usr/bin/env python for nixos
<__monty__> pistache: Ah, yep, looks like it.
reallymemorable has joined #nixos
<tilpner> gjabell: I can disable patchShebangs, so it'll stay like it is
<tilpner> gjabell: But then it uses system python3, and that's not great either
<gjabell> I think the -u is actually a python flag
o1lo01ol1o has quit [Remote host closed the connection]
<gjabell> `Force stdin, stdout and stderr to be totally unbuffered.`
<tilpner> Oh, I can do that
<gjabell> Not sure what -S does tho
<tilpner> -S, --split-string=S
<tilpner> process and split S into separate arguments; used to pass multiple arguments on shebang lines
<gjabell> Ah that makes sense
mexisme has quit [Ping timeout: 276 seconds]
zebrag has quit [Quit: Konversation terminated!]
<__monty__> But shebangs still don't really support more than two arguments on linux afaik?
zebrag has joined #nixos
<__monty__> So it guarantees nothing?
<__monty__> Well, 1 command, 1 argument.
<{^_^}> [nixpkgs] @flokli merged pull request #73462 → nixos/lorri: add to environment.systemPackages → https://git.io/JeoTa
<{^_^}> [nixpkgs] @flokli pushed 2 commits to master: https://git.io/JeokB
jD91mZM2 has joined #nixos
<{^_^}> [nixpkgs] @flokli pushed to release-19.09 « nixos/lorri: add to environment.systemPackages »: https://git.io/JeokR
orivej has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JeokE
<pistache> is there a way to override the existing activation scripts without patching nixpkgs ?
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @Pamplemousse closed pull request #68428 → pythonPackages.cooldict: init at unstable-2019-10-29 → https://git.io/JemJN
<infinisil> pistache: I think just setting them with mkForce should work
<infinisil> What do you need this for?
Okinan has quit [Quit: Konversation terminated!]
<pistache> infinisil: I want to skip the "specialfs" activation script, as it can't work in an LXC container
kenran has quit [Ping timeout: 250 seconds]
<pistache> it seems it isn't skipped by activating boot.isContainer (which, as I understand, is made for NixOS containers, that are privileged)
<tilpner> gjabell: This is very ugly
<tilpner> gjabell: The problem is that matrix_upload needs different python libraries than weechat-matrix
reallymemorable has quit [Quit: reallymemorable]
<gjabell> Oh, that's...awkward
<tilpner> gjabell: So of course I can create another python3-with-packages, but that feels like it doesn't belong here
<gjabell> Yeah I agree
reallymemorable has joined #nixos
<gjabell> I think maybe worth just merging what you have and we'll worry about the script later on
<gjabell> Maybe even make some PRs in the weechat-matrix repo
<pistache> infinisil: mkForce works, thanks a lot. I had forgotten mkOverride...
<infinisil> pistache: Sounds like a reasonable use-case, no problem :)
Ariakenom has joined #nixos
<tilpner> gjabell: I updated the PR, it might have a working matrix_upload now
<gjabell> Oh sweet, thanks! I'll check it out soon
Ariakenom_ has joined #nixos
tilpner has quit [Quit: tilpner]
selfsymmetric-pa has joined #nixos
kleisli has quit [Remote host closed the connection]
kleisli_ has joined #nixos
cosimone has joined #nixos
Ariakenom has quit [Ping timeout: 276 seconds]
cosimone has quit [Client Quit]
cosimone has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
Thra11_ has quit [Ping timeout: 250 seconds]
FRidh has quit [Remote host closed the connection]
reallymemorable has joined #nixos
reallymemorable has quit [Client Quit]
<{^_^}> [nixpkgs] @nixos-channel-bot pushed 6 commits to nixos-19.09: https://git.io/JeoJq
phdoerfer has joined #nixos
<phdoerfer> How do I get nix-env to install the source for OpenJDK?
<{^_^}> Channel nixos-19.09 advanced to https://github.com/NixOS/nixpkgs/commit/851d5bdfb04 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-19.09)
tilpner has joined #nixos
<tilpner> gjabell: It works!
<gjabell> :D
<phdoerfer> ah nvm it comes with the sources as an archive
phdoerfer has quit [Remote host closed the connection]
snicket has joined #nixos
<snicket> trying to do nix pills re building graphviz with gd (https://nixos.org/nixos/nix-pills/inputs-design-pattern.html#idm140737315879744), but it looks like the gd derivation doesn't provide any includes (anymore?)
<snicket> has something changed since these pills were written?
<snicket> or am I doing sth wrong?
{^_^} has joined #nixos
<tilpner> > gd.outputs
<{^_^}> [ "bin" "dev" "out" ]
<tilpner> Perhaps gd wasn't multi-output when the pill was written
<tilpner> Try replacing gd with gd.dev
<gchristensen> samueldr: ^ want to try a push?
<samueldr> I don't have anything ready to push yet :)
<gchristensen> --allow-empty
<snicket> tilpner: thanks, that still didn't work but I am not the right track now at least
<snicket> great docs btw, not up to date but still great :)
<snicket> would fix them myself but I don't feel competent enough yet
<{^_^}> [nixpkgs] @Pamplemousse opened pull request #73464 → pythonPackages.archinfo: init at 8.19.10.30 → https://git.io/JeoIe
tilpner has quit [Read error: Connection reset by peer]
<__monty__> TIL, files on linux (XFS) are often 4 bytes bigger than on macOS (HFS+)
tilpner has joined #nixos
MmeQuignon has quit [Quit: WeeChat 2.6]
drakonis1 has quit [Ping timeout: 245 seconds]
MmeQuignon has joined #nixos
wfranzini has quit [Remote host closed the connection]
cosimone has quit [Quit: Terminated!]
drakonis1 has joined #nixos
<{^_^}> [nixpkgs] @lheckemann pushed to master « pythonPackages.nixpart: unmark broken »: https://git.io/JeoII
<{^_^}> [nixpkgs] @lheckemann pushed to release-19.09 « pythonPackages.nixpart: unmark broken »: https://git.io/JeoIm
<samueldr> gchristensen: success
sigmundv has joined #nixos
<exarkun> __monty__: What do you mean "bigger"
drakonis has joined #nixos
<__monty__> exarkun: The size in bytes as reported by du.
<__monty__> Must be some FS metadata I'm assuming?
<__monty__> Maybe it's about diskspace allocation? The numbers look rounder.
<exarkun> note that du does not report size in bytes by default... at least on Linux. Haven't run it on macOS lately.
<{^_^}> [nixpkgs] @veprbl pushed commit from @nathyong to release-19.09 « p4v: explicitly depend on openssl 1.0 series »: https://git.io/JeoIG
<exarkun> It reports "blocks"
<exarkun> Is it reporting files are 4 blocks larger or 4 bytes larger?
<exarkun> And is it really a constant 4? It doesn't matter how big the files are, it's always off by 4?
drakonis_ has joined #nixos
drakonis1 has quit [Read error: Connection reset by peer]
pamplemousse has quit [Quit: Lost terminal]
o1lo01ol1o has joined #nixos
reallymemorable has joined #nixos
drakonis has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @globin merged pull request #73169 → roundcube: 1.3.10 -> 1.4.0 → https://git.io/JeVj0
<exarkun> And du isn't supposed to include filesystem metadata in its measurement. It might overreport size by as much as 1 block minus 1 byte since its resolution is blocks, but that's all.
<{^_^}> [nixpkgs] @globin pushed 2 commits to master: https://git.io/JeoIl
Chiliparrot has joined #nixos
ambro718 has joined #nixos
smatting has joined #nixos
kleisli_ has quit [Remote host closed the connection]
kleisli__ has joined #nixos
<__monty__> exarkun: Ah, I guess it's blocks. It's not *always* 4 but most of the time.
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
Chiliparrot has quit [Read error: Connection reset by peer]
knupfer has quit [Client Quit]
knupfer has joined #nixos
<ivan> alias du="du --block-size=\'1"
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
chloekek has quit [Quit: WeeChat 2.6]
<{^_^}> [nixpkgs] @twistedjoe opened pull request #73465 → xerox6280: init at 1.0-1 → https://git.io/JeoIS
<{^_^}> [nixpkgs] @jD91mZM2 opened pull request #73466 → multibootusb: Fix QT and refactor → https://git.io/JeoIH
magneticduck has quit [Remote host closed the connection]
jco has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
sigmundv has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @xwvvvvwx opened pull request #73467 → nixos-containers: allow writable api fs → https://git.io/JeoIj
drainful has joined #nixos
snicket has quit [Quit: WeeChat 2.6]
<{^_^}> [nixpkgs] @LnL7 pushed to staging-next « gettext: fix darwin build »: https://git.io/JeoL8
<{^_^}> [nixpkgs] @talyz opened pull request #73468 → slack: 4.0.2 -> 4.1.2 → https://git.io/JeoL4
zupo has joined #nixos
orivej has joined #nixos
judson has joined #nixos
drakonis_ has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
knupfer has quit [Ping timeout: 276 seconds]
turion has joined #nixos
<turion> I'm building a project that I could successfully build on another machine, and I'm now getting:
<turion> $ nix-shell
<turion> error: creating directory '/nix/var': Permission denied
<turion> building '/nix/store/73pz9vnkfx1caamf3s5wyvy16awvdyyx-cabal2nixResult.drv'...
<turion> But /nix/var already exists, why should it be created?
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/02380e78416 (from 76 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
<__monty__> Maybe the permissions aren't right?
<turion> $ ls -l /nix/
<turion> insgesamt 4400
<turion> drwxr-xr-x    4 root root      4096  1. Jul 2018  var
<turion> drwxrwxr-t 7328 root nixbld 4493312 15. Nov 19:17 store
<turion> I did a vanilla nixos install as far as I remember...
<__monty__> Yeah, looks alright.
<turion> Why would it write to /nix/var at all?
<{^_^}> #45775 (by teto, 1 year ago, open): haskell developPackage error: creating directory '/nix/var
<srhb> Maybe?
<__monty__> That's where the database is kept, that's where the profiles are I believe.
drakonis_ has quit [Ping timeout: 250 seconds]
jgt has joined #nixos
drakonis_ has joined #nixos
<srhb> turion: Basically I suspect you have a mismatch between containing directory name and cabal project name, and/or you're relying on symlinks outside of the source directory.
<srhb> Fun Ensues^tm
<turion> srhb: Yes! I did git clone and not git clone --recursive!
<__monty__> Wow, then that error message is really confusing.
<turion> You save me again. Thanks!
<srhb> __monty__: Yup :P
<turion> __monty__: Yep, it is :/
<srhb> turion: No problem :)
blaggacao has quit [Ping timeout: 265 seconds]
blaggacao has joined #nixos
drakonis has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
drakonis has joined #nixos
drakonis has quit [Changing host]
reallymemorable has joined #nixos
jgt has quit [Ping timeout: 276 seconds]
dansho has joined #nixos
silver has joined #nixos
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/eda44a6d29b (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
drakonis__ has joined #nixos
phry_ has joined #nixos
<phry_> lordcirth__ just as a follow-up on the server-that-had-no-ipv4-after-a-dist-upgrade from last week: in the old config, the bridge had the MAC of the ethernet interface, in the new config it had some random MAC that was blocked by the provider.
<phry_> so there's the solution :=)
knupfer has joined #nixos
drakonis has quit [Ping timeout: 265 seconds]
phry_ has quit [Remote host closed the connection]
worldofpeace has quit [Ping timeout: 276 seconds]
blaggacao has quit [Quit: Quit]
kleisli__ has quit [Ping timeout: 276 seconds]
wildtrees has joined #nixos
Amnesia has left #nixos [#nixos]
<{^_^}> [nixpkgs] @veprbl merged pull request #73461 → pplatex: init at 1.0-rc2 → https://git.io/JeoT0
<{^_^}> [nixpkgs] @veprbl pushed commit from @SRGOM to master « pplatex: init at unstable-2015-09-14 (#73461) »: https://git.io/Jeotd
magnetophon has joined #nixos
alex``` has quit [Quit: The Lounge - https://thelounge.chat]
alexherbo2 has joined #nixos
gentauro has joined #nixos
alexherbo2 is now known as alex```
alex``` has quit [Client Quit]
alexherbo2 has joined #nixos
alexherbo2 is now known as alex```
MightyJoe has joined #nixos
kleisli has joined #nixos
slack1256 has joined #nixos
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/02380e78416 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
worldofpeace has joined #nixos
MightyJoe is now known as cyraxjoe
exfalso has quit [Ping timeout: 252 seconds]
Chiliparrot has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
phry_ has joined #nixos
smatting has quit [Ping timeout: 252 seconds]
worldofpeace has quit [Quit: worldofpeace]
phry_ has quit [Remote host closed the connection]
growpotkin has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/ab996844086 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
hmpffff has joined #nixos
kenran has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage2nix: disable builds that break evaluation on Hydra »: https://git.io/Jeomf
turion has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @peti merged pull request #73434 → haskellPackages.llvm-hs: fix build on darwin → https://git.io/JerFL
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/JeomT
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « git-annex: update sha256 hash for new version 7.20191114 »: https://git.io/Jeomq
drakonis_ has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @AmineChikhaoui opened pull request #73469 → mlpack: init at 3.2.1 → https://git.io/JeomC
boxscape has joined #nixos
drakonis_ has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « haskell-src-exts-simple: add override to fix version of the dependencies »: https://git.io/JeomB
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Jeom0
MmeQuignon has quit [Ping timeout: 276 seconds]
cosimone has joined #nixos
jgt has joined #nixos
magneticduck has joined #nixos
judson has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @peti pushed 11 commits to haskell-updates: https://git.io/Jeom1
m0rphism1 has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @peti pushed 11 commits to master: https://git.io/JeomD
mexisme has joined #nixos
epage has joined #nixos
judson has joined #nixos
Lysergic1reams has joined #nixos
kenran has quit [Ping timeout: 240 seconds]
heath has joined #nixos
LysergicDreams has quit [Ping timeout: 252 seconds]
psyanticy has quit [Quit: Connection closed for inactivity]
civodul has joined #nixos
JonReed has joined #nixos
<JonReed> Is there a way to get the size of packages: A) all currently active packages on the system B) Only packages in `/etc/nixos/configuration.nix` C) all packages installed with `nix-env -i`?
<exarkun> you might like `nix-store --query --size`
drakonis has joined #nixos
<lordcirth> nix path-info -Sh $HOME/.nix-profile/manifest.nix
<lordcirth> Similarly, you can target /run/current-system on nixos, I think
<epage> Complete noob: once I add home-manager as a channel, how do I add it to my `environment.systemPackages` in `configuration.nix`?
slack1256 has quit [Remote host closed the connection]
<{^_^}> [cabal2nix] @peti pushed to master « Normalize flags to all-lowercase before handing them to Cabal. »: https://git.io/JeoYc
<fifeefo> Lurking, but thanks for suggestions, exarkun and lordcirth :-)
<lordcirth> epage, edit /etc/nixos/configuration.nix , and environment.systemPackages should be defined as a list. It may be commented out on a new install.
<JonReed> lordcirth: This displays the size of all currently active packages, right? In other words, all packages installed via `configuration.nix` and `nix-env -iA`, but not the ones which were installed through `nix-shell` or `nix-build`?
<lordcirth> I think it has wget and vim there as examples
drakonis_ has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JeoY8
<lordcirth> JonReed, nix path-info -S shows the closure size of what you target. So, that thing and all it's dependencies. Anything installed to your user's default environment with nix-env -i is a dependency of $HOME/.nix-profile/manifest.nix, I believe
<JonReed> exarkun: Hm, how does that work? `nix-store --query --size` that just silently exits for me.
MarvelousWololo has joined #nixos
<exarkun> JonReed: it needs some args
<epage> lordcirth yes, I've added things from a stable channel to the list. Are other channels in the avaialble in `pkgs` or is there something else I do to access one?
<exarkun> JonReed: ie, a store path of which to query the size
mananamenos has quit [Remote host closed the connection]
<JonReed> exarkun: Ah, okay.
<srhb> JonReed: Mind, if you sum eg. nix-profile closure size and system size you'll most likely get (many) duplicate counts.
<exarkun> JonReed: I was thinking of a pipeline that queried all of the requirements of /run/current-system and then summed them up ... but that gives you exactly what the command lordcirth suggested gives, more easily.
<lordcirth> epage, if you have added home-manager to root's channels, it should work. Not if you added it to your user's channel, though.
<srhb> JonReed: You would have to actually uniq'ify the closure (nix-store -qR) of both of them and then sum those sizes to get the total..
<exarkun> but it might be useful if you want the sum of (A) and (B) since it can unique the requirements and then sum their sizes, avoiding double counting anything
<srhb> Yeah, sure :)
<{^_^}> [nixpkgs] @peti pushed to master « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JeoY8
<JonReed> lordcirth: exarkun: srhb: Thanks!
<lordcirth> np
<{^_^}> [nix] @chkno opened pull request #3230 → Check for and repair bad .links entries → https://git.io/JeoYu
<noonien> how can i setup a shell.nix to provide a cross compiler with a gcc of a version i choose? i would prefer to have 2 versions if possible
<srhb> noonien: Take a look at adapters.nix
<magneticduck> is nixos.org down for everybody else, or is my DNS resolver configuration being funky?
<magneticduck> `ping: nixos.org: Name or service not known`
<srhb> magneticduck: It is not down for me.
<buckley310> its up for me
<lordcirth> up
<magneticduck> hmmm :|
<lordcirth> magneticduck, 'dig nixos.org @1.1.1.1' ?
<magneticduck> ,locate dig
<{^_^}> Found in packages: bind.dnsutils
<noonien> srhb: i'm unsure what adapters.nix is
<noonien> hmm
<noonien> `stdenv.override { cc = cross.gcc49 }` for example?
<magneticduck> lordcirth, that works
<noonien> cross being a <nixpkgs with crossSystem.config set
<selfsymmetric-pa> Crazy workflow optimization, I know, but is there a way I can expand the definition of something in a nix-file to hack on it? EXAMPLE: if I have, say, `pkgs.unstable.haskellPackages.hlint`, can I expand it into the full `mkDeriviation` or whatever that I'd find on GitHub, so that I can copy it into my nix file and hack on the specific attributes?
<buckley310> i have nix installed on a rhel-like system. if i do `nix-shell -p python3` i get 3.7 as expected, but if i do `nix-env -i python3` i get 3.8..... how does nix-env look for packages? apparently not all-packages.nix....
<magneticduck> (so I guess my DNS server was just ... not reliable?)
<{^_^}> [nixpkgs] @equirosa opened pull request #73471 → lazygit: 0.8 -> 0.10.6 → https://git.io/JeoY6
hyper_ch has quit [Ping timeout: 252 seconds]
justan0theruser has quit [Ping timeout: 250 seconds]
exfalso has joined #nixos
dansho has quit [Remote host closed the connection]
dansho has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
<JonReed> selfsymmetric-pa: Not sure what you mean by that. If you want to go directly to the source of the currently installed package then there's `nix edit nixpkgs.haskellPackages.hlint`. If you want to get a package at specific commit at nixpkgs inside some nix expression, there's fetchTarball: https://pastebin.com/FkfSCKRe
<JonReed> selfsymmetric-pa: Once you use `fetchTarball` you can, of course, easily just override attributes there as well.
bvdw has joined #nixos
epage has quit [Remote host closed the connection]
<DigitalKiwi> a nix-review of a pr ... lol [0/67809 built, 8/400/28626 copied (2112.4/206768.1 MiB), 2109.4/96841.0 MiB DL] # been going an hour and a half ;_;
<selfsymmetric-pa> JonReed: `nix edit` looks like exactly what I want. How do I pass it my `nixpkgs`?
hyper_ch has joined #nixos
<JonReed> selfsymmetric-pa: Never had to do it. There seems to be `-f` and `-I` arguments. I would look into those ones.
<{^_^}> [nixos-org-configurations] @grahamc pushed 8 commits to master: https://git.io/JeoY5
<selfsymmetric-pa> I did `nix edit -f "<nixpkgs>" pkgs.haskellPackages.hlint` and it worked! Thanks JonReed!
<selfsymmetric-pa> JonReed++
<{^_^}> JonReed's karma got increased to 2
<JonReed> selfsymmetric-pa: np
<{^_^}> [nixpkgs] @lopsided98 opened pull request #73472 → rust: add support for armv6l-linux and armv7l-linux → https://git.io/JeoYF
justan0theruser has joined #nixos
justan0theruser has quit [Client Quit]
justanotheruser has joined #nixos
justan0theruser has joined #nixos
NoctisLa1 has quit [Quit: WeeChat 2.6]
kleisli has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @primeos pushed 2 commits to master: https://git.io/JeoYx
justanotheruser has quit [Ping timeout: 276 seconds]
NoctisLabs has joined #nixos
MichaelRaskin has joined #nixos
<{^_^}> [nixpkgs] @bcdarwin opened pull request #73473 → pythonPackages.gpyopt: init at unstable-2019-09-25 → https://git.io/JeoOL
kleisli has joined #nixos
<noonien> is there a point to using mkShell in shell.nix?
<noonien> all documentation i see uses mkDerivation
philr has joined #nixos
<noonien> ah, i see it doesn't really do much
leotaku has quit [Ping timeout: 268 seconds]
knupfer has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @primeos pushed 2 commits to master: https://git.io/JeoOZ
<noonien> hmm
<noonien> can i get multiple gcc versions in a nix-shell?
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
leotaku has joined #nixos
<noonien> just adding the versions in nativeBuildInput doesnt seem to work (i add them here because i'm cross-compiling)
<{^_^}> [nixpkgs] @LnL7 pushed commit from EEva (JPotier) to release-19.09 « vault: fix config when file backend is used »: https://git.io/JeoO0
leotaku has quit [Ping timeout: 276 seconds]
knupfer has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
thesilvus has joined #nixos
leotaku has joined #nixos
<samueldr> noonien: mkShell allows you to omit a couple attributes, that's the main reason
<samueldr> well, you also make it obvious that it's a shell
<thesilvus> I'm running Nixos on my laptop (Thinkpad E495, AMD, no discrete graphics). I'm not able to access any usb devices. They are not listed in lsusb, I'm getting errors in dmesg: https://pastebin.com/bat6X0jW . What can cause this?
Soo_Slow has joined #nixos
<JonReed> noonien: Well, I don't know about the proper way to do it. But at at the very least, you can hack it like so `mkDerivation = { myGcc = "${gcc}/bin/gcc"; }` and then call `$myGcc` inside nix-shell. `nix-shell` just drops you into an environment where the builder would be run. Because every attribute inside derivation is serialized to varibles
<JonReed> `mkDerivation { var1 = "test"; .. }` where running `echo $var1` will show as "test". "${pkg}" automatically gets expanded to path inside `/nix/store`, the package itself is in /bin/. So doing `var1 = ${pkg}/bin/pkgName; ` will put "$var" as `/nix/store/.../bin/pkgName` which you can then call.
leotaku has quit [Ping timeout: 276 seconds]
leotaku has joined #nixos
<{^_^}> [nixpkgs] @matthuszagh opened pull request #73474 → asymptote: 2.47 -> 2.60 → https://git.io/JeoO7
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mexisme has quit [Ping timeout: 276 seconds]
hmpffff has quit [Quit: nchrrrr…]
<thesilvus> Continuation to the question above: Rebooting while the device is connected causes it to work, but reconnecting breaks it again
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/1087833d741 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
an_user has joined #nixos
<an_user> Hey everyone
MmeQuignon has joined #nixos
<an_user> I have a question regarding encryption
leotaku has quit [Ping timeout: 250 seconds]
<an_user> Most tutorials only show FDE with Grub, which only supports LUKS1
<an_user> Is there some way to simply have a plain /boot which decrypts the actual root?
<noonien> http://ix.io/21S2 gives me `armv7l-unknown-linux-gnueabihf-gcc` and `armv7l-unknown-linux-gnueabihf-gcc-8.3.0`
judson_ has joined #nixos
<noonien> `gcc` is not even available
<noonien> can i also have another gcc installed? i prefer it prefixed
judson has quit [Ping timeout: 240 seconds]
<JonReed> an_user: There's `boot.initrd.postDeviceCommands` where you can run whatever command you want. This is what I do to run `cryptsetup --type plain`. I manually modprobe several modules and then manually decrypt everything I need in exactly the way I need through cryptsetup.
<noonien> ah, replacing `zlib` with `stdenv` does the same thing, it was actually stdenv providing gcc
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
drainful has quit [Quit: ZNC 1.7.5 - https://znc.in]
drainful has joined #nixos
<JonReed> an_user: I have FDE, where the harddrive is fully encrypted and the boot is on a portable usb drive. So, it's definitely possible to do whatever configuration you want if to do it manually.
leotaku has joined #nixos
<an_user> JonReed Yeah I did exactly that with my Arch laptop, but when I detached the key and ran an yay upgrade, it no longer had a valid kernel on the boot key and I had to fix everything manually with an live USB stick
<JonReed> an_user: I don't remember last time I had problems with boot on NixOS.
<JonReed> If ever.
<an_user> So what happens on NixOS when you upgrade your kernel but your USB stick is not attached?
leotaku has quit [Ping timeout: 240 seconds]
<JonReed> You just attach it and run it again.
thesilvus has quit [Remote host closed the connection]
<JonReed> I have an alias for it, where upgrading the system automatically mounts boot before it.
texasmynsted has left #nixos ["WeeChat 2.5"]
<an_user> Oh that's smart
<an_user> I hacked my encryption together with a custom initcpio hook, and if it fails that's simply ignored
<an_user> Which is kinda bad
<{^_^}> [nixpkgs] @rwanyoike opened pull request #73475 → mtr: patch for "Error decoding localhost address" → https://git.io/Jeo3u
thc202 has quit [Ping timeout: 250 seconds]
acarrico has quit [Ping timeout: 246 seconds]
<JonReed> What I usually do, is that I have a script inside `/boot/unlock.sh`, which decrypts the device, does whatever other mounting or device mapping magic needs to be done, until the root ends up being mapped to exactly the same place where it needs to be. So, in `configuration.nix` you have `fileSystems."/" = { device = "/dev/mapper/decrypted"; ...}`.
<JonReed> and `unlock.sh` script deterministicalyy just decrypts the device using cryptsetup and runs whatever other things it needs to do to end up with the right device at `/dev/mapper/decrypted`.
jco has quit [Quit: WeeChat 2.6]
waleee-cl has quit [Quit: Connection closed for inactivity]
MichaelRaskin has quit [Ping timeout: 252 seconds]
kleisli has quit [Ping timeout: 246 seconds]
<JonReed> an_user: ^ In addition to that I also have `lock.sh`, which unmounts everything. So, while I'm trying to setup the device I'm just running `unlock.sh` and `lock.sh` scripts until I end up with whatever I need. This way you can just very quickly prototype the configuration you need. Additionally, if something breaks, you can just run `unlock.sh`
<JonReed> from live usb and immediatelly decrypt your device..
orivej has quit [Ping timeout: 240 seconds]
<JonReed> an_user: then you basically just run `/boot/unlock.sh` inside `boot.initrd.postDeviceCommands`. There are other things that you need to do, but that's that's the basic idea behind my setup.
cosimone has quit [Quit: Terminated!]
__monty__ has quit [Quit: leaving]
selfsymmetric-pa has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @globin merged pull request #73475 → mtr: patch for "Error decoding localhost address" → https://git.io/Jeo3u
<{^_^}> [nixpkgs] @globin pushed 2 commits to master: https://git.io/Jeo3A
jgt has quit [Ping timeout: 252 seconds]
<noonien> any idea why gcc9.2.0 would fail when cross-compiling for arm7l? i got this derivarion and output: http://vpaste.net/TLbFM
<noonien> a missing patch perhaps?
exfalso has quit [Ping timeout: 276 seconds]
knupfer has quit [Quit: knupfer]
<an_user> In https://nixos.wiki/wiki/Full_Disk_Encryption Option 2 it explicitly says vfat, is there a way to use e.g. ext2?
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<colemickens> I'm trying to do some work in a pure nix shell. I set some env vars in my shell.nix to make Git work, do I need to do similarly for Nix? https://builds.sr.ht/~colemickens/job/109759
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/a27a14da2a5 (from 87 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @vbgl merged pull request #73070 → gnumeric: 1.12.45 → 1.12.46; goffice: 0.10.45 → 0.10.46 → https://git.io/JeVC2
<{^_^}> [nixpkgs] @vbgl pushed to master « gnumeric: 1.12.45 → 1.12.46 »: https://git.io/JeosY
shabius has quit [Quit: Leaving]
shabius has joined #nixos
<phyfey[m]> are meltdown/spectre/zombieland vuln OS patches pushed to mainline?
<JonReed> an_user: Have you tried just using `ext2` there? I imagine putting the `fsType` will mostly affect what modules will be included in initrd and then modprobed. I would expect ext2 be supported, but if anything you can use anything you want there because you can always just load those modules manually if it comes to that.
Lysergic1reams has quit [Ping timeout: 276 seconds]
LysergicDreams has joined #nixos
silver_ has joined #nixos
silver has quit [Ping timeout: 240 seconds]
fendor has quit [Quit: Leaving]
<JonReed> colemickens: If you run `git` from `nix` it should see all env variables which are in the shell that you're running it from, unless your git package is wrapped somewhere that either overrides or unsets those variables.
<colemickens> Sorry, I meant "nix-shell".
<colemickens> Or rather, "nix-shell --pure".
<colemickens> Turns out you need to set GIT_SSL_CAINFO, SSL_CERT)FILE and NIX_SSL_CERT_FILE at least in the pure shell's env for nix/git to work wit https.
Ariakenom_ has quit [Read error: Connection reset by peer]
<gchristensen> I think if you put cacerts in the buildInputs it'll work automatically
fragamus has joined #nixos
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/1087833d741 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
fusion809 has quit [Remote host closed the connection]
boxscape has quit [Remote host closed the connection]
mexisme has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
JonReed has quit [Remote host closed the connection]
mexisme has quit [Ping timeout: 246 seconds]
mexisme has joined #nixos
drewr has joined #nixos
fragamus has quit [Ping timeout: 246 seconds]
magneticduck has quit [Remote host closed the connection]
<freusque> is there a way to ask nix-build to produce an unpacked source for a package?
<freusque> I know I can nix-build -E '(import <pkgset> {}).<attrname>.src' to reliably get the source of any package
<freusque> I'd like to get the content of the working directory in the intallPhase instead
an_user has quit [Remote host closed the connection]
<lordcirth__> ,tell phry Weird! Do you know why it got the wrong MAC?
<{^_^}> lordcirth__: I'll pass that on to phry
<LnL> sources are usually unpacked during the build so there's no standard build result for them, but you can run the unpack steps in a nix-shell
<LnL> I have defined this as a helper in my shell
<LnL> nix-unpack() { nix-shell --run 'phases=unpackPhase genericBuild' "$@" }
horner has quit [Quit: zzZzZzZzZZZzzz…]
noudle has quit []
Synthetica has quit [Quit: Connection closed for inactivity]
<lordcirth__> What's the cleanest way to iterate through a whole bunch of url/sha256 pairs with fetchurl?
<clever> lordcirth__: probably the map function
<clever> lordcirth__: or mapAttrs