2022-07-21 06:08:06 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, rustPlatform, perl, openssl, pkg-config }:
|
2022-05-14 14:57:08 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "artem";
|
2022-07-21 06:08:06 +00:00
|
|
|
version = "1.1.5";
|
2022-05-14 14:57:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FineFindus";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-07-21 06:08:06 +00:00
|
|
|
sha256 = "sha256-8BP5Flst+rM7T1Jp1dBsZTYOYKm8TyanxYvRH18aXck=";
|
2022-05-14 14:57:08 +00:00
|
|
|
};
|
|
|
|
|
2022-07-21 06:08:06 +00:00
|
|
|
cargoSha256 = "sha256-n2NOWrgcMVHpNCHL7r8+Kl1e01XYadaNM7UdE8fQo1U=";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ perl openssl ];
|
|
|
|
OPENSSL_NO_VENDOR = 1;
|
|
|
|
|
|
|
|
# These all requires network access.
|
|
|
|
checkFlags = [
|
|
|
|
"--skip url_input"
|
|
|
|
"--skip full_file_compare_url"
|
|
|
|
];
|
2022-05-14 14:57:08 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/FineFindus/artem";
|
2022-07-16 08:45:27 +00:00
|
|
|
description =
|
|
|
|
"Command-line application for converting images to ASCII art.";
|
2022-05-14 14:57:08 +00:00
|
|
|
license = licenses.mpl20;
|
|
|
|
};
|
|
|
|
}
|