make nix build/run work by adding installPhase

This commit is contained in:
jacekpoz 2024-04-18 22:08:44 +02:00
parent 8c86ee649c
commit cf05e5787a
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
2 changed files with 9 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
target/ target/
result
.ccls-cache/ .ccls-cache/
.direnv/ .direnv/

View file

@ -13,6 +13,14 @@ stdenv.mkDerivation {
sfml sfml
]; ];
installPhase = ''
runHook preInstall
install -Dm755 target/osu++ -t $out/bin
runHook postInstall
'';
meta = with lib; { meta = with lib; {
homepage = "https://git.jacekpoz.pl/jacekpoz/osuplusplus"; homepage = "https://git.jacekpoz.pl/jacekpoz/osuplusplus";
description = "An osu client written in C++ using SMFL."; description = "An osu client written in C++ using SMFL.";