nixpkgs/pkgs/applications/networking/p2p/tremotesf/default.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

54 lines
947 B
Nix

{stdenv
,lib
, cmake
, pkg-config
, fetchFromGitHub
, qtbase
, qttools
, kwidgetsaddons
, kwindowsystem
, fmt
, libpsl
, cxxopts
, wrapQtAppsHook
}:
stdenv.mkDerivation (finalAttrs: {
pname = "tremotesf";
version = "2.6.0";
src = fetchFromGitHub {
owner = "equeim";
repo = "tremotesf2";
rev = finalAttrs.version;
hash = "sha256-9iV4UsKZWaIxhqtRZXTFHgjOKVFJE2bCJOD2O/qL+DY=";
# We need this for src/libtremotesf
fetchSubmodules = true;
};
buildInputs = [
qtbase
qttools
fmt
libpsl
kwidgetsaddons
kwindowsystem
cxxopts
];
nativeBuildInputs = [
cmake
pkg-config
];
propagatedBuildInputs = [ wrapQtAppsHook ];
meta = with lib; {
description = "Remote GUI for transmission-daemon";
mainProgram = "tremotesf";
license = licenses.gpl3Plus;
homepage = "https://github.com/equeim/tremotesf2";
maintainers = with maintainers; [ sochotnicky ];
};
})