| 22 Jun 2025 |
maralorn | Latest uploaded | 15:37:43 |
toonn | It's a Stackage LTS and then Hackage for everything else, to be more precise, no? | 15:38:54 |
maralorn | In reply to @toonn:matrix.org It's a Stackage LTS and then Hackage for everything else, to be more precise, no? Yes, as described in the nixpkgs manual. Although it could possibly be more precise on the former question | 15:45:34 |
| @le:4d2.org joined the room. | 18:36:28 |
| 23 Jun 2025 |
sterni | lambdatheultimatealias: note that you can't draw any conclusions from nixpkgs about hackage since we regularly apply patches, modify constraints, build flags, test flags etc. | 21:14:04 |
| 22 Jun 2025 |
ners | I'm trying to fix a broken package named ffmpeg-light. Here is what I have so far:
ffmpeg-light = lib.pipe hprev.ffmpeg-light [
unmarkBroken
doJailbreak
(addSetupDepend prev.ffmpeg-full.lib)
(drv: drv.overrideAttrs (attrs: { dontWrapQtApps = true; }))
];
However, the ffmpeg libs are still not found: | 19:46:24 |
ners | Redacted or Malformed Event | 19:46:33 |
ners | * I'm trying to fix a broken package named ffmpeg-light. Here is what I have so far:
ffmpeg-light = lib.pipe hprev.ffmpeg-light [
unmarkBroken
doJailbreak
(addSetupDepend prev.ffmpeg-full.lib)
(drv: drv.overrideAttrs (attrs: { dontWrapQtApps = true; }))
];
However, the ffmpeg libs are still not found:
> Error: Setup: Missing dependencies on foreign libraries:
> * Missing (or bad) C libraries: avutil, avformat, avcodec, swscale, avdevice,
> swresample
| 19:47:18 |
emily | IIRC ffmpeg-light only works with ancient FFmpeg. | 19:50:01 |
emily | "Tested with FFmpeg 3.1 - 3.4.2" | 19:50:46 |
ners | That may be so, but I'd still like to understand why it's not finding the libs I'm giving it. | 19:51:30 |
ners | * I'm trying to fix a broken package named ffmpeg-light. Here is what I have so far:
ffmpeg-light = lib.pipe hprev.ffmpeg-light [
unmarkBroken
doJailbreak
(addSetupDepend prev.ffmpeg-full.dev)
(drv: drv.overrideAttrs (attrs: { dontWrapQtApps = true; }))
];
However, the ffmpeg libs are still not found:
> Error: Setup: Missing dependencies on foreign libraries:
> * Missing (or bad) C libraries: avutil, avformat, avcodec, swscale, avdevice,
> swresample
| 19:51:35 |
ners | * I'm trying to fix a broken package named ffmpeg-light. Here is what I have so far:
ffmpeg-light = lib.pipe hprev.ffmpeg-light [
unmarkBroken
doJailbreak
(addSetupDepend prev.ffmpeg-full)
(addPkgconfigDepend prev.ffmpeg-full.dev)
(drv: drv.overrideAttrs (attrs: { dontWrapQtApps = true; }))
];
However, the ffmpeg libs are still not found:
> Error: Setup: Missing dependencies on foreign libraries:
> * Missing (or bad) C libraries: avutil, avformat, avcodec, swscale, avdevice,
> swresample
| 19:54:00 |
emily | you're not giving it an ancient FFmpeg is probably at least part of it | 19:54:45 |
emily | we're on FFmpeg 7 | 19:55:00 |
ners | But how is its ancientness encoded in cabal? | 19:55:00 |
ners | I don't see the ffmpeg version encoded in the cabal file. It's asking for a certain set of pkgconfig libs, I'm giving it those libs. | 19:55:21 |
ners | I don't see any version checks. | 19:55:25 |
ners | Here's what the cabal wants:
pkgconfig-depends: libavutil, libavformat, libavcodec, libswscale, libavdevice,
libswresample
Here's what ffmpeg-full.dev has:
/nix/store/7v77gvdjk8410qzrpkhymihgijf5s990-ffmpeg-full-7.1.1-dev/lib
└── pkgconfig
├── libavcodec.pc
├── libavdevice.pc
├── libavfilter.pc
├── libavformat.pc
├── libavutil.pc
├── libpostproc.pc
├── libswresample.pc
└── libswscale.pc
| 19:56:37 |
ners | * I don't see any version checks or reasons why a newer version wouldn't work. | 19:57:03 |
emily | not sure. other than the missing lib prefixes in the error maybe. | 19:57:54 |
| @sasha:the-apothecary.club joined the room. | 20:27:10 |
@sasha:the-apothecary.club | Heya, a while ago I wrote a program that uses the punycode package, which is marked as broken in nixpkgs. I'm trying to figure out why but have gotten nowhere, any suggestions? | 20:28:32 |
@sasha:the-apothecary.club | * Heya, a while ago I wrote a program that uses the punycode Haskell package, which is marked as broken in nixpkgs. I'm trying to figure out why but have gotten nowhere, any suggestions? | 20:29:43 |
maralorn | In reply to @sasha:the-apothecary.club Heya, a while ago I wrote a program that uses the punycode package, which is marked as broken in nixpkgs. I'm trying to figure out why but have gotten nowhere, any suggestions? Have you looked for a "broken.yaml" file in nixpkgs and read the line in the corresponding comment? | 20:47:48 |
maralorn | Also have you tried just building it by overriding/ignoring the broken flag? | 20:48:25 |
@sasha:the-apothecary.club | In reply to @maralorn:maralorn.de Have you looked for a "broken.yaml" file in nixpkgs and read the line in the corresponding comment? I did not because I didn't know that existed. Thx! | 20:49:58 |
| 23 Jun 2025 |
Artem | Hey all! I'm routinely getting strange "missing dependencies" errors when trying to build with cabal on my NixOS machine. Never happens on non-NixOS. I must be missing something? E.g.:
Failed to build unix-2.8.6.0. The failure occurred during the configure step.
Build log (
/home/artem/.cache/cabal/logs/ghc-9.10.1/unix-2.8.6.0-7e70e93a018fa3cd3eeee6c9345819b76e60434f053c8d02acdb7ab743ba3a2a.log
):
Configuring unix-2.8.6.0...
Error: [Cabal-8010]
Encountered missing or private dependencies:
tasty, tasty-hunit, tasty-quickcheck
happens to various dependencies when building various packages...
| 17:51:06 |
Artem | I saw reports like that on Discourse but none of the suggestions looked particularly relevant... | 17:51:35 |
Alex | In reply to @artem.types:matrix.org
Hey all! I'm routinely getting strange "missing dependencies" errors when trying to build with cabal on my NixOS machine. Never happens on non-NixOS. I must be missing something? E.g.:
Failed to build unix-2.8.6.0. The failure occurred during the configure step.
Build log (
/home/artem/.cache/cabal/logs/ghc-9.10.1/unix-2.8.6.0-7e70e93a018fa3cd3eeee6c9345819b76e60434f053c8d02acdb7ab743ba3a2a.log
):
Configuring unix-2.8.6.0...
Error: [Cabal-8010]
Encountered missing or private dependencies:
tasty, tasty-hunit, tasty-quickcheck
happens to various dependencies when building various packages...
Are you trying to override the unix package?
Boot libraries have special handling and cannot be overridden in the usual way.
For example:
nix-repl> haskellPackages.unix
null
| 18:52:14 |