Skip to content

attempt to write in the store when building #8

@symphorien

Description

@symphorien

I'm trying to use dub2nix on CyberShadow/btdu@9bbab62

I'm invoking it with

let pkgs = import <nixpkgs> { }; in
let mkDub = (import ./mkDub.nix {
  inherit pkgs;
});
in
mkDub.mkDubDerivation {
  version = "0.1.0"; # optional
  src = ./.;
  package = {
    name = "btdu";
    description = "sampling disk usage profiler for btrfs";
    outPath = "foo";
  };
}

when building dub attempts to write to the store:

$  nix-build --show-trace
these derivations will be built:
  /nix/store/jxq676a3bgp8zb8iq2cslzw3qzrq312x-btdu-0.1.0.drv
building '/nix/store/jxq676a3bgp8zb8iq2cslzw3qzrq312x-btdu-0.1.0.drv'...
unpacking sources
unpacking source archive /nix/store/0lvppfcimz2p21f6146ncxfwj48waip2-source
source root is source
patching sources
configuring
no configure script, doing nothing
building
Registered package: ncurses (version: 0.0.149)
Registered package: ae (version: 0.0.2833)
Registered package: btrfs (version: 0.0.11)
Performing "release" build using dmd for x86_64.
/nix/store/a8rk8i1b2597ihlqxr6m7vy3plfc3d0d-ncurses/.dub: Permission denied
builder for '/nix/store/jxq676a3bgp8zb8iq2cslzw3qzrq312x-btdu-0.1.0.drv' failed with exit code 2
error: build of '/nix/store/jxq676a3bgp8zb8iq2cslzw3qzrq312x-btdu-0.1.0.drv' failed

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions