nixpkgs/pkgs/applications/networking/warp/default.nix

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

69 lines
1.2 KiB
Nix
Raw Normal View History

2022-05-26 08:47:02 +02:00
{ lib
, stdenv
, fetchFromGitLab
, appstream-glib
, desktop-file-utils
, itstool
, meson
, ninja
, pkg-config
, python3
, rustPlatform
2022-10-17 11:19:31 +02:00
, wrapGAppsHook4
2022-05-26 08:47:02 +02:00
, glib
, gtk4
, libadwaita
}:
stdenv.mkDerivation rec {
pname = "warp";
2023-05-04 12:27:29 +02:00
version = "0.5.4";
2022-05-26 08:47:02 +02:00
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
2022-10-17 11:19:31 +02:00
repo = pname;
2022-05-26 08:47:02 +02:00
rev = "v${version}";
2023-05-04 12:27:29 +02:00
hash = "sha256-twK0C2BvD3GLmJ9H05sas0bce/dIMIWeCoFRU/f+1eg=";
2022-05-26 08:47:02 +02:00
};
postPatch = ''
patchShebangs build-aux
'';
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
2023-05-04 12:27:29 +02:00
hash = "sha256-mxM+V4gWGfW8M56+kV/Ljtzde7oRPH0twJtEImkUIF4=";
2022-05-26 08:47:02 +02:00
};
nativeBuildInputs = [
appstream-glib
desktop-file-utils
itstool
meson
ninja
pkg-config
python3
2022-10-17 11:19:31 +02:00
wrapGAppsHook4
2022-05-26 08:47:02 +02:00
] ++ (with rustPlatform; [
cargoSetupHook
rust.cargo
rust.rustc
]);
buildInputs = [
glib
gtk4
libadwaita
];
meta = {
description = "Fast and secure file transfer";
homepage = "https://apps.gnome.org/app/app.drey.Warp";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ dotlambda foo-dogsquared ];
2022-05-26 08:47:02 +02:00
platforms = lib.platforms.linux;
};
}