Skip to content

Failed to install warp through nix flake #10979

@silicalet

Description

@silicalet

Pre-submit Checks

Describe the bug

I found that there is a flake.nix and flake.lock in the repo
I tried to install warp with home-manager, and it was failed with:
error: the package 'warp' does not contain this feature: nld_improvements

To reproduce

add warp to flake.nix:

    nixpkgs = {
      url = "github:NixOS/nixpkgs/nixos-unstable";
      # url = "github:NixOS/nixpkgs/nixos-unstable-small";
    };
    crane = {
      url = "git+https://github.com/ipetkov/crane";
    };
    rust-overlay = {
      url = "git+https://github.com/oxalica/rust-overlay";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    warp = {
      url = "git+https://github.com/warpdotdev/warp";
      inputs.crane.follows = "crane";
      inputs.nixpkgs.follows = "nixpkgs";
      inputs.rust-overlay.follows = "rust-overlay";
    };

add the package to home.packages:

inputs.warp.packages.${pkgs.stdenv.hostPlatform.system}.warp-terminal-experimental

then try home-manager switch --flake .

Expected behavior

warp terminal can be used

Screenshots, videos, and logs

➜  home git:(master) ✗ nix log /nix/store/y576h9jkpbhi9v0kjbcvd2ba7z986ydf-warp-terminal-experimental-0.1.0+898f4b8.drv | cat
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/q8q84lhbd8mzdqv3lxk6wadydmg3jhxr-source
source root is source
Executing cargoSetupPostUnpackHook
Finished cargoSetupPostUnpackHook
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Executing cargoSetupPostPatchHook
Validating consistency between /build/source/Cargo.lock and /build/warp-terminal-experimental-0.1.0+898f4b8-cargo-vendor/Cargo.lock
Finished cargoSetupPostPatchHook
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Executing cargoBuildHook
cargoBuildHook flags: -j 24 --target x86_64-unknown-linux-gnu --offline --profile release --features=release_bundle\,gui\,nld_improvements -p warp --bin warp-oss --bin generate_settings_schema
error: the package 'warp' does not contain this feature: nld_improvements
➜  home git:(master) ✗

Operating system (OS)

Linux

Operating system and version

Linux nixos 7.0.5-zen1 #1-NixOS ZEN SMP PREEMPT_DYNAMIC Tue Jan 1 00:00:00 UTC 1980 x86_64 GNU/Linux

Shell Version

zsh 5.9 (x86_64-pc-linux-gnu)

Current Warp version

warp-terminal-experimental-0.1.0+207f9d5

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

#9296

some pars of flake.lock

    "warp": {
      "inputs": {
        "crane": "crane_2",
        "nixpkgs": [
          "nixpkgs"
        ],
        "rust-overlay": "rust-overlay_2"
      },
      "locked": {
        "lastModified": 1778814628,
        "narHash": "sha256-vuaUIE/bkdUQ7ewkOmrn76isdjgXM2UNADxkOGwG4WE=",
        "ref": "refs/heads/master",
        "rev": "898f4b8b77875ae44d7ef26202bc74e09349ed08",
        "revCount": 547,
        "type": "git",
        "url": "https://github.com/warpdotdev/warp"
      },
      "original": {
        "type": "git",
        "url": "https://github.com/warpdotdev/warp"
      }
    },
    "crane": {
      "locked": {
        "lastModified": 1778106249,
        "narHash": "sha256-cM/AuKy5tMhwOOQIbha8ZRRMHVfNf7cv2aljIw+qoCg=",
        "ref": "refs/heads/master",
        "rev": "6d015ea29630b7ad2402841386da2cb617a470a7",
        "revCount": 856,
        "type": "git",
        "url": "https://github.com/ipetkov/crane"
      },
      "original": {
        "type": "git",
        "url": "https://github.com/ipetkov/crane"
      }
    },
    "crane_2": {
      "locked": {
        "lastModified": 1778106249,
        "narHash": "sha256-cM/AuKy5tMhwOOQIbha8ZRRMHVfNf7cv2aljIw+qoCg=",
        "owner": "ipetkov",
        "repo": "crane",
        "rev": "6d015ea29630b7ad2402841386da2cb617a470a7",
        "type": "github"
      },
      "original": {
        "owner": "ipetkov",
        "repo": "crane",
        "type": "github"
      }
    },
    "rust-overlay_2": {
      "inputs": {
        "nixpkgs": [
          "warp",
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1777432579,
        "narHash": "sha256-Ce11TStDsqCge2vAAfLKe2+4lDI5cSX5ZYZOuKJBKKQ=",
        "owner": "oxalica",
        "repo": "rust-overlay",
        "rev": "3ecb5e6ab380ced3272ef7fcfe398bffbcc0f152",
        "type": "github"
      },
      "original": {
        "owner": "oxalica",
        "repo": "rust-overlay",
        "type": "github"
      }
    },
    "nixpkgs": {
      "locked": {
        "lastModified": 1764242076,
        "narHash": "sha256-sKoIWfnijJ0+9e4wRvIgm/HgE27bzwQxcEmo2J/gNpI=",
        "owner": "NixOS",
        "repo": "nixpkgs",
        "rev": "2fad6eac6077f03fe109c4d4eb171cf96791faa4",
        "type": "github"
      },
      "original": {
        "owner": "NixOS",
        "ref": "nixos-unstable",
        "repo": "nixpkgs",
        "type": "github"
      }
    },

Does this block you from using Warp daily?

No

Is this an issue only in Warp?

Yes, I confirmed that this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working.os:linuxLinux-specific behavior, regressions, or requests.repro:highThe report includes enough evidence that the issue appears highly reproducible.triagedIssue has received an initial automated triage pass.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions