moolticute: correct udev extraction regex

(#154355)
* correct regex to extract udev rule
* fix udev instructions
This commit is contained in:
Hugh O'Brien 2022-02-19 16:11:48 +00:00 committed by GitHub
parent 3ebe6c3491
commit 3f72667ba1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,14 +28,14 @@ mkDerivation rec {
preInstall = ''
mkdir -p $udev/lib/udev/rules.d
sed -n '/^ \+cat > "$tmpfile" <<- EOF$/,/^EOF$/p' ../data/moolticute.sh |
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 == [ moolticute.udev ]`
To install udev rules, add `services.udev.packages = [ pkgs.moolticute.udev ]`
into `nixos/configuration.nix`.
'';
homepage = "https://github.com/mooltipass/moolticute";