3
0
Fork 0
forked from mirrors/nixpkgs

moolticute: 0.30.8 -> 0.42.32-testing (#80222)

This commit is contained in:
Jon 2020-02-16 02:23:57 -08:00 committed by GitHub
parent afc321fa91
commit 1df3c86f2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,36 +1,44 @@
{ stdenv, fetchurl
, libusb1, pkgconfig, qmake, qtbase, qttools, qtwebsockets
{ lib, mkDerivation, fetchFromGitHub
, libusb1
, pkg-config
, qmake
, qtbase
, qttools
, qtwebsockets
}:
stdenv.mkDerivation rec {
mkDerivation rec {
pname = "moolticute";
version = "0.30.8";
version = "0.42.32-testing";
src = fetchurl {
url = "https://github.com/mooltipass/moolticute/archive/v${version}.tar.gz";
sha256 = "1qi18r2v0mpw1y007vjgzhiia89fpgsbg2wirxgngl21yxdns1pf";
src = fetchFromGitHub {
owner = "mooltipass";
repo = pname;
rev = "v${version}";
sha256 = "1kx1p2h65dilj1pbzf36d1mxwym19kvln1sqg8fb7na8q7lk4b05";
};
outputs = [ "out" "udev" ];
nativeBuildInputs = [ pkg-config qmake qttools ];
buildInputs = [ libusb1 qtbase qtwebsockets ];
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; {
meta = with 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;
homepage = "https://github.com/mooltipass/moolticute";
license = licenses.gpl3Plus;
maintainers = [ maintainers.kirikaza ];
platforms = platforms.linux;