https://github.com/sagikazarmark/docker-nix-bitbucket
Nix image for Bitbucket Pipelines
https://github.com/sagikazarmark/docker-nix-bitbucket
Last synced: 7 months ago
JSON representation
Nix image for Bitbucket Pipelines
- Host: GitHub
- URL: https://github.com/sagikazarmark/docker-nix-bitbucket
- Owner: sagikazarmark
- License: mit
- Created: 2021-12-30T17:28:19.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-05-24T05:58:42.000Z (over 2 years ago)
- Last Synced: 2025-03-06T18:52:45.302Z (7 months ago)
- Language: Dockerfile
- Size: 41 KB
- Stars: 0
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:```shell
/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
```yaml
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](https://github.com/users/sagikazarmark/packages/container/nix-bitbucket/versions) instead of `latest`.
## License
The project is licensed under the [MIT License](LICENSE).