nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchFromGitHub, python }:
2
3stdenv.mkDerivation rec {
4 name = "${pname}-${version}";
5 pname = "jxrlib";
6 version = "1.1";
7
8 # Use the source from a fork on github because CodePlex does not
9 # deliver an easily downloadable tarball.
10 src = fetchFromGitHub {
11 owner = "4creators";
12 repo = pname;
13 rev = "f7521879862b9085318e814c6157490dd9dbbdb4";
14 sha256 = "0rk3hbh00nw0wgbfbqk1szrlfg3yq7w6ar16napww3nrlm9cj65w";
15 };
16
17 nativeBuildInputs = [ python ];
18
19 makeFlags = [ "DIR_INSTALL=$(out)" "SHARED=1" ];
20
21 meta = with stdenv.lib; {
22 description = "Implementation of the JPEG XR image codec standard";
23 homepage = https://jxrlib.codeplex.com;
24 license = licenses.bsd2;
25 platforms = platforms.linux;
26 maintainers = with maintainers; [ romildo ];
27 };
28}