diff --git a/flake.nix b/flake.nix index bfc71d8..b17a0f5 100644 --- a/flake.nix +++ b/flake.nix @@ -41,6 +41,7 @@ filter = path: type: (pkgs.lib.hasSuffix "\.md" path) || (pkgs.lib.hasSuffix "\.stpl" path) || + (pkgs.lib.hasInfix "static" path) || (craneLib.filterCargoSources path type) ; }; @@ -56,6 +57,11 @@ ars = craneLib.buildPackage (commonArgs // { inherit cargoArtifacts; pname = "ars"; + installPhaseCommand = '' + mkdir -p $out/bin + cp target/release/ars $out/bin/ars + cp -r static $out/static + ''; }); in {