mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
clipqr: init at 1.0.0
clipqr: add myself in maintainers list clipqr: add gpg fingerprint + fix syntax clipqr: sort maintainer entry clipqr: fix syntax Co-authored-by: Azat Bahawi <azat+github@bahawi.net> clipqr: add strip flags Co-authored-by: Azat Bahawi <azat+github@bahawi.net> clipqr: use pkg-config Co-authored-by: Azat Bahawi <azat+github@bahawi.net> clipqr: fix syntax Co-authored-by: Azat Bahawi <azat+github@bahawi.net> clipqr: fix syntax + remove xorg dev outputs clipqr: misc fixes
This commit is contained in:
parent
ba5d6abb39
commit
4f010615bd
70
pkgs/applications/misc/clipqr/default.nix
Normal file
70
pkgs/applications/misc/clipqr/default.nix
Normal 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";
|
||||
};
|
||||
}
|
@ -26187,6 +26187,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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user