ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / ca / carbon-now-cli / package.nix
blob7d35283ab74c62abe17c6dbe03f5ee9ad9fae364
1 { lib
2 , buildNpmPackage
3 , fetchFromGitHub
4 }:
6 buildNpmPackage rec {
7   pname = "carbon-now-cli";
8   version = "2.0.0";
10   src = fetchFromGitHub {
11     owner = "mixn";
12     repo = "carbon-now-cli";
13     rev = "v${version}";
14     hash = "sha256-2fqZdPkVM3qBZKacBv9dX99Q9WnM5m7OpChG2n1TnXg=";
15   };
17   npmDepsHash = "sha256-UgrgnaA+GXRQT3dtAoMq6tsZZ2gV1CQNoYG58IuSZUM=";
19   postPatch = ''
20     substituteInPlace package.json \
21       --replace "bundle/cli.js" "dist/cli.js" \
22       --replace "trash " "rm -rf " \
23       --replace "npx playwright install --with-deps" "true"
24   '';
26   env = {
27     PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD = 1;
28   };
30   meta = {
31     description = "Beautiful images of your code — from right inside your terminal";
32     homepage = "https://github.com/mixn/carbon-now-cli";
33     license = lib.licenses.mit;
34     mainProgram = "carbon-now";
35     maintainers = with lib.maintainers; [ rmcgibbo ];
36   };