2ce5db779a
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
53 lines
1,005 B
Nix
53 lines
1,005 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, bison
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ftjam";
|
|
version = "2.5.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://downloads.sourceforge.net/project/freetype/${pname}/${version}/${pname}-${version}.tar.bz2";
|
|
hash = "sha256-6JdzUAqSkS3pGOn+v/q+S2vOedaa8ZRDX04DK4ptZqM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
bison
|
|
];
|
|
|
|
preConfigure = ''
|
|
unset AR
|
|
'';
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
|
|
make jam0
|
|
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
./jam0 -j$NIX_BUILD_CORES -sBINDIR=$out/bin install
|
|
mkdir -p $out/doc/jam
|
|
cp *.html $out/doc/jam
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
description = "Freetype's enhanced, backwards-compatible Jam clone";
|
|
homepage = "https://freetype.org/jam/";
|
|
license = licenses.free;
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
mainProgram = "jam";
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|
|
# TODO: setup hook for Jam
|