From cb4b56d1871d1a967cbdf80521b9deaeb69e4068 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sat, 27 Aug 2022 12:24:58 +0800 Subject: [PATCH] gnome-info-collect: init at 1.0-7 --- pkgs/default.nix | 1 + pkgs/gnome-info-collect/default.nix | 39 +++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 pkgs/gnome-info-collect/default.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index c680b99d..45c6e9c7 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -28,6 +28,7 @@ let gradience = callPackage ./gradience { libadwaita = libadwaita-latest; }; guile-config = callPackage ./guile-config.nix { }; guile-hall = callPackage ./guile-hall.nix { }; + gnome-info-collect = callPackage ./gnome-info-collect { }; hush-shell = callPackage ./hush-shell.nix { }; ictree = callPackage ./ictree.nix { }; libadwaita-latest = libadwaita.overrideAttrs (super: self: { diff --git a/pkgs/gnome-info-collect/default.nix b/pkgs/gnome-info-collect/default.nix new file mode 100644 index 00000000..4019c401 --- /dev/null +++ b/pkgs/gnome-info-collect/default.nix @@ -0,0 +1,39 @@ +{ lib, fetchFromGitLab, meson, ninja, pkg-config, gobject-introspection, accountsservice, python3Packages }: + +python3Packages.buildPythonApplication rec { + pname = "gnome-info-collect"; + version = "1.0-7"; + + src = fetchFromGitLab { + domain = "gitlab.gnome.org"; + repo = pname; + owner = "vstanek"; + rev = "v${version}"; + sha256 = "sha256-9C1pVCOaGLz0xEd2eKuOQRu49GOLD7LnDYvgxpCgtF4="; + }; + + format = "other"; + + propagatedBuildInputs = with python3Packages; [ + pygobject3 + requests + ] ++ [ + gobject-introspection + ]; + + buildInputs = [ + accountsservice + ]; + + nativeBuildInputs = [ + meson + ninja + pkg-config + ]; + + meta = with lib; { + homepage = "https://gitlab.gnome.org/vstanek/gnome-info-collect"; + description = "Utility to collect and send anonymized information for GNOME"; + license = licenses.gpl3Only; + }; +}