nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchurl, autoreconfHook }:
2
3stdenv.mkDerivation rec {
4 name = "${pname}-${version}";
5 pname = "libmd";
6 version = "0.0.0";
7
8 src = fetchurl {
9 url = "https://archive.hadrons.org/software/${pname}/${pname}-${version}.tar.xz";
10 sha256 = "121s73pgbqsnmy6xblbrkj9y44c5zzzpf2hcmh6zvcvg4dk26gzx";
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}