summary refs log tree commit diff
path: root/pkgs/applications/science/math/calc
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2023-04-23 20:46:56 -0300
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-04-25 18:17:30 -0300
commit88d37af1e95e31ab21dd6832846424b7fde60876 (patch)
treeb3e07c9de12134818ee9a2b2f4a4978722127103 /pkgs/applications/science/math/calc
parentc3a3f7737a43ea66ec58436c8105f2729173e1a5 (diff)
calc: use overlay-style overridable attributes
Diffstat (limited to 'pkgs/applications/science/math/calc')
-rw-r--r--pkgs/applications/science/math/calc/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/applications/science/math/calc/default.nix b/pkgs/applications/science/math/calc/default.nix
index c345a396814b2..13ccdc86808e7 100644
--- a/pkgs/applications/science/math/calc/default.nix
+++ b/pkgs/applications/science/math/calc/default.nix
@@ -8,14 +8,14 @@
 , enableReadline ? true
 }:
 
-stdenv.mkDerivation rec {
+stdenv.mkDerivation (finalAttrs: {
   pname = "calc";
   version = "2.14.1.5";
 
   src = fetchurl {
     urls = [
-      "https://github.com/lcn2/calc/releases/download/v${version}/calc-${version}.tar.bz2"
-      "http://www.isthe.com/chongo/src/calc/calc-${version}.tar.bz2"
+      "https://github.com/lcn2/calc/releases/download/v${finalAttrs.version}/calc-${finalAttrs.version}.tar.bz2"
+      "http://www.isthe.com/chongo/src/calc/calc-${finalAttrs.version}.tar.bz2"
     ];
     hash = "sha256-bPacYnEJBdQsIP+Z8D/ODskyEcvhgAy3ra4wasYMo6A=";
   };
@@ -58,7 +58,7 @@ stdenv.mkDerivation rec {
   meta = {
     homepage = "http://www.isthe.com/chongo/tech/comp/calc/";
     description = "C-style arbitrary precision calculator";
-    changelog = "https://github.com/lcn2/calc/blob/v${version}/CHANGES";
+    changelog = "https://github.com/lcn2/calc/blob/v${finalAttrs.version}/CHANGES";
     # The licensing situation depends on readline (see section 3 of the LGPL)
     # If linked against readline then GPLv2 otherwise LGPLv2.1
     license = if enableReadline
@@ -67,4 +67,4 @@ stdenv.mkDerivation rec {
     maintainers = with lib.maintainers; [ matthewbauer ];
     platforms = lib.platforms.all;
   };
-}
+})