[Bug] compilation errors #1038

Closed
opened 2025-12-29 02:27:51 +01:00 by adam · 1 comment
Owner

Originally created by @celevra on GitHub (May 26, 2025).

Is this a support request?

  • This is not a support request

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Hi,

if i try to compilie Headscale 0.26.0 on my own i get the following Compile Errors:

vpn headscale-0.26.0 # nix develop
vpn headscale-0.26.0 # nix build
error:
       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       … while evaluating the derivation attribute 'name'

         at /nix/store/qmm7hgw60vp7vj9lma95hl329d0j3n6n-source/pkgs/stdenv/generic/make-derivation.nix:438:13:

          437|           // (optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          438|             name =
             |             ^
          439|               let

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: attribute 'dirtyShortRev' missing

       at /nix/store/sm0g9wp63n8qapzws6gm8h7dqiignagp-source/flake.nix:15:41:

           14|   }: let
           15|     headscaleVersion = self.shortRev or self.dirtyShortRev;
             |                                         ^
           16|     commitHash = self.rev or self.dirtyRev;
vpn headscale-0.26.0 # 

what can i do to help you to debug the problem?

Expected Behavior

it should compile

Steps To Reproduce

nix develop
nix build

Environment

- OS: Ubuntu 24.04.2 LTS
- Headscale version: 0.26.0
- Tailscale version:

Runtime environment

  • Headscale is behind a (reverse) proxy
  • Headscale runs in a container

Debug information

not needed

Originally created by @celevra on GitHub (May 26, 2025). ### Is this a support request? - [x] This is not a support request ### Is there an existing issue for this? - [x] I have searched the existing issues ### Current Behavior Hi, if i try to compilie Headscale 0.26.0 on my own i get the following Compile Errors: ``` vpn headscale-0.26.0 # nix develop vpn headscale-0.26.0 # nix build error: … while calling the 'derivationStrict' builtin at /builtin/derivation.nix:9:12: (source not available) … while evaluating the derivation attribute 'name' at /nix/store/qmm7hgw60vp7vj9lma95hl329d0j3n6n-source/pkgs/stdenv/generic/make-derivation.nix:438:13: 437| // (optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) { 438| name = | ^ 439| let (stack trace truncated; use '--show-trace' to show the full trace) error: attribute 'dirtyShortRev' missing at /nix/store/sm0g9wp63n8qapzws6gm8h7dqiignagp-source/flake.nix:15:41: 14| }: let 15| headscaleVersion = self.shortRev or self.dirtyShortRev; | ^ 16| commitHash = self.rev or self.dirtyRev; vpn headscale-0.26.0 # ``` what can i do to help you to debug the problem? ### Expected Behavior it should compile ### Steps To Reproduce nix develop nix build ### Environment ```markdown - OS: Ubuntu 24.04.2 LTS - Headscale version: 0.26.0 - Tailscale version: ``` ### Runtime environment - [ ] Headscale is behind a (reverse) proxy - [ ] Headscale runs in a container ### Debug information not needed
adam added the bug label 2025-12-29 02:27:51 +01:00
adam closed this issue 2025-12-29 02:27:51 +01:00
Author
Owner

@kradalby commented on GitHub (May 27, 2025):

I suspect your Nix is too old, I think that dirty keyword got added recently.

@kradalby commented on GitHub (May 27, 2025): I suspect your Nix is too old, I think that dirty keyword got added recently.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#1038