nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 26 lines 594 B view raw
1{ 2 stdenv, 3 ucg, 4}: 5 6stdenv.mkDerivation { 7 pname = "ucg-test"; 8 inherit (ucg) version; 9 10 nativeBuildInputs = [ ucg ]; 11 12 dontInstall = true; 13 14 buildCommand = '' 15 testFile=$(mktemp /tmp/ucg-test.XXXX) 16 echo -ne 'Lorem ipsum dolor sit amet\n2.7182818284590' > $testFile 17 ucg 'dolor' $testFile || { rm $testFile; exit -1; } 18 ucg --ignore-case 'lorem' $testFile || { rm $testFile; exit -1; } 19 ucg --word-regexp '2718' $testFile && { rm $testFile; exit -1; } 20 ucg 'pisum' $testFile && { rm $testFile; exit -1; } 21 rm $testFile 22 touch $out 23 ''; 24 25 meta.timeout = 10; 26}