This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / tools / bin_shim / flake-module.nix
546 B 26 lines
1{ self, ... }: 2{ 3 perSystem = 4 { pkgs, lib, ... }: 5 rec { 6 packages.bin_shim = pkgs.writeShellApplication { 7 name = "bin_shim"; 8 runtimeInputs = [ 9 pkgs.jq 10 ]; 11 text = builtins.readFile ./bin_shim.sh; 12 }; 13 legacyPackages.bin_shim = 14 { 15 pkg_name, 16 name ? pkg_name, 17 }: 18 pkgs.writeScriptBin name '' 19 #!/bin/sh 20 set -efu 21 set -x 22 23 FLAKE=${self} ${lib.getExe packages.bin_shim} ${pkg_name} "$@" 24 ''; 25 }; 26}