mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
e755a8a27d
Certain tools, e.g. compilers, are customarily prefixed with the name of their target platform so that multiple builds can be used at once without clobbering each other on the PATH. I was using identifiers named `prefix` for this purpose, but that conflicts with the standard use of `prefix` to mean the directory where something is installed. To avoid conflict and confusion, I renamed those to `targetPrefix`.
26 lines
633 B
Nix
26 lines
633 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.2.0";
|
|
name = "htpdate-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.vervest.org/htp/archive/c/${name}.tar.xz";
|
|
sha256 = "00xwppq3aj951m0srjvxmr17kiaaflyjmbfkvpnfs3jvqhzczci2";
|
|
};
|
|
|
|
makeFlags = [
|
|
"INSTALL=install"
|
|
"STRIP=${stdenv.cc.bintools.targetPrefix}strip"
|
|
"prefix=$(out)"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Utility to fetch time and set the system clock over HTTP";
|
|
homepage = http://www.vervest.org/htp/;
|
|
platforms = platforms.unix;
|
|
license = licenses.gpl2Plus;
|
|
};
|
|
}
|