Skip to content

Instantly share code, notes, and snippets.

Avatar

Pol Dellaiera drupol

View GitHub Profile
@drupol
drupol / code-server-4.13.log
Created May 31, 2023 17:33
Unable to build coder/code-server 4.13
View code-server-4.13.log
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/qnjdzs8p3m4p4ng6j593xaqrf60p3ckf-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
applying patch /nix/store/3b0x5r6202xmsznfrzxwcyv3qpism1gd-build-vscode-nogit.patch
patching file ci/build/build-vscode.sh
patching script interpreter paths in ./ci
./ci/steps/steps-lib.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/rhvbjmcfnkg8i2dxpzr114cp1ws7f667-bash-5.2-p15/bin/bash"
View revert-232887-nodejs18-to-nodejs16.patch
diff --git c/pkgs/servers/openvscode-server/default.nix w/pkgs/servers/openvscode-server/default.nix
index e2b596a0671..58dc1b84478 100644
--- c/pkgs/servers/openvscode-server/default.nix
+++ w/pkgs/servers/openvscode-server/default.nix
@@ -107,6 +107,9 @@ in stdenv.mkDerivation rec {
# set offline mirror to yarn cache we created in previous steps
yarn --offline config set yarn-offline-mirror "${yarnCache}"
+
+ # set nodedir, so we can build binaries later
View revert-232887-nodejs18-to-nodejs16.patch
diff --git c/pkgs/servers/openvscode-server/default.nix w/pkgs/servers/openvscode-server/default.nix
index e2b596a0671..11ec9be2251 100644
--- c/pkgs/servers/openvscode-server/default.nix
+++ w/pkgs/servers/openvscode-server/default.nix
@@ -1,11 +1,12 @@
{ lib, stdenv, fetchFromGitHub, buildGoModule, makeWrapper
, cacert, moreutils, jq, git, pkg-config, yarn, python3
-, esbuild, nodejs, libsecret, xorg, ripgrep
+, esbuild, nodejs_16, libsecret, xorg, ripgrep
, AppKit, Cocoa, Security, cctools, nixosTests }:
@drupol
drupol / drupal.nix
Last active May 26, 2023 16:22
drupal.nix
View drupal.nix
{ stdenvNoCC, fetchFromGitHub, php, unzip, _7zz }:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "drupal";
version = "10.0.9";
nativeBuildInputs = [
unzip
_7zz
];
@drupol
drupol / terminal.log
Created May 23, 2023 16:56
Installing Drupal with the new PHP wrapper in Nix...
View terminal.log
$ nix build .#drupal -L  ✔  18:51:21
keys.dev.pub> trying https://composer.github.io/snapshots.pub
keys.dev.pub> % Total % Received % Xferd Average Speed Time Time Time Current
keys.dev.pub> Dload Upload Total Spent Left Speed
keys.dev.pub> 100 800 100 800 0 0 4448 0 --:--:-- --:--:-- --:--:-- 4469
keys.tags.pub> trying https://composer.github.io/releases.pub
keys.tags.pub> % Total % Received % Xferd Average Speed Time Time Time Current
keys.tags.pub> Dload Upload Total Spent Left Speed
keys.tags.pub> 100 800 100 800 0 0 5445 0
@drupol
drupol / composer.log
Created May 23, 2023 16:04
Building composer on Nix
View composer.log
$ nix build .#phpPackages.composer -L  ✘ 1  7s  18:00:03
warning: Git tree '/home/devlin/Code/NixOS/nixpkgs' is dirty
warning: found empty hash, assuming 'sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA='
composer> unpacking sources
composer> unpacking source archive /nix/store/0ldhpbg8n837h81gndbijq82ciz0dbh0-source
composer> source root is source
composer> patching sources
composer> configuring
composer> Executing composerRepositoryConfigureHook
composer> Checking composer.json: OK
@drupol
drupol / default.nix
Created April 20, 2023 19:59
PHPUnit with new PHP Hooks
View default.nix
{ stdenv, lib, fetchFromGitHub, php }:
stdenv.mkDerivation (finalAttrs:
let
src = fetchFromGitHub {
owner = "sebastianbergmann";
repo = "phpunit";
rev = finalAttrs.version;
hash = "sha256-VcQRSss2dssfkJ+iUb5qT+FJ10GHiFDzySigcmuVI+8=";
};
@drupol
drupol / university.typ
Created April 17, 2023 19:15
university.typ
View university.typ
#import "../../slides.typ": *
#import "../../themes/university.typ": *
#show: slides.with(
authors: "Andreas Kröpelin",
short-authors: "A. Kröpelin",
title: [`typst-slides`: Easily creating slides in Typst ],
subtitle: "An overview over all the features",
short-title: "Slides template demo",
date: "April 2023",
@drupol
drupol / university.typ
Created April 17, 2023 19:03
university.typ
View university.typ
// Theme Customizations
#let universityName = "UniversityName"
#let color-a = navy
#let color-b = teal
#let color-c = lime
#let section = state("section", none)
#let logical-slide = counter("logical-slide")
#let subslide = counter("subslide")
#let total-slides = counter("slide")
@drupol
drupol / latex.log
Created April 13, 2023 08:30
issue in nixpkgs-unstable
View latex.log
$ nix develop . --show-trace  ✘ 1  10:25:37
error:
… while evaluating the attribute 'buildInputs' of the derivation 'ec-latex-beamer-theme--devshell'
at /nix/store/mcqspn5p5dy263y3nfb0dfzi7inms7j0-source/pkgs/stdenv/generic/make-derivation.nix:302:7:
301| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
302| name =
| ^
303| let