git.iko.soy/typeable/nixpkgs
on master help sign in
liblouis: init at 3.4.0
commitae03a11c86398dd5eee048b13f0430ace00408be authorJan Tojnar <jtojnar@gmail.com> dateSat 23 Dec 2017, 17:14 (9 years ago) parent395f2dd
2 files changed+59
pkgs/development/libraries/liblouis/default.nix+57 pkgs/top-level/all-packages.nix+2
pkgs/development/libraries/liblouis/default.nixnew file+57
@@ -0,0 +1,57 @@
1+{ fetchFromGitHub, stdenv, autoreconfHook, pkgconfig, gettext, python3
2+, texinfo, help2man, libyaml, perl
3+}:
4+
5+let
6+ version = "3.4.0";
7+in stdenv.mkDerivation rec {
8+ name = "liblouis-${version}";
9+
10+ src = fetchFromGitHub {
11+ owner = "liblouis";
12+ repo = "liblouis";
13+ rev = "v${version}";
14+ sha256 = "1b3vf6sq2iffdvj0r2q5g5k198camy3sq2nwfz391brpwivsnayh";
15+ };
16+
17+ outputs = [ "out" "dev" "man" "info" "doc" ];
18+
19+ nativeBuildInputs = [
20+ autoreconfHook pkgconfig gettext python3
21+ # Docs, man, info
22+ texinfo help2man
23+ ];
24+
25+ buildInputs = [
26+ # lou_checkYaml
27+ libyaml
28+ # maketable.d
29+ perl
30+ ];
31+
32+ configureFlags = [
33+ # Required by Python bindings
34+ "--enable-ucs4"
35+ ];
36+
37+ postPatch = ''
38+ patchShebangs tests
39+ substituteInPlace python/louis/__init__.py.in --replace "###LIBLOUIS_SONAME###" "$out/lib/liblouis.so"
40+ '';
41+
42+ postInstall = ''
43+ pushd python
44+ python setup.py install --prefix="$out" --optimize=1
45+ popd
46+ '';
47+
48+ doCheck = true;
49+
50+ meta = with stdenv.lib; {
51+ description = "Open-source braille translator and back-translator";
52+ homepage = http://liblouis.org/;
53+ license = licenses.lgpl21;
54+ maintainers = with maintainers; [ jtojnar ];
55+ platforms = platforms.unix;
56+ };
57+}
pkgs/top-level/all-packages.nix+2
@@ -3188,6 +3188,8 @@ with pkgs;
31883188
31893189 libite = callPackage ../development/libraries/libite { };
31903190
3191+ liblouis = callPackage ../development/libraries/liblouis { };
3192+
31913193 liboauth = callPackage ../development/libraries/liboauth { };
31923194
31933195 libsidplayfp = callPackage ../development/libraries/libsidplayfp { };