depot/third_party/nixpkgs/pkgs/applications/file-managers/lf/ctpv.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

41 lines
870 B
Nix

{ lib
, pkgs
, file
, openssl
, stdenv
, fetchFromGitHub
, waylandSupport ? stdenv.isLinux
, x11Support ? stdenv.isLinux
}:
stdenv.mkDerivation rec {
pname = "ctpv";
version = "1.0";
src = fetchFromGitHub {
owner = "NikitaIvanovV";
repo = "${pname}";
rev = "v${version}";
hash = "sha256-0OuskRCBVm8vMd2zH5u5EPABmCOlEv5N4ZZMdc7bAwM=";
};
nativeBuildInputs = [
file # libmagic
openssl
];
buildInputs = with pkgs; [
ffmpegthumbnailer ffmpeg
] ++ lib.optional waylandSupport [ chafa ]
++ lib.optional x11Support [ ueberzug ];
makeFlags = [ "PREFIX=$(out)" ];
meta = with lib; {
description = "Image previews for lf (list files) file manager";
homepage = "https://github.com/NikitaIvanovV/ctpv";
license = licenses.mit;
platforms = platforms.linux;
maintainers = [ maintainers.wesleyjrz ];
};
}