diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-09-05 23:23:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-05 23:23:49 +0200 |
commit | 4e88b6d8f05803da0f77d82a570bda9e6760729c (patch) | |
tree | 855d354676360e7ed7b376443e53be361adf2ade /pkgs/by-name | |
parent | 83cb80dc44cca2ad65143176969560a07d626fe1 (diff) | |
parent | df9991c8c2c83a2346723bcc53d8dcd745437969 (diff) |
Merge pull request #243255 from wegank/gash-init
gash, gash-utils: init
Diffstat (limited to 'pkgs/by-name')
-rw-r--r-- | pkgs/by-name/ga/gash-utils/package.nix | 46 | ||||
-rw-r--r-- | pkgs/by-name/ga/gash/package.nix | 35 |
2 files changed, 81 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; + }; +}) diff --git a/pkgs/by-name/ga/gash/package.nix b/pkgs/by-name/ga/gash/package.nix new file mode 100644 index 0000000000000..49dca79629071 --- /dev/null +++ b/pkgs/by-name/ga/gash/package.nix @@ -0,0 +1,35 @@ +{ lib +, stdenv +, fetchurl +, guile +, pkg-config +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "gash"; + version = "0.3.0"; + + src = fetchurl { + url = "mirror://savannah/gash/gash-${finalAttrs.version}.tar.gz"; + hash = "sha256-VGrsaRBo1nfFjd/BVpXbn4CGFuGfpzMi1Ppno8iXwqk="; + }; + + strictDeps = true; + + nativeBuildInputs = [ + guile # buildPlatform's guile is needed at build time + pkg-config + ]; + + buildInputs = [ + guile + ]; + + meta = with lib; { + description = "POSIX-compatible shell written in Guile Scheme"; + homepage = "https://savannah.nongnu.org/projects/gash/"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ wegank ]; + platforms = platforms.all; + }; +}) |