Skip to content

Commit

Permalink
Flake ihp schema package (#1764)
Browse files Browse the repository at this point in the history
* Add IHPSchema.sql flake package

* Add missing stdenv

* Just copy schema into root of

* Not necessary to create lib/IHP dir

* Remove unecessary -r flag

* Remove mkdir since out folder already created

* Make sure it's inside a 'result' directory, not a 'result' file

* mkdir needed afterall
  • Loading branch information
kodeFant authored Jul 21, 2023
1 parent ec6324c commit 01b2016
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions flake-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,16 @@ ihpFlake:
includeDevTools = false;
optimized = false;
};

ihp-schema = pkgs.stdenv.mkDerivation {
name = "ihp-schema";
src = ihp;
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
mkdir $out
cp ${ihp}/lib/IHP/IHPSchema.sql $out/
'';
};
};

devenv.shells.default = lib.mkIf cfg.enable {
Expand Down

0 comments on commit 01b2016

Please sign in to comment.