2021-01-15 10:19:50 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, openssl, which }:
|
2014-10-28 17:42:12 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-07-27 16:21:24 +02:00
|
|
|
pname = "mbox";
|
2021-07-29 14:41:16 +02:00
|
|
|
version = "unstable-2014-05-26";
|
2014-10-28 17:42:12 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tsgates";
|
|
|
|
repo = "mbox";
|
|
|
|
rev = "a131424b6cb577e1c916bd0e8ffb2084a5f73048";
|
|
|
|
sha256 = "06qggqxnzcxnc34m6sbafxwr2p64x65m9zm5wp7pwyarcckhh2hd";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ openssl which ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cd src
|
|
|
|
cp {.,}configsbox.h
|
|
|
|
'';
|
2021-01-15 10:19:50 +01:00
|
|
|
|
2014-10-28 17:42:12 +01:00
|
|
|
doCheck = true;
|
|
|
|
checkPhase = ''
|
|
|
|
rm tests/test-*vim.sh tests/test-pip.sh
|
|
|
|
|
2015-01-08 10:26:49 +01:00
|
|
|
patchShebangs ./; dontPatchShebags=1
|
2014-10-28 17:42:12 +01:00
|
|
|
sed -i 's|^/bin/||' tests/test-fileops.sh
|
|
|
|
|
|
|
|
./testall.sh
|
|
|
|
'';
|
|
|
|
|
2021-07-29 14:41:16 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Lightweight sandboxing mechanism that any user can use without special privileges";
|
|
|
|
homepage = "http://pdos.csail.mit.edu/mbox/";
|
|
|
|
maintainers = with maintainers; [ ehmry ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
broken = true;
|
|
|
|
};
|
2014-10-31 16:48:55 +01:00
|
|
|
}
|