2023-02-12 12:12:18 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2023-03-29 23:11:28 +00:00
|
|
|
, pkg-config
|
|
|
|
, oniguruma
|
2023-04-24 13:21:52 +00:00
|
|
|
, stdenv
|
2023-02-12 12:12:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "boxxy";
|
2023-05-07 03:25:03 +00:00
|
|
|
version = "0.7.1";
|
2023-02-12 12:12:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "queer";
|
|
|
|
repo = "boxxy";
|
|
|
|
rev = "v${version}";
|
2023-05-07 03:25:03 +00:00
|
|
|
hash = "sha256-cXEoY9+no+WSp/VbbKl6q/mV5+B5d54kuIRfTtQUFc4=";
|
2023-02-12 12:12:18 +00:00
|
|
|
};
|
|
|
|
|
2023-05-07 03:25:03 +00:00
|
|
|
cargoHash = "sha256-PiX10Q3tYkVcbj3SX5MkaN1xQ/H7SCNpqTIgG+nJ6uo=";
|
2023-03-29 23:11:28 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
oniguruma
|
|
|
|
];
|
|
|
|
|
2023-04-24 13:21:52 +00:00
|
|
|
env = {
|
|
|
|
RUSTONIG_SYSTEM_LIBONIG = true;
|
|
|
|
};
|
2023-02-12 12:12:18 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Puts bad Linux applications in a box with only their files";
|
|
|
|
homepage = "https://github.com/queer/boxxy";
|
|
|
|
license = licenses.mit;
|
2023-02-15 19:06:52 +00:00
|
|
|
maintainers = with maintainers; [ dit7ya figsoda ];
|
2023-02-12 12:12:18 +00:00
|
|
|
platforms = platforms.linux;
|
2023-02-15 19:06:52 +00:00
|
|
|
broken = stdenv.isAarch64;
|
2023-02-12 12:12:18 +00:00
|
|
|
};
|
|
|
|
}
|