Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hauk: init at 1.6.2 #377050

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

hauk: init at 1.6.2 #377050

wants to merge 1 commit into from

Conversation

hlad
Copy link
Contributor

@hlad hlad commented Jan 26, 2025

https://github.com/bilde2910/Hauk

Solves #335425

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin

@normalcea
Copy link
Contributor

normalcea commented Jan 26, 2025

Recommendations:

diff --git a/pkgs/by-name/ha/hauk/package.nix b/pkgs/by-name/ha/hauk/package.nix
index 3d1edeb9bdf9..61a305586a0c 100644
--- a/pkgs/by-name/ha/hauk/package.nix
+++ b/pkgs/by-name/ha/hauk/package.nix
@@ -1,29 +1,37 @@
 {
   lib,
-  stdenv,
+  stdenvNoCC,
   fetchFromGitHub,
 }:
-stdenv.mkDerivation rec {
+stdenvNoCC.mkDerivation (finalAttrs: {
   pname = "hauk";
   version = "1.6.2";
 
   src = fetchFromGitHub {
     owner = "bilde2910";
     repo = "Hauk";
-    rev = "v1.6.2";
+    tag = "v${finalAttrs.version}";
     hash = "sha256-h5OXAFkaQ1nmeF6AjFQ81JCD8mZCIZAPz0JEK9cwghI=";
   };
 
+  dontConfigure = true;
+  dontBuild = true;
+
   installPhase = ''
+    runHook preInstall
+
     mkdir -p $out/
     cp -R ./backend-php/* $out/
     cp -R ./frontend/* $out/
+
+    runHook postInstall
   '';
 
   meta = {
-    license = lib.licenses.asl20;
-    maintainers = with lib.maintainers; [ hlad ];
     description = "Hauk is a fully open source, self-hosted location sharing service.";
     homepage = "https://github.com/bilde2910/Hauk";
+    license = lib.licenses.asl20;
+    maintainers = with lib.maintainers; [ hlad ];
+    platforms = lib.platforms.unix;
   };
-}
+})

'';

meta = {
description = "Hauk is a fully open source, self-hosted location sharing service.";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description = "Hauk is a fully open source, self-hosted location sharing service.";
description = "Hauk is a fully open source, self-hosted location sharing service";

See https://nixos.org/manual/nixpkgs/stable/#var-meta-description

Copy link
Member

@Tert0 Tert0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 377050


x86_64-linux

✅ 1 package built:
  • hauk

@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Feb 1, 2025
@ethancedwards8
Copy link
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 377050


aarch64-darwin

✅ 1 package built:
  • hauk

@wegank wegank added 12.approvals: 2 This PR was reviewed and approved by two reputable people and removed 12.approvals: 1 This PR was reviewed and approved by one reputable person labels Feb 2, 2025
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-already-reviewed/2617/2235

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants