flake: Move helper derivations in a separate directory (#544)

This commit is contained in:
traxys 2023-08-24 12:47:03 +02:00 committed by GitHub
parent fd88522893
commit 09cefd2751
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 62 additions and 48 deletions

16
helpers/default.nix Normal file
View file

@ -0,0 +1,16 @@
pkgs: rec {
rust-analyzer-config = pkgs.callPackage ./rust-analyzer {};
autogenerated-configs = pkgs.callPackage ({stdenv}:
stdenv.mkDerivation {
pname = "autogenerated-configs";
version = "master";
dontUnpack = true;
dontBuild = true;
installPhase = ''
mkdir -p $out
cp ${rust-analyzer-config}/share/* $out
'';
}) {};
}