default.nix (711B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 }: 6 7 stdenv.mkDerivation (finalAttrs: { 8 pname = "kilo"; 9 version = "0-unstable-2020-07-05"; 10 11 src = fetchFromGitHub { 12 owner = "antirez"; 13 repo = "kilo"; 14 rev = "69c3ce609d1e8df3956cba6db3d296a7cf3af3de"; 15 hash = "sha256-6zPzaUzBQCIciuzBp4W6pT4bvhWbC8t6bSVec5LBRiU="; 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 })