8 stdenv.mkDerivation (finalAttrs: {
10 version = "0.2.0-alpha";
12 src = fetchFromGitHub {
13 owner = "CobbCoding1";
15 rev = "v${finalAttrs.version}";
16 hash = "sha256-OaWj0AKw3+sEhcAbIjgOLfxwCKRG6O1k+zSp0GnnFn8=";
19 patches = [ ./allow-read-only-store-help-page.patch ];
22 substituteInPlace src/main.c \
23 --replace-fail "@help@" "${placeholder "out"}/share/help"
26 nativeBuildInputs = [ installShellFiles ];
28 buildInputs = [ ncurses ];
38 install -Dm755 build/cano -t $out/bin
41 cp -r docs/help $out/share
42 installManPage docs/cano.1
48 description = "Text Editor Written In C Using ncurses";
49 homepage = "https://github.com/CobbCoding1/Cano";
50 license = lib.licenses.asl20;
52 maintainers = with lib.maintainers; [ sigmanificient ];
53 platforms = lib.platforms.linux;