Files
nixpkgs/pkgs/by-name/lo/loadlibrary/package.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

42 lines
998 B
Nix

{
lib,
cabextract,
fetchFromGitHub,
readline,
stdenv_32bit,
}:
# 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 {
pname = "loadlibrary";
version = "20170525-${lib.strings.substring 0 7 rev}";
rev = "721b084c088d779075405b7f20c77c2578e2a961";
src = fetchFromGitHub {
inherit rev;
owner = "taviso";
repo = "loadlibrary";
sha256 = "01hb7wzfh1s5b8cvmrmr1gqknpq5zpzj9prq3wrpsgg129jpsjkb";
};
buildInputs = [
cabextract
readline
];
installPhase = ''
mkdir -p $out/bin/
cp mpclient $out/bin/
'';
meta = {
homepage = "https://github.com/taviso/loadlibrary";
description = "Porting Windows Dynamic Link Libraries to Linux";
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.eleanor ];
license = lib.licenses.gpl2Plus;
mainProgram = "mpclient";
};
}