3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/compilers/jwasm/default.nix

34 lines
862 B
Nix
Raw Normal View History

2018-01-05 03:47:15 +00:00
{ stdenv, fetchFromGitHub
, cmake }:
with stdenv.lib;
2020-03-31 20:54:43 +01:00
stdenv.mkDerivation rec {
pname = "jwasm";
2020-03-31 20:54:43 +01:00
version = "2.13";
2018-01-05 03:47:15 +00:00
src = fetchFromGitHub {
owner = "JWasm";
repo = "JWasm";
2020-03-31 20:54:43 +01:00
rev = version;
2018-01-05 03:47:15 +00:00
sha256 = "0m972pc8vk8s9yv1pi85fsjgm6hj24gab7nalw2q04l0359nqi7w";
};
nativeBuildInputs = [ cmake ];
2020-03-31 20:54:43 +01:00
installPhase = ''
install -Dpm755 jwasm -t $out/bin/
install -Dpm644 $src/History.txt $src/Readme.txt \
$src/Doc/enh.txt $src/Doc/fixes.txt \
$src/Doc/gencode.txt $src/Doc/overview.txt \
-t $out/share/doc/jwasm/
'';
2018-01-05 03:47:15 +00:00
meta = {
description = "A MASM-compatible x86 assembler";
2020-03-31 20:54:43 +01:00
homepage = "http://jwasm.github.io/";
2018-01-05 03:47:15 +00:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.darwin ++ platforms.linux;
};
}