diff options
author | Brian Picciano <me@mediocregopher.com> | 2024-06-06 12:26:58 +0200 |
---|---|---|
committer | Brian Picciano <me@mediocregopher.com> | 2024-06-06 12:26:58 +0200 |
commit | 2a52d32e0d998828e94c0137edb4500f6002da78 (patch) | |
tree | 4ffea7d10ec703fe2a25e19fcfdd95efb59e703e /nix | |
parent | 27f0056f73ca2c3ab5e16d72c189a595be8eae85 (diff) |
Add bandcamp-dl
Diffstat (limited to 'nix')
-rw-r--r-- | nix/bandcamp-dl.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/nix/bandcamp-dl.nix b/nix/bandcamp-dl.nix new file mode 100644 index 0000000..b55b539 --- /dev/null +++ b/nix/bandcamp-dl.nix @@ -0,0 +1,29 @@ +{ + python3Packages, + makeWrapper, +}: let + version = "v0.0.13"; + src = builtins.fetchGit { + url = "https://github.com/iheanyi/bandcamp-dl.git"; + rev = "fe2eafae4bfc901d2760aef9d4cc6db60528b4b4"; + }; +in + python3Packages.buildPythonApplication { + inherit version src; + pname = "bandcamp-dl"; + propagatedBuildInputs = [ + python3Packages.beautifulsoup4 + python3Packages.demjson3 + python3Packages.mutagen + python3Packages.requests + python3Packages.unicode-slugify + python3Packages.docopt + python3Packages.lxml + python3Packages.mock + ]; + nativeBuildInputs = [ makeWrapper ]; + postInstall = '' + wrapProgram "$out/bin/bandcamp-dl" \ + --add-flags "--base-dir=/home/mediocregopher/Downloads --template='%{artist}_%{album}/%{track}_%{title}'" + ''; + } |