Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • F flake-to-gitlab-ci
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • haskell
  • flake-to-gitlab-ci
  • Issues
  • #1

Closed
Open
Created Sep 28, 2022 by Sridhar Ratnakumar@srid

It does not work on multi-system projects

flake-to-gitlab-ci fails on any projects with more than one system. This is because nix flake show is oblivious to the notion of "current system":

❯ nix flake show --allow-import-from-derivation --json
warning: Git tree '/Users/srid/code/flake-to-gitlab-ci' is dirty
error: a 'x86_64-linux' with features {} is required to build '/nix/store/sk7fddrs4lkd32k8nchz2w02924nm3zz-cabal2nix-flake-to-gitlab-ci.drv', but I am a 'aarch64-darwin' with features {benchmark, big-parallel, nixos-test}
(use '--show-trace' to show detailed location information)

I want my project to support both Linux and macOS systems, but this means I am prohibited from using flake-to-gitlab-ci for it.

One hack I can use is to patch the flake.nix using a regex replace tool to replace the systems list.

Edited Sep 28, 2022 by Sridhar Ratnakumar
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking