2023-02-16 17:41:37 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2023-03-30 22:05:00 +00:00
|
|
|
, pkg-config
|
|
|
|
, oniguruma
|
2023-04-29 16:46:19 +00:00
|
|
|
, stdenv
|
2023-02-16 17:41:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "boxxy";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.8.4";
|
2023-02-16 17:41:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "queer";
|
|
|
|
repo = "boxxy";
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-euIecFMDktL0gDkso83T1qZfVdfYAAC+WBMsfZaarAQ=";
|
2023-02-16 17:41:37 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
cargoHash = "sha256-8aIuMRjZHLlP3x+C9S9WX21/i98RAUvGGwzptzCpRR4=";
|
2023-03-30 22:05:00 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
oniguruma
|
|
|
|
];
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
env = {
|
|
|
|
RUSTONIG_SYSTEM_LIBONIG = true;
|
|
|
|
};
|
2023-02-16 17:41:37 +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-22 10:55:15 +00:00
|
|
|
maintainers = with maintainers; [ dit7ya figsoda ];
|
2023-02-16 17:41:37 +00:00
|
|
|
platforms = platforms.linux;
|
2023-02-22 10:55:15 +00:00
|
|
|
broken = stdenv.isAarch64;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "boxxy";
|
2023-02-16 17:41:37 +00:00
|
|
|
};
|
|
|
|
}
|