summary refs log tree commit diff
path: root/pkgs/top-level/dotnet-packages.nix
diff options
context:
space:
mode:
authorSamuel Ainsworth <skainsworth@gmail.com>2021-05-23 08:07:31 -0700
committerGitHub <noreply@github.com>2021-05-23 17:07:31 +0200
commit02c595ebdb4f9767c8efc1718a1e886aba728822 (patch)
tree8fb7a133e2cf553868285cbb9c2650271cfb3575 /pkgs/top-level/dotnet-packages.nix
parentebd50426066421e6527fde0c39596f4e9261d353 (diff)
downloadnixpkgs-02c595ebdb4f9767c8efc1718a1e886aba728822.tar
nixpkgs-02c595ebdb4f9767c8efc1718a1e886aba728822.tar.gz
nixpkgs-02c595ebdb4f9767c8efc1718a1e886aba728822.tar.bz2
nixpkgs-02c595ebdb4f9767c8efc1718a1e886aba728822.tar.lz
nixpkgs-02c595ebdb4f9767c8efc1718a1e886aba728822.tar.xz
nixpkgs-02c595ebdb4f9767c8efc1718a1e886aba728822.tar.zst
nixpkgs-02c595ebdb4f9767c8efc1718a1e886aba728822.zip
Prefer `pname` and `version` in `mkDerivation`s instead of `name` (#123438)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Co-authored-by: nixpkgs-review <nixpkgs-review@example.com>
Diffstat (limited to 'pkgs/top-level/dotnet-packages.nix')
-rw-r--r--pkgs/top-level/dotnet-packages.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/pkgs/top-level/dotnet-packages.nix b/pkgs/top-level/dotnet-packages.nix
index f1eaff5ec87..53af113eb30 100644
--- a/pkgs/top-level/dotnet-packages.nix
+++ b/pkgs/top-level/dotnet-packages.nix
@@ -847,13 +847,12 @@ let self = dotnetPackages // overrides; dotnetPackages = with self; {
   # };
 
   NDeskOptions = stdenv.mkDerivation rec {
-    baseName = "NDesk.Options";
+    pname = "NDesk.Options";
     version = "0.2.1";
-    name = "${baseName}-${version}";
 
     src = fetchurl {
-      name = "${baseName}-${version}.tar.gz";
-      url = "http://www.ndesk.org/archive/ndesk-options/ndesk-options-0.2.1.tar.gz";
+      name = "${pname}-${version}.tar.gz";
+      url = "http://www.ndesk.org/archive/ndesk-options/ndesk-options-${version}.tar.gz";
       sha256 = "1y25bfapafwmifakjzyb9c70qqpvza8g5j2jpf08j8wwzkrb6r28";
     };