From dfb307257694dc274b6b24bf39085fd2c1a3303d Mon Sep 17 00:00:00 2001 From: genga Date: Thu, 20 Feb 2025 13:23:58 +0300 Subject: [PATCH 1/4] notonoto-35: init at 0.0.3 --- pkgs/by-name/no/notonoto-35/package.nix | 58 +++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 pkgs/by-name/no/notonoto-35/package.nix diff --git a/pkgs/by-name/no/notonoto-35/package.nix b/pkgs/by-name/no/notonoto-35/package.nix new file mode 100644 index 000000000000..b228769dad89 --- /dev/null +++ b/pkgs/by-name/no/notonoto-35/package.nix @@ -0,0 +1,58 @@ +{ + lib, + fetchFromGitHub, + stdenvNoCC, + fontforge, + python3, +}: + +let + python3' = python3.withPackages ( + ps: with ps; [ + fonttools + ttfautohint-py + ] + ); +in + +stdenvNoCC.mkDerivation rec { + pname = "notonoto-35"; + version = "0.0.3"; + + src = fetchFromGitHub { + owner = "yuru7"; + repo = "NOTONOTO"; + tag = "v${version}"; + hash = "sha256-1dbx4yC8gL41OEAE/LNDyoDb4xhAwV5h8oRmdlPULUo="; + }; + + nativeBuildInputs = [ + fontforge + python3' + ]; + + buildPhase = '' + runHook preBuild + + fontforge --script fontforge_script.py --35 + python3 ./fonttools_script.py + + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + + install -Dm444 build/*.ttf -t $out/share/fonts/truetype/notonoto-35 + + runHook postInstall + ''; + + meta = { + description = "Programming font that combines Noto Sans Mono and Noto Sans JP"; + homepage = "https://github.com/yuru7/NOTONOTO"; + license = lib.licenses.ofl; + maintainers = with lib.maintainers; [ genga898 ]; + platforms = lib.platforms.all; + }; +} From cbe4fad8c2b80aef68512e4c58cc040d456a705a Mon Sep 17 00:00:00 2001 From: genga Date: Thu, 20 Feb 2025 13:24:16 +0300 Subject: [PATCH 2/4] notonoto-console: init at 0.0.3 --- pkgs/by-name/no/notonoto-console/package.nix | 58 ++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 pkgs/by-name/no/notonoto-console/package.nix diff --git a/pkgs/by-name/no/notonoto-console/package.nix b/pkgs/by-name/no/notonoto-console/package.nix new file mode 100644 index 000000000000..5eff724b672a --- /dev/null +++ b/pkgs/by-name/no/notonoto-console/package.nix @@ -0,0 +1,58 @@ +{ + lib, + fetchFromGitHub, + stdenvNoCC, + fontforge, + python3, +}: + +let + python3' = python3.withPackages ( + ps: with ps; [ + fonttools + ttfautohint-py + ] + ); +in + +stdenvNoCC.mkDerivation rec { + pname = "notonoto-console"; + version = "0.0.3"; + + src = fetchFromGitHub { + owner = "yuru7"; + repo = "NOTONOTO"; + tag = "v${version}"; + hash = "sha256-1dbx4yC8gL41OEAE/LNDyoDb4xhAwV5h8oRmdlPULUo="; + }; + + nativeBuildInputs = [ + fontforge + python3' + ]; + + buildPhase = '' + runHook preBuild + + fontforge --script fontforge_script.py --console + python3 ./fonttools_script.py + + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + + install -Dm444 build/*.ttf -t $out/share/fonts/truetype/notonoto-console + + runHook postInstall + ''; + + meta = { + description = "Programming font that combines Noto Sans Mono and Noto Sans JP"; + homepage = "https://github.com/yuru7/NOTONOTO"; + license = lib.licenses.ofl; + maintainers = with lib.maintainers; [ genga898 ]; + platforms = lib.platforms.all; + }; +} From 6eec2b42d6850d6850dfcbdca7919df127f93f13 Mon Sep 17 00:00:00 2001 From: genga Date: Thu, 20 Feb 2025 13:25:43 +0300 Subject: [PATCH 3/4] notonoto-hs-35: init at 0.0.3 --- pkgs/by-name/no/notonoto-hs-35/package.nix | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 pkgs/by-name/no/notonoto-hs-35/package.nix diff --git a/pkgs/by-name/no/notonoto-hs-35/package.nix b/pkgs/by-name/no/notonoto-hs-35/package.nix new file mode 100644 index 000000000000..6a487c143a60 --- /dev/null +++ b/pkgs/by-name/no/notonoto-hs-35/package.nix @@ -0,0 +1,58 @@ +{ + lib, + fetchFromGitHub, + stdenvNoCC, + fontforge, + python3, +}: + +let + python3' = python3.withPackages ( + ps: with ps; [ + fonttools + ttfautohint-py + ] + ); +in + +stdenvNoCC.mkDerivation rec { + pname = "notonoto-hs-35"; + version = "0.0.3"; + + src = fetchFromGitHub { + owner = "yuru7"; + repo = "NOTONOTO"; + tag = "v${version}"; + hash = "sha256-1dbx4yC8gL41OEAE/LNDyoDb4xhAwV5h8oRmdlPULUo="; + }; + + nativeBuildInputs = [ + fontforge + python3' + ]; + + buildPhase = '' + runHook preBuild + + fontforge --script fontforge_script.py --hidden-zenkaku-space --35 + python3 ./fonttools_script.py + + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + + install -Dm444 build/*.ttf -t $out/share/fonts/truetype/notonoto-hs-35 + + runHook postInstall + ''; + + meta = { + description = "Programming font that combines Noto Sans Mono and Noto Sans JP"; + homepage = "https://github.com/yuru7/NOTONOTO"; + license = lib.licenses.ofl; + maintainers = with lib.maintainers; [ genga898 ]; + platforms = lib.platforms.all; + }; +} From 78b6d0edff7bfcbff04514ee6e7fa3df2bc87382 Mon Sep 17 00:00:00 2001 From: genga Date: Thu, 20 Feb 2025 13:25:57 +0300 Subject: [PATCH 4/4] notonoto-hs-console: init at 0.0.3 --- .../no/notonoto-hs-console/package.nix | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 pkgs/by-name/no/notonoto-hs-console/package.nix diff --git a/pkgs/by-name/no/notonoto-hs-console/package.nix b/pkgs/by-name/no/notonoto-hs-console/package.nix new file mode 100644 index 000000000000..6394fdc6b842 --- /dev/null +++ b/pkgs/by-name/no/notonoto-hs-console/package.nix @@ -0,0 +1,58 @@ +{ + lib, + fetchFromGitHub, + stdenvNoCC, + fontforge, + python3, +}: + +let + python3' = python3.withPackages ( + ps: with ps; [ + fonttools + ttfautohint-py + ] + ); +in + +stdenvNoCC.mkDerivation rec { + pname = "notonoto-hs-console"; + version = "0.0.3"; + + src = fetchFromGitHub { + owner = "yuru7"; + repo = "NOTONOTO"; + tag = "v${version}"; + hash = "sha256-1dbx4yC8gL41OEAE/LNDyoDb4xhAwV5h8oRmdlPULUo="; + }; + + nativeBuildInputs = [ + fontforge + python3' + ]; + + buildPhase = '' + runHook preBuild + + fontforge --script fontforge_script.py --hidden-zenkaku-space --console + python3 ./fonttools_script.py + + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + + install -Dm444 build/*.ttf -t $out/share/fonts/truetype/notonoto-hs-console + + runHook postInstall + ''; + + meta = { + description = "Programming font that combines Noto Sans Mono and Noto Sans JP"; + homepage = "https://github.com/yuru7/NOTONOTO"; + license = lib.licenses.ofl; + maintainers = with lib.maintainers; [ genga898 ]; + platforms = lib.platforms.all; + }; +}