at 17.09-beta 38 lines 894 B view raw
1{ stdenv, fetchFromGitHub, openssl, which }: 2 3stdenv.mkDerivation { 4 name = "mbox-20140526"; 5 6 src = fetchFromGitHub { 7 owner = "tsgates"; 8 repo = "mbox"; 9 rev = "a131424b6cb577e1c916bd0e8ffb2084a5f73048"; 10 sha256 = "06qggqxnzcxnc34m6sbafxwr2p64x65m9zm5wp7pwyarcckhh2hd"; 11 }; 12 13 buildInputs = [ openssl which ]; 14 15 preConfigure = '' 16 cd src 17 cp {.,}configsbox.h 18 ''; 19 20 doCheck = true; 21 checkPhase = '' 22 rm tests/test-*vim.sh tests/test-pip.sh 23 24 patchShebangs ./; dontPatchShebags=1 25 sed -i 's|^/bin/||' tests/test-fileops.sh 26 27 ./testall.sh 28 ''; 29 30 meta = with stdenv.lib; 31 { description = "Lightweight sandboxing mechanism that any user can use without special privileges"; 32 homepage = http://pdos.csail.mit.edu/mbox/; 33 maintainers = with maintainers; [ ehmry ]; 34 license = licenses.bsd3; 35 platforms = [ "x86_64-linux" ]; 36 }; 37 38}