2023-03-25 14:50:41 +00:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
|
|
|
stage ('Nix build') {
|
|
|
|
steps {
|
|
|
|
sh 'nix build'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage ('Nix develop shell') {
|
|
|
|
steps {
|
|
|
|
sh 'nix develop -c echo'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage ('Flake checks') {
|
|
|
|
steps {
|
|
|
|
sh '''
|
|
|
|
# Sandbox must be disabed for:
|
|
|
|
# https://github.com/srid/haskell-flake/issues/21
|
|
|
|
nix \
|
|
|
|
--option sandbox false \
|
2023-04-09 13:51:56 +00:00
|
|
|
flake check -L \
|
|
|
|
--override-input systems github:nix-systems/x86_64-linux
|
2023-03-25 14:50:41 +00:00
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|