Files
nixpkgs/pkgs/development/ocaml-modules/magic/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

38 lines
647 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
ocaml,
findlib,
which,
file,
}:
stdenv.mkDerivation rec {
pname = "magic";
version = "0.7.4";
src = fetchFromGitHub {
owner = "Chris00";
repo = "ocaml-magic";
tag = "v${version}";
sha256 = "sha256-rsBMx68UDqmVVsyeZCxIS97A/0JCBM/JOgh60ly1uSs=";
};
createFindlibDestdir = true;
nativeBuildInputs = [ which ];
buildInputs = [
ocaml
findlib
];
propagatedBuildInputs = [ file ];
meta = {
homepage = "https://github.com/Chris00/ocaml-magic";
description = "Bindings for libmagic";
license = lib.licenses.lgpl21Plus;
maintainers = [ ];
};
}