btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / st / sturmflut / package.nix
blobad5ee4fbefdc3040c05a7c99b32ec3015bca2eb6
2   stdenv,
3   lib,
4   pkg-config,
5   imagemagick,
6   fetchFromGitHub,
7   unstableGitUpdater,
8 }:
10 stdenv.mkDerivation {
11   pname = "sturmflut";
12   version = "0-unstable-2023-04-25";
14   src = fetchFromGitHub {
15     owner = "TobleMiner";
16     repo = "sturmflut";
17     rev = "0e3092ab6db23d2529b8ddc95e5d5e2c3ae8fc9d";
18     hash = "sha256-amNkCDdfG1AqfQ5RCT4941uOtjQRSFt/opzE8yIaftc=";
19   };
21   nativeBuildInputs = [ pkg-config ];
23   buildInputs = [ imagemagick ];
25   installPhase = ''
26     runHook preInstall
27     install -m755 -D sturmflut $out/bin/sturmflut
28     runHook postInstall
29   '';
31   passthru.updateScript = unstableGitUpdater { };
33   meta = {
34     description = "Fast (80+ Gbit/s) pixelflut client with full IPv6 and animation support";
35     homepage = "https://github.com/TobleMiner/sturmflut";
36     license = lib.licenses.mit;
37     maintainers = with lib.maintainers; [ zebreus ];
38     platforms = lib.platforms.linux;
39     mainProgram = "sturmflut";
40   };