Merge pull request #182222 from MatthieuBarthel/submit/add-clipqr-package

This commit is contained in:
Sandro 2022-08-14 00:50:06 +02:00 committed by GitHub
commit 6f1ffa94d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 81 additions and 0 deletions

View file

@ -8166,6 +8166,15 @@
githubId = 427866;
name = "Matthias Beyer";
};
MatthieuBarthel = {
email = "matthieu@imatt.ch";
name = "Matthieu Barthel";
github = "MatthieuBarthel";
githubId = 435534;
keys = [{
fingerprint = "80EB 0F2B 484A BB80 7BEF 4145 BA23 F10E AADC 2E26";
}];
};
matthuszagh = {
email = "huszaghmatt@gmail.com";
github = "matthuszagh";

View file

@ -0,0 +1,70 @@
{ buildGoModule
, copyDesktopItems
, fetchFromGitLab
, lib
, libGL
, libX11
, libXcursor
, libXext
, libXi
, libXinerama
, libXrandr
, makeDesktopItem
, mesa
, pkg-config
}:
buildGoModule rec {
pname = "clipqr";
version = "1.0.0";
src = fetchFromGitLab {
owner = "imatt-foss";
repo = "clipqr";
rev = "v${version}";
sha256 = "sha256-E90nTJtx4GOacu8M7oQBznnSQVDIZatibgKMZEpTUaQ=";
};
vendorSha256 = "5kAOSyVbvot4TX/XfRNe1/zZk6fa7pS1Dvn9nz11u3U=";
ldflags = [ "-s" "-w" ];
buildInputs = [
libGL
libX11
libXcursor
libXext
libXi
libXinerama
libXrandr
mesa
];
nativeBuildInputs = [
copyDesktopItems
pkg-config
];
postInstall = ''
install -Dm644 icon.svg $out/share/icons/hicolor/scalable/apps/clipqr.svg
'';
desktopItems = [
(makeDesktopItem {
name = "ClipQR";
desktopName = "ClipQR";
exec = "clipqr";
categories = [ "Utility" ];
icon = "clipqr";
comment = "Scan QR codes on screen and from camera";
genericName = "ClipQR";
})
];
meta = with lib; {
description = "Scan QR codes on screen and from camera, the result is in your clipboard";
license = licenses.mit;
maintainers = with maintainers; [ MatthieuBarthel ];
homepage = "https://gitlab.com/imatt-foss/clipqr";
};
}

View file

@ -26445,6 +26445,8 @@ with pkgs;
clipit = callPackage ../applications/misc/clipit { };
clipqr = callPackage ../applications/misc/clipqr { };
cloud-hypervisor = callPackage ../applications/virtualization/cloud-hypervisor { };
clp = callPackage ../applications/science/math/clp { };