diff options
author | Samuel Ainsworth <skainsworth@gmail.com> | 2021-05-23 08:07:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-23 17:07:31 +0200 |
commit | 02c595ebdb4f9767c8efc1718a1e886aba728822 (patch) | |
tree | 8fb7a133e2cf553868285cbb9c2650271cfb3575 /pkgs/top-level/dotnet-packages.nix | |
parent | ebd50426066421e6527fde0c39596f4e9261d353 (diff) |
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.nix | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pkgs/top-level/dotnet-packages.nix b/pkgs/top-level/dotnet-packages.nix index f1eaff5ec8725..53af113eb3077 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"; }; |