2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, 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
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs build-aux
|
|
|
|
'';
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-v/MhVcQmMYD/n/8wmPCYUy4YpXhL0v4fq8h6cllo/pw=";
|
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
|
|
|
|
]) ++ lib.optionals stdenv.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-04-21 15:54:59 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
}
|