Files
nixpkgs/pkgs/development/ocaml-modules/npy/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

36 lines
662 B
Nix

{
lib,
buildDunePackage,
fetchFromGitHub,
numpy,
camlzip,
}:
buildDunePackage rec {
pname = "npy";
version = "0.0.9";
duneVersion = "3";
minimalOCamlVersion = "4.06";
src = fetchFromGitHub {
owner = "LaurentMazare";
repo = "${pname}-ocaml";
rev = version;
hash = "sha256:1fryglkm20h6kdqjl55b7065b34bdg3g3p6j0jv33zvd1m5888m1";
};
propagatedBuildInputs = [ camlzip ];
nativeCheckInputs = [ numpy ];
doCheck = true;
meta = {
inherit (src.meta) homepage;
description = "OCaml implementation of the Npy format spec";
maintainers = [ lib.maintainers.bcdarwin ];
license = lib.licenses.asl20;
};
}