about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/compilers/jwasm/default.nix
blob: 9800b33e7a9eaade54b91c1f64f9c154d38a911f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchFromGitHub
, cmake }:

with stdenv.lib;
stdenv.mkDerivation rec {
  name = "jwasm-${version}";
  version = "git-2017-11-22";

  src = fetchFromGitHub {
    owner = "JWasm";
    repo  = "JWasm";
    rev    = "26f97c8b5c9d9341ec45538701116fa3649b7766";
    sha256 = "0m972pc8vk8s9yv1pi85fsjgm6hj24gab7nalw2q04l0359nqi7w";
  };

  nativeBuildInputs = [ cmake ];

  installPhase = "mkdir -p $out/bin ; cp jwasm $out/bin/";

  meta = {
    description = "A MASM-compatible x86 assembler";
    homepage = http://jwasm.github.io/;
    license = licenses.gpl2Plus;
    maintainers = with maintainers; [ AndersonTorres ];
    platforms = platforms.darwin ++ platforms.linux;
  };
}