z88dk: init at unstable-2018-02-20 (#35244)

fixes #35039
This commit is contained in:
Jörg Thalheim 2018-02-20 22:06:25 +00:00 committed by GitHub
parent f6ae7c5a01
commit 599a223838
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 57 additions and 0 deletions

View File

@ -99,6 +99,11 @@ lib.mapAttrs (n: v: v // { shortName = n; }) rec {
fullName = ''BSD 4-clause "Original" or "Old" License'';
};
clArtistic = spdx {
spdxId = "ClArtistic";
fullName = "Clarified Artistic License";
};
cc0 = spdx {
spdxId = "CC0-1.0";
fullName = "Creative Commons Zero v1.0 Universal";

View File

@ -0,0 +1,50 @@
{ fetchFromGitHub, fetchpatch, stdenv, makeWrapper, unzip, libxml2, m4, uthash }:
stdenv.mkDerivation rec {
name = "z88dk-${version}";
version = "20180217";
rev = "49a7c6032b2675af742f5b0b3aa5bd5260bdd814";
short_rev = "${builtins.substring 0 7 rev}";
src = fetchFromGitHub {
owner = "z88dk";
repo = "z88dk";
inherit rev;
sha256 = "00vbklh6lkq1gyd08ig2vcg6c1mghvlwfx3vq3wldf34hcs3k4pp";
};
# https://github.com/z88dk/z88dk/pull/612
patches = [(fetchpatch {
url = "https://github.com/Mic92/z88dk/commit/5b4ca132fa1f31c9ac48cf2220358715739ca0b2.patch";
sha256 = "1p2l31j68p7jzykhkhd9iagn2lr08hdclk3cl9l32p1q6ghdipfv";
})];
postPatch = ''
# we dont rely on build.sh :
export PATH="$PWD/bin:$PATH" # needed to have zcc in testsuite
export ZCCCFG=$PWD/lib/config/
'';
makeFlags = [
"prefix=$(out)"
"git_rev=${short_rev}"
"version=${version}"
"git_count=0"
];
nativeBuildInputs = [ makeWrapper unzip ];
buildInputs = [ libxml2 m4 uthash ];
preInstall = ''
mkdir -p $out/{bin,share}
'';
installTargets = "libs install";
meta = with stdenv.lib; {
homepage = https://www.z88dk.org;
description = "z80 Development Kit";
license = licenses.clArtistic;
maintainers = [ maintainers.genesis ];
platforms = [ "x86_64-linux" ];
};
}

View File

@ -6762,6 +6762,8 @@ with pkgs;
yosys = callPackage ../development/compilers/yosys { };
z88dk = callPackage ../development/compilers/z88dk { };
zulu8 = callPackage ../development/compilers/zulu/8.nix { };
zulu9 = callPackage ../development/compilers/zulu { };
zulu = zulu9;