summary refs log tree commit diff
path: root/pkgs/applications/misc/moolticute
diff options
context:
space:
mode:
authorKirill Kazakov <k@kirikaza.ru>2019-08-20 06:01:29 +0400
committerDanylo Hlynskyi <abcz2.uprola@gmail.com>2019-08-20 05:01:29 +0300
commit8ffb3cced1967f30baa4b8c7e7b4f8e84b6490f6 (patch)
tree24217ea156adc8cdb7f505e9148c7a1e061df4d1 /pkgs/applications/misc/moolticute
parent3a0d0b9a0b55593c03489b950bff848971f613dc (diff)
downloadnixpkgs-8ffb3cced1967f30baa4b8c7e7b4f8e84b6490f6.tar
nixpkgs-8ffb3cced1967f30baa4b8c7e7b4f8e84b6490f6.tar.gz
nixpkgs-8ffb3cced1967f30baa4b8c7e7b4f8e84b6490f6.tar.bz2
nixpkgs-8ffb3cced1967f30baa4b8c7e7b4f8e84b6490f6.tar.lz
nixpkgs-8ffb3cced1967f30baa4b8c7e7b4f8e84b6490f6.tar.xz
nixpkgs-8ffb3cced1967f30baa4b8c7e7b4f8e84b6490f6.tar.zst
nixpkgs-8ffb3cced1967f30baa4b8c7e7b4f8e84b6490f6.zip
moolticute: init at 0.30.8 (#54090)
Diffstat (limited to 'pkgs/applications/misc/moolticute')
-rw-r--r--pkgs/applications/misc/moolticute/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/applications/misc/moolticute/default.nix b/pkgs/applications/misc/moolticute/default.nix
new file mode 100644
index 00000000000..0f4e72502bb
--- /dev/null
+++ b/pkgs/applications/misc/moolticute/default.nix
@@ -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;
+  };
+}