Merge pull request #185026 from OPNA2608/update/open-watcom-v2

This commit is contained in:
Sandro 2022-08-14 00:48:51 +02:00 committed by GitHub
commit ec577833c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 11 deletions

View File

@ -85,9 +85,8 @@ let
in
stdenvNoCC.mkDerivation rec {
pname = "open-watcom-bin";
pname = "${passthru.prettyName}-unwrapped";
version = "1.9";
name = "${pname}-unwrapped-${version}";
src = fetchurl {
url = "http://ftp.openwatcom.org/install/open-watcom-c-linux-${version}";
@ -113,8 +112,11 @@ stdenvNoCC.mkDerivation rec {
done
'';
passthru.prettyName = "open-watcom-bin";
meta = with lib; {
description = "A C/C++ Compiler (binary distribution)";
description = "A project to maintain and enhance the Watcom C, C++, and Fortran cross compilers and tools";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
homepage = "http://www.openwatcom.org/";
license = licenses.watcom;
platforms = [ "x86_64-linux" "i686-linux" ];

View File

@ -11,15 +11,14 @@
}:
stdenv.mkDerivation rec {
pname = "open-watcom-v2";
version = "unstable-2022-05-04";
name = "${pname}-unwrapped-${version}";
pname = "${passthru.prettyName}-unwrapped";
version = "unstable-2022-08-02";
src = fetchFromGitHub {
owner = "open-watcom";
repo = "open-watcom-v2";
rev = "01662ab4eb50c0757969fa53bd4270dbbba45dc5";
sha256 = "Nl5mcPDCr08XkVMWqkbbgTP/YjpfwMOo2GVu43FQQ3Y=";
rev = "4bdb73995b871982dd106838296903701ded29c2";
sha256 = "sha256-Ay/f+gnj8EklN8T/uP0a+Zji6HEHAoPLdkrSTQaC9Rs=";
};
postPatch = ''
@ -82,8 +81,11 @@ stdenv.mkDerivation rec {
# Stripping breaks many tools
dontStrip = true;
passthru.updateScript = unstableGitUpdater {
url = "https://github.com/open-watcom/open-watcom-v2.git";
passthru = {
prettyName = "open-watcom-v2";
updateScript = unstableGitUpdater {
url = "https://github.com/open-watcom/open-watcom-v2.git";
};
};
meta = with lib; {

View File

@ -29,7 +29,7 @@ let
++ lib.optional isWindows "h/nt"
++ lib.optional isLinux "lh";
listToDirs = list: lib.strings.concatMapStringsSep ":" (dir: "${placeholder "out"}/${dir}") list;
name = "${open-watcom.pname}-${open-watcom.version}";
name = "${open-watcom.passthru.prettyName}-${open-watcom.version}";
in
symlinkJoin {
inherit name;