feat(pkgs): add pngpaste

This commit is contained in:
reo101 2023-09-06 21:23:50 +03:00
parent 50549a4c1e
commit 8cd75579d2
Signed by: reo101
GPG key ID: 675AA7EF13964ACB
2 changed files with 22 additions and 0 deletions

View file

@ -11,6 +11,7 @@
fennel-language-server = pkgs.callPackage ./fennel-language-server { }; fennel-language-server = pkgs.callPackage ./fennel-language-server { };
parinfer-rust = pkgs.callPackage ./parinfer-rust { }; parinfer-rust = pkgs.callPackage ./parinfer-rust { };
pest-ide-tools = pkgs.callPackage ./pest-ide-tools { }; pest-ide-tools = pkgs.callPackage ./pest-ide-tools { };
pngpaste = pkgs.callPackage ./pngpaste { };
srtool-cli = pkgs.callPackage ./srtool-cli { }; srtool-cli = pkgs.callPackage ./srtool-cli { };
swww = pkgs.callPackage ./swww { }; swww = pkgs.callPackage ./swww { };
vim-fmi-cli = pkgs.callPackage ./vim-fmi-cli { }; vim-fmi-cli = pkgs.callPackage ./vim-fmi-cli { };

21
pkgs/pngpaste/default.nix Normal file
View file

@ -0,0 +1,21 @@
{ 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
'';
}