nixpkgs/pkgs/by-name/ai/airscan/package.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
730 B
Nix

{ buildGoModule
, fetchFromGitHub
, lib
}:
buildGoModule rec {
pname = "airscan";
version = "0.3";
src = fetchFromGitHub {
owner = "stapelberg";
repo = "airscan";
rev = "refs/tags/v${version}";
hash = "sha256-gk0soDzrsFBh+SrWcfO/quW6JweX6MthOigTHcaq1oE=";
};
vendorHash = "sha256-I5JRGaff6OIwx4q7BjpFwvJiQe4kw03V8+McYPcJhho=";
meta = with lib; {
description = "Package to scan paper documents using the Apple AirScan (eSCL) protocol";
mainProgram = "airscan1";
homepage = "https://github.com/stapelberg/airscan";
changelog = "https://github.com/stapelberg/airscan/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ johannwagner ];
};
}