about summary refs log tree commit diff
path: root/pkgs/by-name/ge
diff options
context:
space:
mode:
authorQuag <quaggy@gmail.com>2024-04-30 20:02:17 -0700
committerQuag <quaggy@gmail.com>2024-04-30 23:02:12 -0700
commit8c89358d530a778fa092bf2c522e3054cb6367b3 (patch)
treea31906e1c104f7f46c80a8403a3da5502869fe33 /pkgs/by-name/ge
parent38c01297e7ec11f7b9e3f2cae7d6fcec6cc767ec (diff)
gema: init at 2.0
Diffstat (limited to 'pkgs/by-name/ge')
-rw-r--r--pkgs/by-name/ge/gema/package.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/by-name/ge/gema/package.nix b/pkgs/by-name/ge/gema/package.nix
new file mode 100644
index 0000000000000..564941444dd74
--- /dev/null
+++ b/pkgs/by-name/ge/gema/package.nix
@@ -0,0 +1,36 @@
+{ lib
+, stdenv
+, fetchurl
+, installShellFiles
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "gema";
+  version = "2.0";
+
+  src = fetchurl {
+    url = "https://sourceforge.net/projects/gema/files/gema/gema-${finalAttrs.version}/gema-${finalAttrs.version}-source.tar.gz";
+    hash = "sha256-c7qxgZYk/QaqocjRXVlgJxUWCgf3T1JBY7v9Fg9YfIU=";
+  };
+
+  makeFlags = [ "--directory=src" ];
+
+  nativeBuildInputs = [ installShellFiles ];
+
+  installPhase = ''
+    runHook preInstall
+    install -Dm755 src/gema -t $out/bin
+    installManPage doc/gema.1
+    runHook postInstall
+  '';
+
+  meta = {
+    description = "General purpose text processing utility based on the concept of pattern matching.";
+    longDescription = "Reads an input file and copies it to an output file transforming the data as specified by the patterns defined by the user.";
+    homepage = "https://gema.sourceforge.net/";
+    license = lib.licenses.mit;
+    mainProgram = "gema";
+    maintainers = with lib.maintainers; [ quag ];
+    platforms = lib.platforms.unix;
+  };
+})