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)

authored by

volth and committed by
Franz Pletz
9f11dcc6 bee42ef5

+11 -12
+11 -12
pkgs/data/fonts/marathi-cursive/default.nix
··· 1 - { stdenv, fetchurl, p7zip }: 2 3 - stdenv.mkDerivation rec { 4 - name = "marathi-cursive-${version}"; 5 version = "1.2"; 6 7 - src = fetchurl { 8 - url = "https://github.com/MihailJP/MarathiCursive/releases/download/${version}/MarathiCursive-${version}.7z"; 9 - sha256 = "0zhqkkfkz5mhfz8xv305s16h80p9v1iva829fznxd2c44ngyplmc"; 10 - }; 11 12 - buildInputs = [ p7zip ]; 13 - 14 - unpackCmd = "7z x $curSrc"; 15 16 - installPhase = '' 17 mkdir -p $out/share/fonts/marathi-cursive 18 cp -v *.otf *.ttf $out/share/fonts/marathi-cursive 19 mkdir -p $out/share/doc/${name} 20 cp -v README *.txt $out/share/doc/${name} 21 ''; 22 23 meta = with stdenv.lib; { 24 - homepage = https://github.com/MihailJP/marathi-cursive; 25 description = "Modi script font with Graphite and OpenType support"; 26 maintainers = with maintainers; [ mathnerd314 ]; 27 license = licenses.mit; # It's the M+ license, M+ is MIT(-ish)
··· 1 + { stdenv, fetchzip, p7zip }: 2 3 + let 4 version = "1.2"; 5 + in fetchzip rec { 6 + name = "marathi-cursive-${version}"; 7 8 + url = "https://github.com/MihailJP/MarathiCursive/releases/download/${version}/MarathiCursive-${version}.7z"; 9 10 + postFetch = '' 11 + ${p7zip}/bin/7z x $downloadedFile 12 + cd MarathiCursive 13 14 mkdir -p $out/share/fonts/marathi-cursive 15 cp -v *.otf *.ttf $out/share/fonts/marathi-cursive 16 mkdir -p $out/share/doc/${name} 17 cp -v README *.txt $out/share/doc/${name} 18 ''; 19 20 + sha256 = "0fhz2ixrkm523qlx5pnwyzxgb1cfiiwrhls98xg8a5l3sypn1g8v"; 21 + 22 meta = with stdenv.lib; { 23 + homepage = https://github.com/MihailJP/MarathiCursive; 24 description = "Modi script font with Graphite and OpenType support"; 25 maintainers = with maintainers; [ mathnerd314 ]; 26 license = licenses.mit; # It's the M+ license, M+ is MIT(-ish)