Plutus, Haskell, Nix, Purescript, Swift/Kotlin. laser-focused on FP: formality, purity, and totality; repulsed by pragmatic, unsafe, “move fast and break things” approaches


AC24 1DE5 AE92 3B37 E584 02BA AAF9 795E 393B 4DA0

  • 2 Posts
  • 233 Comments
Joined 1 year ago
cake
Cake day: June 17th, 2023

help-circle






  • demesisx@infosec.pubtoLinux@programming.devI wrote a bash dependency checker
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    edit-2
    28 days ago

    Wanted to perhaps introduce you to using nix along with direnv and flakes to make your dependencies declarative rather than determined by factors beyond your control.

    In my bash scripts, I often create a .envrc file that points to my flake and sits alongside the bash file. Then, when I navigate into the directory of the script/project, I can make direnv and nix automatically load all dependencies (which virtually guarantees them eliminating the need to check for them).