@ -24,6 +24,8 @@ stdenv.mkDerivation rec {
pname = " z b a r " ;
version = " 0 . 2 3 " ;
outputs = [ " o u t " " p y " " l i b " " d e v " " d o c " " m a n " ] ;
src = fetchFromGitHub {
owner = " m c h e h a b " ;
repo = " z b a r " ;
@ -54,7 +56,7 @@ stdenv.mkDerivation rec {
] ;
configureFlags = ( if enableDbus then [
" - - w i t h - d b u s c o n f d i r = ${ placeholder " o u t " } / e t c / d b u s - 1 / s y s t e m . d "
" - - w i t h - d b u s c o n f d i r = ${ placeholder " o u t " } / e t c "
] else [
" - - w i t h o u t - d b u s "
] ) ++ lib . optionals ( ! enableVideo ) [
@ -63,9 +65,10 @@ stdenv.mkDerivation rec {
" - - w i t h o u t - q t "
] ;
postInstall = optionalString enableDbus ''
install - Dm644 dbus/org.linuxtv.Zbar.conf $ out/etc/dbus-1/system.d/org.linuxtv.Zbar.conf
'' ;
makeFlags = [
" p y e x e c d i r = ${ placeholder " p y " } / ${ python . sitePackages } "
" p y t h o n d i r = ${ placeholder " p y " } / ${ python . sitePackages } "
] ;
meta = with lib ; {
description = " B a r c o d e r e a d e r " ;