Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 36 lines 852 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation { 8 pname = "ptext"; 9 version = "0-unstable-2024-08-19"; 10 11 src = fetchFromGitHub { 12 owner = "proh14"; 13 repo = "ptext"; 14 rev = "86cc1a165f398bd1f08fc45f2db93d4a9701ab0e"; 15 hash = "sha256-bmqQslC/T7dFJwg/ZCevQRpmkVJHRQ++0EV4b88xF6k="; 16 }; 17 18 enableParallelBuilding = true; 19 hardeningDisable = [ "fortify" ]; 20 21 makeFlags = [ 22 "INSTALL_DIR=${placeholder "out"}/bin" 23 "MANPAGE_INSTALL_DIR=${placeholder "out"}/share/man/man1" 24 ]; 25 26 preInstall = "mkdir -p $out/{bin,share/man/man1}"; 27 28 meta = { 29 description = "Nano like text editor built with pure C"; 30 homepage = "https://github.com/proh14/ptext"; 31 license = lib.licenses.bsd2; 32 maintainers = with lib.maintainers; [ sigmanificient ]; 33 platforms = lib.platforms.linux; 34 mainProgram = "ptext"; 35 }; 36}