Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 32 lines 806 B view raw
1{ buildNpmPackage 2, fetchFromGitHub 3, lib 4}: 5 6buildNpmPackage rec { 7 pname = "sharing"; 8 version = "1.2.2"; 9 10 src = fetchFromGitHub { 11 owner = "parvardegr"; 12 repo = pname; 13 rev = "v${version}"; 14 hash = "sha256-y5tAbyRGxr6lagU/+pLBN0VIpk3+SzKyXOehQk6NW+M="; 15 }; 16 17 npmDepsHash = "sha256-2DwFkkoODDuLOxF63F1ywoXzjcMn/+H2ycRWlJlNcCI="; 18 19 dontNpmBuild = true; 20 21 # The prepack script runs the build script, which we'd rather do in the build phase. 22 npmPackFlags = [ "--ignore-scripts" ]; 23 24 NODE_OPTIONS = "--openssl-legacy-provider"; 25 26 meta = with lib; { 27 description = "Command-line tool to share directories and files to mobile devices"; 28 homepage = "https://github.com/parvardegr/sharing"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ ChaosAttractor ]; 31 }; 32}