Skip to content

Commit

Permalink
Merge pull request #332192 from piotrkwiecinski/castor-update
Browse files Browse the repository at this point in the history
castor: 0.14.0 -> 0.17.1
  • Loading branch information
drupol authored Aug 12, 2024
2 parents 96b6ad6 + ed0930b commit 164d446
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions pkgs/development/php-packages/castor/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
lib,
fetchFromGitHub,
fetchpatch,
installShellFiles,
php,
nix-update-script,
Expand All @@ -10,34 +9,25 @@

php.buildComposerProject (finalAttrs: {
pname = "castor";
version = "0.14.0";
version = "0.17.1";

src = fetchFromGitHub {
owner = "jolicode";
repo = "castor";
rev = "v${finalAttrs.version}";
hash = "sha256-sSIkXNW6RR1mx15dKouQLMaHBr5FEkTTc/0QIkWV8sg=";
hash = "sha256-ng32vuGlGffpkzf3hXu0sNbj0PCDu4DpZnMnbDV9pZk=";
};

patches = [
# Upstream lock is invalid. https://github.com/jolicode/castor/issues/319
(fetchpatch {
name = "fix-invalid-lock.patch";
url = "https://github.com/jolicode/castor/commit/5ff0c3ecbdddad20146adbc2f055b83f5aadba0f.patch";
hash = "sha256-1a3Dpk/UXp92Ugw9zSoLPsbWOJEuP2FBWc/pQ/EKwaM=";
})
];

vendorHash = "sha256-HfEjwlkozeuT4LDnYwiCu7T0spcf4GLhkd7Kc1VRnro=";
vendorHash = "sha256-E2NMWuUQXQ96NbKrcFnFGlxWR0tkd56MXk1bCL0N/sE=";

nativeBuildInputs = [ installShellFiles ];

# install shell completions
postInstall = ''
installShellCompletion --cmd castor \
--bash <($out/bin/castor completion bash) \
--fish <($out/bin/castor completion fish) \
--zsh <($out/bin/castor completion zsh)
--bash <(php $out/bin/castor completion bash) \
--fish <(php $out/bin/castor completion fish) \
--zsh <(php $out/bin/castor completion zsh)
'';

passthru = {
Expand Down

0 comments on commit 164d446

Please sign in to comment.