mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
Merge pull request #86310 from marius851000/ctrtool
ctrtool: 0.16 -> 0.7 and fix cross compiling
This commit is contained in:
commit
28ee64cd0d
@ -2,22 +2,23 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "ctrtool";
|
pname = "ctrtool";
|
||||||
version = "0.16";
|
version = "0.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jakcron";
|
owner = "jakcron";
|
||||||
repo = "Project_CTR";
|
repo = "Project_CTR";
|
||||||
rev = "v${version}";
|
rev = "ctrtool-v${version}";
|
||||||
sha256 = "1n3j3fd1bqd39v5bdl9mhq4qdrcl1k4ib1yzl3qfckaz3y8bkrap";
|
sha256 = "07aayck82w5xcp3si35d7ghybmrbqw91fqqvmbpjrjcixc6m42z7";
|
||||||
};
|
};
|
||||||
|
|
||||||
sourceRoot = "source/ctrtool";
|
sourceRoot = "source/ctrtool";
|
||||||
|
|
||||||
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "CXX=${stdenv.cc.targetPrefix}c++"];
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
installPhase = "
|
installPhase = "
|
||||||
mkdir $out/bin -p
|
mkdir $out/bin -p
|
||||||
cp ctrtool $out/bin/ctrtool
|
cp ctrtool${stdenv.hostPlatform.extensions.executable} $out/bin/
|
||||||
";
|
";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user