1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/packages/stag.nix

50 lines
822 B
Nix
Raw Normal View History

2025-10-06 12:54:43 +02:00
{
lib,
stdenv,
fetchFromGitHub,
ncurses,
taglib,
zlib,
}:
2025-12-25 08:33:18 +01:00
let
2025-10-06 12:54:43 +02:00
version = "1.0";
2025-12-25 08:33:18 +01:00
in
stdenv.mkDerivation {
pname = "stag";
version = version;
2025-10-06 12:54:43 +02:00
src = fetchFromGitHub {
owner = "smabie";
repo = "stag";
rev = "v${version}";
hash = "sha256-IWb6ZbPlFfEvZogPh8nMqXatrg206BTV2DYg7BMm7R4=";
};
buildInputs = [
ncurses
taglib
zlib
];
buildPhase = ''
make all
'';
2025-12-25 08:49:09 +01:00
doCheck = true;
2025-10-06 12:54:43 +02:00
installPhase = ''
mkdir -p $out/bin
cp stag $out/bin/
mkdir -p $out/man/man1
mv stag.1 $out/man/man1/
'';
meta = {
description = "public domain utf8 curses based audio file tagger";
homepage = "https://github.com/smabie/stag";
license = lib.licenses.publicDomain;
maintainers = [ lib.maintainers.kmein ];
platforms = lib.platforms.unix;
};
}