From a3c418040504e18b8eb9bb50d9973318461850a6 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Wed, 6 Nov 2024 17:31:18 -0600 Subject: [PATCH] antiprism: modernize --- pkgs/by-name/an/antiprism/package.nix | 35 +++++++++++++++++---------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/pkgs/by-name/an/antiprism/package.nix b/pkgs/by-name/an/antiprism/package.nix index 624042676d2b..63a0993084e2 100644 --- a/pkgs/by-name/an/antiprism/package.nix +++ b/pkgs/by-name/an/antiprism/package.nix @@ -1,24 +1,33 @@ -{ lib, stdenv -, fetchFromGitHub -, autoreconfHook -, libX11 -, libGL -, libGLU -, libglut }: +{ + lib, + stdenv, + fetchFromGitHub, + autoreconfHook, + libX11, + libGL, + libGLU, + libglut, +}: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "antiprism"; version = "0.32"; src = fetchFromGitHub { owner = "antiprism"; - repo = pname; - rev = version; - sha256 = "sha256-0FkaIsZixYHP45H0gytnzlpRvNd8mMYjW22w15z3RH8="; + repo = "antiprism"; + rev = "refs/tags/${finalAttrs.version}"; + hash = "sha256-0FkaIsZixYHP45H0gytnzlpRvNd8mMYjW22w15z3RH8="; }; nativeBuildInputs = [ autoreconfHook ]; - buildInputs = [ libX11 libGLU libGL libglut ]; + + buildInputs = [ + libX11 + libGLU + libGL + libglut + ]; meta = with lib; { homepage = "https://www.antiprism.com"; @@ -26,4 +35,4 @@ stdenv.mkDerivation rec { license = with licenses; [ mit ]; maintainers = with maintainers; [ AndersonTorres ]; }; -} +})