Files
Ihar HrachyshkaandWolfgang Walther 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

24 lines
498 B
Nix

{ lib, mkDerivation }:
mkDerivation {
path = "cddl/lib/libspl";
extraPaths = [
"cddl/compat/opensolaris/include"
"sys/contrib/openzfs/include"
"sys/contrib/openzfs/lib/libspl"
"sys/contrib/openzfs/module/icp/include"
"sys/modules/zfs/zfs_config.h"
];
# Without a prefix it will try to put object files in nonexistent directories
preBuild = ''
export MAKEOBJDIRPREFIX=$TMP/obj
'';
alwaysKeepStatic = true;
meta = {
license = lib.licenses.cddl;
};
}