nixpkgs/pkgs/by-name/ca/castor/package.nix

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

53 lines
992 B
Nix
Raw Normal View History

{ lib
2020-10-31 12:20:43 +00:00
, fetchFromSourcehut
2020-04-17 14:33:54 +01:00
, rustPlatform
, pkg-config
, wrapGAppsHook3
2020-04-17 14:33:54 +01:00
, openssl
, gtk3
, gdk-pixbuf
, pango
, atk
, cairo
}:
rustPlatform.buildRustPackage rec {
pname = "castor";
2022-05-25 06:29:46 +01:00
version = "0.9.0";
2020-04-17 14:33:54 +01:00
2020-10-31 12:20:43 +00:00
src = fetchFromSourcehut {
owner = "~julienxx";
repo = pname;
rev = version;
2022-05-25 06:29:46 +01:00
sha256 = "sha256-yYLDbxmUR86fdpbHQQTiHVUbicnOD75cl3Vhofw5qr0=";
2020-04-17 14:33:54 +01:00
};
cargoHash = "sha256-AHhKfy2AAcDBcknzNb8DAzm51RQqFQDuWN+Hp5731Yk=";
2020-04-17 14:33:54 +01:00
nativeBuildInputs = [
pkg-config
wrapGAppsHook3
2020-04-17 14:33:54 +01:00
];
buildInputs = [
openssl
gtk3
gdk-pixbuf
pango
atk
cairo
];
postInstall = "make PREFIX=$out copy-data";
useNextest = true;
2020-04-17 14:33:54 +01:00
meta = with lib; {
2020-04-17 14:33:54 +01:00
description = "Graphical client for plain-text protocols written in Rust with GTK. It currently supports the Gemini, Gopher and Finger protocols";
mainProgram = "castor";
2020-04-17 14:33:54 +01:00
homepage = "https://sr.ht/~julienxx/Castor";
license = licenses.mit;
maintainers = with maintainers; [ fgaz ];
};
}