nix-helpers: d50ecc3a660a8dfe52ef7f708b4427078942562b

     1: # Shorthand for making a script via 'wrap' and installing it to a bin/ directory
     2: { attrsToDirs', bash, runCommand, sanitiseName, wrap }:
     3: 
     4: with rec {
     5:   go = args:
     6:     attrsToDirs' (sanitiseName args.name) {
     7:       bin = builtins.listToAttrs [{
     8:         inherit (args) name;
     9:         value = wrap args;
    10:       }];
    11:     };
    12: };
    13: go

Generated by git2html.