2020-04-17 15:33:54 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, rustPlatform
|
|
|
|
, pkg-config
|
|
|
|
, wrapGAppsHook
|
|
|
|
, openssl
|
|
|
|
, gtk3
|
|
|
|
, gdk-pixbuf
|
|
|
|
, pango
|
|
|
|
, atk
|
|
|
|
, cairo
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "castor";
|
2020-07-10 11:27:01 +02:00
|
|
|
version = "0.8.16";
|
2020-04-17 15:33:54 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://git.sr.ht/~julienxx/castor/archive/${version}.tar.gz";
|
2020-07-10 11:27:01 +02:00
|
|
|
sha256 = "1qwsprwazkzcs70h219fhh5jj5s5hm1k120fn3pk4qivii4lyhah";
|
2020-04-17 15:33:54 +02:00
|
|
|
};
|
|
|
|
|
2020-07-10 11:27:01 +02:00
|
|
|
cargoSha256 = "0yn2kfiaz6d8wc8rdqli2pwffp5vb1v3zi7520ysrd5b6fc2csf2";
|
2020-04-17 15:33:54 +02: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 13:39:23 +02:00
|
|
|
cargoParallelTestThreads = false;
|
2020-04-17 15:33:54 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|