Nix flake packaging for jcode, built from the upstream Rust source release tag.
Run directly:
nix run github:hypervideo/jcode-nix -- --helpUse the overlay from another flake:
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
jcode-nix.url = "github:hypervideo/jcode-nix";
};
outputs =
{
self,
nixpkgs,
flake-utils,
jcode-nix,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ jcode-nix.overlays.default ];
};
in
{
devShells.default = pkgs.mkShell {
packages = [ pkgs.jcode ];
};
}
);
}The updater tracks the latest GitHub release, refreshes the source hash and Cargo vendor hash, and preserves release build metadata:
nix shell nixpkgs#curl nixpkgs#jq nixpkgs#git -c bash scripts/update-jcode.sh