Create a sculpin dev shell

Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
Oliver Davies 2025-09-23 22:03:13 +01:00
parent ef6faa57ea
commit a98d4ff909
5 changed files with 13 additions and 45 deletions

View file

@ -12,6 +12,7 @@
buildNpmPackage buildNpmPackage
fetchFromGitHub fetchFromGitHub
mkShell mkShell
php
; ;
in in
{ {
@ -23,6 +24,10 @@
openapi-mock = import ./openapi-mock.nix { openapi-mock = import ./openapi-mock.nix {
inherit buildGoModule fetchFromGitHub; inherit buildGoModule fetchFromGitHub;
}; };
sculpin = import ./sculpin.nix {
inherit fetchFromGitHub php;
};
}; };
devShells.${system} = with pkgs; { devShells.${system} = with pkgs; {
@ -45,6 +50,12 @@
self.packages.${system}.openapi-mock self.packages.${system}.openapi-mock
]; ];
}; };
sculpin = mkShell {
packages = [
self.packages.${system}.sculpin
];
};
}; };
}; };
} }

1
nix/sculpin/.envrc Normal file
View file

@ -0,0 +1 @@
use flake ../..#sculpin

27
nix/sculpin/flake.lock generated
View file

@ -1,27 +0,0 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1755615617,
"narHash": "sha256-HMwfAJBdrr8wXAkbGhtcby1zGFvs+StOp19xNsbqdOg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "20075955deac2583bb12f07151c2df830ef346b4",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

View file

@ -1,17 +0,0 @@
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs =
inputs:
let
system = "x86_64-linux";
pkgs = import inputs.nixpkgs { inherit system; };
inherit (pkgs) fetchFromGitHub php;
in
{
packages.${system}.default = (import ./package.nix {
inherit fetchFromGitHub php;
});
};
}

View file

@ -11,5 +11,5 @@ php.buildComposerProject2 {
hash = "sha256-K3wyXRiOIlkfy8Kx8pvIzne+N2XNTxZYyDlunfpQsL8="; hash = "sha256-K3wyXRiOIlkfy8Kx8pvIzne+N2XNTxZYyDlunfpQsL8=";
}; };
vendorHash = "sha256-b5+Jj8YUy5QzZ/VG0YN58vkknFLYwn97pfrvUGmA+Dc="; vendorHash = "sha256-OGRUkpItPJMCMd/0NGPgP45TlA32kVGEVmY1khrzTg8=";
} }