Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 28 lines 876 B view raw
1{ stdenv, fetchurl, autoreconfHook }: 2 3stdenv.mkDerivation rec { 4 name = "${pname}-${version}"; 5 pname = "libmd"; 6 version = "1.0.0"; 7 8 src = fetchurl { 9 url = "https://archive.hadrons.org/software/${pname}/${pname}-${version}.tar.xz"; 10 sha256 = "1iv45npzv0gncjgcpx5m081861zdqxw667ysghqb8721yrlyl6pj"; 11 }; 12 13 nativeBuildInputs = [ autoreconfHook ]; 14 15 # Writing the version to a .dist-version file is required for the get-version 16 # shell script because fetchgit removes the .git directory. 17 prePatch = '' 18 echo '${version}' > .dist-version; 19 ''; 20 21 meta = with stdenv.lib; { 22 homepage = "https://www.hadrons.org/software/${pname}/"; 23 description = "Message Digest functions from BSD systems"; 24 license = with licenses; [ bsd3 bsd2 isc beerware publicDomain ]; 25 maintainers = with maintainers; [ primeos ]; 26 platforms = platforms.linux; 27 }; 28}