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

28 lines
701 B
Nix

{ lib, fetchFromGitHub, python3Packages }:
python3Packages.buildPythonApplication rec {
pname = "grabserial";
version = "2.0.2";
src = fetchFromGitHub {
owner = "tbird20d";
repo = "grabserial";
rev = "v${version}";
sha256 = "0ryk4w8q6zfmia71nwnk5b7xaxw0sf45dw9q50xp7k76i3k5f9f3";
};
propagatedBuildInputs = [ python3Packages.pyserial ];
# no usable tests
doCheck = false;
meta = with lib; {
description = "Python based serial dump and timing program";
mainProgram = "grabserial";
homepage = "https://github.com/tbird20d/grabserial";
license = licenses.gpl2;
maintainers = with maintainers; [ vmandela ];
platforms = platforms.linux;
};
}