nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildDunePackage,
4 fetchurl,
5 fetchpatch,
6 applyPatches,
7}:
8
9buildDunePackage (finalAttrs: {
10 pname = "owl-base";
11 version = "1.2";
12
13 src = applyPatches {
14 src = fetchurl {
15 url = "https://github.com/owlbarn/owl/releases/download/${finalAttrs.version}/owl-${finalAttrs.version}.tbz";
16 hash = "sha256-OBei5DkZIsiiIltOM8qV2mgJJGmU5r8pGjAMgtjKxsU=";
17 };
18
19 patches = [
20 # Compatibility with GCC 15
21 (fetchpatch {
22 url = "https://github.com/owlbarn/owl/commit/3e66ccb0b1d21b73fa703f3d3f416ec0107860a4.patch";
23 hash = "sha256-0bV0ogTvtDoO8kEvE5QcJFRWqOJ1qiXGjXY9Ekp30M0=";
24 })
25 ];
26 };
27
28 minimalOCamlVersion = "4.10";
29
30 meta = {
31 description = "Numerical computing library for Ocaml";
32 homepage = "https://ocaml.xyz";
33 changelog = "https://github.com/owlbarn/owl/releases";
34 platforms = lib.platforms.x86_64 ++ lib.platforms.aarch64;
35 maintainers = [ lib.maintainers.bcdarwin ];
36 license = lib.licenses.mit;
37 };
38})