qrcodegencpp: init at 1.8.0
Co-authored-by: materus <materus@podkos.pl> Co-authored-by: Franz Pletz <fpletz@fnordicwalking.de>
This commit is contained in:
parent
2a40d84981
commit
de88f45da9
32
pkgs/by-name/qr/qrcodegencpp/package.nix
Normal file
32
pkgs/by-name/qr/qrcodegencpp/package.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, qrcodegen
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "qrcodegencpp";
|
||||
version = qrcodegen.version;
|
||||
|
||||
src = qrcodegen.src;
|
||||
|
||||
sourceRoot = "${finalAttrs.src.name}/cpp";
|
||||
|
||||
nativeBuildInputs = lib.optionals stdenv.cc.isClang [
|
||||
stdenv.cc.cc.libllvm.out
|
||||
];
|
||||
|
||||
makeFlags = lib.optionals stdenv.cc.isClang [ "AR=llvm-ar" ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -Dt $out/lib/ libqrcodegencpp.a
|
||||
install -Dt $out/include/qrcodegen/ qrcodegen.hpp
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
inherit (qrcodegen.meta) description homepage license maintainers platforms;
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user