apx: init at 1.4.2
This commit is contained in:
parent
16d623c3fc
commit
fbb694c1b5
53
pkgs/tools/package-management/apx/default.nix
Normal file
53
pkgs/tools/package-management/apx/default.nix
Normal file
@ -0,0 +1,53 @@
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, makeWrapper
|
||||
, installShellFiles
|
||||
, docker
|
||||
, distrobox
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "apx";
|
||||
version = "1.4.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Vanilla-OS";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-BswX4Jo/RReM/tXo29V9rIvKjN8ylECPe0oo0FCQcGY=";
|
||||
};
|
||||
|
||||
vendorSha256 = null;
|
||||
|
||||
ldflags = [ "-s" "-w" ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/etc/apx
|
||||
|
||||
cat > "$out/etc/apx/config.json" <<EOF
|
||||
{
|
||||
"containername": "apx_managed",
|
||||
"image": "docker.io/library/ubuntu",
|
||||
"pkgmanager": "apt",
|
||||
"distroboxpath": "${distrobox}/bin/distrobox"
|
||||
}
|
||||
EOF
|
||||
|
||||
wrapProgram $out/bin/apx --prefix PATH : ${lib.makeBinPath [ docker distrobox ]}
|
||||
|
||||
installManPage man/apx.1 man/es/apx.1
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "The Vanilla OS package manager";
|
||||
homepage = "https://github.com/Vanilla-OS/apx";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ dit7ya ];
|
||||
};
|
||||
}
|
@ -37004,6 +37004,8 @@ with pkgs;
|
||||
|
||||
apt = callPackage ../tools/package-management/apt { };
|
||||
|
||||
apx = callPackage ../tools/package-management/apx { };
|
||||
|
||||
dpkg = callPackage ../tools/package-management/dpkg { };
|
||||
|
||||
dumb = callPackage ../misc/dumb { };
|
||||
|
Loading…
Reference in New Issue
Block a user