nixpkgs/pkgs/applications/graphics/pika/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

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