mirror of
https://github.com/opdavies/build-configs.git
synced 2025-01-22 10:17:32 +00:00
Create a Nix derivation with a default package
This commit is contained in:
parent
2e701e7dd5
commit
0aa6d18cd4
|
@ -8,7 +8,7 @@
|
|||
"ext-ctype": "*",
|
||||
"ext-iconv": "*",
|
||||
"doctrine/annotations": "^2.0",
|
||||
"illuminate/collections": "*",
|
||||
"illuminate/collections": "^10.48",
|
||||
"illuminate/pipeline": "^10.8",
|
||||
"illuminate/support": "^10.8",
|
||||
"phpdocumentor/reflection-docblock": "^5.3",
|
||||
|
|
12
composer.lock
generated
12
composer.lock
generated
|
@ -4,7 +4,7 @@
|
|||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "e7d5bf85313a3f5cb74e96149e0c01ec",
|
||||
"content-hash": "9c3dcc8628cae9cb036666e39be896dd",
|
||||
"packages": [
|
||||
{
|
||||
"name": "carbonphp/carbon-doctrine-types",
|
||||
|
@ -368,16 +368,16 @@
|
|||
},
|
||||
{
|
||||
"name": "illuminate/collections",
|
||||
"version": "v10.48.3",
|
||||
"version": "v10.48.8",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/illuminate/collections.git",
|
||||
"reference": "36651526fa6bb5445ffc6d51899d80291f8e0486"
|
||||
"reference": "f9589f1063a449111dcaa1d68285b507d9483a95"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/illuminate/collections/zipball/36651526fa6bb5445ffc6d51899d80291f8e0486",
|
||||
"reference": "36651526fa6bb5445ffc6d51899d80291f8e0486",
|
||||
"url": "https://api.github.com/repos/illuminate/collections/zipball/f9589f1063a449111dcaa1d68285b507d9483a95",
|
||||
"reference": "f9589f1063a449111dcaa1d68285b507d9483a95",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -419,7 +419,7 @@
|
|||
"issues": "https://github.com/laravel/framework/issues",
|
||||
"source": "https://github.com/laravel/framework"
|
||||
},
|
||||
"time": "2024-03-10T15:34:39+00:00"
|
||||
"time": "2024-03-20T20:09:13+00:00"
|
||||
},
|
||||
{
|
||||
"name": "illuminate/conditionable",
|
||||
|
|
11
flake.nix
11
flake.nix
|
@ -10,10 +10,21 @@
|
|||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
|
||||
inherit (pkgs) mkShell;
|
||||
inherit (pkgs.php) buildComposerProject;
|
||||
in {
|
||||
devShells.${system}.default =
|
||||
mkShell { buildInputs = with pkgs; [ just php82 php82Packages.composer ]; };
|
||||
|
||||
packages.${system}.default = buildComposerProject (finalAttrs: {
|
||||
pname = "build-configs";
|
||||
version = "0.1.0";
|
||||
src = ./.;
|
||||
|
||||
composerLock = ./composer.lock;
|
||||
|
||||
vendorHash = "sha256-HElnPeC88D4kFp39/dikEd2XbqQ3xXOaDR0k48TB2tY=";
|
||||
});
|
||||
|
||||
formatter.${system} = pkgs.nixfmt;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue