mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
eb019b5a6b
and drop package maintainership for removed maintainers. PlayerNameHere is now known on github as dixslyf. Editing maintainer-list.nix… Borlaag likely deleted their github account bhootjb is now known on github as jyssh. Editing maintainer-list.nix… IvanMalison is now known on github as colonelpanic8. Editing maintainer-list.nix… jonnybolton is now known on github as jonnynightingale. Editing maintainer-list.nix… ee2500 likely deleted their github account lethalman is now known on github as lucabrunox. Editing maintainer-list.nix… theHedgehog0 is now known on github as pyrox0. Editing maintainer-list.nix… maddiethecafebabe likely deleted their github account nebulka1 likely deleted their github account christianharke is now known on github as rake5k. Editing maintainer-list.nix… razvan-flavius-panda is now known on github as freeman42x. Editing maintainer-list.nix… joscha has no github handle RichterOliver is now known on github as ORichterSec. Editing maintainer-list.nix… DomesticMoth is now known on github as asciimoth. Editing maintainer-list.nix… pjbarnoy is now known on github as waaamb. Editing maintainer-list.nix…
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ lib, stdenvNoCC, fetchFromGitHub, python3, makeBinaryWrapper }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "extism-cli";
|
|
version = "0.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "extism";
|
|
repo = "cli";
|
|
rev = "97935786166e82154266b82410028482800e6061";
|
|
sha256 = "sha256-LRzXuZQt5h3exw43UXUwLVIhveYVFw/SQ2YtHI9ZnWc=";
|
|
};
|
|
|
|
buildInputs = [ python3 ];
|
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -D -m 755 ./extism_cli/__init__.py "$out/bin/extism"
|
|
|
|
# The extism cli tries by default to install a library and header into /usr/local which does not work on NixOS.
|
|
# Pass a reasonable writable directory which can still be overwritten with another --prefix argument.
|
|
wrapProgram "$out/bin/extism" \
|
|
--add-flags '--prefix $HOME/.local'
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "The extism CLI is used to manage Extism installations";
|
|
homepage = "https://github.com/extism/cli";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|