diff options
author | Bernardo Meurer <bernardo@meurer.org> | 2022-08-02 22:10:42 -0700 |
---|---|---|
committer | Bernardo Meurer <bernardo@meurer.org> | 2022-08-02 22:10:42 -0700 |
commit | bea08cad450c543d8807efa0f13e0b0b249f5c8a (patch) | |
tree | 61370c6511546dec95bfc1e88679faf2debeeaa7 /pkgs/development/tools/resolve-march-native | |
parent | 7d38d537c075459757bf0735f2e557b1825322d5 (diff) |
resolve-march-native: init @ unstable-2022-07-29
Diffstat (limited to 'pkgs/development/tools/resolve-march-native')
-rw-r--r-- | pkgs/development/tools/resolve-march-native/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/tools/resolve-march-native/default.nix b/pkgs/development/tools/resolve-march-native/default.nix new file mode 100644 index 0000000000000..963e5ad120980 --- /dev/null +++ b/pkgs/development/tools/resolve-march-native/default.nix @@ -0,0 +1,30 @@ +{ python3Packages +, fetchFromGitHub +, gcc +, lib +}: + +python3Packages.buildPythonApplication rec { + pname = "resolve-march-native"; + version = "unstable-2022-07-29"; + + src = fetchFromGitHub { + owner = "hartwork"; + repo = pname; + rev = "acfc87875e19ae9d4b0e5c9de1d21bc259415336"; + hash = "sha256-Hdy8/fJXQV3p51EggyLqE2t00O0phwZjbqPhhMQKT5E="; + }; + + # 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; + }; +} |