diff options
Diffstat (limited to 'pkgs/os-specific/linux/v4l-utils/default.nix')
-rw-r--r-- | pkgs/os-specific/linux/v4l-utils/default.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/v4l-utils/default.nix b/pkgs/os-specific/linux/v4l-utils/default.nix new file mode 100644 index 0000000000000..d20821e137c3f --- /dev/null +++ b/pkgs/os-specific/linux/v4l-utils/default.nix @@ -0,0 +1,50 @@ +x@{builderDefsPackage + , libv4l, libjpeg, qt4 + , ...}: +builderDefsPackage +(a : +let + helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ + []; + + buildInputs = map (n: builtins.getAttr n x) + (builtins.attrNames (builtins.removeAttrs x helperArgNames)); + sourceInfo = rec { + baseName="v4l-utils"; + version="0.8.5"; + name="${baseName}-${version}"; + url="http://www.linuxtv.org/downloads/v4l-utils/${name}.tar.bz2"; + hash="0k2rkra8lyimj6bwm8khq6xrhjdy67d09blxa6brnj7kpa7q81f2"; + }; +in +rec { + src = a.fetchurl { + url = sourceInfo.url; + sha256 = sourceInfo.hash; + }; + + inherit (sourceInfo) name version; + inherit buildInputs; + + /* doConfigure should be removed if not needed */ + phaseNames = ["doUnpack" "doMakeInstall"]; + + makeFlags = [''PREFIX="" DESTDIR="$out"'']; + + meta = { + description = "Video-4-Linux utilities"; + maintainers = with a.lib.maintainers; + [ + raskin + ]; + platforms = with a.lib.platforms; + linux; + license = a.lib.licenses.gpl2; + }; + passthru = { + updateInfo = { + downloadPage = "http://www.linuxtv.org/downloads/v4l-utils/"; + }; + }; +}) x + |