diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-01-06 17:31:51 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-01-10 07:13:25 +0000 |
commit | 1cdc42df888dc98c347e03bd942ed9825a55bcb3 (patch) | |
tree | 27aa457536e906712e4075a137af20510df8299d /nixpkgs/pkgs/applications/networking/browsers | |
parent | f0205a49b465ab0e99502d2af4314526a1f90909 (diff) | |
parent | 1b8af3e1ae75df048fbdfb3acf6842f13de3e38f (diff) | |
download | nixlib-1cdc42df888dc98c347e03bd942ed9825a55bcb3.tar nixlib-1cdc42df888dc98c347e03bd942ed9825a55bcb3.tar.gz nixlib-1cdc42df888dc98c347e03bd942ed9825a55bcb3.tar.bz2 nixlib-1cdc42df888dc98c347e03bd942ed9825a55bcb3.tar.lz nixlib-1cdc42df888dc98c347e03bd942ed9825a55bcb3.tar.xz nixlib-1cdc42df888dc98c347e03bd942ed9825a55bcb3.tar.zst nixlib-1cdc42df888dc98c347e03bd942ed9825a55bcb3.zip |
Merge commit '1b8af3e1ae75df048fbdfb3acf6842f13de3e38f'
Diffstat (limited to 'nixpkgs/pkgs/applications/networking/browsers')
-rw-r--r-- | nixpkgs/pkgs/applications/networking/browsers/castor/default.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/networking/browsers/castor/default.nix b/nixpkgs/pkgs/applications/networking/browsers/castor/default.nix new file mode 100644 index 000000000000..6209c3263bcd --- /dev/null +++ b/nixpkgs/pkgs/applications/networking/browsers/castor/default.nix @@ -0,0 +1,53 @@ +{ stdenv +, fetchurl +, rustPlatform +, pkg-config +, wrapGAppsHook +, openssl +, gtk3 +, gdk-pixbuf +, pango +, atk +, cairo +}: + +rustPlatform.buildRustPackage rec { + pname = "castor"; + version = "0.8.14"; + + src = fetchurl { + url = "https://git.sr.ht/~julienxx/castor/archive/${version}.tar.gz"; + sha256 = "1ykpmbimhfy3ys2hvv0mn8xiwxzdl43gpny1nc58i0gzv07ar8sc"; + }; + + cargoSha256 = "04w49wka1vkb295lk6fzd6c5rwhzrqkp26hd5d94rx7bhcjmmb9w"; + verifyCargoDeps = true; + + 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 + checkFlags = [ "--test-threads=1" ]; + + 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; + platforms = platforms.all; + maintainers = with maintainers; [ fgaz ]; + }; +} + |