mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
oculante: init at 0.6.38
This commit is contained in:
parent
cc1bb678f4
commit
2e59fd5ffc
66
pkgs/applications/graphics/oculante/default.nix
Normal file
66
pkgs/applications/graphics/oculante/default.nix
Normal file
@ -0,0 +1,66 @@
|
||||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, pkg-config
|
||||
, openssl
|
||||
, fontconfig
|
||||
, nasm
|
||||
, libX11
|
||||
, libXcursor
|
||||
, libXrandr
|
||||
, libXi
|
||||
, libGL
|
||||
, stdenv
|
||||
, gtk3
|
||||
, darwin
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "oculante";
|
||||
version = "0.6.38";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "woelper";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-0msPeW0FoBzHBDfX2iFH4HzAknaGPNThuCLi2vhdK08=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-eKRn8MC4/jjPRoajhwrtXsa8n9bGO5MAKjDuwHWs7Oc=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
nasm
|
||||
];
|
||||
|
||||
checkFlagsArray = [ "--skip=tests::net" ]; # requires network access
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
fontconfig
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
libX11
|
||||
libXcursor
|
||||
libXi
|
||||
libXrandr
|
||||
libGL
|
||||
gtk3
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
darwin.libobjc
|
||||
];
|
||||
|
||||
postFixup = lib.optionalString stdenv.isLinux ''
|
||||
patchelf $out/bin/oculante --add-rpath ${lib.makeLibraryPath [ libGL ]}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
broken = stdenv.isDarwin;
|
||||
description = "A minimalistic crossplatform image viewer written in Rust";
|
||||
homepage = "https://github.com/woelper/oculante";
|
||||
changelog = "https://github.com/woelper/oculante/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dit7ya ];
|
||||
};
|
||||
}
|
@ -31280,6 +31280,8 @@ with pkgs;
|
||||
|
||||
octoprint = callPackage ../applications/misc/octoprint { };
|
||||
|
||||
oculante = callPackage ../applications/graphics/oculante { };
|
||||
|
||||
ocr-a = callPackage ../data/fonts/ocr-a {};
|
||||
|
||||
ocrad = callPackage ../applications/graphics/ocrad { };
|
||||
|
Loading…
Reference in New Issue
Block a user