expand-response-params: Fix windows build and add mainProgram

This commit is contained in:
Artturin 2024-09-12 07:58:28 +03:00
parent 7d04350332
commit be13e1b404

View File

@ -23,7 +23,7 @@ stdenv.mkDerivation {
'';
installPhase = ''
mkdir -p $prefix/bin
mv expand-response-params $prefix/bin/
mv expand-response-params${stdenv.hostPlatform.extensions.executable} $prefix/bin/
'';
meta = {
@ -38,5 +38,6 @@ stdenv.mkDerivation {
'';
license = lib.licenses.mit;
platforms = lib.platforms.all;
mainProgram = "expand-response-params${stdenv.hostPlatform.extensions.executable}";
};
}