about summary refs log tree commit diff
path: root/pkgs/by-name/ga
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-09-05 19:40:05 +0200
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-09-05 19:40:05 +0200
commitdf9991c8c2c83a2346723bcc53d8dcd745437969 (patch)
tree150d70c9ee6c0d46d27584567d9062f2fabbb710 /pkgs/by-name/ga
parentd249a07758187b40ff8377e70c74defc188bea03 (diff)
gash-utils: init at 0.2.0
Diffstat (limited to 'pkgs/by-name/ga')
-rw-r--r--pkgs/by-name/ga/gash-utils/package.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/by-name/ga/gash-utils/package.nix b/pkgs/by-name/ga/gash-utils/package.nix
new file mode 100644
index 0000000000000..eeaf2b02a40b4
--- /dev/null
+++ b/pkgs/by-name/ga/gash-utils/package.nix
@@ -0,0 +1,46 @@
+{ lib
+, stdenv
+, fetchurl
+, guile
+, makeWrapper
+, pkg-config
+, gash
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "gash-utils";
+  version = "0.2.0";
+
+  src = fetchurl {
+    url = "mirror://savannah/gash/gash-utils-${finalAttrs.version}.tar.gz";
+    hash = "sha256-5qrlpvQP34xfhzD2bD+MMEe94A+M2XWV9arSRElZ1KM=";
+  };
+
+  strictDeps = true;
+
+  nativeBuildInputs = [
+    guile # buildPlatform's guile is needed at build time
+    makeWrapper
+    pkg-config
+  ];
+
+  buildInputs = [
+    gash
+    guile
+  ];
+
+  postInstall = ''
+    for f in $out/bin/*; do
+      wrapProgram $f \
+        --prefix GUILE_LOAD_PATH : "${gash}/${guile.siteDir}"
+    done
+  '';
+
+  meta = with lib; {
+    description = "Core POSIX utilities written in Guile Scheme";
+    homepage = "https://savannah.nongnu.org/projects/gash/";
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ wegank ];
+    platforms = platforms.all;
+  };
+})