diff options
author | Christoph Hrdinka <c.github@hrdinka.at> | 2017-12-29 11:38:08 +0100 |
---|---|---|
committer | Christoph Hrdinka <c.github@hrdinka.at> | 2017-12-29 11:38:08 +0100 |
commit | d07bc8bb30df8dce611a0717c0f3f43eb309e6a6 (patch) | |
tree | a7ac1600c6dcb0f308b3753a1254a6a6ae9a4a99 /pkgs/development/web/woff2 | |
parent | aaea2bfc20f2a92940795b9b21653d4b274cd777 (diff) | |
download | nixlib-d07bc8bb30df8dce611a0717c0f3f43eb309e6a6.tar nixlib-d07bc8bb30df8dce611a0717c0f3f43eb309e6a6.tar.gz nixlib-d07bc8bb30df8dce611a0717c0f3f43eb309e6a6.tar.bz2 nixlib-d07bc8bb30df8dce611a0717c0f3f43eb309e6a6.tar.lz nixlib-d07bc8bb30df8dce611a0717c0f3f43eb309e6a6.tar.xz nixlib-d07bc8bb30df8dce611a0717c0f3f43eb309e6a6.tar.zst nixlib-d07bc8bb30df8dce611a0717c0f3f43eb309e6a6.zip |
woff2: init at 1.0.2
Signed-off-by: Christoph Hrdinka <c.github@hrdinka.at>
Diffstat (limited to 'pkgs/development/web/woff2')
-rw-r--r-- | pkgs/development/web/woff2/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/web/woff2/default.nix b/pkgs/development/web/woff2/default.nix new file mode 100644 index 000000000000..22b38af29a3c --- /dev/null +++ b/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; + }; +} |