jwasm: 2.13 -> 2.14

This commit is contained in:
AndersonTorres 2021-08-02 18:14:06 -03:00
parent 16851a19a6
commit b3d8b97db6

View file

@ -1,33 +1,42 @@
{ lib, stdenv, fetchFromGitHub { lib
, cmake }: , stdenv
, fetchFromGitHub
}:
with lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "jwasm"; pname = "jwasm";
version = "2.13"; version = "2.14";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "JWasm"; owner = "Baron-von-Riedesel";
repo = "JWasm"; repo = "JWasm";
rev = version; rev = "v${version}";
sha256 = "0m972pc8vk8s9yv1pi85fsjgm6hj24gab7nalw2q04l0359nqi7w"; hash = "sha256-BUSsF73Q2vq6tF/YHMUyAmmFE/WWVQLRFJZkOD8T7f8=";
}; };
nativeBuildInputs = [ cmake ]; outputs = [ "out" "doc" ];
installPhase = '' dontConfigure = true;
install -Dpm755 jwasm -t $out/bin/
install -Dpm644 $src/History.txt $src/Readme.txt \ preBuild = ''
$src/Doc/enh.txt $src/Doc/fixes.txt \ cp ${if stdenv.cc.isClang then "CLUnix.mak" else "GccUnix.mak"} Makefile
$src/Doc/gencode.txt $src/Doc/overview.txt \ substituteInPlace Makefile \
-t $out/share/doc/jwasm/ --replace "/usr/local/bin" "${placeholder "out"}/bin"
''; '';
meta = { postInstall = ''
install -Dpm644 $src/Html/License.html \
$src/Html/Manual.html \
$src/Html/Readme.html \
-t $doc/share/doc/jwasm/
'';
meta = with lib; {
homepage = "https://github.com/Baron-von-Riedesel/JWasm/";
description = "A MASM-compatible x86 assembler"; description = "A MASM-compatible x86 assembler";
homepage = "http://jwasm.github.io/";
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
maintainers = with maintainers; [ AndersonTorres ]; maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.darwin ++ platforms.linux; platforms = platforms.unix;
}; };
} }
# TODO: generalize for Windows builds