Unverified Commit 055d4814 authored by Mikael Voss's avatar Mikael Voss
Browse files

xnec2c: use finalAttrs pattern

parent 9fc7dd0d
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -13,12 +13,12 @@

assert (!blas.isILP64) && (!lapack.isILP64);

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "xnec2c";
  version = "4.4.16";

  src = fetchurl {
    url = "https://www.xnec2c.org/releases/${pname}-v${version}.tar.gz";
    url = "https://www.xnec2c.org/releases/${finalAttrs.pname}-v${finalAttrs.version}.tar.gz";
    hash = "sha256-XiZi8pfmfHjGpePkRy/pF1TA+5RdxX4AGuKzG5Wqrmk=";
  };

@@ -45,4 +45,4 @@ stdenv.mkDerivation rec {
    # Darwin support likely to be fixed upstream in the next release
    broken = stdenv.hostPlatform.isDarwin;
  };
}
})