first commit

This commit is contained in:
Jeffrey C. Ollie 2023-03-28 10:43:52 -05:00
commit 12967f4bfc
No known key found for this signature in database
GPG key ID: F936E4DCB7E25F15
2 changed files with 89 additions and 0 deletions

42
flake.lock Normal file
View file

@ -0,0 +1,42 @@
{
"nodes": {
"flake-utils": {
"locked": {
"lastModified": 1678901627,
"narHash": "sha256-U02riOqrKKzwjsxc/400XnElV+UtPUQWpANPlyazjH0=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "93a2b84fc4b70d9e089d029deacc3583435c2ed6",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1679944645,
"narHash": "sha256-e5Qyoe11UZjVfgRfwNoSU57ZeKuEmjYb77B9IVW7L/M=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "4bb072f0a8b267613c127684e099a70e1f6ff106",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-unstable",
"type": "indirect"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

47
flake.nix Normal file
View file

@ -0,0 +1,47 @@
{
description = "Figlet Fonts";
inputs = {
nixpkgs = {
url = "nixpkgs/nixos-unstable";
};
flake-utils = {
url = "github:numtide/flake-utils";
};
};
outputs = { self, nixpkgs, flake-utils, ... }@inputs:
flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = import nixpkgs {
inherit system;
};
in
{
packages = {
figlet-fonts =
let
pname = "figlet-fonts";
version = "1.5.2";
in
pkgs.stdenvNoCC.mkDerivation {
inherit pname version;
src = pkgs.fetchFromGitHub {
owner = "patorjk";
repo = "figlet.js";
rev = version;
sha256 = "sha256-bDnIGCnSe4qXkRRXF6Tu1p0n/6rUIiHGpoKyV54fb4Q=";
};
dontPatch = true;
dontConfigure = true;
dontBuild = true;
dontFixup = true;
installPhase = ''
install -d $out/share/figlet
install -m 0444 fonts/* $out/share/figlet
'';
};
};
}
);
}