From cf05e5787ab8acedd69251dd29d431f4791fbb71 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Thu, 18 Apr 2024 22:08:44 +0200 Subject: [PATCH] make nix build/run work by adding installPhase --- .gitignore | 1 + nix/default.nix | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/.gitignore b/.gitignore index cf48717..30532f6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ target/ +result .ccls-cache/ .direnv/ diff --git a/nix/default.nix b/nix/default.nix index e2de1b8..36b5925 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -13,6 +13,14 @@ stdenv.mkDerivation { sfml ]; + installPhase = '' + runHook preInstall + + install -Dm755 target/osu++ -t $out/bin + + runHook postInstall + ''; + meta = with lib; { homepage = "https://git.jacekpoz.pl/jacekpoz/osuplusplus"; description = "An osu client written in C++ using SMFL.";