summary refs log tree commit diff
path: root/pkgs/data/fonts/orbitron/default.nix
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-01-30 10:25:57 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-01-30 10:25:57 +0100
commit7f42f2852980166a4488c82e666253b0d30c01e5 (patch)
treee0889d396f126569b7e46410e3c6cef8ae3c7758 /pkgs/data/fonts/orbitron/default.nix
parent99f5676ba0a0c2d7605b63b2dd1b146c384f42dd (diff)
downloadnixpkgs-7f42f2852980166a4488c82e666253b0d30c01e5.tar
nixpkgs-7f42f2852980166a4488c82e666253b0d30c01e5.tar.gz
nixpkgs-7f42f2852980166a4488c82e666253b0d30c01e5.tar.bz2
nixpkgs-7f42f2852980166a4488c82e666253b0d30c01e5.tar.lz
nixpkgs-7f42f2852980166a4488c82e666253b0d30c01e5.tar.xz
nixpkgs-7f42f2852980166a4488c82e666253b0d30c01e5.tar.zst
nixpkgs-7f42f2852980166a4488c82e666253b0d30c01e5.zip
treewide: convert 43 fonts to stdenvNoCC.mkDerivation
Diffstat (limited to 'pkgs/data/fonts/orbitron/default.nix')
-rw-r--r--pkgs/data/fonts/orbitron/default.nix53
1 files changed, 28 insertions, 25 deletions
diff --git a/pkgs/data/fonts/orbitron/default.nix b/pkgs/data/fonts/orbitron/default.nix
index f4a0a9600a1..973c79f667a 100644
--- a/pkgs/data/fonts/orbitron/default.nix
+++ b/pkgs/data/fonts/orbitron/default.nix
@@ -1,42 +1,45 @@
-{ lib, fetchFromGitHub }:
+{ lib, stdenvNoCC, fetchFromGitHub }:
 
-let
+stdenvNoCC.mkDerivation {
+  pname = "orbitron";
   version = "20110526";
-in fetchFromGitHub {
-  name = "orbitron-${version}";
 
-  owner = "theleagueof";
-  repo = "orbitron";
-  rev = "13e6a52";
+  src = fetchFromGitHub {
+    owner = "theleagueof";
+    repo = "orbitron";
+    rev = "13e6a52";
+    hash = "sha256-zjNPVrDUxcQbrsg1/8fFa6Wenu1yuG/XDfKA7NVZ0rA=";
+  };
+
+  installPhase = ''
+    runHook preInstall
 
-  postFetch = ''
-    tar xf $downloadedFile --strip=1
     install -m444 -Dt $out/share/fonts/opentype/orbitron *.otf
     install -m444 -Dt $out/share/fonts/ttf/orbitron      *.ttf
-  '';
 
-  sha256 = "1y9yzvpqs2v3ssnqk2iiglrh8amgsscnk8vmfgnqgqi9f4dhdvnv";
+    runHook postInstall
+  '';
 
   meta = with lib; {
     homepage = "https://www.theleagueofmoveabletype.com/orbitron";
     downloadPage = "https://www.theleagueofmoveabletype.com/orbitron/download";
     description = "Geometric sans-serif for display purposes by Matt McInerney";
     longDescription = ''
-     Orbitron is a geometric sans-serif typeface intended for display
-     purposes. It features four weights (light, medium, bold, and
-     black), a stylistic alternative, small caps, and a ton of
-     alternate glyphs.
+      Orbitron is a geometric sans-serif typeface intended for display
+      purposes. It features four weights (light, medium, bold, and
+      black), a stylistic alternative, small caps, and a ton of
+      alternate glyphs.
 
-     Orbitron was designed so that graphic designers in the future
-     will have some alternative to typefaces like Eurostile or Bank
-     Gothic. If you’ve ever seen a futuristic sci-fi movie, you have
-     may noticed that all other fonts have been lost or destroyed in
-     the apocalypse that led humans to flee earth. Only those very few
-     geometric typefaces have survived to be used on spaceship
-     exteriors, space station signage, monopolistic corporate
-     branding, uniforms featuring aerodynamic shoulder pads, etc. Of
-     course Orbitron could also be used on the posters for the movies
-     portraying this inevitable future.
+      Orbitron was designed so that graphic designers in the future
+      will have some alternative to typefaces like Eurostile or Bank
+      Gothic. If you’ve ever seen a futuristic sci-fi movie, you have
+      may noticed that all other fonts have been lost or destroyed in
+      the apocalypse that led humans to flee earth. Only those very few
+      geometric typefaces have survived to be used on spaceship
+      exteriors, space station signage, monopolistic corporate
+      branding, uniforms featuring aerodynamic shoulder pads, etc. Of
+      course Orbitron could also be used on the posters for the movies
+      portraying this inevitable future.
     '';
     license = licenses.ofl;
     platforms = platforms.all;