Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
64 lines
1.9 KiB
Nix
64 lines
1.9 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
stdenv,
|
|
python3,
|
|
makeWrapper,
|
|
}:
|
|
let
|
|
pythonEnv = python3.buildEnv.override {
|
|
extraLibs = with python3.pkgs; [
|
|
tkinter
|
|
requests
|
|
pillow
|
|
(watchdog.overrideAttrs {
|
|
disabledTests = [
|
|
"test_select_fd" # Avoid `Too many open files` error. See https://github.com/gorakhargosh/watchdog/issues/1095
|
|
];
|
|
})
|
|
semantic-version
|
|
psutil
|
|
];
|
|
ignoreCollisions = true;
|
|
};
|
|
in
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "edmarketconnector";
|
|
version = "5.13.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "EDCD";
|
|
repo = "EDMarketConnector";
|
|
tag = "Release/${finalAttrs.version}";
|
|
hash = "sha256-50OPbAXrDKodN0o6UibGUmMqQ/accF2/gNHnms+8rOI=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/icons/hicolor/512x512/apps/
|
|
ln -s ${finalAttrs.src}/io.edcd.EDMarketConnector.png $out/share/icons/hicolor/512x512/apps/io.edcd.EDMarketConnector.png
|
|
|
|
mkdir -p "$out/share/applications/"
|
|
ln -s "${finalAttrs.src}/io.edcd.EDMarketConnector.desktop" "$out/share/applications/"
|
|
|
|
makeWrapper ${pythonEnv}/bin/python $out/bin/edmarketconnector \
|
|
--add-flags "${finalAttrs.src}/EDMarketConnector.py"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/EDCD/EDMarketConnector";
|
|
description = "Uploads Elite: Dangerous market data to popular trading tools";
|
|
longDescription = "Downloads commodity market and other station data from the game Elite: Dangerous for use with all popular online and offline trading tools.";
|
|
changelog = "https://github.com/EDCD/EDMarketConnector/releases/tag/Release%2F${finalAttrs.version}";
|
|
license = lib.licenses.gpl2Only;
|
|
platforms = lib.platforms.x86_64;
|
|
mainProgram = "edmarketconnector";
|
|
maintainers = with lib.maintainers; [ jiriks74 ];
|
|
};
|
|
})
|