diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2018-02-20 22:06:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-20 22:06:25 +0000 |
commit | 599a2238386b6f1f293f888d068122b46e1bde23 (patch) | |
tree | 0067a2d1c791f83c3cfe8e372730da8c40ce1f6a /pkgs/development/compilers | |
parent | f6ae7c5a016f2d1ca27d827f77f4899825a60621 (diff) | |
download | nixlib-599a2238386b6f1f293f888d068122b46e1bde23.tar nixlib-599a2238386b6f1f293f888d068122b46e1bde23.tar.gz nixlib-599a2238386b6f1f293f888d068122b46e1bde23.tar.bz2 nixlib-599a2238386b6f1f293f888d068122b46e1bde23.tar.lz nixlib-599a2238386b6f1f293f888d068122b46e1bde23.tar.xz nixlib-599a2238386b6f1f293f888d068122b46e1bde23.tar.zst nixlib-599a2238386b6f1f293f888d068122b46e1bde23.zip |
z88dk: init at unstable-2018-02-20 (#35244)
fixes #35039
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r-- | pkgs/development/compilers/z88dk/default.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/development/compilers/z88dk/default.nix b/pkgs/development/compilers/z88dk/default.nix new file mode 100644 index 000000000000..1590075dc2a0 --- /dev/null +++ b/pkgs/development/compilers/z88dk/default.nix @@ -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" ]; + }; +} |