This commit is contained in:
2025-06-05 01:24:33 -06:00
commit d110558bee
20 changed files with 457 additions and 0 deletions

25
pkgs/ansilove/default.nix Normal file
View File

@@ -0,0 +1,25 @@
{ stdenv
, cmake
, fetchFromGitHub
, libansilove
}:
stdenv.mkDerivation (final: {
pname = "ansilove";
version = "4.2.1";
src = fetchFromGitHub {
owner = "ansilove";
repo = "ansilove";
rev = final.version;
hash = "sha256-13v2NLVJt11muwocBiQYz/rxQkte/W6LXwB/H/E9Nvk=";
};
nativeBuildInputs = [
cmake
];
buildInputs = [
libansilove
];
})

View File

@@ -0,0 +1,49 @@
{ lib
, python3Packages
, fetchFromGitHub
, makeWrapper
, withGifExport ? true
, ansilove
}:
python3Packages.buildPythonApplication rec {
pname = "asciiville-aewan";
version = "1.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "cmang";
repo = "durdraw";
rev = version;
hash = "sha256-a+4DGWBD5XLaNAfTN/fmI/gALe76SCoWrnjyglNhVPY=";
};
build-system = with python3Packages; [
setuptools
];
dependencies = [
];
nativeBuildInputs = [
makeWrapper
];
postInstall = lib.optionalString withGifExport ''
wrapProgram $out/bin/durdraw \
--prefix PATH : "${lib.makeBinPath [ansilove]}"
'';
meta = {
changelog = "https://github.com/cmang/durdraw/releases/tag/${version}";
description = ''
Versatile ASCII and ANSI Art text editor for drawing in the
Linux/Unix/macOS terminal, with animation, 256 and 16 colors, Unicode and
CP437, and customizable themes.
'';
homepage = "https://github.com/cmang/durdraw/";
license = lib.licenses.bsd3;
# maintainers = [
# ];
};
}

46
pkgs/durdraw/default.nix Normal file
View File

@@ -0,0 +1,46 @@
{ lib
, python3Packages
, fetchFromGitHub
, makeWrapper
, withGifExport ? true
, ansilove
}:
python3Packages.buildPythonApplication rec {
pname = "durdraw";
version = "0.29.0";
pyproject = true;
src = fetchFromGitHub {
owner = "cmang";
repo = "durdraw";
rev = version;
hash = "sha256-a+4DGWBD5XLaNAfTN/fmI/gALe76SCoWrnjyglNhVPY=";
};
build-system = with python3Packages; [
setuptools
];
dependencies = [];
nativeBuildInputs = [
makeWrapper
];
postInstall = lib.optionalString withGifExport ''
wrapProgram $out/bin/durdraw \
--prefix PATH : "${lib.makeBinPath [ansilove]}"
'';
meta = {
changelog = "https://github.com/cmang/durdraw/releases/tag/${version}";
description = ''
Versatile ASCII and ANSI Art text editor for drawing in the
Linux/Unix/macOS terminal, with animation, 256 and 16 colors, Unicode and
CP437, and customizable themes.
'';
homepage = "https://github.com/cmang/durdraw/";
license = lib.licenses.bsd3;
};
}

View File

@@ -0,0 +1,25 @@
{ stdenv
, cmake
, fetchFromGitHub
, gd
}:
stdenv.mkDerivation (final: {
pname = "libansilove";
version = "1.4.2";
src = fetchFromGitHub {
owner = "ansilove";
repo = "libansilove";
rev = final.version;
hash = "sha256-kbQ7tbQbJ8zYhdbfiVZY26woyR4NNzqjCJ/5nrunlWs=";
};
nativeBuildInputs = [
cmake
];
buildInputs = [
gd
];
})

21
pkgs/nbb/default.nix Normal file
View File

@@ -0,0 +1,21 @@
{ bun
, nodejs
, stdenv
}:
stdenv.mkDerivation (final: {
pname = "nbb";
version = "1.3.200";
src = ./nbb-${final.version}.tar.gz;
buildInputs = [
bun
nodejs
];
installPhase = ''
mkdir -p $out
cp -r lib bin $out
'';
})

BIN
pkgs/nbb/nbb-1.3.200.tar.gz Normal file

Binary file not shown.

19
pkgs/vtf2png/default.nix Normal file
View File

@@ -0,0 +1,19 @@
{ stdenv, libpng, fetchFromGitHub }:
stdenv.mkDerivation {
pname = "vtf2png";
version = "e74a1f";
src = fetchFromGitHub {
owner = "eXeC64";
repo = "vtf2png";
rev = "e74a1fd24b760a0339ec4d498d0b9fef75d847ff";
hash = "sha256-/tfhTMQNBh6RVe55QyYjG3ns0w0/E/afF7aB2lAp/f4=";
};
buildInputs = [
libpng
];
installPhase = ''
mkdir -p $out/bin
mv vtf2png $out/bin
'';
}