Skip to content

Instantly share code, notes, and snippets.

View drupol's full-sized avatar

Pol Dellaiera drupol

View GitHub Profile
@drupol
drupol / terminal.log
Created April 2, 2025 19:19
python312Packages.pyorc failing build
❯ nix-build -A python312Packages.pyorc -v
evaluating file '<nix/derivation-internal.nix>'
evaluating file '/home/pol/Code/NixOS/nixpkgs/lib/minver.nix'
evaluating file '/home/pol/Code/NixOS/nixpkgs/pkgs/top-level/impure.nix'
evaluating file '/home/pol/Code/NixOS/nixpkgs/pkgs/top-level/default.nix'
evaluating file '/home/pol/Code/NixOS/nixpkgs/lib/default.nix'
evaluating file '/home/pol/Code/NixOS/nixpkgs/lib/trivial.nix'
evaluating file '/home/pol/Code/NixOS/nixpkgs/lib/lists.nix'
evaluating file '/home/pol/Code/NixOS/nixpkgs/pkgs/stdenv/booter.nix'
evaluating file '/home/pol/Code/NixOS/nixpkgs/pkgs/stdenv/default.nix'
@drupol
drupol / swh.svg
Created April 2, 2025 07:24
swh.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@drupol
drupol / flake.nix
Last active March 27, 2025 09:00
flake.nix for Node
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = inputs@{ ... }:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
@drupol
drupol / terminal.log
Created March 13, 2025 13:00
Orthanc compilation issue (III)
[ 53%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomParsing/Internals/DicomImageDecoder.cpp.o
[ 54%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomNetworking/DicomAssociation.cpp.o
[ 54%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomNetworking/DicomAssociationParameters.cpp.o
[ 55%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomNetworking/DicomControlUserConnection.cpp.o
[ 55%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomNetworking/DicomServer.cpp.o
[ 55%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomNetworking/DicomStoreUserConnection.cpp.o
[ 56%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomNetworking/Internals/CommandDispatcher.cpp.o
[ 56%] Building CXX object CMakeFiles/CoreLibrary.dir/build/sourc
@drupol
drupol / terminal.log
Created March 13, 2025 11:44
Orthanc build failure (II)
[ 59%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomParsing/IDicomTranscoder.cpp.o
/build/source/OrthancFramework/Sources/DicomNetworking/Internals/DicomTls.cpp:51:12: warning: undefining "__FILE__" []
51 | # undef __FILE__
| ^~~~~~~~
[ 59%] Building CXX object CMakeFiles/CoreLibrary.dir/build/source/OrthancFramework/Sources/DicomParsing/MemoryBufferTranscoder.cpp.o
[ 60%] Building CXX object CMakeFiles/CoreLibrary.dir/AUTOGENERATED/OrthancServerResources.cpp.o
[ 61%] Linking CXX shared library libMultitenantDicom.so
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: /nix/store/k01fyygqcdzhq5l0hcirmzr1sqqs6zy1-dcmtk-3.6.9/lib/libdcmdata.a(dcpixseq.cc.o): in function `DcmPixelSequence::writeXML(std::ostream&, unsigned long)':
(.text+0x1ca4): undefined reference to `OFUUID::OFUUID()'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: (.text+0x1cc8): undefined reference to `OFUUID::print(std::ostream&, OFUUID::E
@drupol
drupol / orthanc-build-log.txt
Created February 26, 2025 19:15
orthanc-build-log.txt
❯ nix log /nix/store/88cviwrcpa26lkwmslcmvyirg5gjfgsg-orthanc-1.12.6.drv
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/dlzb0bnrk89j55vpfi2nw7fr9ygjy6g4-source
source root is source/OrthancServer
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@drupol
drupol / phpdocumentor-repro-issue.sh
Last active January 13, 2025 14:11
phpdocumentor-repro-issue.sh
#!/usr/bin/env bash
# Dependencies:
#
# 1. Create a nix shell with: `nix shell nixpkgs#phpPackages.composer nixpkgs#gitMinimal nixpkgs#diffoscopeMinimal`
# 2. Run this script
composer --version
if [[ ! -d "phpdocumentor" ]]; then
@drupol
drupol / either.py
Created January 8, 2025 19:45
My initial view of what a Either and Maybe monads would look like in Python
from typing import Callable, Generic, TypeVar, final
A = TypeVar("A", covariant=True)
B = TypeVar("B", covariant=True)
C = TypeVar("C", covariant=True)
@final
class Either(Generic[A, B]):
class Left:
@drupol
drupol / overlay.nix
Last active June 26, 2024 03:17
OpenBlas overlay
(self: super: {
openblas = super.openblas.overrideAttrs (oldAttrs: {
makeFlags = oldAttrs.makeFlags ++ [
"DEBUG=1"
];
});
})
@drupol
drupol / .devcontainer.json
Created April 10, 2024 11:26
.devcontainer.json
{
"image": "mcr.microsoft.com/devcontainers/base:alpine",
"features": {
"ghcr.io/devcontainers/features/nix:1": {
"extraNixConfig": "experimental-features = nix-command flakes"
}
},
"onCreateCommand": "nix run home-manager/master -- init --switch && rm -rf ~/.config/git/config && nix shell nixpkgs#git -c nix run home-manager/master -- switch --flake git+https://code.europa.eu/ecphp/devs-profile#light --impure",
"customizations": {
"vscode": {