2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
2024-09-19 14:19:46 +00:00
|
|
|
, fetchpatch2
|
2022-06-16 17:23:12 +00:00
|
|
|
, appstream-glib
|
2023-05-24 13:37:59 +00:00
|
|
|
, cargo
|
2022-06-16 17:23:12 +00:00
|
|
|
, desktop-file-utils
|
|
|
|
, itstool
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, rustPlatform
|
2023-05-24 13:37:59 +00:00
|
|
|
, rustc
|
2022-11-04 12:27:35 +00:00
|
|
|
, wrapGAppsHook4
|
2022-06-16 17:23:12 +00:00
|
|
|
, glib
|
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
2024-05-15 15:35:15 +00:00
|
|
|
, zbar
|
|
|
|
, gst_all_1
|
2023-10-09 19:29:22 +00:00
|
|
|
, Security
|
|
|
|
, Foundation
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "warp";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.7.0";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "World";
|
2024-05-15 15:35:15 +00:00
|
|
|
repo = "warp";
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-GRxZ3y1PdJpBDnGCfmOmZgN8n1aaYf9IhyszRwo3MjQ=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
patches = [
|
|
|
|
# https://gitlab.gnome.org/World/warp/-/merge_requests/74
|
|
|
|
(fetchpatch2 {
|
|
|
|
name = "rust-1.80-compat.patch";
|
|
|
|
url = "https://gitlab.gnome.org/World/warp/-/commit/38747cc2dde79089df53fd8451ea2db13f9f3714.patch";
|
|
|
|
hash = "sha256-9P5LwCHaC6J5WR2OnjCaNE+4de/Jv6XGXS7bOfYrM7w=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs build-aux
|
|
|
|
'';
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
2024-09-19 14:19:46 +00:00
|
|
|
inherit src patches;
|
2023-04-29 16:46:19 +00:00
|
|
|
name = "${pname}-${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-xF9AzcO2uawHu7XZay7Wwr2r+OVLbXhfSynnBYbVkZM=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
itstool
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
python3
|
2022-11-04 12:27:35 +00:00
|
|
|
wrapGAppsHook4
|
2023-05-24 13:37:59 +00:00
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
cargo
|
|
|
|
rustc
|
|
|
|
];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk4
|
|
|
|
libadwaita
|
2024-05-15 15:35:15 +00:00
|
|
|
zbar
|
|
|
|
] ++ (with gst_all_1; [
|
|
|
|
gstreamer
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-bad
|
2024-09-26 11:04:55 +00:00
|
|
|
]) ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
2023-10-09 19:29:22 +00:00
|
|
|
Security
|
|
|
|
Foundation
|
2022-06-16 17:23:12 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Fast and secure file transfer";
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://apps.gnome.org/Warp/";
|
2022-06-16 17:23:12 +00:00
|
|
|
license = lib.licenses.gpl3Only;
|
2023-02-09 11:40:11 +00:00
|
|
|
maintainers = with lib.maintainers; [ dotlambda foo-dogsquared ];
|
2023-10-09 19:29:22 +00:00
|
|
|
platforms = lib.platforms.all;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "warp";
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
}
|