diff options
| author | Rafael Fernández López <ereslibre@ereslibre.es> | 2023-06-13 14:31:54 +0200 |
|---|---|---|
| committer | Rafael Fernández López <ereslibre@ereslibre.es> | 2023-06-14 15:07:55 +0200 |
| commit | 234e9918adc6fe0aad5e5590b772a7c764900175 (patch) | |
| tree | f7a048f3255a1f6aa54dab94b587cef4a1c8976a | |
| parent | Merge pull request #237745 from NixOS/backport-237722-to-release-23.05 (diff) | |
| download | nixpkgs-234e9918adc6fe0aad5e5590b772a7c764900175.tar.gz | |
unison: use finalAttrs pattern
(cherry picked from commit 81fc11e2edc320cfac0d4d2a6cd1cb3a547857ec)
| -rw-r--r-- | pkgs/development/compilers/unison/default.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/development/compilers/unison/default.nix b/pkgs/development/compilers/unison/default.nix index 7c90ee3227fe..0a8a5ff8b997 100644 --- a/pkgs/development/compilers/unison/default.nix +++ b/pkgs/development/compilers/unison/default.nix @@ -4,19 +4,19 @@ , less }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "unison-code-manager"; milestone_id = "M4i"; - version = "1.0.${milestone_id}-alpha"; + version = "1.0.${finalAttrs.milestone_id}-alpha"; src = if (stdenv.isDarwin) then fetchurl { - url = "https://github.com/unisonweb/unison/releases/download/release/${milestone_id}/ucm-macos.tar.gz"; + url = "https://github.com/unisonweb/unison/releases/download/release/${finalAttrs.milestone_id}/ucm-macos.tar.gz"; hash = "sha256-1Qp1SB5rCsVimZzRo1NOX8HBoMEGlIycJPm3zGTUuOw="; } else fetchurl { - url = "https://github.com/unisonweb/unison/releases/download/release/${milestone_id}/ucm-linux.tar.gz"; + url = "https://github.com/unisonweb/unison/releases/download/release/${finalAttrs.milestone_id}/ucm-linux.tar.gz"; hash = "sha256-Qx8vO/Vaz0VdCGXwIwRQIuMlp44hxCroQ7m7Y+m7aXk="; }; @@ -44,4 +44,4 @@ stdenv.mkDerivation rec { maintainers = [ maintainers.virusdave ]; platforms = [ "x86_64-darwin" "x86_64-linux" "aarch64-darwin" ]; }; -} +}) |
