moolticute: init at 0.30.8 (#54090)

This commit is contained in:
Kirill Kazakov 2019-08-20 06:01:29 +04:00 committed by Danylo Hlynskyi
parent 3a0d0b9a0b
commit 8ffb3cced1
3 changed files with 45 additions and 0 deletions

View file

@ -3246,6 +3246,11 @@
githubId = 451835;
name = "Kirill Elagin";
};
kirikaza = {
email = "k@kirikaza.ru";
github = "kirikaza";
name = "Kirill Kazakov";
};
kisonecat = {
email = "kisonecat@gmail.com";
github = "kisonecat";

View file

@ -0,0 +1,38 @@
{ stdenv, fetchurl
, libusb1, pkgconfig, qmake, qtbase, qttools, qtwebsockets
}:
stdenv.mkDerivation rec {
name = "moolticute-${version}";
version = "0.30.8";
src = fetchurl {
url = "https://github.com/mooltipass/moolticute/archive/v${version}.tar.gz";
sha256 = "1qi18r2v0mpw1y007vjgzhiia89fpgsbg2wirxgngl21yxdns1pf";
};
preConfigure = "mkdir -p build && cd build";
nativeBuildInputs = [ pkgconfig qmake qttools ];
qmakeFlags = [ "../Moolticute.pro" ];
outputs = [ "out" "udev" ];
preInstall = ''
mkdir -p $udev/lib/udev/rules.d
sed -n '/^ \+cat > "$tmpfile" <<- EOF$/,/^EOF$/p' ../data/moolticute.sh |
sed '1d;$d' > $udev/lib/udev/rules.d/50-mooltipass.rules
'';
buildInputs = [ libusb1 qtbase qtwebsockets ];
meta = with stdenv.lib; {
description = "GUI app and daemon to work with Mooltipass device via USB";
longDescription = ''
To install udev rules, add `services.udev.packages == [ moolticute.udev ]`
into `nixos/configuration.nix`.
'';
homepage = https://github.com/mooltipass/moolticute;
license = licenses.gpl3Plus;
maintainers = [ maintainers.kirikaza ];
platforms = platforms.linux;
};
}

View file

@ -19471,6 +19471,8 @@ in
inherit (ocaml-ng.ocamlPackages_4_01_0) monotoneViz;
moolticute = libsForQt5.callPackage ../applications/misc/moolticute { };
moonlight-embedded = callPackage ../applications/misc/moonlight-embedded { };
mop = callPackage ../applications/misc/mop { };