2021-01-17 13:46:40 +00:00
|
|
|
{ lib, cabextract, fetchFromGitHub, readline, stdenv_32bit }:
|
2017-05-24 23:41:12 +01:00
|
|
|
|
|
|
|
# stdenv_32bit is needed because the program depends upon 32-bit libraries and does not have
|
|
|
|
# support for 64-bit yet: it requires libc6-dev:i386, libreadline-dev:i386.
|
|
|
|
|
|
|
|
stdenv_32bit.mkDerivation rec {
|
|
|
|
name = "loadlibrary-${version}";
|
2021-01-27 09:35:35 +00:00
|
|
|
version = "20170525-${lib.strings.substring 0 7 rev}";
|
2017-05-24 23:41:12 +01:00
|
|
|
rev = "721b084c088d779075405b7f20c77c2578e2a961";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "taviso";
|
|
|
|
repo = "loadlibrary";
|
|
|
|
sha256 = "01hb7wzfh1s5b8cvmrmr1gqknpq5zpzj9prq3wrpsgg129jpsjkb";
|
|
|
|
};
|
|
|
|
|
2017-12-26 20:23:01 +00:00
|
|
|
buildInputs = [ cabextract readline ];
|
2017-05-24 23:41:12 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin/
|
|
|
|
cp mpclient $out/bin/
|
|
|
|
'';
|
|
|
|
|
2021-01-17 13:46:40 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/taviso/loadlibrary";
|
2017-05-24 23:41:12 +01:00
|
|
|
description = "Porting Windows Dynamic Link Libraries to Linux";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.eleanor ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|