From 546191f4cfd2ead32c987af3269f66518ed08f1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo=20Malaquias?= Date: Sun, 11 Nov 2018 18:01:54 -0200 Subject: [PATCH] jxrlib: init at 1.1 --- pkgs/development/libraries/jxrlib/default.nix | 28 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/libraries/jxrlib/default.nix diff --git a/pkgs/development/libraries/jxrlib/default.nix b/pkgs/development/libraries/jxrlib/default.nix new file mode 100644 index 000000000000..47c87da065ba --- /dev/null +++ b/pkgs/development/libraries/jxrlib/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchFromGitHub, python }: + +stdenv.mkDerivation rec { + name = "${pname}-${version}"; + pname = "jxrlib"; + version = "1.1"; + + # Use the source from a fork on github because CodePlex does not + # deliver an easily downloadable tarball. + src = fetchFromGitHub { + owner = "4creators"; + repo = pname; + rev = "f7521879862b9085318e814c6157490dd9dbbdb4"; + sha256 = "0rk3hbh00nw0wgbfbqk1szrlfg3yq7w6ar16napww3nrlm9cj65w"; + }; + + nativeBuildInputs = [ python ]; + + makeFlags = [ "DIR_INSTALL=$(out)" "SHARED=1" ]; + + meta = with stdenv.lib; { + description = "Implementation of the JPEG XR image codec standard"; + homepage = https://jxrlib.codeplex.com; + license = licenses.bsd2; + platforms = platforms.linux; + maintainers = with maintainers; [ romildo ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bfddbd965d13..95ae763755d4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10261,6 +10261,8 @@ with pkgs; jsonrpc-glib = callPackage ../development/libraries/jsonrpc-glib { }; + jxrlib = callPackage ../development/libraries/jxrlib { }; + libjson = callPackage ../development/libraries/libjson { }; libb64 = callPackage ../development/libraries/libb64 { };