Merge pull request #55764 from oxij/pkgs/nasm-from-source

nasm: build from source
This commit is contained in:
Michael Raskin 2019-02-21 09:54:48 +00:00 committed by GitHub
commit 2f6b01f510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,15 +1,18 @@
{ stdenv, fetchurl, perl }: { stdenv, fetchFromRepoOrCz, autoreconfHook, perl, asciidoc, xmlto, docbook_xml_dtd_45, docbook_xsl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "nasm-${version}"; name = "nasm-${version}";
version = "2.14.02"; version = "2.14.02";
src = fetchurl { src = fetchFromRepoOrCz {
url = "https://www.nasm.us/pub/nasm/releasebuilds/${version}/${name}.tar.bz2"; repo = "nasm";
sha256 = "1g409sr1kj7v1089s9kv0i4azvddkcwcypnbakfryyi71b3jdz9l"; rev = name;
sha256 = "15z6ybnzlsrqs2964h6czqhpmr7vc3ln4y4h0z9vrznk4mqcwbsa";
}; };
nativeBuildInputs = [ perl ]; nativeBuildInputs = [ autoreconfHook perl asciidoc xmlto docbook_xml_dtd_45 docbook_xsl ];
postBuild = "make manpages";
doCheck = true; doCheck = true;