1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 21:17:46 +00:00
nixpkgs/pkgs/development/libraries/jxrlib/default.nix

34 lines
952 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, python }:
2018-11-11 20:01:54 +00:00
stdenv.mkDerivation rec {
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";
};
postPatch = lib.optionalString stdenv.isDarwin ''
2020-08-16 23:34:37 +01:00
substituteInPlace Makefile \
--replace '-shared' '-dynamiclib -undefined dynamic_lookup' \
--replace '.so' '.dylib'
'';
2018-11-11 20:01:54 +00:00
nativeBuildInputs = [ python ];
makeFlags = [ "DIR_INSTALL=$(out)" "SHARED=1" ];
meta = with lib; {
2018-11-11 20:01:54 +00:00
description = "Implementation of the JPEG XR image codec standard";
homepage = "https://jxrlib.codeplex.com";
2018-11-11 20:01:54 +00:00
license = licenses.bsd2;
2020-08-16 23:34:37 +01:00
platforms = platforms.unix;
2018-11-11 20:01:54 +00:00
maintainers = with maintainers; [ romildo ];
};
}