Compare commits
8 Commits
copilot/ad
...
v0.0.3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8dbddb635d | ||
|
|
485ccdac7c | ||
|
|
5cb20b96c7 | ||
|
|
f31c88adab | ||
|
|
76a3f2f442 | ||
|
|
4d1be5ada2 | ||
|
|
cf18ebeb79 | ||
|
|
9b2420c9b9 |
6
.github/workflows/copilot-setup-steps.yml
vendored
6
.github/workflows/copilot-setup-steps.yml
vendored
@@ -35,5 +35,11 @@ jobs:
|
|||||||
extra_nix_config: |
|
extra_nix_config: |
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
|
|
||||||
|
- name: Restore and save Nix store cache
|
||||||
|
uses: nix-community/cache-nix-action@v7
|
||||||
|
with:
|
||||||
|
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
|
||||||
|
restore-prefixes-first-match: nix-${{ runner.os }}-
|
||||||
|
|
||||||
- name: Install flake dependencies
|
- name: Install flake dependencies
|
||||||
run: nix develop --accept-flake-config -c true
|
run: nix develop --accept-flake-config -c true
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module(
|
module(
|
||||||
name = "rules_bun",
|
name = "rules_bun",
|
||||||
version = "0.1.0",
|
version = "0.0.3",
|
||||||
)
|
)
|
||||||
|
|
||||||
bazel_dep(name = "platforms", version = "1.0.0")
|
bazel_dep(name = "platforms", version = "1.0.0")
|
||||||
|
|||||||
12
flake.lock
generated
12
flake.lock
generated
@@ -9,16 +9,16 @@
|
|||||||
"treefmt-nix": "treefmt-nix"
|
"treefmt-nix": "treefmt-nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772610504,
|
"lastModified": 1772613315,
|
||||||
"narHash": "sha256-uoMnjsab5IpZRZ/1mn5oVy4fRnAYn6b58E3FNa+jyQY=",
|
"narHash": "sha256-RlPTOsyfVwuwEzvaMpwS+giOqQa6KQXMuSHyh1bctjk=",
|
||||||
"ref": "v1.0.4",
|
"ref": "v1.0.5",
|
||||||
"rev": "86a0792b6e54104e8cb33983cabc175aea8da464",
|
"rev": "e445e49baf8b44b385108cd4f26a14d8ccf9fd35",
|
||||||
"revCount": 33,
|
"revCount": 35,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.dgren.dev/eric/nix-flake-lib"
|
"url": "https://git.dgren.dev/eric/nix-flake-lib"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"ref": "v1.0.4",
|
"ref": "v1.0.5",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.dgren.dev/eric/nix-flake-lib"
|
"url": "https://git.dgren.dev/eric/nix-flake-lib"
|
||||||
}
|
}
|
||||||
|
|||||||
14
flake.nix
14
flake.nix
@@ -3,12 +3,13 @@
|
|||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||||
devshell-lib.url = "git+https://git.dgren.dev/eric/nix-flake-lib?ref=v1.0.4";
|
devshell-lib.url = "git+https://git.dgren.dev/eric/nix-flake-lib?ref=v1.0.5";
|
||||||
devshell-lib.inputs.nixpkgs.follows = "nixpkgs";
|
devshell-lib.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
{
|
{
|
||||||
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
devshell-lib,
|
devshell-lib,
|
||||||
...
|
...
|
||||||
@@ -41,6 +42,7 @@
|
|||||||
bun
|
bun
|
||||||
bazel9
|
bazel9
|
||||||
bazel-buildtools
|
bazel-buildtools
|
||||||
|
self.packages.${system}.release
|
||||||
];
|
];
|
||||||
|
|
||||||
features = {
|
features = {
|
||||||
@@ -86,7 +88,7 @@
|
|||||||
name = "Bazel";
|
name = "Bazel";
|
||||||
bin = "${bazel9}/bin/bazel";
|
bin = "${bazel9}/bin/bazel";
|
||||||
versionCmd = "--version";
|
versionCmd = "--version";
|
||||||
color = "BLUE";
|
color = "GREEN";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -128,7 +130,13 @@
|
|||||||
release = devshell-lib.lib.mkRelease {
|
release = devshell-lib.lib.mkRelease {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
|
||||||
release = [ ];
|
release = [
|
||||||
|
{
|
||||||
|
run = ''
|
||||||
|
sed -E -i 's#^([[:space:]]*version[[:space:]]*=[[:space:]]*")[^"]*(",)$#\1'"$FULL_VERSION"'\2#' "$ROOT_DIR/MODULE.bazel"
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
postVersion = ''
|
postVersion = ''
|
||||||
echo "Released $FULL_TAG"
|
echo "Released $FULL_TAG"
|
||||||
|
|||||||
Reference in New Issue
Block a user