mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-27 12:36:51 +03:00
15 lines
428 B
Nix
15 lines
428 B
Nix
# NB: ideally this should just be `remarshal` but it appears to cause an infinite loop when building
|
|
# against the release-22.05 branch, so using this as a workaround for now
|
|
{ pkgsBuildBuild
|
|
, runCommand
|
|
}:
|
|
|
|
name: contents: runCommand name
|
|
{
|
|
contents = builtins.toJSON contents;
|
|
passAsFile = [ "contents" ];
|
|
nativeBuildInputs = [ pkgsBuildBuild.remarshal ];
|
|
} ''
|
|
remarshal -i $contentsPath -if json -of toml -o $out
|
|
''
|