https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
15 lines
497 B
Nix
15 lines
497 B
Nix
{ stdenv
|
|
, vengi-tools
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "vengi-tools-test-voxconvert-roundtrip";
|
|
meta.timeout = 10;
|
|
buildCommand = ''
|
|
${vengi-tools}/bin/vengi-voxconvert --input ${vengi-tools}/share/vengi-voxedit/chr_knight.qb --output chr_knight.vox
|
|
${vengi-tools}/bin/vengi-voxconvert --input chr_knight.vox --output chr_knight.qb
|
|
${vengi-tools}/bin/vengi-voxconvert --input chr_knight.qb --output chr_knight1.vox
|
|
diff chr_knight.vox chr_knight1.vox
|
|
touch $out
|
|
'';
|
|
}
|