nixpkgs/pkgs/tools/security/mbox/default.nix
Domen Kožar 512fbb280f Introduce patchShebangsPhase ran in preConfigurePhases
(cherry picked from commit 91c7e8747af1fdc2a70cd98594ccbb12a5c6902d)
Signed-off-by: Domen Kožar <domen@dev.si>
2015-01-02 02:58:32 +01:00

38 lines
853 B
Nix

{ stdenv, fetchFromGitHub, openssl, which }:
stdenv.mkDerivation {
name = "mbox-20140526";
src = fetchFromGitHub {
owner = "tsgates";
repo = "mbox";
rev = "a131424b6cb577e1c916bd0e8ffb2084a5f73048";
sha256 = "06qggqxnzcxnc34m6sbafxwr2p64x65m9zm5wp7pwyarcckhh2hd";
};
buildInputs = [ openssl which ];
preConfigure = ''
cd src
cp {.,}configsbox.h
'';
doCheck = true;
checkPhase = ''
rm tests/test-*vim.sh tests/test-pip.sh
sed -i 's|^/bin/||' tests/test-fileops.sh
./testall.sh
'';
meta = with stdenv.lib;
{ description = "Lightweight sandboxing mechanism that any user can use without special privileges";
homepage = http://pdos.csail.mit.edu/mbox/;
maintainers = with maintainers; [ emery ];
license = licenses.bsd3;
platforms = [ "x86_64-linux" ];
};
}