lol
1{ stdenv, fetchFromGitHub }:
2
3stdenv.mkDerivation rec {
4 name = "agrep-${version}";
5 version = "3.41.5";
6
7 src = fetchFromGitHub {
8 owner = "Wikinaut";
9 repo = "agrep";
10 # This repository has numbered versions, but not Git tags.
11 rev = "eef20411d605d9d17ead07a0ade75046f2728e21";
12 sha256 = "14addnwspdf2mxpqyrw8b84bb2257y43g5ccy4ipgrr91fmxq2sk";
13 };
14
15 installPhase = ''
16 install -Dm 555 agrep -t "$out/bin"
17 install -Dm 444 docs/* -t "$out/doc"
18 '';
19
20 meta = {
21 description = "Approximate grep for fast fuzzy string searching";
22 homepage = https://www.tgries.de/agrep/;
23 license = stdenv.lib.licenses.isc;
24 platforms = stdenv.lib.platforms.linux;
25 };
26}