Packaging Sculpin with Nix
This commit is contained in:
parent
869f20f95e
commit
5344b3ee61
5 changed files with 60 additions and 0 deletions
2
nix/sculpin/.gitignore
vendored
Normal file
2
nix/sculpin/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
/output_*/
|
||||||
|
/result
|
27
nix/sculpin/flake.lock
generated
Normal file
27
nix/sculpin/flake.lock
generated
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{
|
||||||
|
"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
|
||||||
|
}
|
24
nix/sculpin/flake.nix
Normal file
24
nix/sculpin/flake.nix
Normal 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=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
3
nix/sculpin/notes.txt
Normal file
3
nix/sculpin/notes.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
nix build .
|
||||||
|
|
||||||
|
./result/bin/sculpin generate
|
4
nix/sculpin/source/index.md
Normal file
4
nix/sculpin/source/index.md
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
---
|
||||||
|
|
||||||
|
Hello, World!
|
Loading…
Add table
Add a link
Reference in a new issue