at main 348 B view raw
1{ 2 inputs, 3 pkgs, 4}: 5{ 6 deadcode = pkgs.stdenvNoCC.mkDerivation { 7 name = "deadcode_check"; 8 src = inputs.self; 9 dontPatch = true; 10 dontConfigure = true; 11 12 buildInputs = with pkgs; [ deadnix ]; 13 buildPhase = '' 14 set -euo pipefail 15 16 deadnix -f . 17 echo "All done!" 18 ''; 19 20 installPhase = "touch $out"; 21 }; 22}