21 lines
443 B
Nix
21 lines
443 B
Nix
# vim: set noet sw=2 ts=2 sts=2:
|
|
{lib, pkgs, ...}:
|
|
with pkgs;
|
|
stdenv.mkDerivation rec{
|
|
pname = "sfnt2woff-zopfli";
|
|
version = "1.3.1";
|
|
recursiveHash = true;
|
|
src = fetchFromGitHub {
|
|
owner = "bramstein";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
name = "${pname}-${version}";
|
|
sha256 = "wMB5B7kpARsZEXKF7XTdQP0+zbz97WS9GTI16hIQtxo=";
|
|
};
|
|
buildInputs = [ zlib ];
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp sfnt2woff-zopfli $out/bin
|
|
'';
|
|
}
|