-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
648 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2832,6 +2832,12 @@ | |
githubId = 24254289; | ||
name = "Payas Relekar"; | ||
}; | ||
bhasherbel = { | ||
email = "[email protected]"; | ||
github = "bhasherbel"; | ||
githubId = 45831883; | ||
name = "Brieuc Dubois"; | ||
}; | ||
bhipple = { | ||
email = "[email protected]"; | ||
github = "bhipple"; | ||
|
@@ -5841,7 +5847,7 @@ | |
name = "Sebastian Krohn"; | ||
}; | ||
drawbu = { | ||
email = "clement21[email protected]"; | ||
email = "clement2104[email protected]"; | ||
github = "drawbu"; | ||
githubId = 69208565; | ||
name = "Clément Boillot"; | ||
|
@@ -10941,6 +10947,12 @@ | |
githubId = 54635632; | ||
keys = [ { fingerprint = "4C68 56EE DFDA 20FB 77E8 9169 1964 2151 C218 F6F5"; } ]; | ||
}; | ||
jthulhu = { | ||
name = "Adrien Mathieu"; | ||
email = "[email protected]"; | ||
github = "jthulhu"; | ||
githubId = 23179762; | ||
}; | ||
jtobin = { | ||
email = "[email protected]"; | ||
github = "jtobin"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
{ | ||
lib, | ||
stdenv, | ||
buildNpmPackage, | ||
bruno, | ||
pkg-config, | ||
pango, | ||
apple-sdk_11, | ||
testers, | ||
bruno-cli, | ||
}: | ||
|
||
let | ||
pname = "bruno-cli"; | ||
in | ||
buildNpmPackage { | ||
inherit pname; | ||
|
||
# since they only make releases and git tags for bruno, | ||
# we lie about bruno-cli's version and say it's the same as bruno's | ||
# to keep them in sync with easier maintenance | ||
inherit (bruno) version src npmDepsHash; | ||
|
||
npmWorkspace = "packages/bruno-cli"; | ||
npmFlags = [ "--legacy-peer-deps" ]; | ||
|
||
nativeBuildInputs = [ | ||
pkg-config | ||
]; | ||
|
||
buildInputs = | ||
[ | ||
pango | ||
] | ||
++ lib.optionals stdenv.hostPlatform.isDarwin [ | ||
# fix for: https://github.com/NixOS/nixpkgs/issues/272156 | ||
apple-sdk_11 | ||
]; | ||
|
||
ELECTRON_SKIP_BINARY_DOWNLOAD = 1; | ||
|
||
buildPhase = '' | ||
runHook preBuild | ||
npm run build --workspace=packages/bruno-common | ||
npm run build --workspace=packages/bruno-graphql-docs | ||
npm run build --workspace=packages/bruno-query | ||
npm run sandbox:bundle-libraries --workspace=packages/bruno-js | ||
runHook postBuild | ||
''; | ||
|
||
npmPackFlags = [ "--ignore-scripts" ]; | ||
|
||
postInstall = '' | ||
cp -r packages $out/lib/node_modules/usebruno | ||
echo "Removing unnecessary files" | ||
pushd $out/lib/node_modules/usebruno | ||
rm -rfv packages/bruno-{app,electron,tests,toml,schema,docs} | ||
rm -rfv packages/*/node_modules/typescript | ||
rm -rfv node_modules/{next,@next,@tabler,pdfjs-dist,*redux*,*babel*,prettier,@types*,*react*,*graphiql*} | ||
for pattern in '*.map' '*.map.js' '*.ts'; do | ||
find . -type f -name "$pattern" -exec rm -v {} + | ||
done | ||
popd | ||
echo "Removed unnecessary files" | ||
''; | ||
|
||
postFixup = '' | ||
wrapProgram $out/bin/bru \ | ||
--prefix NODE_PATH : $out/lib/node_modules/usebruno/packages/bruno-cli/node_modules \ | ||
--prefix NODE_PATH : $out/lib/node_modules | ||
''; | ||
|
||
passthru.tests.help = testers.runCommand { | ||
name = "${pname}-help-test"; | ||
nativeBuildInputs = [ bruno-cli ]; | ||
script = '' | ||
bru --help && touch $out | ||
''; | ||
}; | ||
|
||
meta = { | ||
description = "CLI of the open-source IDE For exploring and testing APIs"; | ||
homepage = "https://www.usebruno.com"; | ||
license = lib.licenses.mit; | ||
mainProgram = "bru"; | ||
maintainers = with lib.maintainers; [ | ||
gepbird | ||
kashw2 | ||
lucasew | ||
mattpolzin | ||
water-sucks | ||
]; | ||
platforms = lib.platforms.linux ++ lib.platforms.darwin; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
lib, | ||
rustPlatform, | ||
fetchFromGitHub, | ||
}: | ||
|
||
rustPlatform.buildRustPackage { | ||
pname = "hyprsome"; | ||
version = "0.1.12-unstable-2024-05-20"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "sopa0"; | ||
repo = "hyprsome"; | ||
rev = "985e1a3b03b5118c98c03983f60ea9f74775858c"; | ||
hash = "sha256-JiOV9c23yOhaVW2NHgs8rjM8l9qt181Tigf5sCnPep8="; | ||
}; | ||
|
||
cargoHash = "sha256-Jqx77/PDWEJ+NPJN2R6n4w9nVPXQoHeuVfYKUB3i9Lg="; | ||
|
||
meta = { | ||
description = "Awesome-like workspaces for Hyprland"; | ||
homepage = "https://github.com/sopa0/hyprsome"; | ||
license = lib.licenses.gpl3Only; | ||
maintainers = with lib.maintainers; [ bhasherbel ]; | ||
platforms = lib.platforms.linux; | ||
mainProgram = "hyprsome"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.