Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions pkgs/by-name/oc/oclgrind/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
llvmPackages_22,
readline,
python3,
}:

stdenv.mkDerivation rec {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {

update to use the finalAttrs pattern (nit, feel free to disregard)

pname = "oclgrind";
version = "26.03.1";

src = fetchFromGitHub {
owner = "jrprice";
repo = "oclgrind";
rev = "v${version}";
sha256 = "sha256-skly0JVwbqsC3YVwR+rUNlhNN2IdrcMsnTYh6HRE22s=";
};

nativeBuildInputs = [ cmake ];
nativeCheckInputs = [ python3 ];
buildInputs = [
llvmPackages_22.llvm
llvmPackages_22.clang-unwrapped
readline
];

cmakeFlags = [
"-DCLANG_ROOT=${llvmPackages_22.clang-unwrapped}"
(lib.cmakeBool "CMAKE_SKIP_RPATH" true)
];

meta = with lib; {
description = "OpenCL device simulator and debugger";
homepage = "https://github.com/jrprice/oclgrind";
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = with maintainers; [ athas ];
};
}
1 change: 0 additions & 1 deletion pkgs/top-level/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1578,7 +1578,6 @@ mapAliases {
oathToolkit = throw "'oathToolkit' has been renamed to/replaced by 'oath-toolkit'"; # Converted to throw 2025-10-27
obb = throw "obb has been removed because it has been marked as broken since 2023."; # Added 2025-10-11
obliv-c = throw "obliv-c has been removed from Nixpkgs, as it has been unmaintained upstream for 4 years and does not build with supported GCC versions"; # Added 2025-08-18
oclgrind = throw "oclgrind has been removed, as it does not build with supported LLVM versions"; # Added 2025-08-10
oguri = throw "'oguri' has been removed from nixpkgs because the upstream repository was archived. Please see https://github.com/vilhalmer/oguri#notice-unmaintained for upstream's suggested replacements."; # Added 2026-05-04
oil = throw "'oil' has been renamed to/replaced by 'oils-for-unix'"; # Converted to throw 2025-10-27
olaris-server = throw "'olaris-server' has been removed as it failed to build since 2024"; # Added 2026-01-15
Expand Down
Loading