Commit for generation 220

This commit is contained in:
2024-10-10 03:53:44 -04:00
parent 4398bfefb5
commit 25525c533d
311 changed files with 2566 additions and 8784 deletions

View File

@@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1726937504,
"narHash": "sha256-bvGoiQBvponpZh8ClUcmJ6QnsNKw0EMrCQJARK3bI1c=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "9357f4f23713673f310988025d9dc261c20e70c6",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

View File

@@ -0,0 +1,47 @@
{
description = "Toilet Configuration with Extra Fonts";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, ... }@inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
# Fetch extra fonts from GitHub
extraFonts = pkgs.fetchFromGitHub {
owner = "xero";
repo = "figlet-fonts";
rev = "master"; # Or specify a particular commit/tag
sha256 = "sha256-dAs7N66D2Fpy4/UB5Za1r2qb1iSAJR6TMmau1asxgtY="; # Replace with actual hash
};
in {
packages.${system} = {
default = pkgs.toilet.overrideAttrs (oldAttrs: rec {
buildInputs = oldAttrs.buildInputs or [] ++ [ extraFonts ];
installPhase = ''
make install PREFIX=$out
# Copy the extra fonts into the correct directory
mkdir -p $out/share/figlet
cp -r ${extraFonts}/* $out/share/figlet
'';
});
};
# Define a development shell for testing
devShells.${system} = pkgs.mkShell {
buildInputs = [
pkgs.toilet
extraFonts
];
shellHook = ''
echo "Toilet dev shell with extra fonts"
'';
};
};
}

View File

@@ -0,0 +1 @@
/nix/store/i2ibv054n0ll5p78qabrkb5sxcjzbr2n-toilet-0.3