21 lines
504 B
Nix
21 lines
504 B
Nix
{ lib, darwin, fetchFromGitHub, ... }:
|
|
|
|
darwin.apple_sdk.stdenv.mkDerivation rec {
|
|
name = "pngpaste";
|
|
version = "0.2.3";
|
|
src = fetchFromGitHub {
|
|
owner = "jcsalterego";
|
|
repo = "${name}";
|
|
rev = "67c39829fedb97397b691617f10a68af75cf0867";
|
|
sha256 = "sha256-uvajxSelk1Wfd5is5kmT2fzDShlufBgC0PDCeabEOSE=";
|
|
};
|
|
buildInputs = with darwin.apple_sdk.frameworks; [
|
|
AppKit
|
|
Cocoa
|
|
Foundation
|
|
];
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
mv pngpaste $out/bin/pngpaste
|
|
'';
|
|
}
|