mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
69 lines
1.2 KiB
Nix
69 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitLab
|
|
, appstream-glib
|
|
, desktop-file-utils
|
|
, itstool
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, python3
|
|
, rustPlatform
|
|
, wrapGAppsHook4
|
|
, glib
|
|
, gtk4
|
|
, libadwaita
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "warp";
|
|
version = "0.3.1";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "World";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-0zjtaF0RwI7Sj2D5vRaiBJI+Bp/F17VO9ywMRqZyqxI=";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs build-aux
|
|
'';
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
inherit src;
|
|
name = "${pname}-${version}";
|
|
hash = "sha256-HotArxXfmT6Gw6ZZZQ4X6bTx0EFb6vZLbXxhddmGID8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
appstream-glib
|
|
desktop-file-utils
|
|
itstool
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
python3
|
|
wrapGAppsHook4
|
|
] ++ (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 ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|