nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 fetchFromGitHub,
3 lib,
4 libiconv,
5 stdenv,
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 pname = "id3";
10 version = "0.81";
11
12 src = fetchFromGitHub {
13 owner = "squell";
14 repo = "id3";
15 rev = finalAttrs.version;
16 hash = "sha256-+h1wwgTB7CpbjyUAK+9BNRhmy83D+1I+cZ70E1m3ENk=";
17 };
18
19 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
20
21 makeFlags = [ "prefix=$(out)" ];
22
23 meta = {
24 description = "Portable command-line mass tagger";
25 homepage = "https://squell.github.io/id3/";
26 license = lib.licenses.bsd2;
27 maintainers = with lib.maintainers; [ jecaro ];
28 platforms = lib.platforms.unix;
29 mainProgram = "id3";
30 };
31})