diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-10-17 04:00:39 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-10-17 04:15:32 +0200 |
commit | 48d18fb5174c82c69e84859fe65f1ee8037fd981 (patch) | |
tree | d09e7bb3a193a65f25e91a9d3323650a24ab21b1 /modules/packages/dotnet-pack.nix | |
parent | Update lockfile (diff) | |
download | Rory-Open-Architecture-48d18fb5174c82c69e84859fe65f1ee8037fd981.tar.xz |
Desktop stuff
Diffstat (limited to 'modules/packages/dotnet-pack.nix')
-rw-r--r-- | modules/packages/dotnet-pack.nix | 26 |
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 |