Files
nixpkgs/pkgs/by-name/cl/clipqr/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

80 lines
1.4 KiB
Nix

{
buildGoModule,
copyDesktopItems,
fetchFromGitLab,
lib,
libGL,
libX11,
libXcursor,
libXext,
libXi,
libXinerama,
libXrandr,
libXxf86vm,
makeDesktopItem,
libgbm,
pkg-config,
stdenv,
}:
buildGoModule rec {
pname = "clipqr";
version = "1.3.0";
src = fetchFromGitLab {
owner = "imatt-foss";
repo = "clipqr";
rev = "v${version}";
hash = "sha256-iuA6RqclMm1CWaiM1kpOpgfYvKaYGOIwFQkLr/nCL5M=";
};
vendorHash = null;
ldflags = [
"-s"
"-w"
];
buildInputs = [
libGL
libX11
libXcursor
libXext
libXi
libXinerama
libXrandr
libXxf86vm
libgbm
];
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";
broken = stdenv.hostPlatform.isDarwin;
mainProgram = "clipqr";
};
}