1 { stdenv, lib, fetchurl, dpkg, autoPatchelfHook }:
3 stdenv.mkDerivation rec {
4 pname = "mblock-mlink";
8 url = "https://dl.makeblock.com/mblock5/linux/mLink-${version}-amd64.deb";
9 sha256 = "sha256-KLxj81ZjbEvhhaz0seNB4WXX5ybeZ7/WcT1dGfdWle0=";
13 ${dpkg}/bin/dpkg -x $src $out
17 (lib.getLib stdenv.cc.cc)
25 mv $out/usr/local/makeblock $out/usr/makeblock
28 echo $out/usr/makeblock/mLink/mnode $out/usr/makeblock/mLink/app.js > $out/bin/mlink
29 chmod +x $out/bin/mlink
33 description = "Driver for mBlock web version";
34 homepage = "https://mblock.makeblock.com/en-us/download/";
35 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
36 license = licenses.unfree;
37 platforms = [ "x86_64-linux" ];
38 maintainers = [ maintainers.mausch ];