summary refs log tree commit diff
path: root/modules/packages/dotnet-pack.nix
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-10-17 04:00:39 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-10-17 04:15:32 +0200
commit48d18fb5174c82c69e84859fe65f1ee8037fd981 (patch)
treed09e7bb3a193a65f25e91a9d3323650a24ab21b1 /modules/packages/dotnet-pack.nix
parentUpdate lockfile (diff)
downloadRory-Open-Architecture-48d18fb5174c82c69e84859fe65f1ee8037fd981.tar.xz
Desktop stuff
Diffstat (limited to 'modules/packages/dotnet-pack.nix')
-rw-r--r--modules/packages/dotnet-pack.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/packages/dotnet-pack.nix b/modules/packages/dotnet-pack.nix
new file mode 100644
index 0000000..27c419d
--- /dev/null
+++ b/modules/packages/dotnet-pack.nix
@@ -0,0 +1,26 @@
+{ pkgs ? import <nixpkgs> {} }:
+
+#pkgs.stdenv.mkDerivation {
+#  name = "dotnet-pack";
+#  dontUnpack = true;
+#  buildInputs = with pkgs; [ dotnet-sdk dotnet-sdk_7 dotnet-sdk_8 ];
+#
+#  # Define the build phase
+#  buildPhase = ''
+#    mkdir -p $out
+#    ln -sf ${pkgs.dotnet-sdk}/* $out/
+#    ln -sf ${pkgs.dotnet-sdk_7}/* $out/
+#    ln -sf ${pkgs.dotnet-sdk_8}/* $out/
+#  '';
+#}
+
+pkgs.symlinkJoin {
+  name = "dotnet-pack";
+  paths = [ pkgs.dotnet-sdk_8 pkgs.dotnet-sdk_7 pkgs.dotnet-sdk ];
+  postBuild = ''
+    rm -rfv $out/bin
+    rm -rfv $out/dotnet
+    cp -rv ${pkgs.dotnet-sdk_8}/dotnet $out/
+    cp -rv ${pkgs.dotnet-sdk_8}/bin $out/
+  '';
+}
\ No newline at end of file