Unverified Commit d95613b4 authored by Caleb Maclennan's avatar Caleb Maclennan
Browse files

sile: remove unnecessary buildInputs, normalize source name and hash key

parent d39e6db4
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -18,8 +18,6 @@
  icu,
  fontconfig,
  libiconv,
  stylua,
  typos,
  # FONTCONFIG_FILE
  makeFontsConf,
  gentium,
@@ -35,14 +33,15 @@ stdenv.mkDerivation (finalAttrs: {

  src = fetchurl {
    url = "https://github.com/sile-typesetter/sile/releases/download/v${finalAttrs.version}/sile-${finalAttrs.version}.tar.zst";
    sha256 = "sha256-PjU6Qfn+FTL3vt66mkIAn/uXWMPPlH8iK6B264ekIis=";
    hash = "sha256-PjU6Qfn+FTL3vt66mkIAn/uXWMPPlH8iK6B264ekIis=";
  };

  cargoDeps = rustPlatform.fetchCargoTarball {
    inherit (finalAttrs) src;
    inherit (finalAttrs) pname version src;
    nativeBuildInputs = [ zstd ];
    # so the cargo fetcher won't try to run the `./configure` script
    dontConfigure = true;
    hash = "sha256-m21SyGtHwVCz+77pYq48Gjnrf/TLCLCf/IQ7AnZk+fo=";
    hash = "sha256-iPkXEUC4U1m/ComIDo/J5kwkmM1QdowioNtnSnmMhJ0=";
  };

  nativeBuildInputs = [
@@ -63,8 +62,6 @@ stdenv.mkDerivation (finalAttrs: {
    icu
    fontconfig
    libiconv
    stylua
    typos
  ];

  configureFlags =