Skip to content

Commit b0c205a

Browse files
committed
mp3blaster: modernize
1 parent 8b6dc21 commit b0c205a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

pkgs/by-name/mp/mp3blaster/package.nix

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
SDL,
99
}:
1010

11-
stdenv.mkDerivation rec {
11+
stdenv.mkDerivation (finalAttrs: {
1212
pname = "mp3blaster";
1313
version = "3.2.6";
1414

1515
src = fetchFromGitHub {
1616
owner = "stragulus";
1717
repo = "mp3blaster";
18-
rev = "v${version}";
19-
sha256 = "0pzwml3yhysn8vyffw9q9p9rs8gixqkmg4n715vm23ib6wxbliqs";
18+
tag = "v${finalAttrs.version}";
19+
hash = "sha256-Gke6OjcrDlF3CceSVyfu8SGd0004cef8RlZ76Aet/F8=";
2020
};
2121

2222
patches = [
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
2525
(fetchpatch {
2626
name = "ncurses-6.3.patch";
2727
url = "https://github.com/stragulus/mp3blaster/commit/62168cba5eaba6ffe56943552837cf033cfa96ed.patch";
28-
sha256 = "088l27kl1l58lwxfnw5x2n64sdjy925ycphni3icwag7zvpj0xz1";
28+
hash = "sha256-4Xcg7/7nKc7iiBZe5otIXjZNjBW9cOs6p6jQQOcRFCE=";
2929
})
3030
];
3131

@@ -44,11 +44,11 @@ stdenv.mkDerivation rec {
4444
]
4545
);
4646

47-
meta = with lib; {
47+
meta = {
4848
description = "Audio player for the text console";
4949
homepage = "http://www.mp3blaster.org/";
50-
license = licenses.gpl2;
51-
maintainers = with maintainers; [ earldouglas ];
52-
platforms = with platforms; linux ++ darwin;
50+
license = lib.licenses.gpl2;
51+
maintainers = with lib.maintainers; [ earldouglas ];
52+
platforms = with lib.platforms; linux ++ darwin;
5353
};
54-
}
54+
})

0 commit comments

Comments
 (0)