about summary refs log tree commit diff
path: root/nixpkgs/pkgs/build-support/dotnet/nuget-to-nix/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/build-support/dotnet/nuget-to-nix/default.nix')
-rw-r--r--nixpkgs/pkgs/build-support/dotnet/nuget-to-nix/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/build-support/dotnet/nuget-to-nix/default.nix b/nixpkgs/pkgs/build-support/dotnet/nuget-to-nix/default.nix
new file mode 100644
index 000000000000..3fdda4ac68d3
--- /dev/null
+++ b/nixpkgs/pkgs/build-support/dotnet/nuget-to-nix/default.nix
@@ -0,0 +1,35 @@
+{ lib
+, runCommandLocal
+, runtimeShell
+, substituteAll
+, nix
+, coreutils
+, jq
+, yq
+, curl
+, gnugrep
+, gawk
+, dotnet-sdk
+}:
+
+runCommandLocal "nuget-to-nix" {
+  script = substituteAll {
+    src = ./nuget-to-nix.sh;
+    inherit runtimeShell;
+
+    binPath = lib.makeBinPath [
+      nix
+      coreutils
+      jq
+      yq
+      curl
+      gnugrep
+      gawk
+      dotnet-sdk
+    ];
+  };
+
+  meta.description = "Convert a nuget packages directory to a lockfile for buildDotnetModule";
+} ''
+  install -Dm755 $script $out/bin/nuget-to-nix
+''