mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 03:30:45 +00:00
b5cd0848bf
- New rec-less, overlay-style overridable recursive attributes (in effect since https://github.com/NixOS/nixpkgs/pull/119942); - remove `with lib;`
50 lines
1 KiB
Nix
50 lines
1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, gettext
|
|
, python3
|
|
, wrapQtAppsHook
|
|
, fsuae
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "fs-uae-launcher";
|
|
version = "3.1.68";
|
|
|
|
src = fetchurl {
|
|
url = "https://fs-uae.net/files/FS-UAE-Launcher/Stable/${finalAttrs.version}/fs-uae-launcher-${finalAttrs.version}.tar.xz";
|
|
hash = "sha256-42EERC2yeODx0HPbwr4vmpN80z6WSWi3WzJMOT+OwDA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gettext
|
|
python3
|
|
wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = with python3.pkgs; [
|
|
pyqt5
|
|
requests
|
|
setuptools
|
|
];
|
|
|
|
makeFlags = [ "prefix=$(out)" ];
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
preFixup = ''
|
|
wrapQtApp "$out/bin/fs-uae-launcher" \
|
|
--set PYTHONPATH "$PYTHONPATH" \
|
|
--prefix PATH : ${lib.makeBinPath [ fsuae ]}
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://fs-uae.net";
|
|
description = "Graphical front-end for the FS-UAE emulator";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ sander AndersonTorres ];
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
};
|
|
})
|
|
|