Skip to content

Commit

Permalink
[nix] migrate t1-helper to new mill flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Avimitin committed Feb 28, 2025
1 parent 88b8b19 commit 2fa63ee
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7,204 deletions.
1 change: 1 addition & 0 deletions dependencies/riscv-opcodes
10 changes: 6 additions & 4 deletions script/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{ lib
, stdenv
, fetchMillDeps
, makeWrapper

, add-determinism
Expand All @@ -12,8 +11,11 @@
let
mkHelper = { moduleName, scriptSrc, outName }:
let
scriptDeps = mill-ivy-fetcher.deps-builder ./ivys/_sources/generated.nix;
self = stdenv.mkDerivation rec {
scriptDeps = mill-ivy-fetcher.generateIvyCache {
inherit (self) name src;
hash = "sha256-Ba5W/mnJePyvBVs9mimIIX6GLAww7Awx3b5e4x9nLjk=";
};
self = stdenv.mkDerivation {
name = "t1-${moduleName}-script";

src = with lib.fileset; toSource {
Expand All @@ -40,7 +42,7 @@ let
'';
});

buildInputs = scriptDeps.ivyDepsList;
buildInputs = scriptDeps.cache.ivyDepsList;

nativeBuildInputs = [
mill
Expand Down
Loading

0 comments on commit 2fa63ee

Please sign in to comment.