From 37a5069c3a91a05108a51dccc0b2db0521cb9d75 Mon Sep 17 00:00:00 2001 From: Haonan Chen Date: Mon, 22 Dec 2025 19:02:33 +0800 Subject: [PATCH] devices.wlin: add archive --- devices/wlin/default.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/devices/wlin/default.nix b/devices/wlin/default.nix index e7cc90f5..1d50f705 100644 --- a/devices/wlin/default.nix +++ b/devices/wlin/default.nix @@ -5,10 +5,11 @@ let inputs = { inherit (inputs.nixpkgs) lib; topInputs = inputs; }; nixpkgs = { march = "haswell"; nixRoot = "/data/gpfs01/wlin/.nix"; nixos = false; }; }); -in pkgs.symlinkJoin -{ - name = "wlin"; - paths = with pkgs; [ gnuplot localPackages.vaspkit pv ]; - postBuild = "echo ${inputs.self.rev or "dirty"} > $out/.version"; - passthru = { inherit pkgs; }; -} + wlin = pkgs.symlinkJoin + { + name = "wlin"; + paths = with pkgs; [ gnuplot localPackages.vaspkit pv ]; + postBuild = "echo ${inputs.self.rev or "dirty"} > $out/.version"; + passthru = { inherit pkgs; archive = pkgs.closureInfo { rootPaths = [ wlin.drvPath ]; }; }; + }; +in wlin