commit 468d51f24d3dd22c543e657c359fb333ff4df726 Author: biscuit Date: Tue Jun 3 16:59:54 2025 -0500 first commit diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..3a4baec --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1747744144, + "narHash": "sha256-W7lqHp0qZiENCDwUZ5EX/lNhxjMdNapFnbErcbnP11Q=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "2795c506fe8fb7b03c36ccb51f75b6df0ab2553f", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..cc57caf --- /dev/null +++ b/flake.nix @@ -0,0 +1,82 @@ +{ + description = "A flake giving access to fonts that I use, outside of nixpkgs."; + + inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + inputs.flake-utils.url = "github:numtide/flake-utils"; + + outputs = { + self, + nixpkgs, + flake-utils, + }: + flake-utils.lib.eachDefaultSystem (system: let + pkgs = nixpkgs.legacyPackages.${system}; + in { + defaultPackage = pkgs.symlinkJoin { + name = "myfonts-0.1.4"; + paths = + builtins.attrValues + self.packages.${system}; # Add font derivation names here + }; + + packages.gillsans = pkgs.stdenvNoCC.mkDerivation { + name = "gillsans-font"; + dontConfigue = true; + src = pkgs.fetchzip { + url = "https://freefontsvault.s3.amazonaws.com/2020/02/Gill-Sans-Font-Family.zip"; + sha256 = "sha256-YcZUKzRskiqmEqVcbK/XL6ypsNMbY49qJYFG3yZVF78="; + stripRoot = false; + }; + installPhase = '' + mkdir -p $out/share/fonts + cp -R $src $out/share/fonts/opentype/ + ''; + meta = {description = "A Gill Sans Font Family derivation.";}; + }; + + packages.palatino = pkgs.stdenvNoCC.mkDerivation { + name = "palatino-font"; + dontConfigue = true; + src = pkgs.fetchzip { + url = "https://www.dfonts.org/wp-content/uploads/fonts/Palatino.zip"; + sha256 = "sha256-FBA8Lj2yJzrBQnazylwUwsFGbCBp1MJ1mdgifaYches="; + stripRoot = false; + }; + installPhase = '' + mkdir -p $out/share/fonts + cp -R $src/Palatino $out/share/fonts/truetype/ + ''; + meta = {description = "The Palatino Font Family derivation.";}; + }; + packages.monolisa = pkgs.stdenvNoCC.mkDerivation { + name = "monolisa-font"; + dontConfigue = true; + src = ./.; + + installPhase = '' + mkdir -p $out/share/fonts + cp -R $src/fonts/Monolisa $out/share/fonts/truetype + ''; + meta = { + description = "The Monolisa Font Family derivation."; + licenses.free = false; + }; + }; + packages.rubik = pkgs.stdenvNoCC.mkDerivation { + name = "rubik-font"; + dontConfigue = true; + src = ./.; + + installPhase = '' + mkdir -p $out/share/fonts + cp -R $src/fonts/Rubik $out/share/fonts/truetype + ''; + meta = { + description = "The Monolisa Font Family derivation."; + licenses.free = false; + }; + }; + + + }); +} diff --git a/fonts/Monolisa/MonoLisa-italic.ttf b/fonts/Monolisa/MonoLisa-italic.ttf new file mode 100644 index 0000000..03ddab1 Binary files /dev/null and b/fonts/Monolisa/MonoLisa-italic.ttf differ diff --git a/fonts/Monolisa/MonoLisa-normal.ttf b/fonts/Monolisa/MonoLisa-normal.ttf new file mode 100644 index 0000000..2faef6f Binary files /dev/null and b/fonts/Monolisa/MonoLisa-normal.ttf differ diff --git a/fonts/Rubik/Rubik-Italic-VariableFont_wght.ttf b/fonts/Rubik/Rubik-Italic-VariableFont_wght.ttf new file mode 100644 index 0000000..36dbec5 Binary files /dev/null and b/fonts/Rubik/Rubik-Italic-VariableFont_wght.ttf differ diff --git a/fonts/Rubik/Rubik-VariableFont_wght.ttf b/fonts/Rubik/Rubik-VariableFont_wght.ttf new file mode 100644 index 0000000..bbab349 Binary files /dev/null and b/fonts/Rubik/Rubik-VariableFont_wght.ttf differ diff --git a/result b/result new file mode 120000 index 0000000..09ca52d --- /dev/null +++ b/result @@ -0,0 +1 @@ +/nix/store/8ikf2lgx9z2r8q9hy1zlvbsp3ak5mygj-myfonts-0.1.4 \ No newline at end of file