Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,21 @@
};
node_version = builtins.substring 1 (-1) (builtins.elemAt (lib.strings.splitString "." (builtins.fromJSON (builtins.readFile ./package.json)).engines.node) 0);
node = pkgs."nodejs_${node_version}";
php_stubs_updater = php.buildComposerProject2 (finalAttrs: {
pname = "php-stubs-updater";
version = "0.0.1";

src = pkgs.fetchFromGitea {
domain = "codeberg.org";
owner = "provokateurin";
repo = "php-stubs-updater";
rev = "fd8a76461dc409ea041bf5dcd3f91df2f4480415";
hash = "sha256-X37uw++oBwzTibNa7Qz5eONOnUEs2DKU/vm83+M3KH0=";
};

composerStrictValidation = false;
vendorHash = "sha256-DULjWnP+gBEq2x4GDj7yNK7wVFWuRLadHJym0EiRLjA=";
});
Comment on lines +93 to +107
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's easier if I just add this to my repo, then we only need it as an input (similar to how it's done with haze).

in
pkgs.mkShell {
NOCOVERAGE = 1;
Expand All @@ -104,6 +119,7 @@

haze.packages.${system}.default
pkgs.reuse
php_stubs_updater
];
};
}
Expand Down
Loading