about summary refs log tree commit diff
path: root/pkgs/by-name/bu
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2024-06-07 00:02:15 +0000
committerGitHub <noreply@github.com>2024-06-07 00:02:15 +0000
commit4ace29447c3c16fd661acaa2f0a1841b839e7baf (patch)
tree8a2c944dc6c7b7d5ab243c607ed5b82fb0d553b3 /pkgs/by-name/bu
parent9f1130c9a6a782e5ceff5d8555a074eac3ae88bc (diff)
parentdd443d2d10ff7f7f7451f5bd04268f21daceb74d (diff)
Merge master into staging-next
Diffstat (limited to 'pkgs/by-name/bu')
-rw-r--r--pkgs/by-name/bu/buffer/package.nix62
1 files changed, 62 insertions, 0 deletions
diff --git a/pkgs/by-name/bu/buffer/package.nix b/pkgs/by-name/bu/buffer/package.nix
new file mode 100644
index 0000000000000..54b017d1baad0
--- /dev/null
+++ b/pkgs/by-name/bu/buffer/package.nix
@@ -0,0 +1,62 @@
+{ lib
+, desktop-file-utils
+, fetchFromGitLab
+, gobject-introspection
+, gtk4
+, gtksourceview5
+, libadwaita
+, libspelling
+, meson
+, ninja
+, pkg-config
+, python3
+, stdenv
+, wrapGAppsHook4
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "buffer";
+  version = "0.9.2";
+
+  src = fetchFromGitLab {
+    domain = "gitlab.gnome.org";
+    owner = "cheywood";
+    repo = "buffer";
+    rev = finalAttrs.version;
+    hash = "sha256-EIyaFL2AEez8FIErL8+x7QNHnCYxj4mOuz7E+Svvh5I=";
+  };
+
+  nativeBuildInputs = [
+    desktop-file-utils
+    gobject-introspection
+    meson
+    ninja
+    pkg-config
+    wrapGAppsHook4
+  ];
+
+  buildInputs = [
+    gtk4
+    gtksourceview5
+    libadwaita
+    libspelling
+    (python3.withPackages (ps: with ps; [
+      pygobject3
+    ]))
+  ];
+
+  preFixup = ''
+    gappsWrapperArgs+=(
+      --prefix PYTHONPATH : "$out/${python3.sitePackages}"
+    )
+  '';
+
+  meta = with lib; {
+    description = "Minimal editing space for all those things that don't need keeping";
+    homepage = "https://gitlab.gnome.org/cheywood/buffer";
+    license = licenses.gpl3Plus;
+    mainProgram = "buffer";
+    maintainers = with maintainers; [ michaelgrahamevans ];
+    platforms = platforms.linux;
+  };
+})