feat(flake): make petalpkgs src available for docs

This commit is contained in:
mei (ckie) 2024-10-27 01:42:32 +02:00
parent a62087432e
commit 4de208543c
Signed by: ckie
GPG key ID: 13E79449C0525215
4 changed files with 28 additions and 2 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake

4
.gitignore vendored
View file

@ -1,4 +1,5 @@
node_modules
.petalpkgs
# Output
.output
@ -6,6 +7,9 @@ node_modules
/.svelte-kit
/build
# Direnv cache
/.direnv
# OS
.DS_Store
Thumbs.db

View file

@ -34,10 +34,26 @@
"type": "github"
}
},
"petalpkgs": {
"locked": {
"lastModified": 1727211631,
"narHash": "sha256-o1JyfLf2U4gMGnc/ZiYw9nPjbOEA7qUUYAcUBegSSjY=",
"ref": "refs/heads/main",
"rev": "568a619fe669c876f774e703d0c3a1aff5c8d639",
"revCount": 686265,
"type": "git",
"url": "https://cl.forkos.org/nixpkgs"
},
"original": {
"type": "git",
"url": "https://cl.forkos.org/nixpkgs"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs",
"petalpkgs": "petalpkgs"
}
},
"systems": {

View file

@ -2,9 +2,10 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
petalpkgs.url = "git+https://cl.forkos.org/nixpkgs";
};
outputs = { self, nixpkgs, flake-utils }:
outputs = { self, nixpkgs, flake-utils, petalpkgs }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs { inherit system; };
in {
@ -13,6 +14,10 @@
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [ pkgs.stdenv.cc.cc.lib ];
buildInputs = with pkgs; [ bun ];
shellHook = ''
ln -sf ${petalpkgs.path} .petalpkgs
'';
};
# ... and remote deployment.