mblock-mlink: init at 1.2.0
This commit is contained in:
parent
4bbd574b2b
commit
84fe9e42ff
39
pkgs/development/tools/mblock-mlink/default.nix
Normal file
39
pkgs/development/tools/mblock-mlink/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
{ stdenv, lib, fetchurl, dpkg, makeWrapper, autoPatchelfHook }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "mblock-mlink";
|
||||||
|
version = "1.2.0";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://dl.makeblock.com/mblock5/linux/mLink-${version}-amd64.deb";
|
||||||
|
sha256 = "sha256-KLxj81ZjbEvhhaz0seNB4WXX5ybeZ7/WcT1dGfdWle0=";
|
||||||
|
};
|
||||||
|
|
||||||
|
unpackPhase = ''
|
||||||
|
${dpkg}/bin/dpkg -x $src $out
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
stdenv.cc.cc.lib
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
autoPatchelfHook
|
||||||
|
];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mv $out/usr/local/makeblock $out/usr/makeblock
|
||||||
|
rmdir $out/usr/local
|
||||||
|
mkdir -p $out/bin
|
||||||
|
echo $out/usr/makeblock/mLink/mnode $out/usr/makeblock/mLink/app.js > $out/bin/mlink
|
||||||
|
chmod +x $out/bin/mlink
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Driver for mBlock web version";
|
||||||
|
homepage = "https://mblock.makeblock.com/en-us/download/";
|
||||||
|
license = licenses.unfree;
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
maintainers = [ maintainers.mausch ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -533,6 +533,8 @@ with pkgs;
|
||||||
|
|
||||||
run = callPackage ../development/tools/run { };
|
run = callPackage ../development/tools/run { };
|
||||||
|
|
||||||
|
mblock-mlink = callPackage ../development/tools/mblock-mlink { };
|
||||||
|
|
||||||
mod = callPackage ../development/tools/mod { };
|
mod = callPackage ../development/tools/mod { };
|
||||||
|
|
||||||
broadlink-cli = callPackage ../tools/misc/broadlink-cli {};
|
broadlink-cli = callPackage ../tools/misc/broadlink-cli {};
|
||||||
|
|
Loading…
Reference in a new issue