Skip to content

Commit 164d446

Browse files
authored
Merge pull request #332192 from piotrkwiecinski/castor-update
castor: 0.14.0 -> 0.17.1
2 parents 96b6ad6 + ed0930b commit 164d446

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

pkgs/development/php-packages/castor/default.nix

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
lib,
33
fetchFromGitHub,
4-
fetchpatch,
54
installShellFiles,
65
php,
76
nix-update-script,
@@ -10,34 +9,25 @@
109

1110
php.buildComposerProject (finalAttrs: {
1211
pname = "castor";
13-
version = "0.14.0";
12+
version = "0.17.1";
1413

1514
src = fetchFromGitHub {
1615
owner = "jolicode";
1716
repo = "castor";
1817
rev = "v${finalAttrs.version}";
19-
hash = "sha256-sSIkXNW6RR1mx15dKouQLMaHBr5FEkTTc/0QIkWV8sg=";
18+
hash = "sha256-ng32vuGlGffpkzf3hXu0sNbj0PCDu4DpZnMnbDV9pZk=";
2019
};
2120

22-
patches = [
23-
# Upstream lock is invalid. https://github.com/jolicode/castor/issues/319
24-
(fetchpatch {
25-
name = "fix-invalid-lock.patch";
26-
url = "https://github.com/jolicode/castor/commit/5ff0c3ecbdddad20146adbc2f055b83f5aadba0f.patch";
27-
hash = "sha256-1a3Dpk/UXp92Ugw9zSoLPsbWOJEuP2FBWc/pQ/EKwaM=";
28-
})
29-
];
30-
31-
vendorHash = "sha256-HfEjwlkozeuT4LDnYwiCu7T0spcf4GLhkd7Kc1VRnro=";
21+
vendorHash = "sha256-E2NMWuUQXQ96NbKrcFnFGlxWR0tkd56MXk1bCL0N/sE=";
3222

3323
nativeBuildInputs = [ installShellFiles ];
3424

3525
# install shell completions
3626
postInstall = ''
3727
installShellCompletion --cmd castor \
38-
--bash <($out/bin/castor completion bash) \
39-
--fish <($out/bin/castor completion fish) \
40-
--zsh <($out/bin/castor completion zsh)
28+
--bash <(php $out/bin/castor completion bash) \
29+
--fish <(php $out/bin/castor completion fish) \
30+
--zsh <(php $out/bin/castor completion zsh)
4131
'';
4232

4333
passthru = {

0 commit comments

Comments
 (0)