!tDnwWRNkmmYtMXfaZl:nixos.org

Nix Language

1928 Members
Nix programming language361 Servers

Load older messages


SenderMessageTime
6 Aug 2021
@yusdacra:nixos.devyusdacra

Something like:

{ /* set you want to inherit in */  } // (getAttrs [ "a" "c" ] { a = 1; b = 2; c = 3; })
17:28:01
@cw:kernelpanic.cafecw (not sticky anymore) changed their display name from continuouswave to cw (? days since last shower).18:09:51
@roberthensing:matrix.orgRobert Hensing (roberth) changed their display name from roberth to Robert Hensing (roberth).19:46:37
8 Aug 2021
@infinisil:matrix.orginfinisil removed their profile picture.22:48:50
9 Aug 2021
@hexa:lossy.networkhexa is there a shorthand for if !isNull foo then foo else bar? like foo or bar 20:45:23
@infinisil:matrix.orginfinisil hexa: Nope 20:46:22
@withoutwithin:matrix.orgXe (xe/they) changed their display name from Xe to Xe (xe/they).23:03:58
10 Aug 2021
@jtojnar:matrix.orgJan Tojnar hexa: and isNull is deprecated 😜 12:28:03
@she:khinah.xyzshekhinah changed their display name from shekhinah (she/her) to shekhinah.13:12:54
@ma27:nicht-so.sexyma27 joined the room.13:14:25
11 Aug 2021
@onajimaru:matrix.orgonajimaru joined the room.12:14:00
@cw:kernelpanic.cafecw (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:matrix.orgutdemir 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:matrix.orgutdemir nix-env -i shell.nix -A inputDerivation is close, but does not run the shellHook. 08:13:32
@andi:kack.itandi- you could define the build phase again and do an export > $out in there and then source the output 08:14:18
@utdemir:matrix.orgutdemirThat is a good idea, I will give it a go, thanks.08:15:07
@gdesforges:matrix.orgGuillaume 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:matrix.orggreaka joined the room.18:17:42
@infinisil:matrix.orginfinisilPro 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:matrix.orginfinisil * 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
@chanley:matrix.orgCharlie Hanley joined the room.20:39:50
@yusdacra:nixos.devyusdacra changed their profile picture.22:23:33
13 Aug 2021
@nixinator:nixos.devnixinator joined the room.01:59:07
@alxanyae:matrix.orgAlex left the room.22:35:31
@jackinloadup:matrix.orgjackinloadup joined the room.22:59:38
14 Aug 2021
@alexey_12:matrix.orgalexey_12 joined the room.14:17:27
@alexey_12:matrix.orgalexey_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
@sternenseemann:systemli.orgsterni (he/him) you have to do such things in postUnpack using shell 14:39:00
@sternenseemann:systemli.orgsterni (he/him)builtins.filterSource only supports nix paths I think14:39:16
@sternenseemann:systemli.orgsterni (he/him)definitely not tarballs at least14:39:25

There are no newer messages yet.


Back to Room ListRoom Version: 6