uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
35
pkgs/development/libraries/phash/default.nix
Normal file
35
pkgs/development/libraries/phash/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ lib, stdenv, fetchFromGitHub, pkg-config, cimg, imagemagick }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pHash";
|
||||
version = "0.9.6";
|
||||
|
||||
buildInputs = [ cimg ];
|
||||
|
||||
# CImg.h calls to external binary `convert` from the `imagemagick` package
|
||||
# at runtime
|
||||
propagatedBuildInputs = [ imagemagick ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
configureFlags = ["--enable-video-hash=no" "--enable-audio-hash=no"];
|
||||
postInstall = ''
|
||||
cp ${cimg}/include/CImg.h $out/include/
|
||||
'';
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "clearscene";
|
||||
repo = "pHash";
|
||||
rev = version;
|
||||
sha256 = "sha256-frISiZ89ei7XfI5F2nJJehfQZsk0Mlb4n91q/AiZ2vA=";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Compute the perceptual hash of an image";
|
||||
license = licenses.gpl3;
|
||||
maintainers = [maintainers.imalsogreg];
|
||||
platforms = platforms.all;
|
||||
homepage = "http://www.phash.org";
|
||||
downloadPage = "https://github.com/clearscene/pHash";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue