make nix build/run work by adding installPhase
This commit is contained in:
parent
8c86ee649c
commit
cf05e5787a
2 changed files with 9 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
target/
|
target/
|
||||||
|
result
|
||||||
.ccls-cache/
|
.ccls-cache/
|
||||||
.direnv/
|
.direnv/
|
||||||
|
|
|
@ -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.";
|
||||||
|
|
Loading…
Reference in a new issue