forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.nix
More file actions
51 lines (41 loc) · 1.12 KB
/
Copy pathpackage.nix
File metadata and controls
51 lines (41 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
clangStdenv,
lib,
fetchFromGitHub,
cmake,
}:
clangStdenv.mkDerivation rec {
pname = "armips";
version = "0.11.0";
src = fetchFromGitHub {
owner = "Kingcom";
repo = "armips";
rev = "v${version}";
sha256 = "sha256-L+Uxww/WtvDJn1xZqoqA6Pkzq/98sy1qTxZbv6eEjbA=";
};
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail c++11 c++17 \
--replace-fail "cmake_minimum_required(VERSION 2.8)" "cmake_minimum_required(VERSION 3.13)" # done by https://github.com/Kingcom/armips/commit/e1ed5bf0f4565250b98b0ddfb9112f15dc8e8e3b upstream, patch not directly compatible
'';
nativeBuildInputs = [ cmake ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp armips $out/bin
runHook postInstall
'';
doCheck = true;
checkPhase = ''
runHook preCheck
./armipstests ..
runHook postCheck
'';
meta = {
homepage = "https://github.com/Kingcom/armips";
description = "Assembler for various ARM and MIPS platforms";
mainProgram = "armips";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ marius851000 ];
};
}