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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
966 B
Nix
Raw Normal View History

{ lib
2020-10-31 12:20:43 +00:00
, fetchFromSourcehut
2020-04-17 13:33:54 +00:00
, rustPlatform
, pkg-config
, wrapGAppsHook
, openssl
, gtk3
, gdk-pixbuf
, pango
, atk
, cairo
}:
rustPlatform.buildRustPackage rec {
pname = "castor";
2022-05-25 05:29:46 +00:00
version = "0.9.0";
2020-04-17 13:33:54 +00:00
2020-10-31 12:20:43 +00:00
src = fetchFromSourcehut {
owner = "~julienxx";
repo = pname;
rev = version;
2022-05-25 05:29:46 +00:00
sha256 = "sha256-yYLDbxmUR86fdpbHQQTiHVUbicnOD75cl3Vhofw5qr0=";
2020-04-17 13:33:54 +00:00
};
2022-05-25 05:29:46 +00:00
cargoSha256 = "sha256-AHhKfy2AAcDBcknzNb8DAzm51RQqFQDuWN+Hp5731Yk=";
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";
useNextest = true;
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 ];
};
}