depot/third_party/nixpkgs/pkgs/applications/graphics/pika/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

32 lines
727 B
Nix

{ 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 = "An open-source colour picker app for macOS";
platforms = platforms.darwin;
license = licenses.mit;
maintainers = with maintainers; [ arkivm ];
};
}