about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/an/anime4k/package.nix
blob: eef64ffc3ae91604af0df0310d82286756243c30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ fetchFromGitHub
, lib
, stdenvNoCC
}:

stdenvNoCC.mkDerivation (finalAttrs: {
  pname = "anime4k";
  version = "4.0.1";

  src = fetchFromGitHub {
    owner = "bloc97";
    repo = "Anime4k";
    rev = "v${finalAttrs.version}";
    hash = "sha256-OQWJWcDpwmnJJ/kc4uEReaO74dYFlxNQwf33E5Oagb0=";
  };

  installPhase = ''
    runHook preInstall

    install -Dm644 glsl/*/*.glsl -t $out

    runHook postInstall
  '';

  meta = with lib; {
    description = "A high-quality real time upscaler for anime";
    homepage = "https://github.com/bloc97/Anime4K";
    license = licenses.mit;
    maintainers = with maintainers; [ surfaceflinger ];
    platforms = platforms.all;
  };
})