nixpkgs/pkgs/applications/networking/browsers/castor/default.nix

51 lines
1022 B
Nix
Raw Normal View History

{ lib
2020-04-17 13:33:54 +00:00
, fetchurl
, rustPlatform
, pkg-config
, wrapGAppsHook
, openssl
, gtk3
, gdk-pixbuf
, pango
, atk
, cairo
}:
rustPlatform.buildRustPackage rec {
pname = "castor";
2020-07-10 09:27:01 +00:00
version = "0.8.16";
2020-04-17 13:33:54 +00:00
src = fetchurl {
url = "https://git.sr.ht/~julienxx/castor/archive/${version}.tar.gz";
2020-07-10 09:27:01 +00:00
sha256 = "1qwsprwazkzcs70h219fhh5jj5s5hm1k120fn3pk4qivii4lyhah";
2020-04-17 13:33:54 +00:00
};
2020-07-10 09:27:01 +00:00
cargoSha256 = "0yn2kfiaz6d8wc8rdqli2pwffp5vb1v3zi7520ysrd5b6fc2csf2";
2020-04-17 13:33:54 +00:00
nativeBuildInputs = [
pkg-config
wrapGAppsHook
];
buildInputs = [
openssl
gtk3
gdk-pixbuf
pango
atk
cairo
];
postInstall = "make PREFIX=$out copy-data";
# Sometimes tests fail when run in parallel
2020-09-09 11:39:23 +00:00
cargoParallelTestThreads = false;
2020-04-17 13:33:54 +00:00
meta = with lib; {
2020-04-17 13:33:54 +00:00
description = "A graphical client for plain-text protocols written in Rust with GTK. It currently supports the Gemini, Gopher and Finger protocols";
homepage = "https://sr.ht/~julienxx/Castor";
license = licenses.mit;
maintainers = with maintainers; [ fgaz ];
};
}