Skip to content

Commit

Permalink
woff2: init at 1.0.2
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Hrdinka <c.github@hrdinka.at>
  • Loading branch information
hrdinka committed Dec 29, 2017
1 parent aaea2bf commit d07bc8b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
32 changes: 32 additions & 0 deletions pkgs/development/web/woff2/default.nix
@@ -0,0 +1,32 @@
{ brotli, cmake, fetchFromGitHub, stdenv }:

stdenv.mkDerivation rec {
name = "woff2-${version}";
version = "1.0.2";

src = fetchFromGitHub {
owner = "google";
repo = "woff2";
rev = "v${version}";
sha256 = "13l4g536h0pr84ww4wxs2za439s0xp1va55g6l478rfbb1spp44y";
};

outputs = [ "out" "dev" "lib" ];

nativeBuildInputs = [ cmake ];

buildInputs = [ brotli ];

# without this binaries only get built if shared libs are disable
patchPhase = ''
sed 's@^if (NOT BUILD_SHARED_LIBS)$@if (TRUE)@g' -i CMakeLists.txt
'';

meta = with stdenv.lib; {
description = "Webfont compression reference code";
homepage = https://github.com/google/woff2;
license = licenses.mit;
maintainers = [ maintainers.hrdinka ];
platforms = platforms.unix;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -5031,6 +5031,8 @@ with pkgs;

whois = callPackage ../tools/networking/whois { };

woff2 = callPackage ../development/web/woff2 { };

wsmancli = callPackage ../tools/system/wsmancli {};

wolfebin = callPackage ../tools/networking/wolfebin {
Expand Down

0 comments on commit d07bc8b

Please sign in to comment.