2024-04-21 15:54:59 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gnumake
|
|
|
|
, ncurses
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
name = "cano";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.1.0-alpha";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CobbCoding1";
|
|
|
|
repo = "Cano";
|
2024-06-05 15:53:02 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-BKbBDN7xZwlNzw7UFgX+PD9UXbr9FtELo+PlbfSHyRY=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ gnumake ncurses ];
|
|
|
|
hardeningDisable = [ "format" "fortify" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp build/cano $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Text Editor Written In C Using ncurses";
|
|
|
|
homepage = "https://github.com/CobbCoding1/Cano";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
mainProgram = "Cano";
|
|
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
};
|
|
|
|
})
|