move gitSource into dragnpkgs
This commit is contained in:
parent
7d1268e86d
commit
d697854a7e
12
package.nix
12
package.nix
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
mkShell,
|
mkShell,
|
||||||
|
gitSource,
|
||||||
|
|
||||||
buildDunePackage,
|
buildDunePackage,
|
||||||
ppxlib,
|
ppxlib,
|
||||||
|
@ -14,17 +15,10 @@
|
||||||
enableShell ? false
|
enableShell ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
buildDunePackage rec {
|
||||||
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 {
|
|
||||||
pname = "ppx_unicode";
|
pname = "ppx_unicode";
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
src = sourceSet;
|
src = gitSource { root = ./.; };
|
||||||
|
|
||||||
minimalOCamlVersion = "5.1";
|
minimalOCamlVersion = "5.1";
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
|
|
Loading…
Reference in New Issue