fix: Nix: executable

This commit is contained in:
Sebastian Ullrich 2021-01-09 23:07:55 +01:00
parent 4b7f09fbf1
commit e63ab75cb9

View file

@ -131,7 +131,7 @@ in rec {
mkdir $out
ar Trcs $out/lib${name}.a ${lib.concatStringsSep " " (map (drv: "${drv}/${drv.oPath}") (attrValues objects))}
'';
executable = runCommand executableName {} ''
executable = runCommand executableName { buildInputs = [ stdenv.cc ]; } ''
mkdir -p $out/bin
${leanc}/bin/leanc -x none ${staticLib}/* -o $out/bin/${executableName}
'';