+19
default.nix
+19
default.nix
···
1
+
# stolen from https://github.com/tgirlcloud/nix-templates/blob/main/node/default.nix
2
+
{ lib, buildNpmPackage }:
3
+
4
+
buildNpmPackage {
5
+
pname = "catsky-social";
6
+
version = "0.1.0";
7
+
8
+
src = ./.;
9
+
10
+
npmDepsHash = lib.fakeHash;
11
+
12
+
meta = {
13
+
description = "soft social-app fork with niche toggles stolen from deer/zepplin and catppuccin'd ";
14
+
homepage = "https://github.com/NekoDrone/catsky-social";
15
+
license = lib.licenses.mit;
16
+
maintainers = with lib.maintainers; [ ];
17
+
mainProgram = "example";
18
+
};
19
+
}
+27
flake.lock
+27
flake.lock
···
1
+
{
2
+
"nodes": {
3
+
"nixpkgs": {
4
+
"locked": {
5
+
"lastModified": 1756128520,
6
+
"narHash": "sha256-R94HxJBi+RK1iCm8Y4Q9pdrHZl0GZoDPIaYwjxRNPh4=",
7
+
"owner": "nixos",
8
+
"repo": "nixpkgs",
9
+
"rev": "c53baa6685261e5253a1c355a1b322f82674a824",
10
+
"type": "github"
11
+
},
12
+
"original": {
13
+
"owner": "nixos",
14
+
"ref": "nixpkgs-unstable",
15
+
"repo": "nixpkgs",
16
+
"type": "github"
17
+
}
18
+
},
19
+
"root": {
20
+
"inputs": {
21
+
"nixpkgs": "nixpkgs"
22
+
}
23
+
}
24
+
},
25
+
"root": "root",
26
+
"version": 7
27
+
}
+30
flake.nix
+30
flake.nix
···
1
+
# stolen from https://github.com/tgirlcloud/nix-templates/blob/main/node/flake.nix
2
+
{
3
+
description = "catsky social dev flake";
4
+
5
+
inputs = {
6
+
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
7
+
};
8
+
9
+
outputs =
10
+
{ self, nixpkgs }:
11
+
let
12
+
forAllSystems =
13
+
function:
14
+
nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (
15
+
system: function nixpkgs.legacyPackages.${system}
16
+
);
17
+
in
18
+
{
19
+
packages = forAllSystems (pkgs: {
20
+
example = pkgs.callPackage ./default.nix { };
21
+
default = self.packages.${pkgs.stdenv.hostPlatform.system}.example;
22
+
});
23
+
24
+
devShells = forAllSystems (pkgs: {
25
+
default = pkgs.callPackage ./shell.nix { };
26
+
});
27
+
28
+
overlays.default = final: _: { example = final.callPackage ./default.nix { }; };
29
+
};
30
+
}
+40
shell.nix
+40
shell.nix
···
1
+
# stolen from https://github.com/tgirlcloud/nix-templates/blob/main/node/shell.nix
2
+
{
3
+
mkShellNoCC,
4
+
5
+
# extra tooling
6
+
eslint_d,
7
+
prettierd,
8
+
just,
9
+
fastmod,
10
+
nodejs,
11
+
yarn,
12
+
crowdin-cli,
13
+
typescript,
14
+
typescript-language-server,
15
+
16
+
callPackage,
17
+
}:
18
+
let
19
+
defaultPackage = callPackage ./default.nix { };
20
+
in
21
+
mkShellNoCC {
22
+
inputsFrom = [ defaultPackage ];
23
+
24
+
packages = [
25
+
eslint_d
26
+
prettierd
27
+
just
28
+
fastmod
29
+
nodejs
30
+
yarn
31
+
crowdin-cli
32
+
typescript
33
+
typescript-language-server
34
+
];
35
+
36
+
shellHook = ''
37
+
eslint_d start # start eslint daemon
38
+
eslint_d status # inform user about eslint daemon status
39
+
'';
40
+
}