2022-05-07 20:42:01 +00:00
|
|
|
{ lib
|
|
|
|
, callPackage
|
2021-12-18 15:33:00 +00:00
|
|
|
, fetchFromGitHub
|
2014-12-30 21:53:00 +00:00
|
|
|
}:
|
2022-05-09 19:20:20 +00:00
|
|
|
/*
|
|
|
|
** To customize the enabled beets plugins, use the pluginOverrides input to the
|
|
|
|
** derivation.
|
|
|
|
** Examples:
|
|
|
|
**
|
|
|
|
** Disabling a builtin plugin:
|
|
|
|
** beets.override { pluginOverrides = { beatport.enable = false; }; }
|
|
|
|
**
|
|
|
|
** Enabling an external plugin:
|
|
|
|
** beets.override { pluginOverrides = {
|
|
|
|
** alternatives = { enable = true; propagatedBuildInputs = [ beetsPackages.alternatives ]; };
|
|
|
|
** }; }
|
|
|
|
*/
|
2022-05-07 20:42:01 +00:00
|
|
|
lib.makeExtensible (self: {
|
|
|
|
beets = self.beets-stable;
|
|
|
|
|
|
|
|
beets-stable = callPackage ./common.nix rec {
|
|
|
|
version = "1.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "beetbox";
|
|
|
|
repo = "beets";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-fT+rCJJQR7bdfAcmeFRaknmh4ZOP4RCx8MXpq7/D8tM=";
|
|
|
|
};
|
2014-12-30 02:23:37 +00:00
|
|
|
};
|
|
|
|
|
2022-05-07 20:42:01 +00:00
|
|
|
beets-minimal = self.beets.override { disableAllPlugins = true; };
|
|
|
|
|
|
|
|
beets-unstable = callPackage ./common.nix {
|
2022-08-30 00:34:06 +00:00
|
|
|
version = "unstable-2022-08-27";
|
2022-05-07 20:42:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "beetbox";
|
|
|
|
repo = "beets";
|
2022-08-30 00:34:06 +00:00
|
|
|
rev = "50bd693057de472470ab5175fae0cdb5b75811c6";
|
|
|
|
hash = "sha256-91v1StaByG60ryhQqByBXu6sFCjk0qT0nsUPnocSEE4=";
|
2022-05-07 20:42:01 +00:00
|
|
|
};
|
|
|
|
pluginOverrides = {
|
2022-05-10 22:35:46 +00:00
|
|
|
# unstable has a new plugin, so we register it here.
|
2022-05-31 23:00:02 +00:00
|
|
|
limit = { builtin = true; };
|
2022-05-07 20:42:01 +00:00
|
|
|
};
|
2019-12-07 06:08:54 +00:00
|
|
|
};
|
|
|
|
|
2022-05-08 23:23:45 +00:00
|
|
|
alternatives = callPackage ./plugins/alternatives.nix { beets = self.beets-minimal; };
|
|
|
|
copyartifacts = callPackage ./plugins/copyartifacts.nix { beets = self.beets-minimal; };
|
|
|
|
extrafiles = callPackage ./plugins/extrafiles.nix { beets = self.beets-minimal; };
|
2022-05-07 20:42:01 +00:00
|
|
|
})
|