package.nix (740B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 }: 6 7 stdenv.mkDerivation (finalAttrs: { 8 pname = "kilo"; 9 version = "0-unstable-2025-01-04"; 10 11 __structuredAttrs = true; 12 13 src = fetchFromGitHub { 14 owner = "antirez"; 15 repo = "kilo"; 16 rev = "323d93b29bd89a2cb446de90c4ed4fea1764176e"; 17 hash = "sha256-f4DlVCX9i58YUqhyuEd6WwdHD15jQokl+mKA0tjYplM="; 18 }; 19 20 installPhase = '' 21 runHook preInstall 22 install -Dm755 kilo -t $out/bin 23 runHook postInstall 24 ''; 25 26 meta = { 27 description = "A text editor in less than 1000 LOC with syntax highlight and search"; 28 homepage = "https://github.com/antirez/kilo"; 29 license = lib.licenses.bsd2; 30 maintainers = [ lib.maintainers.sikmir ]; 31 platforms = lib.platforms.unix; 32 }; 33 })
