Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 38 lines 911 B view raw
1{ 2 lib, 3 buildNpmPackage, 4 fetchFromGitHub, 5}: 6 7buildNpmPackage rec { 8 pname = "carbon-now-cli"; 9 version = "2.1.0"; 10 11 src = fetchFromGitHub { 12 owner = "mixn"; 13 repo = "carbon-now-cli"; 14 rev = "v${version}"; 15 hash = "sha256-J7H1oofgosFGxoHzcx+UxaRbqGwqrmk6MYmMISpNB6w="; 16 }; 17 18 npmDepsHash = "sha256-/YWsk+GNfudSG0Rof1eCXeoK6dfyzzQqvWBLkpfahE0="; 19 20 postPatch = '' 21 substituteInPlace package.json \ 22 --replace "bundle/cli.js" "dist/cli.js" \ 23 --replace "trash " "rm -rf " \ 24 --replace "npx playwright install --with-deps" "true" 25 ''; 26 27 env = { 28 PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD = 1; 29 }; 30 31 meta = { 32 description = "Beautiful images of your code from right inside your terminal"; 33 homepage = "https://github.com/mixn/carbon-now-cli"; 34 license = lib.licenses.mit; 35 mainProgram = "carbon-now"; 36 maintainers = with lib.maintainers; [ rmcgibbo ]; 37 }; 38}