mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
38 lines
1.0 KiB
Nix
38 lines
1.0 KiB
Nix
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libxml2 }:
|
|
|
|
stdenv.mkDerivation {
|
|
version = "0.3.0";
|
|
pname = "uvcdynctrl";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cshorler";
|
|
repo = "webcam-tools";
|
|
rev = "bee2ef3c9e350fd859f08cd0e6745871e5f55cb9";
|
|
sha256 = "0s15xxgdx8lnka7vi8llbf6b0j4rhbjl6yp0qxaihysf890xj73s";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
buildInputs = [ libxml2 ];
|
|
|
|
prePatch = ''
|
|
local fixup_list=(
|
|
uvcdynctrl/CMakeLists.txt
|
|
uvcdynctrl/udev/rules/80-uvcdynctrl.rules
|
|
uvcdynctrl/udev/scripts/uvcdynctrl
|
|
)
|
|
for f in "''${fixup_list[@]}"; do
|
|
substituteInPlace "$f" \
|
|
--replace "/etc/udev" "$out/etc/udev" \
|
|
--replace "/lib/udev" "$out/lib/udev"
|
|
done
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Simple interface for devices supported by the linux UVC driver";
|
|
homepage = "https://guvcview.sourceforge.net";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = [ maintainers.puffnfresh ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|