default.nix (711B)
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 src = fetchFromGitHub { 12 owner = "antirez"; 13 repo = "kilo"; 14 rev = "323d93b29bd89a2cb446de90c4ed4fea1764176e"; 15 hash = "sha256-f4DlVCX9i58YUqhyuEd6WwdHD15jQokl+mKA0tjYplM="; 16 }; 17 18 installPhase = '' 19 runHook preInstall 20 install -Dm755 kilo -t $out/bin 21 runHook postInstall 22 ''; 23 24 meta = { 25 description = "A text editor in less than 1000 LOC with syntax highlight and search"; 26 homepage = "https://github.com/antirez/kilo"; 27 license = lib.licenses.bsd2; 28 maintainers = [ lib.maintainers.sikmir ]; 29 platforms = lib.platforms.unix; 30 }; 31 })