Merge pull request #301435 from Sigmanificient/cano

cano: init at 0-unstable-2024-3-31
This commit is contained in:
Aleksana 2024-04-04 19:03:53 +08:00 committed by GitHub
commit 1d138cafac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,34 @@
{ stdenv
, lib
, fetchFromGitHub
, gnumake
, ncurses
}:
stdenv.mkDerivation (finalAttrs: {
name = "cano";
version = "0-unstable-2024-31-3";
src = fetchFromGitHub {
owner = "CobbCoding1";
repo = "Cano";
rev = "6b3488545b4180f20a7fa892fb0ee719e9298ddc";
hash = "sha256-qFo0szZVGLUf7c7KdEIofcieWZqtM6kQE6D8afrZ+RU=";
};
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;
};
})