nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 39 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation (finalAttrs: { 8 pname = "pngpaste"; 9 version = "0.2.3"; 10 11 src = fetchFromGitHub { 12 owner = "jcsalterego"; 13 repo = "pngpaste"; 14 tag = finalAttrs.version; 15 sha256 = "uvajxSelk1Wfd5is5kmT2fzDShlufBgC0PDCeabEOSE="; 16 }; 17 18 installPhase = '' 19 runHook preInstall 20 install -Dm555 pngpaste $out/bin/pngpaste 21 runHook postInstall 22 ''; 23 24 meta = { 25 description = "Paste image files from clipboard to file on MacOS"; 26 longDescription = '' 27 Paste PNG into files on MacOS, much like pbpaste does for text. 28 Supported input formats are PNG, PDF, GIF, TIF, JPEG. 29 Supported output formats are PNG, GIF, JPEG, TIFF. Output 30 formats are determined by the provided filename extension, 31 falling back to PNG. 32 ''; 33 homepage = "https://github.com/jcsalterego/pngpaste"; 34 changelog = "https://github.com/jcsalterego/pngpaste/raw/${finalAttrs.version}/CHANGELOG.md"; 35 platforms = lib.platforms.darwin; 36 license = lib.licenses.bsd2; 37 maintainers = with lib.maintainers; [ samw ]; 38 }; 39})