2024-08-07 14:47:32 -04:00
|
|
|
{
|
2024-11-20 16:13:12 -05:00
|
|
|
perSystem,
|
|
|
|
inputs,
|
2024-08-07 14:47:32 -04:00
|
|
|
}: let
|
2024-11-20 16:13:12 -05:00
|
|
|
inherit (inputs.nixpkgs.lib) concatStringsSep stringToCharacters substring tail toUpper;
|
2024-08-07 14:47:32 -04:00
|
|
|
|
|
|
|
mkVersion = src: "0.0.0+" + src.shortRev;
|
2024-09-24 16:12:57 -04:00
|
|
|
capitalise = str: (toUpper (substring 0 1 str) + (concatStringsSep "" (tail (stringToCharacters str))));
|
2024-08-07 14:47:32 -04:00
|
|
|
in
|
2024-11-20 16:13:12 -05:00
|
|
|
{inherit mkVersion capitalise;}
|
|
|
|
// (import ./flake-lib.nix inputs)
|
|
|
|
// perSystem (pkgs:
|
|
|
|
import ./pkgs.nix {inherit pkgs mkVersion capitalise inputs;})
|