diff --git a/pkgs/tools/misc/ix/default.nix b/pkgs/tools/misc/ix/default.nix index 95b53c3b6ccd..5aba9536786a 100644 --- a/pkgs/tools/misc/ix/default.nix +++ b/pkgs/tools/misc/ix/default.nix @@ -1,25 +1,30 @@ -{ lib, stdenv, fetchurl, makeWrapper, curl }: +{ lib, resholve, fetchurl, runtimeShell, curl }: -stdenv.mkDerivation { +resholve.mkDerivation { pname = "ix"; version = "20190815"; src = fetchurl { url = "http://ix.io/client"; - sha256 = "0xc2s4s1aq143zz8lgkq5k25dpf049dw253qxiav5k7d7qvzzy57"; + hash = "sha256-p/j/Nz7tzLJV7HgUwVsiwN1WxCx4Por+HyRgFTTRgnU="; }; - nativeBuildInputs = [ makeWrapper ]; - dontUnpack = true; installPhase = '' - install -Dm +x $src $out/bin/ix + runHook preInstall + + install -Dm555 $src $out/bin/ix + + runHook postInstall ''; - postFixup = '' - wrapProgram $out/bin/ix --prefix PATH : "${lib.makeBinPath [ curl ]}" - ''; + solutions.default = { + scripts = [ "bin/ix" ]; + interpreter = runtimeShell; + inputs = [ curl ]; + keep."$echo" = true; + }; meta = with lib; { homepage = "http://ix.io";