From 3db409b5cbf484b2f50329cf0251f8418f519b97 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 9 Sep 2024 20:43:06 +0200 Subject: [PATCH] jwasm: fix install path --- pkgs/by-name/jw/jwasm/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/jw/jwasm/package.nix b/pkgs/by-name/jw/jwasm/package.nix index 8a1390aac9f5c..a1cf1a9cf5c0b 100644 --- a/pkgs/by-name/jw/jwasm/package.nix +++ b/pkgs/by-name/jw/jwasm/package.nix @@ -25,6 +25,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 \ @@ -36,6 +40,7 @@ stdenv.mkDerivation (finalAttrs: { homepage = "https://github.com/Baron-von-Riedesel/JWasm/"; description = "MASM-compatible x86 assembler"; changelog = "https://github.com/Baron-von-Riedesel/JWasm/releases/tag/${finalAttrs.src.rev}"; + mainProgram = "jwasm"; license = lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ AndersonTorres ]; platforms = lib.platforms.unix;