rix101/pkgs/pngpaste/default.nix

22 lines
502 B
Nix
Raw Permalink Normal View History

2023-09-06 20:23:50 +02:00
{ lib, darwin, fetchFromGitHub, ... }:
darwin.apple_sdk.stdenv.mkDerivation rec {
name = "pngpaste";
version = "0.2.3";
src = fetchFromGitHub {
owner = "jcsalterego";
repo = "${name}";
rev = "67c39829fedb97397b691617f10a68af75cf0867";
2024-04-13 12:38:43 +02:00
hash = "sha256-uvajxSelk1Wfd5is5kmT2fzDShlufBgC0PDCeabEOSE=";
2023-09-06 20:23:50 +02:00
};
buildInputs = with darwin.apple_sdk.frameworks; [
AppKit
Cocoa
Foundation
];
installPhase = ''
mkdir -p $out/bin
mv pngpaste $out/bin/pngpaste
'';
}