From 09852dfc4cad0b18226ff329086d8844daaed4fe Mon Sep 17 00:00:00 2001 From: marius david Date: Mon, 4 May 2020 12:00:33 +0200 Subject: [PATCH] ctrtool: 0.16 -> 0.7 and fix cross compiling --- pkgs/tools/archivers/ctrtool/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/archivers/ctrtool/default.nix b/pkgs/tools/archivers/ctrtool/default.nix index 97abeadffc09..4b8eb4dfab2e 100644 --- a/pkgs/tools/archivers/ctrtool/default.nix +++ b/pkgs/tools/archivers/ctrtool/default.nix @@ -2,22 +2,23 @@ stdenv.mkDerivation rec { pname = "ctrtool"; - version = "0.16"; + version = "0.7"; src = fetchFromGitHub { owner = "jakcron"; repo = "Project_CTR"; - rev = "v${version}"; - sha256 = "1n3j3fd1bqd39v5bdl9mhq4qdrcl1k4ib1yzl3qfckaz3y8bkrap"; + rev = "ctrtool-v${version}"; + sha256 = "07aayck82w5xcp3si35d7ghybmrbqw91fqqvmbpjrjcixc6m42z7"; }; sourceRoot = "source/ctrtool"; + makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "CXX=${stdenv.cc.targetPrefix}c++"]; enableParallelBuilding = true; installPhase = " mkdir $out/bin -p - cp ctrtool $out/bin/ctrtool + cp ctrtool${stdenv.hostPlatform.extensions.executable} $out/bin/ "; meta = with stdenv.lib; {