| 6 Aug 2021 |
yusdacra | Something like:
{ /* set you want to inherit in */ } // (getAttrs [ "a" "c" ] { a = 1; b = 2; c = 3; })
| 17:28:01 |
| cw (not sticky anymore) changed their display name from continuouswave to cw (? days since last shower). | 18:09:51 |
| Robert Hensing (roberth) changed their display name from roberth to Robert Hensing (roberth). | 19:46:37 |
| 8 Aug 2021 |
| infinisil removed their profile picture. | 22:48:50 |
| 9 Aug 2021 |
hexa | is there a shorthand for if !isNull foo then foo else bar? like foo or bar | 20:45:23 |
infinisil | hexa: Nope | 20:46:22 |
| Xe (xe/they) changed their display name from Xe to Xe (xe/they). | 23:03:58 |
| 10 Aug 2021 |
Jan Tojnar | hexa: and isNull is deprecated 😜 | 12:28:03 |
| shekhinah changed their display name from shekhinah (she/her) to shekhinah. | 13:12:54 |
| ma27 joined the room. | 13:14:25 |
| 11 Aug 2021 |
| onajimaru joined the room. | 12:14:00 |
| cw (not sticky anymore) changed their display name from cw (? days since last shower) to cw (not sticky anymore). | 17:57:05 |
| 12 Aug 2021 |
utdemir | Is there a a way to get an "activation script" for a shell.nix? I mean, a shell script, when sourced, adds the environment variables for on nix-shell to the current shell? | 08:12:49 |
utdemir | nix-env -i shell.nix -A inputDerivation is close, but does not run the shellHook. | 08:13:32 |
andi- | you could define the build phase again and do an export > $out in there and then source the output | 08:14:18 |
utdemir | That is a good idea, I will give it a go, thanks. | 08:15:07 |
Guillaume Desforges | I'm not sure I understand, but if the issue is to source a bash in shell.nix to get environment variables in nix shell, set -a in shellHook has been working well for me. If there's a better way I'm interested to know about it as well! | 09:50:11 |
| greaka joined the room. | 18:17:42 |
infinisil | Pro tip: It's possible to find out whether a path is a file or a directory by doing `path: builtins.pathExists (toString path + "/") | 19:01:33 |
infinisil | * Pro tip: It's possible to find out whether a path is a file or a directory by doing path: builtins.pathExists (toString path + "/") | 19:01:38 |
| Charlie Hanley joined the room. | 20:39:50 |
| yusdacra changed their profile picture. | 22:23:33 |
| 13 Aug 2021 |
| nixinator joined the room. | 01:59:07 |
| Alex left the room. | 22:35:31 |
| jackinloadup joined the room. | 22:59:38 |
| 14 Aug 2021 |
| alexey_12 joined the room. | 14:17:27 |
alexey_12 | How to filter sources obtained with fetchPypi? I've tried builtins.filterSource (path: type: type != "directory" || baseNameOf path != "test") (fetchPypi { pname = "pyulog"; version = "0.9.0"; sha256 = "1vqb1kpdbck4cn19lnslrx43a0bpxl7in231vzcn4cj6jq50lifj"; }) and with lib.cleanSourceWith, but getting error: string '/nix/store/jcvpmr6hzadi57fi5x7pghm473g43qmc-pyulog-0.9.0.tar.gz' cannot refer to other paths, at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/sources.nix:94:51. | 14:24:27 |
sterni (he/him) | you have to do such things in postUnpack using shell | 14:39:00 |
sterni (he/him) | builtins.filterSource only supports nix paths I think | 14:39:16 |
sterni (he/him) | definitely not tarballs at least | 14:39:25 |