nix: add package for only types (without site)
This commit is contained in:
parent
52514ee9fb
commit
bc2c0d5d2c
14
flake.lock
14
flake.lock
|
@ -2,11 +2,11 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1714253743,
|
"lastModified": 1730785428,
|
||||||
"narHash": "sha256-mdTQw2XlariysyScCv2tTE45QSU9v/ezLcHJ22f0Nxc=",
|
"narHash": "sha256-Zwl8YgTVJTEum+L+0zVAWvXAGbWAuXHax3KzuejaDyo=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "58a1abdbae3217ca6b702f03d3b35125d88a2994",
|
"rev": "4aa36568d413aca0ea84a1684d2d46f55dbabad7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -22,11 +22,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1727168378,
|
"lastModified": 1730842284,
|
||||||
"narHash": "sha256-BvJuLTdqkKKzeVL8txVOTEUNWxZ1dfVdo02NdZUV+nU=",
|
"narHash": "sha256-s0doicDkqzCqHvplBnjWPJtGJwajjDdfVkmmPu32l6Q=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "fbaec141c01e8b3376850bd98aabeadf9fad0fcf",
|
"rev": "b528be94260b572919ff47d2f5e3150ebc1ee3e9",
|
||||||
"revCount": 351,
|
"revCount": 368,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.outfoxxed.me/outfoxxed/quickshell"
|
"url": "https://git.outfoxxed.me/outfoxxed/quickshell"
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
quickshell = {
|
quickshell = {
|
||||||
url = "git+https://git.outfoxxed.me/outfoxxed/quickshell";
|
url = "git+https://git.outfoxxed.me/quickshell/quickshell";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -19,6 +19,10 @@
|
||||||
srcpath = "${quickshell}/src";
|
srcpath = "${quickshell}/src";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
quickshell-types = pkgs.callPackage ./types.nix {
|
||||||
|
srcpath = "${quickshell}/src";
|
||||||
|
};
|
||||||
|
|
||||||
default = quickshell-docs;
|
default = quickshell-docs;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
23
types.nix
Normal file
23
types.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
stdenv,
|
||||||
|
nix-gitignore,
|
||||||
|
just,
|
||||||
|
|
||||||
|
callPackage,
|
||||||
|
typegen ? (callPackage ./typegen {}),
|
||||||
|
srcpath ? ../src,
|
||||||
|
}: stdenv.mkDerivation {
|
||||||
|
name = "quickshell-types";
|
||||||
|
version = "0.1.0";
|
||||||
|
src = nix-gitignore.gitignoreSource "/typegen\n" ./.;
|
||||||
|
|
||||||
|
buildInputs = [ just typegen ];
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
SRC_PATH="${srcpath}" TYPEGEN=typegen just typedocs
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mv ./data/modules $out
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue