8000 GitHub - sagikazarmark/docker-nix-bitbucket: Nix image for Bitbucket Pipelines
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sagikazarmark/docker-nix-bitbucket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Nix image for Bitbucket Pipelines

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 
0