Tranquil PDS! Moved to https://tangled.org/tranquil.farm/tranquil-pds

source .env in devshell if one is pressent #8

merged opened by nel.pet targeting main from [deleted fork]: main
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:h5wsnqetncv6lu2weom35lg2/sh.tangled.repo.pull/3maz5oacizp22
+20 -2
Diff #0
+2 -1
.envrc
··· 1 - use flake; 1 + use flake path:.; 2 +
+18 -1
shell.nix
··· 1 1 { 2 + lib, 2 3 mkShell, 3 4 callPackage, 4 5 rustPlatform, ··· 25 26 26 27 env = { 27 28 RUST_SRC_PATH = rustPlatform.rustLibSrc; 28 - }; 29 + } 30 + # isabel if this is like a horrible way to do this forgive me for my sins ig 31 + # if you can make this better go do it and tell me how or something :3 32 + // builtins.fromTOML ( 33 + (s: if s == "" then s else s + "\"") (lib.replaceStrings [ "\n" "=" "\"" ] [ "\"\n" "=\"" "\\\"" ] 34 + (lib.concatStringsSep "\n" 35 + (lib.filter (line: !lib.hasPrefix "#" line && line != "") 36 + (lib.splitString "\n" 37 + (if lib.pathIsRegularFile ./.env 38 + then (lib.readFile ./.env) 39 + else "" 40 + ) 41 + ) 42 + ) 43 + ) 44 + ) 45 + ); 29 46 30 47 packages = [ 31 48 just

History

1 round 0 comments
sign up or login to add to the discussion
nel.pet submitted #0
1 commit
expand
13a9c6d0
source .env in devshell if one is pressent
expand 0 comments
pull request successfully merged