feat: add flake (#840)

This commit is contained in:
Isabel authored and GitHub committed 2024-04-24 22:14:37 +01:00
1 parent af722c59b3
commit 4b1807c40b
4 files changed
+162

No files matched your search

+26
View File
@@ -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];
};
}
+16
View File
@@ -0,0 +1,16 @@
{
deno,
callPackage,
nodePackages,
...
}: let
mainPkg = callPackage ./default.nix {};
in
mainPkg.overrideAttrs (oa: {
buildInputs =
[
deno
nodePackages.prettier
]
++ (oa.nativeBuildInputs or []);
})