nixpkgs/pkgs/applications/emulators/wine/winetricks.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

38 lines
935 B
Nix

{ lib, stdenv, callPackage, perl, which, coreutils, zenity, curl
, cabextract, unzip, p7zip, gnused, gnugrep, bash } :
stdenv.mkDerivation rec {
pname = "winetricks";
version = src.version;
src = (callPackage ./sources.nix {}).winetricks;
buildInputs = [ perl which ];
# coreutils is for sha1sum
pathAdd = lib.makeBinPath [
perl which coreutils zenity curl cabextract unzip p7zip gnused gnugrep bash
];
makeFlags = [ "PREFIX=$(out)" ];
doCheck = false; # requires "bashate"
postInstall = ''
sed -i \
-e '2i PATH="${pathAdd}:$PATH"' \
"$out/bin/winetricks"
'';
passthru = {
inherit (src) updateScript;
};
meta = {
description = "A script to install DLLs needed to work around problems in Wine";
mainProgram = "winetricks";
license = lib.licenses.lgpl21;
homepage = "https://github.com/Winetricks/winetricks";
platforms = with lib.platforms; linux;
};
}