From 9d27b71588a4f530d3c24c2ec364287f5eb29092 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sun, 18 Apr 2021 10:40:33 +0200 Subject: [PATCH] pkgs/cyanrip: Init This also replaces abcde in user environment with cyanrip. --- pkgs/cyanrip/default.nix | 35 ++++++++++++++++++++++++++++++++ pkgs/default.nix | 2 ++ users/simon/modules/programs.nix | 2 +- 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 pkgs/cyanrip/default.nix diff --git a/pkgs/cyanrip/default.nix b/pkgs/cyanrip/default.nix new file mode 100644 index 0000000..862b5c5 --- /dev/null +++ b/pkgs/cyanrip/default.nix @@ -0,0 +1,35 @@ +{ lib +, stdenv +, fetchFromGitHub +, meson +, ninja +, pkg-config +, ffmpeg +, libcdio +, libcdio-paranoia +, curl +, libmusicbrainz5 +}: + +stdenv.mkDerivation rec { + pname = "cyanrip"; + version = "0.7.0"; + + src = fetchFromGitHub { + owner = "cyanreg"; + repo = pname; + rev = "v${version}"; + sha256 = "0lgb92sfpf4w3nj5vlj6j7931mj2q3cmcx1app9snf853jk9ahmw"; + }; + + nativeBuildInputs = [ meson ninja pkg-config ]; + buildInputs = [ ffmpeg libcdio libcdio-paranoia curl libmusicbrainz5 ]; + + meta = with lib; { + description = "Fully featured CD ripping program able to take out most of the tedium"; + homepage = "https://github.com/cyanreg/cyanrip"; + license = with licenses; [ lgpl21Plus lgpl3Plus ]; # some files have lgpl21Plus header, repo has lgpl3Plus LICENSE + maintainers = with maintainers; [ sbruder ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/default.nix b/pkgs/default.nix index 89ed1f0..2fdf617 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -48,4 +48,6 @@ in }) ]; }); + + cyanrip = callPackage ./cyanrip { }; } diff --git a/users/simon/modules/programs.nix b/users/simon/modules/programs.nix index 796ca16..ce6bd5c 100644 --- a/users/simon/modules/programs.nix +++ b/users/simon/modules/programs.nix @@ -118,7 +118,7 @@ in waifu2x-photo # waifu2x-converter-cpp for real life photos # audio - abcde # cd ripper + cyanrip # cd ripper flac # flac encoder opusTools # opus encoder shntool # split audio with cue