Packaging Sculpin with Nix

This commit is contained in:
Oliver Davies 2025-08-20 12:00:00 +01:00
parent 869f20f95e
commit 5344b3ee61
5 changed files with 60 additions and 0 deletions

24
nix/sculpin/flake.nix Normal file
View file

@ -0,0 +1,24 @@
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = inputs:
let
system = "x86_64-linux";
pkgs = import inputs.nixpkgs { inherit system; };
in
{
packages.${system}.default = pkgs.php.buildComposerProject2 {
pname = "sculpin";
version = "3.3.0-dev";
src = pkgs.fetchFromGitHub {
owner = "sculpin";
repo = "sculpin";
rev = "03af6498c32663e3d307ebfe346bb8d48feddec5";
hash = "sha256-K3wyXRiOIlkfy8Kx8pvIzne+N2XNTxZYyDlunfpQsL8=";
};
vendorHash = "sha256-b5+Jj8YUy5QzZ/VG0YN58vkknFLYwn97pfrvUGmA+Dc=";
};
};
}