Skip to content

Commit bd68f8b

Browse files
ibbempmbittner
authored andcommitted
nix: Handle shallow repositories
1 parent abf1547 commit bd68f8b

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

default.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@ pkgs.stdenv.mkDerivation rec {
1616
src = with pkgs.lib.fileset;
1717
toSource {
1818
root = ./.;
19-
fileset = gitTrackedWith {} ./.;
19+
# This should be `gitTracked ./.`. However, this currently doesn't accept
20+
# shallow repositories as used in GitHub CI.
21+
fileset =
22+
(import (sources.nixpkgs + "/lib/fileset/internal.nix") {inherit (pkgs) lib;})._fromFetchGit
23+
"gitTracked"
24+
"argument"
25+
./.
26+
{shallow = true;};
2027
};
2128

2229
nativeBuildInputs = with pkgs; [

0 commit comments

Comments
 (0)