biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / graphics / artem / default.nix
blob36d200ad07c4695ea9875773627f211656b58304
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , installShellFiles
5 , stdenv
6 , darwin
7 }:
9 rustPlatform.buildRustPackage rec {
10   pname = "artem";
11   version = "3.0.0";
13   src = fetchFromGitHub {
14     owner = "finefindus";
15     repo = "artem";
16     rev = "v${version}";
17     hash = "sha256-C3Co+hXstVN/WADIpzqr7f3muAgQL0Zbnz6VI1XNo4U=";
18   };
20   cargoHash = "sha256-QyFUxnq4BSULgpZxCu5+7TWfu6Gey0JFkOYSK+rL7l0=";
22   nativeBuildInputs = [
23     installShellFiles
24   ];
26   buildInputs = lib.optionals stdenv.isDarwin [
27     darwin.apple_sdk.frameworks.Security
28   ];
30   checkFlags = [
31     # require internet access
32     "--skip=arguments::input::url_input"
33     "--skip=full_file_compare_url"
35     # flaky
36     "--skip=full_file_compare_html"
37   ];
39   postInstall = ''
40     installManPage $releaseDir/build/artem-*/out/artem.1
41     installShellCompletion $releaseDir/build/artem-*/out/artem.{bash,fish} \
42       --zsh $releaseDir/build/artem-*/out/_artem
43   '';
45   meta = with lib; {
46     description = "A small CLI program to convert images to ASCII art";
47     homepage = "https://github.com/finefindus/artem";
48     changelog = "https://github.com/finefindus/artem/blob/v${version}/CHANGELOG.md";
49     license = licenses.mpl20;
50     maintainers = with maintainers; [ figsoda ];
51     mainProgram = "artem";
52   };