2024-02-01 21:52:19 +00:00
|
|
|
{
|
|
|
|
description = "A very basic flake";
|
|
|
|
|
|
|
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
|
|
flake-utils.lib.eachDefaultSystem (system: let
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
2024-09-09 20:16:00 +00:00
|
|
|
cinny = pkgs.buildNpmPackage {
|
2024-02-01 21:52:19 +00:00
|
|
|
name = "cinny";
|
|
|
|
src = ./.;
|
2024-09-11 19:23:59 +00:00
|
|
|
npmDepsHash = "sha256-43nCceq1hR89m/xvC+89qxHGdtOUKjZU/MAz4pYu8K0=";
|
2024-09-09 20:16:00 +00:00
|
|
|
nativeBuildInputs = with pkgs; [ python3 pkg-config ];
|
|
|
|
buildInputs = with pkgs; [ pixman cairo pango ];
|
|
|
|
installPhase = ''
|
|
|
|
cp -r dist $out
|
|
|
|
'';
|
2024-02-01 21:52:19 +00:00
|
|
|
};
|
|
|
|
in {
|
2024-09-09 20:16:00 +00:00
|
|
|
packages.default = cinny;
|
2024-02-01 21:52:19 +00:00
|
|
|
});
|
|
|
|
}
|