about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authormaxine <35892750+amaxine@users.noreply.github.com>2024-01-18 18:29:47 +0100
committerGitHub <noreply@github.com>2024-01-18 18:29:47 +0100
commit37c764638b12415096dd361d878fd409d8dac599 (patch)
treed0e2eefabed7c0c006c758f927679d81d7ac88ec /pkgs
parenta27409157f1415ddc9c4ecab32c2fab5ddd1fa60 (diff)
parent6054c3901de996900855ab748dad7658bcb44c30 (diff)
Merge pull request #281569 from michaelgrahamevans/lorem
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/by-name/lo/lorem/package.nix61
1 files changed, 61 insertions, 0 deletions
diff --git a/pkgs/by-name/lo/lorem/package.nix b/pkgs/by-name/lo/lorem/package.nix
new file mode 100644
index 0000000000000..d024aeaf614ac
--- /dev/null
+++ b/pkgs/by-name/lo/lorem/package.nix
@@ -0,0 +1,61 @@
+{ lib
+, cargo
+, desktop-file-utils
+, fetchFromGitLab
+, glib
+, gtk4
+, libadwaita
+, meson
+, ninja
+, pkg-config
+, rustPlatform
+, rustc
+, stdenv
+, wrapGAppsHook4
+}:
+
+stdenv.mkDerivation rec {
+  pname = "lorem";
+  version = "1.3";
+
+  src = fetchFromGitLab {
+    domain = "gitlab.gnome.org";
+    owner = "World/design";
+    repo = pname;
+    rev = version;
+    hash = "sha256-+Dp/o1rZSHWihLLLe6CzV6c7uUnSsE8Ct3tbLNqlGF0=";
+  };
+
+  cargoDeps = rustPlatform.fetchCargoTarball {
+    inherit src;
+    name = "${pname}-${version}";
+    hash = "sha256-YYjPhlPp211i+ECPu1xgDumz8nVqWRO8YzcZXy8uunI=";
+  };
+
+  nativeBuildInputs = [
+    cargo
+    desktop-file-utils
+    meson
+    ninja
+    pkg-config
+    rustPlatform.cargoSetupHook
+    rustc
+    wrapGAppsHook4
+  ];
+
+  buildInputs = [
+    glib
+    gtk4
+    libadwaita
+  ];
+
+  meta = with lib; {
+    description = "Generate placeholder text";
+    homepage = "https://gitlab.gnome.org/World/design/lorem";
+    changelog = "https://gitlab.gnome.org/World/design/lorem/-/releases/${version}";
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ michaelgrahamevans ];
+    mainProgram = "lorem";
+    platforms = platforms.linux;
+  };
+}