Skip to content

Commit

Permalink
beets: fix building in 2025 (NixOS#370234)
Browse files Browse the repository at this point in the history
  • Loading branch information
doronbehar authored and tobim committed Jan 2, 2025
2 parents 9de8cb4 + 87ba234 commit bc0aeff
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 19 deletions.
11 changes: 2 additions & 9 deletions pkgs/applications/science/misc/gplates/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ let
numpy
]
);
boost' = boost.override {
enablePython = true;
inherit python;
};
cgal' = cgal.override {
boost = boost';
};
in
stdenv.mkDerivation (finalAttrs: {
pname = "gplates";
Expand Down Expand Up @@ -63,8 +56,8 @@ stdenv.mkDerivation (finalAttrs: {
];

buildInputs = [
boost'
cgal'
(boost.withPython python3)
cgal
gdal
glew
gmp
Expand Down
24 changes: 14 additions & 10 deletions pkgs/tools/audio/beets/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
callPackage,
fetchFromGitHub,
python3Packages,
fetchpatch,
}:
/*
** To customize the enabled beets plugins, use the pluginOverrides input to the
Expand All @@ -17,39 +18,42 @@
** alternatives = { enable = true; propagatedBuildInputs = [ beetsPackages.alternatives ]; };
** }; }
*/
let
extraPatches = [
# Bash completion fix for Nix
./patches/bash-completion-always-print.patch
# Remove after next release.
(fetchpatch {
url = "https://github.com/beetbox/beets/commit/bcc79a5b09225050ce7c88f63dfa56f49f8782a8.patch?full_index=1";
hash = "sha256-Y2Q5Co3UlDGKuzfxUvdUY3rSMNpsBoDW03ZWZOfzp3Y=";
})
];
in
lib.makeExtensible (self: {
beets = self.beets-stable;

beets-stable = callPackage ./common.nix rec {
inherit python3Packages;
inherit python3Packages extraPatches;
version = "2.2.0";
src = fetchFromGitHub {
owner = "beetbox";
repo = "beets";
rev = "v${version}";
hash = "sha256-jhwXRgUUQJgQ/PLwvY1UfHCJ9UC8DcdBpE/janao0RM=";
};
extraPatches = [
# Bash completion fix for Nix
./patches/bash-completion-always-print.patch
];
};

beets-minimal = self.beets.override { disableAllPlugins = true; };

beets-unstable = callPackage ./common.nix {
inherit python3Packages;
inherit python3Packages extraPatches;
version = "2.2.0-unstable-2024-12-02";
src = fetchFromGitHub {
owner = "beetbox";
repo = "beets";
rev = "f92c0ec8b14fbd59e58374fd123563123aef197b";
hash = "sha256-jhwXRgUUQJgQ/PLwvY1UfHCJ9UC8DcdBpE/janao0RM=";
};
extraPatches = [
# Bash completion fix for Nix
./patches/bash-completion-always-print.patch
];
};

alternatives = callPackage ./plugins/alternatives.nix { beets = self.beets-minimal; };
Expand Down

0 comments on commit bc0aeff

Please sign in to comment.