refactor(nix)!: more minmal shell; remove package (#1025)
This commit is contained in:
1 parent
23ecff2518
commit
49dc543fee
5 files changed
+34
-135
No files matched your search
Generated
+5
-73
@@ -1,92 +1,24 @@
|
|||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"flake-utils": {
|
|
||||||
"inputs": {
|
|
||||||
"systems": "systems"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1710146030,
|
|
||||||
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nix-deno": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": "nixpkgs"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1713992202,
|
|
||||||
"narHash": "sha256-+sxjCORBeqOX4lgVGeoCiMRidLh8qpi21+NiOfiPr4k=",
|
|
||||||
"owner": "nekowinston",
|
|
||||||
"repo": "nix-deno",
|
|
||||||
"rev": "bb43316eb233e0cea0719a68b92cc797e4829169",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nekowinston",
|
|
||||||
"repo": "nix-deno",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1702312524,
|
"lastModified": 1719082008,
|
||||||
"narHash": "sha256-gkZJRDBUCpTPBvQk25G0B7vfbpEYM5s5OZqghkjZsnE=",
|
"narHash": "sha256-jHJSUH619zBQ6WdC21fFAlDxHErKVDJ5fpN0Hgx4sjs=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "a9bf124c46ef298113270b1f84a164865987a91c",
|
"rev": "9693852a2070b398ee123a329e68f0dab5526681",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"ref": "nixos-unstable",
|
"ref": "nixpkgs-unstable",
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs_2": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1713984123,
|
|
||||||
"narHash": "sha256-mpwxnahk1VqWD1nelbRr6QI+3ZOmYu+t/glpwg+AxgI=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "bbe2490a512b66964b48f6b431897dbed8164894",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils",
|
"nixpkgs": "nixpkgs"
|
||||||
"nix-deno": "nix-deno",
|
|
||||||
"nixpkgs": "nixpkgs_2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,25 +1,20 @@
|
|||||||
{
|
{
|
||||||
description = "Catppuccin userstyles";
|
description = "Catppuccin userstyles";
|
||||||
|
|
||||||
inputs = {
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs";
|
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
|
||||||
nix-deno.url = "github:nekowinston/nix-deno";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = {
|
outputs =
|
||||||
nixpkgs,
|
{ nixpkgs, ... }:
|
||||||
flake-utils,
|
let
|
||||||
...
|
forAllSystems =
|
||||||
} @ inputs:
|
function:
|
||||||
flake-utils.lib.eachDefaultSystem (system: let
|
nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (
|
||||||
pkgs = import nixpkgs {
|
system: function nixpkgs.legacyPackages.${system}
|
||||||
inherit system;
|
);
|
||||||
overlays = [inputs.nix-deno.overlays.default];
|
in
|
||||||
};
|
{
|
||||||
in {
|
devShells = forAllSystems (pkgs: {
|
||||||
packages.default = pkgs.callPackage ./nix/default.nix {};
|
default = pkgs.callPackage ./shell.nix { };
|
||||||
|
});
|
||||||
devShells.default = pkgs.callPackage ./nix/shell.nix {};
|
};
|
||||||
});
|
|
||||||
}
|
}
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
{
|
|
||||||
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];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
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