move gitSource into dragnpkgs

This commit is contained in:
xenia 2024-05-14 16:06:55 -07:00
parent 7d1268e86d
commit d697854a7e
1 changed files with 3 additions and 9 deletions

View File

@ -1,6 +1,7 @@
{
lib,
mkShell,
gitSource,
buildDunePackage,
ppxlib,
@ -14,17 +15,10 @@
enableShell ? false
}:
let
sourceRoot = ./.;
fs = lib.fileset;
sourceFiles = fs.difference
(fs.gitTracked sourceRoot)
(fs.fileFilter (file: file.hasExt "nix") sourceRoot);
sourceSet = fs.toSource { root = sourceRoot; fileset = sourceFiles; };
in buildDunePackage rec {
buildDunePackage rec {
pname = "ppx_unicode";
version = "0.1.0";
src = sourceSet;
src = gitSource { root = ./.; };
minimalOCamlVersion = "5.1";
dontStrip = true;