nixpkgs/pkgs/development/tools/krankerl/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

49 lines
901 B
Nix

{ lib
, fetchFromGitHub
, rustPlatform
, pkg-config
, openssl
, dbus
, sqlite
, file
, makeWrapper
}:
rustPlatform.buildRustPackage rec {
pname = "krankerl";
version = "0.14.0";
src = fetchFromGitHub {
owner = "ChristophWurst";
repo = "krankerl";
rev = "v${version}";
sha256 = "sha256-fFtjQFkNB5vn9nlFJI6nRdqxB9PmOGl3ySZ5LG2tgPg=";
};
cargoSha256 = "sha256-0V2ftZmuKXRhOFWCroYOxQqW3NFh9Uuwcg0CM1sFlcQ=";
nativeBuildInputs = [
pkg-config
makeWrapper
];
buildInputs = [
openssl
dbus
sqlite
];
nativeCheckInputs = [
file
];
meta = with lib; {
description = "A CLI helper to manage, package and publish Nextcloud apps";
mainProgram = "krankerl";
homepage = "https://github.com/ChristophWurst/krankerl";
license = licenses.gpl3Only;
platforms = platforms.linux;
maintainers = with maintainers; [ onny ];
};
}