uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
46
pkgs/applications/misc/moolticute/default.nix
Normal file
46
pkgs/applications/misc/moolticute/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ lib, mkDerivation, fetchFromGitHub
|
||||
, libusb1
|
||||
, pkg-config
|
||||
, qmake
|
||||
, qtbase
|
||||
, qttools
|
||||
, qtwebsockets
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "moolticute";
|
||||
version = "0.53.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mooltipass";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-1hVvpfrfL/+DIeiPW5iVBEnoc8dy8vVWim4JjhsBlzM=";
|
||||
};
|
||||
|
||||
outputs = [ "out" "udev" ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config qmake qttools ];
|
||||
buildInputs = [ libusb1 qtbase qtwebsockets ];
|
||||
|
||||
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 = [ maintainers.kirikaza ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue