starkiller: init at 3.0.1

Co-authored-by: Farid Zakaria <farid.m.zakaria@gmail.com>
This commit is contained in:
Vince Rose 2025-08-15 14:29:22 -07:00
parent 4afcc5ad94
commit 79d6b181c9

View File

@ -0,0 +1,66 @@
{
lib,
stdenv,
fetchFromGitHub,
fetchYarnDeps,
yarnConfigHook,
nodejs_24,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "starkiller";
version = "3.0.1";
src = fetchFromGitHub {
owner = "bc-security";
repo = "starkiller";
rev = "v${finalAttrs.version}";
hash = "sha256-+q+toH5AvIdFPOY0Q06lWDlPrhIpEnukV+8JlwDZVPE=";
};
yarnOfflineCache = fetchYarnDeps {
yarnLock = finalAttrs.src + "/yarn.lock";
hash = "sha256-fkpYRnBEM/nUtdqnWMb7Trqa5SnCrdX7RUYgd73RGFE=";
};
buildPhase = ''
runHook preBuild
# Copying the workaround from
# https://github.com/NixOS/nixpkgs/pull/386706
pushd node_modules/vue-demi
yarn run postinstall
popd
yarn --offline build
runHook postBuild
'';
postInstall = ''
mkdir $out
cp -r dist/** $out
'';
nativeBuildInputs = [
yarnConfigHook
# Needed for executing package.json scripts
nodejs_24
];
passthru = {
updateScript = nix-update-script { };
};
meta = {
homepage = "https://github.com/BC-SECURITY/Starkiller";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
description = "Web UI for Empire";
maintainers = with lib.maintainers; [
fzakaria
vrose
];
};
})