mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 01:23:03 +00:00
938453eacd
Add fetcher: fetchFromSourcehut
53 lines
1.0 KiB
Nix
53 lines
1.0 KiB
Nix
{ lib
|
|
, fetchFromSourcehut
|
|
, rustPlatform
|
|
, pkg-config
|
|
, wrapGAppsHook
|
|
, openssl
|
|
, gtk3
|
|
, gdk-pixbuf
|
|
, pango
|
|
, atk
|
|
, cairo
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "castor";
|
|
version = "0.8.16";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~julienxx";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0rwg1w7srjwa23mkypl8zk6674nhph4xsc6nc01f6g5k959szylr";
|
|
};
|
|
|
|
cargoSha256 = "0yn2kfiaz6d8wc8rdqli2pwffp5vb1v3zi7520ysrd5b6fc2csf2";
|
|
|
|
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
|
|
dontUseCargoParallelThreads = true;
|
|
|
|
meta = with 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 ];
|
|
};
|
|
}
|