Create flake.nix
This commit is contained in:
parent
013e1a7145
commit
e0c88c2e07
1 changed files with 47 additions and 0 deletions
47
flake.nix
Normal file
47
flake.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
{
|
||||||
|
description = "GOST Type fonts flake";
|
||||||
|
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = { self, nixpkgs, ... }:
|
||||||
|
let
|
||||||
|
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
||||||
|
|
||||||
|
gostfont = pkgs.stdenvNoCC.mkDerivation rec {
|
||||||
|
pname = "gosttypefont";
|
||||||
|
version = "1.0.0";
|
||||||
|
|
||||||
|
src = fetchzip {
|
||||||
|
url = "http://kafpi.local/GOST Type.zip";
|
||||||
|
sha256 = "";
|
||||||
|
stripRoot = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
dontPatch = true;
|
||||||
|
dontConfigure = true;
|
||||||
|
dontBuild = true;
|
||||||
|
doCheck = false;
|
||||||
|
dontFixup = true;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
install -Dm644 -t $out/share/fonts/truetype/ *.ttf
|
||||||
|
install -Dm644 -t $out/share/fonts/truetype/ *.ttf
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Typeface made for engineers";
|
||||||
|
homepage = "https://ascon.ru/";
|
||||||
|
license = licenses.unfree;
|
||||||
|
maintainers = with maintainers; [ gregorybednov ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
packages.x86_64-linux.gostfont = gostfont;
|
||||||
|
defaultPackage.x86_64-linux = gostfont;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue