Unverified Commit c33a4c60 authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

iscc: fix link issue (#515784)

parents 08209a39 ed33a0dc
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -9,13 +9,13 @@

let
  version = "6.4.1";
  majorVersion = builtins.substring 0 1 version;
  tagVersion = lib.replaceStrings [ "." ] [ "_" ] version;
in
stdenvNoCC.mkDerivation rec {
  pname = "iscc";
  inherit version;
  src = fetchurl {
    url = "https://files.jrsoftware.org/is/${majorVersion}/innosetup-${version}.exe";
    url = "https://github.com/jrsoftware/issrc/releases/download/is-${tagVersion}/innosetup-${version}.exe";
    hash = "sha256-9Bdg4fGuFdIIm7arFi4hcguSrnUG7XBmezkgAGPWjjQ=";
  };
  nativeBuildInputs = [
@@ -24,12 +24,15 @@ stdenvNoCC.mkDerivation rec {
  ];
  unpackPhase = ''
    runHook preUnpack

    innoextract $src

    runHook postUnpack
  '';
  dontBuild = true;
  installPhase = ''
    runHook preInstall

    mkdir -p "$out/bin"
    cp -r ./app/* "$out/bin"

@@ -62,7 +65,7 @@ stdenvNoCC.mkDerivation rec {
    homepage = "https://jrsoftware.org/isinfo.php";
    changelog = "https://jrsoftware.org/files/is6-whatsnew.htm";
    license = lib.licenses.unfreeRedistributable;
    maintainers = [ ];
    maintainers = with lib.maintainers; [ liberodark ];
    mainProgram = "iscc";
    platforms = wineWow64Packages.stable.meta.platforms;
  };