Compare commits

..

2 Commits

Author SHA1 Message Date
21592dc57d modify font install to match that of most fonts on nix github 2024-10-12 19:40:31 +02:00
16cf16e2c4 update flake description 2024-10-12 17:54:24 +02:00
4 changed files with 16 additions and 4 deletions

View File

@@ -11,7 +11,11 @@ pkgs.stdenv.mkDerivation {
}; };
installPhase = '' installPhase = ''
install -Dm444 -t $out/share/fonts/truetype $src/*.ttf runHook preInstall
install -D -m444 -t $out/share/fonts/truetype $src/*.ttf
runHook postInstall
''; '';
meta = with pkgs.lib; { meta = with pkgs.lib; {

View File

@@ -11,7 +11,11 @@ pkgs.stdenv.mkDerivation {
}; };
installPhase = '' installPhase = ''
install -Dm444 -t $out/share/fonts/truetype $src/*.ttf runHook preInstall
install -D -m444 -t $out/share/fonts/truetype $src/*.ttf
runHook postInstall
''; '';
meta = with pkgs.lib; { meta = with pkgs.lib; {

View File

@@ -1,5 +1,5 @@
{ {
description = "A very basic flake"; description = "A flake that installs SMC fonts. It follows unstable.";
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";

View File

@@ -11,7 +11,11 @@ pkgs.stdenv.mkDerivation {
}; };
installPhase = '' installPhase = ''
install -Dm444 -t $out/share/fonts/opentype $src/*.otf runHook preInstall
install -D -m444 -t $out/share/fonts/opentype $src/*.otf
runHook postInstall
''; '';
meta = with pkgs.lib; { meta = with pkgs.lib; {