Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
66 lines
1.3 KiB
Nix
66 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
mkDerivation,
|
|
fetchFromGitHub,
|
|
libusb1,
|
|
pkg-config,
|
|
qmake,
|
|
qtbase,
|
|
qttools,
|
|
qtwebsockets,
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "moolticute";
|
|
version = "1.03.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mooltipass";
|
|
repo = "moolticute";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-S2Pnueo3opP1k6XBBHGAyRJpkNuI1Hotz7ypXa/96eQ=";
|
|
};
|
|
|
|
outputs = [
|
|
"out"
|
|
"udev"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
qmake
|
|
qttools
|
|
];
|
|
buildInputs = [
|
|
libusb1
|
|
qtbase
|
|
qtwebsockets
|
|
];
|
|
|
|
doInstallCheck = true;
|
|
|
|
preConfigure = "mkdir -p build && cd build";
|
|
qmakeFlags = [ "../Moolticute.pro" ];
|
|
|
|
preInstall = ''
|
|
mkdir -p $udev/lib/udev/rules.d
|
|
sed -n '/^UDEV_RULE=="\$(cat <<-EOF$/,/^EOF$/p' ../data/moolticute.sh |
|
|
sed '1d;$d' > $udev/lib/udev/rules.d/50-mooltipass.rules
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "GUI app and daemon to work with Mooltipass device via USB";
|
|
longDescription = ''
|
|
To install udev rules, add `services.udev.packages = [ pkgs.moolticute.udev ]`
|
|
into `nixos/configuration.nix`.
|
|
'';
|
|
homepage = "https://github.com/mooltipass/moolticute";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [
|
|
kirikaza
|
|
hughobrien
|
|
];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|