From 015c36c7e69ed5395bf862984d2dcfe7981c9227 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 12 Sep 2024 18:26:46 +0200 Subject: [PATCH] jwasm: fix install path (cherry picked from commit 3db409b5cbf484b2f50329cf0251f8418f519b97) --- pkgs/development/compilers/jwasm/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/compilers/jwasm/default.nix b/pkgs/development/compilers/jwasm/default.nix index fa004bca3117e..faaeae431e853 100644 --- a/pkgs/development/compilers/jwasm/default.nix +++ b/pkgs/development/compilers/jwasm/default.nix @@ -24,6 +24,10 @@ stdenv.mkDerivation (finalAttrs: { --replace "/usr/local/bin" "${placeholder "out"}/bin" ''; + preInstall = '' + mkdir -p ${placeholder "out"}/bin + ''; + postInstall = '' install -Dpm644 $src/Html/License.html \ $src/Html/Manual.html \ @@ -35,6 +39,7 @@ stdenv.mkDerivation (finalAttrs: { homepage = "https://github.com/Baron-von-Riedesel/JWasm/"; description = "A MASM-compatible x86 assembler"; changelog = "https://github.com/Baron-von-Riedesel/JWasm/releases/tag/v${finalAttrs.version}"; + mainProgram = "jwasm"; license = licenses.gpl2Plus; maintainers = with maintainers; [ AndersonTorres ]; platforms = platforms.unix;