Get support for sagikazarmark/docker-nix-bitbucket

If you're new to LTH, please see our FAQ for more information on what it is we do.

Support Options

Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:

View Open Issues

Take a look to see if anyone else has experienced the same issue as you and if they managed to solve it.

Open an Issue

Make sure to read any relevant guidelines for opening issues on this repo before posting a new issue.

Sponsor directly

Check out the page and see if there are any options to sponsor this project or it's developers directly.

sagikazarmark/docker-nix-bitbucket

Nix image for Bitbucket Pipelines

For some weird reason, Bitbucket Pipelines runs various commands using absolute paths in its setup script which results in errors like these:

/bin/sh: /usr/bin/mkfifo: No such file or directory
/bin/sh: /bin/echo: No such file or directory

Needless to say that doesn't work with Nix.

This image works around the problem by symlinking the necessary binaries to the paths Bitbucket uses.

In addition, it also installs git as it's usually required for all kinds of stuff (eg. Flakes).

Last, but not least Flakes are enabled by default.

Usage

pipelines:
    branches:
        master:
            - step:
                image: ghcr.io/sagikazarmark/nix-bitbucket
                name: Tests
                script:
                    - nix-channel --update
                    - nix develop -c YOUR_TEST_COMMAND

Pro tip: Use a tagged version instead of latest.

License

The project is licensed under the MIT License.

Our Mission

We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.

Interesting Articles

Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated

p-e622a1a2