mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 05:50:00 +00:00
37 lines
686 B
Nix
37 lines
686 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
imlib2,
|
|
libx11,
|
|
pkg-config,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "ssocr";
|
|
version = "2.25.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "auerswal";
|
|
repo = "ssocr";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-GRjUCE4l/IIAqV+W2s/+HaGMKqfSTmEQeW28o4Gkw/A=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [
|
|
imlib2
|
|
libx11
|
|
];
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
meta = {
|
|
description = "Seven Segment Optical Character Recognition";
|
|
homepage = "https://github.com/auerswal/ssocr";
|
|
license = lib.licenses.gpl3;
|
|
mainProgram = "ssocr";
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|