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