feat: add flake (#840)
This commit is contained in:
1 parent
af722c59b3
commit
4b1807c40b
4 files changed
+162
No files matched your search
@@ -0,0 +1,26 @@
|
||||
{
|
||||
lib,
|
||||
denoPlatform,
|
||||
}:
|
||||
denoPlatform.mkDenoDerivation {
|
||||
name = "userstyles";
|
||||
version = "unstable";
|
||||
|
||||
src = ../.;
|
||||
|
||||
buildPhase = ''
|
||||
mkdir -p $out
|
||||
deno task ci:generate-import
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
cp -r dist/* $out
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A collection of userstyles for various websites.";
|
||||
homepage = "https://github.com/catppuccin/userstyles";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [isabelroses];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
deno,
|
||||
callPackage,
|
||||
nodePackages,
|
||||
...
|
||||
}: let
|
||||
mainPkg = callPackage ./default.nix {};
|
||||
in
|
||||
mainPkg.overrideAttrs (oa: {
|
||||
buildInputs =
|
||||
[
|
||||
deno
|
||||
nodePackages.prettier
|
||||
]
|
||||
++ (oa.nativeBuildInputs or []);
|
||||
})
|
||||
Reference in new issue
Block a user