nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 56 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 pkg-config, 7 gettext, 8 libexif, 9 libgphoto2, 10 libjpeg, 11 libtool, 12 popt, 13 readline, 14}: 15 16stdenv.mkDerivation rec { 17 pname = "gphoto2"; 18 version = "2.5.28"; 19 20 src = fetchFromGitHub { 21 owner = "gphoto"; 22 repo = "gphoto2"; 23 rev = "v${version}"; 24 sha256 = "sha256-t5EnM4WaDbOTPM+rJW+hQxBgNErnnZEN9lZvxTKoDhA="; 25 }; 26 27 nativeBuildInputs = [ 28 autoreconfHook 29 pkg-config 30 gettext 31 libtool 32 ]; 33 34 buildInputs = [ 35 libexif 36 libgphoto2 37 libjpeg 38 popt 39 readline 40 ]; 41 42 meta = with lib; { 43 description = "Ready to use set of digital camera software applications"; 44 longDescription = '' 45 46 A set of command line utilities for manipulating over 1400 different 47 digital cameras. Through libgphoto2, it supports PTP, MTP, and much more.. 48 49 ''; 50 homepage = "http://www.gphoto.org/"; 51 license = licenses.gpl2Plus; 52 platforms = platforms.unix; 53 maintainers = [ maintainers.jcumming ]; 54 mainProgram = "gphoto2"; 55 }; 56}