pkgs/flatsync: init at unstable-2024-08-16

This commit is contained in:
Gabriel Arazas 2024-08-16 14:24:39 +08:00
parent b1b481c68b
commit ea7ee97ad1
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
2 changed files with 72 additions and 0 deletions

View File

@ -10,6 +10,7 @@ lib.makeScope newScope (self: {
ctrld = callPackage ./ctrld { }; ctrld = callPackage ./ctrld { };
domterm = libsForQt5.callPackage ./domterm { }; domterm = libsForQt5.callPackage ./domterm { };
fastn = callPackage ./fastn { }; fastn = callPackage ./fastn { };
flatsync = callPackage ./flatsync { };
freerct = callPackage ./freerct.nix { }; freerct = callPackage ./freerct.nix { };
distant = callPackage ./distant.nix { }; distant = callPackage ./distant.nix { };
gnome-search-provider-recoll = gnome-search-provider-recoll =

71
pkgs/flatsync/default.nix Normal file
View File

@ -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";
};
})