e273bc80a5
This is done because the existing fetchCargoTarball does not support pname or version, resulting in a vendor tarball with the name cargo-deps-vendor.tar.gz. Since adding pname+version support would change the name of the derivation, and therefore its hash, we remove existing usages to avoid treewide breakage.
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{ stdenv
|
|
, cargo
|
|
, rustc
|
|
, fetchFromGitHub
|
|
, libadwaita
|
|
, rustPlatform
|
|
, pkg-config
|
|
, lib
|
|
, wrapGAppsHook4
|
|
, meson
|
|
, ninja
|
|
, desktop-file-utils
|
|
, blueprint-compiler
|
|
, glib-networking
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "geopard";
|
|
version = "1.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ranfdev";
|
|
repo = "geopard";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-etx8YPEFGSNyiSLpTNIXTZZiLSgAntQsM93On7dPGI0=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
inherit (finalAttrs) src;
|
|
hash = "sha256-YVbaXGGwQaqjUkA47ryW1VgJpZTx5ApRGdCcB5aA71M=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
wrapGAppsHook4
|
|
blueprint-compiler
|
|
desktop-file-utils
|
|
cargo
|
|
rustc
|
|
rustPlatform.cargoSetupHook
|
|
];
|
|
|
|
buildInputs = [
|
|
libadwaita
|
|
glib-networking
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/ranfdev/Geopard";
|
|
description = "Colorful, adaptive gemini browser";
|
|
maintainers = with lib.maintainers; [ jfvillablanca aleksana ];
|
|
license = lib.licenses.gpl3Plus;
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "geopard";
|
|
};
|
|
})
|