diff options
author | volth <volth@webmaster.ms> | 2017-08-11 03:57:52 +0000 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2017-08-11 15:28:28 +0200 |
commit | 9f11dcc625be85996348f0e95a27800dcdc4b592 (patch) | |
tree | 86ddeac419897bddd90a41d885ab7a897e598c94 /pkgs/data/fonts/marathi-cursive | |
parent | bee42ef52b3551de862a924166d1903786376b5c (diff) | |
download | nixpkgs-9f11dcc625be85996348f0e95a27800dcdc4b592.tar nixpkgs-9f11dcc625be85996348f0e95a27800dcdc4b592.tar.gz nixpkgs-9f11dcc625be85996348f0e95a27800dcdc4b592.tar.bz2 nixpkgs-9f11dcc625be85996348f0e95a27800dcdc4b592.tar.lz nixpkgs-9f11dcc625be85996348f0e95a27800dcdc4b592.tar.xz nixpkgs-9f11dcc625be85996348f0e95a27800dcdc4b592.tar.zst nixpkgs-9f11dcc625be85996348f0e95a27800dcdc4b592.zip |
marathi-cursive: make the font derivation fixed-output
- [x] homepage fixed - [x] make the font derivation fixed-output (https://github.com/NixOS/nixpkgs/issues/27754)
Diffstat (limited to 'pkgs/data/fonts/marathi-cursive')
-rw-r--r-- | pkgs/data/fonts/marathi-cursive/default.nix | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/pkgs/data/fonts/marathi-cursive/default.nix b/pkgs/data/fonts/marathi-cursive/default.nix index e3f47cb8b0d..48b2f4c516b 100644 --- a/pkgs/data/fonts/marathi-cursive/default.nix +++ b/pkgs/data/fonts/marathi-cursive/default.nix @@ -1,27 +1,26 @@ -{ stdenv, fetchurl, p7zip }: +{ stdenv, fetchzip, p7zip }: -stdenv.mkDerivation rec { - name = "marathi-cursive-${version}"; +let version = "1.2"; +in fetchzip rec { + name = "marathi-cursive-${version}"; - src = fetchurl { - url = "https://github.com/MihailJP/MarathiCursive/releases/download/${version}/MarathiCursive-${version}.7z"; - sha256 = "0zhqkkfkz5mhfz8xv305s16h80p9v1iva829fznxd2c44ngyplmc"; - }; - - buildInputs = [ p7zip ]; + url = "https://github.com/MihailJP/MarathiCursive/releases/download/${version}/MarathiCursive-${version}.7z"; - unpackCmd = "7z x $curSrc"; + postFetch = '' + ${p7zip}/bin/7z x $downloadedFile + cd MarathiCursive - installPhase = '' mkdir -p $out/share/fonts/marathi-cursive cp -v *.otf *.ttf $out/share/fonts/marathi-cursive mkdir -p $out/share/doc/${name} cp -v README *.txt $out/share/doc/${name} ''; + sha256 = "0fhz2ixrkm523qlx5pnwyzxgb1cfiiwrhls98xg8a5l3sypn1g8v"; + meta = with stdenv.lib; { - homepage = https://github.com/MihailJP/marathi-cursive; + homepage = https://github.com/MihailJP/MarathiCursive; description = "Modi script font with Graphite and OpenType support"; maintainers = with maintainers; [ mathnerd314 ]; license = licenses.mit; # It's the M+ license, M+ is MIT(-ish) |