blob: cd568d10e17c2f62bbbd956b6091f16d1746376b (
plain) (
blame)
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
|
{ python3Packages
, fetchFromGitHub
, gcc
, lib
}:
python3Packages.buildPythonApplication rec {
pname = "resolve-march-native";
version = "2.2.0";
src = fetchFromGitHub {
owner = "hartwork";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-vJzkVL23fvFO1pGJwdPiqR73K9iNJ6OglVxL5tCVa2U=";
};
# NB: The tool uses gcc at runtime to resolve the -march=native flags
propagatedBuildInputs = [ gcc ];
doCheck = true;
meta = with lib; {
description = "Tool to determine what GCC flags -march=native would resolve into";
homepage = "https://github.com/hartwork/resolve-march-native";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ lovesegfault ];
platforms = platforms.linux;
};
}
|