about summary refs log tree commit diff
path: root/pkgs/applications/graphics/pika/default.nix
blob: e1e5726eb54d371e9ca4f22d3c981aeb1948f630 (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
{ lib
, fetchurl
, stdenv
, undmg
}:

stdenv.mkDerivation rec {
  pname = "pika";
  version = "0.0.12";

  src = fetchurl {
    url = "https://github.com/superhighfives/${pname}/releases/download/${version}/Pika-${version}.dmg";
    sha256 = "sha256-hcP2bETEx9RQW43I9nvdRPi9lbWwKW6mhRx5H6RxhjM=";
  };

  nativeBuildInputs = [ undmg ];

  sourceRoot = "Pika.app";

  installPhase = ''
    mkdir -p "$out/Applications/Pika.app"
    cp -R . "$out/Applications/Pika.app"
  '';

  meta = with lib; {
    homepage = "https://superhighfives.com/pika";
    description = "Open-source colour picker app for macOS";
    platforms = platforms.darwin;
    license = licenses.mit;
    maintainers = with maintainers; [ arkivm ];
  };
}