mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
vpv: init at 0.8.1
This commit is contained in:
parent
d921f741f7
commit
88e57d0bb2
63
pkgs/applications/graphics/vpv/default.nix
Normal file
63
pkgs/applications/graphics/vpv/default.nix
Normal file
@ -0,0 +1,63 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, pkg-config
|
||||
, libpng
|
||||
, libtiff
|
||||
, libjpeg
|
||||
, SDL2
|
||||
, gdal
|
||||
, octave
|
||||
, rustPlatform
|
||||
, cargo
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "vpv";
|
||||
version = "0.8.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kidanger";
|
||||
repo = "vpv";
|
||||
rev = "v${finalAttrs.version}";
|
||||
sha256 = "0cphgq1pqmwrjdmq524j5y522iaq6yhp2dpjdv0a3f9558dayxix";
|
||||
};
|
||||
|
||||
cargoRoot = "src/fuzzy-finder";
|
||||
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||
src = finalAttrs.src;
|
||||
sourceRoot = "source/src/fuzzy-finder";
|
||||
hash = "sha256-CDKlmwA2Wj78xPaSiYPmIJ7xmiE5Co+oGGejZU3v1zI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
rustPlatform.cargoSetupHook
|
||||
cargo
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libpng
|
||||
libtiff
|
||||
libjpeg
|
||||
SDL2
|
||||
gdal
|
||||
octave
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DUSE_GDAL=ON"
|
||||
"-DUSE_OCTAVE=ON"
|
||||
"-DVPV_VERSION=v${finalAttrs.version}"
|
||||
"-DBUILD_TESTING=ON"
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/kidanger/vpv";
|
||||
description = "Image viewer for image processing experts";
|
||||
maintainers = [ lib.maintainers.kidanger ];
|
||||
license = lib.licenses.gpl3;
|
||||
broken = stdenv.isDarwin; # the CMake expects the SDL2::SDL2main target for darwin
|
||||
};
|
||||
})
|
@ -34714,6 +34714,8 @@ with pkgs;
|
||||
autoreconfHook = buildPackages.autoreconfHook269;
|
||||
};
|
||||
|
||||
vpv = callPackage ../applications/graphics/vpv { };
|
||||
|
||||
vsce = callPackage ../development/tools/vsce { };
|
||||
|
||||
vscode = callPackage ../applications/editors/vscode/vscode.nix { };
|
||||
|
Loading…
Reference in New Issue
Block a user