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