elkhound: add mainProgram and minor cleanups

This commit is contained in:
Peter H. Hoeg 2025-07-01 09:58:25 +02:00 committed by Peter Hoeg
parent 2ee4d57cd6
commit e3b522b54e

View File

@ -10,13 +10,13 @@
stdenv.mkDerivation rec {
pname = "elkhound";
version = "unstable-2020-04-13";
version = "0-unstable-2020-04-13";
src = fetchFromGitHub {
owner = "WeiDUorg";
repo = "elkhound";
rev = "a7eb4bb2151c00cc080613a770d37560f62a285c";
sha256 = "sha256-Y96OFpBNrD3vrKoEZ4KdJuI1Q4RmYANsu7H3ZzfaA6g=";
hash = "sha256-Y96OFpBNrD3vrKoEZ4KdJuI1Q4RmYANsu7H3ZzfaA6g=";
};
postPatch = ''
@ -32,6 +32,8 @@ stdenv.mkDerivation rec {
perl
];
cmakeFlags = [ "-Wno-dev" ]; # it vomits warnings that only upstream cares about
installPhase = ''
runHook preInstall
@ -51,5 +53,6 @@ stdenv.mkDerivation rec {
license = licenses.bsd3;
maintainers = with maintainers; [ peterhoeg ];
platforms = platforms.unix;
mainProgram = "elkhound";
};
}