nixpkgs/pkgs/development/tools/analysis/oclgrind/default.nix
Robert Schütz d5cceedbd1 python,pythonPackages: make aliases
Since aliases are disallowed in nixpkgs, this makes usage of Python 2
which is EOL more explicit.
2022-01-16 18:39:59 +00:00

29 lines
762 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, llvmPackages, readline, python2 }:
stdenv.mkDerivation rec {
pname = "oclgrind";
version = "19.10";
src = fetchFromGitHub {
owner = "jrprice";
repo = "oclgrind";
rev = "v${version}";
sha256 = "12v5z5x3ls26p3y3yc4mqmh12cazc0nlrwvmfbn6cyg4af9dp0zn";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ llvmPackages.llvm llvmPackages.clang-unwrapped readline python2 ];
cmakeFlags = [
"-DCLANG_ROOT=${llvmPackages.clang-unwrapped}"
];
meta = with lib; {
description = "An OpenCL device simulator and debugger";
homepage = "https://github.com/jrprice/oclgrind";
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = with maintainers; [ athas ];
};
}