about summary refs log tree commit diff
path: root/mkdeps
diff options
context:
space:
mode:
authorEmma@Rory& <root@rory.gay>2023-07-24 20:57:56 +0200
committerEmma@Rory& <root@rory.gay>2023-07-24 20:57:56 +0200
commit1fdcb808607ce0b4d55d6fcf14e7111f1d15f143 (patch)
tree451cdc1202d42c2da90a7e15e1f113f77f7006ab /mkdeps
parentStart of MRU Desktop (diff)
downloadMatrixUtils-1fdcb808607ce0b4d55d6fcf14e7111f1d15f143.tar.xz
Start of nix flake
Diffstat (limited to 'mkdeps')
-rwxr-xr-xmkdeps11
1 files changed, 11 insertions, 0 deletions
diff --git a/mkdeps b/mkdeps
new file mode 100755
index 0000000..b577e03
--- /dev/null
+++ b/mkdeps
@@ -0,0 +1,11 @@
+#!/usr/bin/env nix-shell
+#!nix-shell -i "bash -x" -p bash nuget-to-nix
+find . | grep -E '(bin|obj)$' | while read d; do rm -rf $d & done
+wait
+
+MSBUILDLIVELOGGER=false dotnet restore --packages=packages -v n --ucr
+nuget-to-nix packages | tee deps.nix
+du -sh packages
+rm -rf packages
+nix flake update
+git add deps.nix flake.lock