From 48d18fb5174c82c69e84859fe65f1ee8037fd981 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Tue, 17 Oct 2023 04:00:39 +0200 Subject: Desktop stuff --- modules/packages/dotnet-pack.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 modules/packages/dotnet-pack.nix (limited to 'modules/packages/dotnet-pack.nix') 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 {} }: + +#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 -- cgit 1.5.1