move gitSource into dragnpkgs
This commit is contained in:
parent
9e5d7739e0
commit
4e76f70147
12
package.nix
12
package.nix
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
mkShell,
|
mkShell,
|
||||||
|
gitSource,
|
||||||
|
|
||||||
buildDunePackage,
|
buildDunePackage,
|
||||||
ptime,
|
ptime,
|
||||||
|
@ -15,17 +16,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 = "xlog";
|
pname = "xlog";
|
||||||
version = "0.0.2";
|
version = "0.0.2";
|
||||||
src = sourceSet;
|
src = gitSource { root = ./.; };
|
||||||
|
|
||||||
minimalOCamlVersion = "5.1";
|
minimalOCamlVersion = "5.1";
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
|
|
Loading…
Reference in New Issue