Skip to content

libdevil: drop - #443479

Merged
K900 merged 6 commits into
NixOS:masterfrom
emilazy:push-tookrztxunpx
Sep 17, 2025
Merged

K900 merged 6 commits into
NixOS:masterfrom
emilazy:push-tookrztxunpx

Conversation

@emilazy

@emilazy emilazy commented Sep 16, 2025

Copy link
Copy Markdown
Member

Image processing library, unmaintained upstream since 2017; probably a security liability, not a mandatory dependency of any package in the tree, and would be broken by CMake 4.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@emilazy
emilazy requested review from K900 and LeSuisse September 16, 2025 16:03
@acid-bong

acid-bong commented Sep 16, 2025 •

Copy link
Copy Markdown
Contributor

forgot to remove spring from all-packages.nix maybe? (on the other hand, how is it related to libdevil?)

Broken since 2021, with a brief reprieve of three months where it
wasn’t broken around the start of 2023 thanks to a drive‐by
Python 2 tree‐wide.
Optional dependency, used only for the `ImageSeq` plugin.
Optional dependency along with like ten other format‐reading
libraries, including our favourite FreeImage.
Image processing library, unmaintained upstream since 2017; probably
a security liability, not a mandatory dependency of any package in
the tree, and would be broken by CMake 4.
@emilazy

emilazy commented Sep 16, 2025

Copy link
Copy Markdown
Member Author

Fixed, thanks.

(on the other hand, how is it related to libdevil?)

It depends on it.

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 6.topic: haskell General-purpose, statically typed, purely functional programming language 6.topic: games Gaming on NixOS labels Sep 16, 2025
@K900
K900 added this pull request to the merge queue Sep 17, 2025
Merged via the queue into NixOS:master with commit c27b7a3 Sep 17, 2025
@emilazy
emilazy deleted the push-tookrztxunpx branch September 17, 2025 13:44
@sternenseemann

Copy link
Copy Markdown
Member

For future reference, arbitrary edits to hackage-packages.nix are not necessary in such cases. hackage2nix generates dependencies on pkgs based on a package list obtained via evaluation. Consequently, it will recognize that libdevil has been removed. If you had just executed regenerate-hackage-packages.sh on this PR, it would have generated the following diff:

diff --git a/pkgs/development/haskell-modules/hackage-packages.nix b/pkgs/development/haskell-modules/hackage-packages.nix
index 7dee0b5eb04b..fafa8f4822db 100644
--- a/pkgs/development/haskell-modules/hackage-packages.nix
+++ b/pkgs/development/haskell-modules/hackage-packages.nix
@@ -7425,7 +7425,7 @@ self: {
       license = lib.licenses.bsd3;
       badPlatforms = lib.platforms.darwin;
     }
-  ) { inherit (pkgs) libdevil; };
+  ) { libdevil = null; };
 
   "Color" = callPackage (
     {
@@ -245522,7 +245522,7 @@ self: {
       license = lib.licenses.lgpl3Only;
       hydraPlatforms = lib.platforms.none;
     }
-  ) { inherit (pkgs) libdevil; };
+  ) { libdevil = null; };
 
   "friday-juicypixels" = callPackage (
     {
@@ -548904,7 +548904,7 @@ self: {
       license = lib.licenses.bsd3;
       hydraPlatforms = lib.platforms.none;
     }
-  ) { inherit (pkgs) libdevil; };
+  ) { libdevil = null; };
 
   "pvector" = callPackage (
     {
@@ -569801,7 +569801,7 @@ self: {
       hydraPlatforms = lib.platforms.none;
       broken = true;
     }
-  ) { inherit (pkgs) libdevil; };
+  ) { libdevil = null; };
 
   "repa-eval" = callPackage (
     { mkDerivation, base }:
@@ -737101,7 +737101,7 @@ self: {
       license = lib.licenses.mit;
       hydraPlatforms = lib.platforms.none;
     }
-  ) { inherit (pkgs) libdevil; };
+  ) { libdevil = null; };
 
   "yasi" = callPackage (
     {

@emilazy

emilazy commented Sep 17, 2025

Copy link
Copy Markdown
Member Author

Thanks, I did not realize that! That is very useful to know. I think the previous time I ran into issues with this it was something like a special case around opencv3 which I guess behaved differently.

FWIW, I didn’t do it as a manual edit – it’s the exact output of the HEAD commit of my PR. (I based it on the commit that was pinned at the time I opened the PR, so that it made no other changes.)

@ShadowRZ ShadowRZ mentioned this pull request Jul 26, 2026
2 of 13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: games Gaming on NixOS 6.topic: haskell General-purpose, statically typed, purely functional programming language 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants