Files
nixpkgs/pkgs/by-name/ge/gema/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

38 lines
1.0 KiB
Nix

{
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;
};
})