nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 pkg-config,
6 oniguruma,
7 stdenv,
8}:
9
10rustPlatform.buildRustPackage rec {
11 pname = "boxxy";
12 version = "0.8.5";
13
14 src = fetchFromGitHub {
15 owner = "queer";
16 repo = "boxxy";
17 rev = "v${version}";
18 hash = "sha256-6pb3yyC4/kpe8S67B3pzsSu3PfQyOWpiYi0JTBQk3lU=";
19 };
20
21 cargoHash = "sha256-L6EL8iP8FnV2WDe4bkHG/P5Zz4S9TAiw3V+XQSTABrQ=";
22
23 nativeBuildInputs = [
24 pkg-config
25 ];
26
27 buildInputs = [
28 oniguruma
29 ];
30
31 env = {
32 RUSTONIG_SYSTEM_LIBONIG = true;
33 };
34
35 meta = with lib; {
36 description = "Puts bad Linux applications in a box with only their files";
37 homepage = "https://github.com/queer/boxxy";
38 license = licenses.mit;
39 maintainers = with maintainers; [
40 dit7ya
41 figsoda
42 ];
43 platforms = platforms.linux;
44 broken = stdenv.hostPlatform.isAarch64;
45 mainProgram = "boxxy";
46 };
47}