2022-12-04 21:52:55 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
2024-10-08 16:03:24 +00:00
|
|
|
rev = "v0.22.0";
|
2022-12-04 21:52:55 +00:00
|
|
|
src = (pkgs.fetchFromGitHub {
|
|
|
|
owner = "martinvonz";
|
|
|
|
repo = "jj";
|
|
|
|
inherit rev;
|
2024-10-08 16:03:24 +00:00
|
|
|
hash = "sha256-GbKmX1Ev/8di3A1XT5ZIRjzn2zP6DMye2NpA26PGVIs=";
|
2022-12-04 21:52:55 +00:00
|
|
|
}) // {
|
|
|
|
shortRev = rev;
|
|
|
|
};
|
2023-08-08 22:24:07 +00:00
|
|
|
flake-utils-src = (pkgs.fetchFromGitHub {
|
|
|
|
owner = "numtide";
|
|
|
|
repo = "flake-utils";
|
|
|
|
rev = "v1.0.0";
|
|
|
|
sha256 = "0hynd4rbkbplxzl2a8wb3r8z0h17z2alhhdsam78g3vgzpzg0d43";
|
|
|
|
});
|
|
|
|
flake-utils = (import "${flake-utils-src}/flake.nix").outputs {
|
|
|
|
self = flake-utils;
|
|
|
|
};
|
|
|
|
rust-overlay-src = (pkgs.fetchFromGitHub {
|
|
|
|
owner = "oxalica";
|
|
|
|
repo = "rust-overlay";
|
2024-10-19 12:40:57 +00:00
|
|
|
rev = "b259ef799b5ac014604da71ecd92d4a52603ed2d";
|
|
|
|
hash = "sha256-H7KGGJUU9BcDNnfXiATBGgs6FJKWQdfftNJS+/v2aMU=";
|
2023-08-08 22:24:07 +00:00
|
|
|
});
|
|
|
|
rust-overlay = (import "${rust-overlay-src}/flake.nix").outputs {
|
|
|
|
self = rust-overlay;
|
2022-12-04 21:52:55 +00:00
|
|
|
nixpkgs = pkgs;
|
2023-08-08 22:24:07 +00:00
|
|
|
};
|
|
|
|
flake = (import "${src}/flake.nix").outputs {
|
|
|
|
self = flake;
|
|
|
|
nixpkgs = pkgs.path;
|
|
|
|
flake-utils = flake-utils;
|
|
|
|
rust-overlay = rust-overlay;
|
2022-12-04 21:52:55 +00:00
|
|
|
};
|
2023-08-08 22:24:07 +00:00
|
|
|
fromFlake = (flake.overlays.default pkgs pkgs).jujutsu;
|
2024-03-26 19:00:52 +00:00
|
|
|
fromFlake' = if pkgs.system == "aarch64-linux" then fromFlake.overrideAttrs (_: {
|
|
|
|
doCheck = false;
|
|
|
|
}) else fromFlake;
|
2022-12-04 21:52:55 +00:00
|
|
|
in
|
2024-03-26 19:00:52 +00:00
|
|
|
fromFlake'
|