From ea7ee97ad197b832efaa2133e8dd349acd9c66c9 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Fri, 16 Aug 2024 14:24:39 +0800 Subject: [PATCH] pkgs/flatsync: init at unstable-2024-08-16 --- pkgs/default.nix | 1 + pkgs/flatsync/default.nix | 71 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 pkgs/flatsync/default.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index 89891ba2..a90b685d 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -10,6 +10,7 @@ lib.makeScope newScope (self: { ctrld = callPackage ./ctrld { }; domterm = libsForQt5.callPackage ./domterm { }; fastn = callPackage ./fastn { }; + flatsync = callPackage ./flatsync { }; freerct = callPackage ./freerct.nix { }; distant = callPackage ./distant.nix { }; gnome-search-provider-recoll = diff --git a/pkgs/flatsync/default.nix b/pkgs/flatsync/default.nix new file mode 100644 index 00000000..000d76b4 --- /dev/null +++ b/pkgs/flatsync/default.nix @@ -0,0 +1,71 @@ +{ stdenv +, lib +, fetchFromGitLab +, rustPlatform +, cargo +, rustc +, meson +, ninja +, pkg-config +, glib +, gobject-introspection +, libadwaita +, wrapGAppsHook4 +, openssl +, appstream-glib +, desktop-file-utils +, blueprint-compiler +, flatpak +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "flatsync"; + version = "unstable-2024-08-16"; + + src = fetchFromGitLab { + domain = "gitlab.gnome.org"; + owner = "Cogitri"; + repo = "flatsync"; + rev = "4ae868217b00d8c7fc9450cdf41eda8d8303508f"; + hash = "sha256-ATFJv9XtNuIYrz7gbVt1yFM10wNAbOa/cUeDVjSGrGY="; + }; + + strictDeps = true; + cargoDeps = rustPlatform.fetchCargoTarball { + name = "${finalAttrs.pname}-${finalAttrs.version}-deps"; + inherit (finalAttrs) src; + hash = "sha256-qC/kj0eCrSjFmyDwrqtameYRTajnY8HoQaOxME4zWJI="; + }; + + nativeBuildInputs = [ + appstream-glib + blueprint-compiler + cargo + desktop-file-utils + gobject-introspection + meson + ninja + pkg-config + rustPlatform.cargoSetupHook + rustPlatform.bindgenHook + rustc + wrapGAppsHook4 + ]; + + buildInputs = [ + glib + flatpak + libadwaita + openssl + ]; + + meta = with lib; { + homepage = "https://gitlab.gnome.org/Cogitri/flatsync"; + # It has no license yet so technically it's unfree. + license = licenses.unfree; + description = "Synchronize your Flatpaks across multiple machines"; + platforms = platforms.linux; + maintainers = with maintainers; [ foo-dogsquared ]; + mainProgram = "flatsync"; + }; +})