diff --git a/matrix/matrix-media-repo/source.nix b/matrix/matrix-media-repo/source.nix index 76a588e..fd45823 100644 --- a/matrix/matrix-media-repo/source.nix +++ b/matrix/matrix-media-repo/source.nix @@ -2,5 +2,6 @@ fetchgit { url = "https://github.com/turt2live/matrix-media-repo"; rev = "3184dbc7720fc103aaf4704be894eac69535e887"; - sha256 = "1j6y7alr60mmj5h014qmpz9a5qjv8cm61andwdacb0dqjjbvsm0z"; + sha256 = "1c1a9hbmq3zjrxfi84i3lwwjld0sn38f8rxwnvsbf8k6ii3jp6d6"; + leaveDotGit = true; } diff --git a/matrix/matrix-media-repo/update.sh b/matrix/matrix-media-repo/update.sh index 5a34404..c02f9b2 100755 --- a/matrix/matrix-media-repo/update.sh +++ b/matrix/matrix-media-repo/update.sh @@ -14,15 +14,17 @@ function cleanup { trap cleanup EXIT echo "Fetching source code $REVISION from $URL" -JSON=$(nix-prefetch-git --url "$URL" --rev "$REVISION" 2> $WORK_DIR/nix-prefetch-git.out) +JSON=$(nix-prefetch-git --url "$URL" --rev "$REVISION" --leave-dotGit 2> $WORK_DIR/nix-prefetch-git.out) SHA=$(echo $JSON | jq -r .sha256) SOURCE_DIR=$(grep '^path is' $WORK_DIR/nix-prefetch-git.out | sed 's/^path is //') cat > source.nix << EOF -{ fetchgit }: fetchgit { - url = "$URL"; - rev = "$REVISION"; - sha256 = "$SHA"; +{fetchgit}: +fetchgit { + url = "$URL"; + rev = "$REVISION"; + sha256 = "$SHA"; + leaveDotGit = true; } EOF