openvswitch: generalize builder
[NixPkgs.git] / pkgs / development / compilers / sjasmplus / default.nix
blob6ef3d11c712f9b398e9546c99c134685d1194437
1 { lib, stdenv, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
4   pname = "sjasmplus";
5   version = "1.18.3";
7   src = fetchFromGitHub {
8     owner = "z00m128";
9     repo = "sjasmplus";
10     rev = "v${version}";
11     sha256 = "sha256-+FvNYfJ5I91RfuJTiOPhj5KW8HoOq8OgnnpFEgefSGc=";
12   };
14   buildFlags = [
15     "CC=${stdenv.cc.targetPrefix}cc"
16     "CXX=${stdenv.cc.targetPrefix}c++"
17   ];
19   installPhase = ''
20     runHook preInstall
21     install -D sjasmplus $out/bin/sjasmplus
22     runHook postInstall
23   '';
25   meta = with lib; {
26     homepage = "https://z00m128.github.io/sjasmplus/";
27     description = "A Z80 assembly language cross compiler. It is based on the SjASM source code by Sjoerd Mastijn";
28     license = licenses.bsd3;
29     platforms = platforms.all;
30     maintainers = with maintainers; [ electrified ];
31   };