From d219cdcd8f785faa52632358151de08ad01b3e0c Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Mon, 18 Apr 2022 17:50:54 +0100 Subject: [PATCH] uasm: 2.53 -> 2.55 Also allow building in other platforms than x86-64. Tested with aarch64-linux, works fine. --- pkgs/development/compilers/uasm/default.nix | 27 ++++++--------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/pkgs/development/compilers/uasm/default.nix b/pkgs/development/compilers/uasm/default.nix index f440208e947b..bd4d61d698cb 100644 --- a/pkgs/development/compilers/uasm/default.nix +++ b/pkgs/development/compilers/uasm/default.nix @@ -2,31 +2,18 @@ stdenv.mkDerivation rec { pname = "uasm"; - version = "2.53"; + version = "2.55"; src = fetchFromGitHub { owner = "Terraspace"; repo = pname; - rev = "v${version}"; - sha256 = "sha256-Aohwrcb/KTKUFFpfmqVDPNjJh1dMYSNnBJ2eFaP20pM="; + # Specifying only the tag results in the following error during download: + # the given path has multiple possibilities: #, # + # Probably because upstream has both a tag and a branch with the same name + rev = "refs/tags/v${version}"; + sha256 = "sha256-CIbHPKJa60SyJeFgF1Tux7RfJZBChhUVXR7HGa+gCtQ="; }; - # https://github.com/Terraspace/UASM/pull/154 - patches = [ - # fix `invalid operands to binary - (have 'char *' and 'uint_8 *' {aka 'unsigned char *'})` - (fetchpatch { - name = "fix_pointers_compare.patch"; - url = "https://github.com/clouds56/UASM/commit/9cd3a400990e230571e06d4c758bd3bd35f90ab6.patch"; - sha256 = "sha256-8mY36dn+g2QNJ1JbWt/y4p0Ha9RSABnOE3vlWANuhsA="; - }) - # fix `dbgcv.c:*:*: fatal error: direct.h: No such file or directory` - (fetchpatch { - name = "fix_build_dbgcv_c_on_unix.patch"; - url = "https://github.com/clouds56/UASM/commit/806d54cf778246c96dcbe61a4649bf0aebcb0eba.patch"; - sha256 = "sha256-uc1LaizdYEh1Ry55Cq+6wrCa1OeBPFo74H5iBpmteAE="; - }) - ]; - enableParallelBuilding = true; makefile = "gccLinux64.mak"; @@ -43,7 +30,7 @@ stdenv.mkDerivation rec { meta = with lib; { homepage = "http://www.terraspace.co.uk/uasm.html"; description = "A free MASM-compatible assembler based on JWasm"; - platforms = [ "x86_64-linux" ]; + platforms = platforms.linux; maintainers = with maintainers; [ thiagokokada ]; license = licenses.watcom; };