31 lines
964 B
Nix
31 lines
964 B
Nix
|
{ lib, rustPlatform, fetchFromGitHub, makeWrapper, nix }:
|
||
|
rustPlatform.buildRustPackage {
|
||
|
pname = "aa-alias-manager";
|
||
|
version = "unstable-2024-10-25";
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "LordGrimmauld";
|
||
|
repo = "aa-alias-manager";
|
||
|
rev = "23a0bb9ac822c80aefba4211b426d0550769f87a";
|
||
|
hash = "sha256-yo+EaXZgc3BNYgoQZ/ixrJj6mllwn2YYdCtxS7T4khc=";
|
||
|
};
|
||
|
|
||
|
cargoHash = "sha256-nKAUOITYZJx9fte6qH6t9FbofTK8alhLb4A5YqRq3eA=";
|
||
|
|
||
|
nativeBuildInputs = [ makeWrapper ];
|
||
|
buildInputs = [ nix ];
|
||
|
|
||
|
postInstall = ''
|
||
|
wrapProgram $out/bin/aa-alias-manager \
|
||
|
--suffix PATH : "${nix}/bin/"
|
||
|
'';
|
||
|
|
||
|
meta = {
|
||
|
description = "Tool to generate a file of aliases for apparmor based on current nixos generation";
|
||
|
homepage = "https://github.com/LordGrimmauld/aa-alias-manager";
|
||
|
license = lib.licenses.gpl3Only;
|
||
|
mainProgram = "aa-alias-manager";
|
||
|
maintainers = with lib.maintainers; [ grimmauld ];
|
||
|
platforms = lib.platforms.linux;
|
||
|
};
|
||
|
}
|