Skip to content

Instantly share code, notes, and snippets.

❯ nix-review pr 395740
-> Attempting to fetch eval results from GitHub actions
-> Successfully fetched rebuilds: no local evaluation needed
$ git -c fetch.prune=false fetch --no-tags --force https://github.com/NixOS/nixpkgs master:refs/nixpkgs-review/0 pull/395740/merge:refs/nixpkgs-review/1
remote: Enumerating objects: 1079, done.
remote: Counting objects: 100% (630/630), done.
remote: Compressing objects: 100% (123/123), done.
remote: Total 1079 (delta 592), reused 507 (delta 507), pack-reused 449 (from 2)
Empfange Objekte: 100% (1079/1079), 1.72 MiB | 9.76 MiB/s, fertig.
Löse Unterschiede auf: 100% (717/717), abgeschlossen mit 244 lokalen Objekten.
@dwt
dwt / de.u
Last active March 12, 2025 20:01
OldUnreal patch from v469e
@dwt
dwt / fine.nix
Created February 28, 2025 08:39
Reproduction of nix evaluation failure
let
system = "aarch64-darwin";
in
{
foo.foo = "foo";
foo.bar = "bar";
}
@dwt
dwt / diff
Created November 22, 2024 00:11
diff --git a/docs/common-patterns.md b/docs/common-patterns.md
index b01a5548..b83a6605 100644
--- a/docs/common-patterns.md
+++ b/docs/common-patterns.md
@@ -141,3 +141,34 @@ in {
];
}
```
+
+If you want to also compile dependencies for x86, you can add dependencies to `packages`:
{
"nodes": {
"devenv": {
"locked": {
"dir": "src/modules",
"lastModified": 1732179756,
"owner": "cachix",
"repo": "devenv",
"rev": "24f0aac5d4798899a0a739ea2c13396850fad2a8",
"type": "github"
@dwt
dwt / shell.nix
Created October 2, 2024 20:21
Workaround to get closed source python ibm_db package working in nix environment
{ pkgs ? import <nixpkgs> {} }:
let
rosettaPkgs =
if pkgs.stdenv.isDarwin && pkgs.stdenv.isAarch64
then pkgs.pkgsx86_64Darwin
else pkgs;
in
pkgs.mkShell {
buildInputs = [
# run with:
# docker build --progress plain --no-cache-filter 'reproduction' --file Dockerfile.reproduction .
FROM ubuntu:24.04 AS base
# Install Zope/ZEO Dependencies
RUN apt-get update
RUN apt-get install -y ca-certificates
RUN update-ca-certificates
RUN apt-get -y upgrade
FROM python:3.12
# As per https://docs.astral.sh/uv/guides/integration/docker/#installing-uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
ARG USER_NAME=app
ARG GROUP_NAME=app
ARG UID=10001
ARG PORT=8003
# explicitly set user/group IDs
@dwt
dwt / decrypt-sym-pass-plesk.php
Created December 19, 2023 11:05 — forked from gnanet/decrypt-sym-pass-plesk.php
Decrypt symmetric encrypted passwords of plesk stored in "psa" database in table "accounts"
#!/usr/bin/php
<?php
/*
* Decrypt symmetric encrypted passwords of plesk stored in "psa" database in table "accounts"
* Script has to be run on the plesk server locally
*
* /usr/local/sbin/decrypt-sym
*
*/
@dwt
dwt / Dockerfile
Created March 23, 2022 15:28
Reproduction of sqlalchemy freeze
FROM python:3.6
ARG USER_NAME=auth
ARG GROUP_NAME=auth
ARG PORT=8005
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --yes postgresql
# explicitly set user/group IDs
RUN set -eux; \