first
This commit is contained in:
commit
11931e9e7f
14 changed files with 229 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/result*
|
BIN
files/aptos-black-italic-maisfontes.d702.zip
Normal file
BIN
files/aptos-black-italic-maisfontes.d702.zip
Normal file
Binary file not shown.
BIN
files/aptos-black-maisfontes.cd65.zip
Normal file
BIN
files/aptos-black-maisfontes.cd65.zip
Normal file
Binary file not shown.
BIN
files/aptos-bold-maisfontes.d829.zip
Normal file
BIN
files/aptos-bold-maisfontes.d829.zip
Normal file
Binary file not shown.
BIN
files/aptos-extrabold-italic-maisfontes.f4cf.zip
Normal file
BIN
files/aptos-extrabold-italic-maisfontes.f4cf.zip
Normal file
Binary file not shown.
BIN
files/aptos-extrabold-maisfontes.3c51.zip
Normal file
BIN
files/aptos-extrabold-maisfontes.3c51.zip
Normal file
Binary file not shown.
BIN
files/aptos-italic-maisfontes.6f24.zip
Normal file
BIN
files/aptos-italic-maisfontes.6f24.zip
Normal file
Binary file not shown.
BIN
files/aptos-light-italic-maisfontes.1ddd.zip
Normal file
BIN
files/aptos-light-italic-maisfontes.1ddd.zip
Normal file
Binary file not shown.
BIN
files/aptos-light-maisfontes.2b30.zip
Normal file
BIN
files/aptos-light-maisfontes.2b30.zip
Normal file
Binary file not shown.
BIN
files/aptos-maisfontes.85e8.zip
Normal file
BIN
files/aptos-maisfontes.85e8.zip
Normal file
Binary file not shown.
BIN
files/aptos-semibold-italic-maisfontes.8f69.zip
Normal file
BIN
files/aptos-semibold-italic-maisfontes.8f69.zip
Normal file
Binary file not shown.
BIN
files/aptos-semibold-maisfontes.5201.zip
Normal file
BIN
files/aptos-semibold-maisfontes.5201.zip
Normal file
Binary file not shown.
153
flake.lock
Normal file
153
flake.lock
Normal file
|
@ -0,0 +1,153 @@
|
||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"bash": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1678247195,
|
||||||
|
"narHash": "sha256-m/wSwlSket+hob3JED4XUvoWJLtW7yhtOiZrlRDMShs=",
|
||||||
|
"ref": "refs/heads/main",
|
||||||
|
"rev": "e7a00dcc0e75bc3ef6856bdd94d7d809245f5636",
|
||||||
|
"revCount": 1,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.ocjtech.us/jeff/nixos-bash-prompt-builder.git"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.ocjtech.us/jeff/nixos-bash-prompt-builder.git"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1689068808,
|
||||||
|
"narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils_2": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems_2"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1689068808,
|
||||||
|
"narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nix-github-actions": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"poetry2nix",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1688870561,
|
||||||
|
"narHash": "sha256-4UYkifnPEw1nAzqqPOTL2MvWtm3sNGw1UTYTalkTcGY=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nix-github-actions",
|
||||||
|
"rev": "165b1650b753316aa7f1787f3005a8d2da0f5301",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nix-github-actions",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1692134936,
|
||||||
|
"narHash": "sha256-Z68O969cioC6I3k/AFBxsuEwpJwt4l9fzwuAMUhCCs0=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "bfd953b2c6de4f550f75461bcc5768b6f966be10",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"id": "nixpkgs",
|
||||||
|
"ref": "nixos-23.05",
|
||||||
|
"type": "indirect"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"poetry2nix": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils_2",
|
||||||
|
"nix-github-actions": "nix-github-actions",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1692186369,
|
||||||
|
"narHash": "sha256-JlyuIfrxkgP71OQrvrAk1cgnIkJxYEFLiXM/5KiPkbg=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "poetry2nix",
|
||||||
|
"rev": "fcdb6dafc7af8cde37454fa6fc84e7e0391e2c06",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "poetry2nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"bash": "bash",
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
|
"nixpkgs": "nixpkgs",
|
||||||
|
"poetry2nix": "poetry2nix"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"systems": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"systems_2": {
|
||||||
|
"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
|
||||||
|
}
|
75
flake.nix
Normal file
75
flake.nix
Normal file
|
@ -0,0 +1,75 @@
|
||||||
|
{
|
||||||
|
description = "NetBox Maintenance";
|
||||||
|
|
||||||
|
inputs = {
|
||||||
|
nixpkgs = {
|
||||||
|
url = "nixpkgs/nixos-23.05";
|
||||||
|
};
|
||||||
|
flake-utils = {
|
||||||
|
url = "github:numtide/flake-utils";
|
||||||
|
};
|
||||||
|
bash = {
|
||||||
|
url = "git+https://git.ocjtech.us/jeff/nixos-bash-prompt-builder.git";
|
||||||
|
};
|
||||||
|
poetry2nix = {
|
||||||
|
url = "github:nix-community/poetry2nix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = { self, nixpkgs, poetry2nix, flake-utils, bash, ... }@inputs:
|
||||||
|
flake-utils.lib.eachDefaultSystem
|
||||||
|
(system:
|
||||||
|
let
|
||||||
|
pkgs = import nixpkgs {
|
||||||
|
inherit system;
|
||||||
|
};
|
||||||
|
makeFontPackage = (
|
||||||
|
name: src:
|
||||||
|
pkgs.stdenvNoCC.mkDerivation {
|
||||||
|
inherit name src;
|
||||||
|
sourceRoot = ".";
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkgs.unzip
|
||||||
|
];
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/share/fonts/truetype
|
||||||
|
cp -v *.ttf $out/share/fonts/truetype
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
in
|
||||||
|
{
|
||||||
|
packages = {
|
||||||
|
aptos-normal = makeFontPackage "aptos" ./files/aptos-maisfontes.85e8.zip;
|
||||||
|
aptos-black-italic = makeFontPackage "aptos-black-italic" ./files/aptos-black-italic-maisfontes.d702.zip;
|
||||||
|
aptos-black = makeFontPackage "aptos-black" ./files/aptos-black-maisfontes.cd65.zip;
|
||||||
|
aptos-bold = makeFontPackage "aptos-bold" ./files/aptos-bold-maisfontes.d829.zip;
|
||||||
|
aptos-extrabold-italic = makeFontPackage "aptos-extrabold-italic" ./files/aptos-extrabold-italic-maisfontes.f4cf.zip;
|
||||||
|
aptos-extrabold = makeFontPackage "aptos-extrabold" ./files/aptos-extrabold-maisfontes.3c51.zip;
|
||||||
|
aptos-italic = makeFontPackage "aptos-italic" ./files/aptos-italic-maisfontes.6f24.zip;
|
||||||
|
aptos-light-italic = makeFontPackage "aptos-light-italic" ./files/aptos-light-italic-maisfontes.1ddd.zip;
|
||||||
|
aptos-light = makeFontPackage "aptos-light" ./files/aptos-light-maisfontes.2b30.zip;
|
||||||
|
aptos-semibold-italic = makeFontPackage "aptos-semibold-italic" ./files/aptos-semibold-italic-maisfontes.8f69.zip;
|
||||||
|
aptos-semibold = makeFontPackage "aptos-semibold" ./files/aptos-semibold-maisfontes.5201.zip;
|
||||||
|
aptos = pkgs.symlinkJoin {
|
||||||
|
name = "aptos";
|
||||||
|
paths = [
|
||||||
|
self.packages.${system}.aptos-normal
|
||||||
|
self.packages.${system}.aptos-black-italic
|
||||||
|
self.packages.${system}.aptos-black
|
||||||
|
self.packages.${system}.aptos-bold
|
||||||
|
self.packages.${system}.aptos-extrabold-italic
|
||||||
|
self.packages.${system}.aptos-extrabold
|
||||||
|
self.packages.${system}.aptos-italic
|
||||||
|
self.packages.${system}.aptos-light-italic
|
||||||
|
self.packages.${system}.aptos-light
|
||||||
|
self.packages.${system}.aptos-semibold-italic
|
||||||
|
self.packages.${system}.aptos-semibold
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
Loading…
Reference in a new issue