Skip to content

Commit

Permalink
wip: something that should become part of our unit tests
Browse files Browse the repository at this point in the history
move this this to ./tests
  • Loading branch information
Mic92 committed Dec 10, 2024
1 parent 4779abb commit 1d27d2f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,21 @@
drvArgs // { stdenv = pkgs.clangStdenv; }
);
packages.default = self'.packages.nix-eval-jobs;

packages.dep-a = pkgs.runCommand "dep-a" { } ''
mkdir -p $out
echo "dep-a" > $out/dep-a
'';
packages.dep-b = pkgs.runCommand "dep-b" { } ''
mkdir -p $out
echo "dep-b" > $out/dep-b
'';
packages.package-with-deps = pkgs.runCommand "package-with-deps" { } ''
mkdir -p $out
cp -r ${self'.packages.dep-a} $out/dep-a
cp -r ${self'.packages.dep-b} $out/dep-b
'';

devShells.default = pkgs.callPackage ./shell.nix drvArgs;
devShells.clang = pkgs.callPackage ./shell.nix (drvArgs // { stdenv = pkgs.clangStdenv; });

Expand Down

0 comments on commit 1d27d2f

Please sign in to comment.