From 3a856243be8806696b14964f26bd11118a76fb4b Mon Sep 17 00:00:00 2001 From: AndersonTorres Date: Tue, 15 Nov 2022 10:18:10 -0300 Subject: [PATCH] jwasm: add changelog page Also, use the new overlay-style overridable attributes. --- pkgs/development/compilers/jwasm/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/development/compilers/jwasm/default.nix b/pkgs/development/compilers/jwasm/default.nix index ebc5cad5f933..5a3f60ac1a1c 100644 --- a/pkgs/development/compilers/jwasm/default.nix +++ b/pkgs/development/compilers/jwasm/default.nix @@ -3,14 +3,14 @@ , fetchFromGitHub }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "jwasm"; version = "2.15"; src = fetchFromGitHub { owner = "Baron-von-Riedesel"; repo = "JWasm"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; hash = "sha256-ef4uEtEpnqYGhFmxuefJ40zyOuHsiPOLpH/52i7a7KI="; }; @@ -32,12 +32,13 @@ stdenv.mkDerivation rec { ''; meta = with lib; { - broken = stdenv.isDarwin; homepage = "https://github.com/Baron-von-Riedesel/JWasm/"; description = "A MASM-compatible x86 assembler"; + changelog = "https://github.com/Baron-von-Riedesel/JWasm/releases/tag/v${finalAttrs.version}"; license = licenses.gpl2Plus; maintainers = with maintainers; [ AndersonTorres ]; platforms = platforms.unix; + broken = stdenv.isDarwin; }; -} +}) # TODO: generalize for Windows builds