nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 2effc5d240ba9436c4b6e159dfed88356f20b540
parent 59192506bcc205e230c7b6a92272303ec41724d3
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Tue, 24 Dec 2019 22:45:54 +0300

Add lsd2dsl

Diffstat:
Mdefault.nix | 3+++
Mnix/sources.json | 12++++++++++++
Apkgs/lsd2dsl/default.nix | 36++++++++++++++++++++++++++++++++++++
3 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/default.nix b/default.nix @@ -44,6 +44,9 @@ in { gpxtools = callPackage ./pkgs/gpxtools { inherit (sources) gpxtools; }; + lsd2dsl = libsForQt5.callPackage ./pkgs/lsd2dsl { + inherit (sources) lsd2dsl; + }; lsdreader = python3Packages.callPackage ./pkgs/lsdreader { inherit (sources) lsdreader; }; diff --git a/nix/sources.json b/nix/sources.json @@ -119,6 +119,18 @@ "url": "https://notabug.org/irdvo/gpxtools/archive/b989f357abb9f9b694cbe95081dd8d1094019233.tar.gz", "url_template": "https://notabug.org/<owner>/<repo>/archive/<rev>.tar.gz" }, + "lsd2dsl": { + "branch": "master", + "description": "Lingvo dictionaries decompiler", + "homepage": null, + "owner": "nongeneric", + "repo": "lsd2dsl", + "rev": "f7bce9c9b331603e1c29b775ca674c06f2df250c", + "sha256": "1sxf8kqlnazbg48sy8sp2i54jrh5i2k88jwskvcy09h1608yzbx5", + "type": "tarball", + "url": "https://github.com/nongeneric/lsd2dsl/archive/f7bce9c9b331603e1c29b775ca674c06f2df250c.tar.gz", + "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" + }, "lsdreader": { "branch": "master", "description": "decompile Lingvo LSD dictionary to DSL", diff --git a/pkgs/lsd2dsl/default.nix b/pkgs/lsd2dsl/default.nix @@ -0,0 +1,36 @@ +{ lib, mkDerivation, cmake, boost, qtbase, qtwebkit +, gtest, minizip, libsndfile, libvorbis, lsd2dsl }: + +mkDerivation rec { + pname = "lsd2dsl"; + version = lib.substring 0 7 src.rev; + src = lsd2dsl; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ boost qtbase qtwebkit minizip libsndfile libvorbis ]; + + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace "-Werror " "" \ + --replace "add_subdirectory(tests)" "" + ''; + + cmakeFlags = [ "-DCMAKE_PREFIX_PATH=${qtwebkit.dev}" ]; + + #doCheck = true; + #checkInputs = [ gtest ]; + #checkPhase = "(cd tests && ./tests)"; + + installPhase = '' + install -Dm755 console/lsd2dsl $out/bin/lsd2dsl + install -m755 gui/lsd2dsl-qtgui $out/bin/lsd2dsl-qtgui + ''; + + meta = with lib; { + description = lsd2dsl.description; + homepage = "https://rcebits.com/lsd2dsl/index.html"; + license = licenses.mit; + maintainers = with maintainers; [ sikmir ]; + platforms = platforms.linux; + }; +}