mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
37 lines
838 B
Nix
37 lines
838 B
Nix
{ lib, stdenv, fetchurl, libarchive, p7zip }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mysides";
|
|
version = "1.0.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/mosen/mysides/releases/download/v${version}/mysides-${version}.pkg";
|
|
sha256 = "sha256-dpRrj3xb9xQSXXXxragUDgNPBaniiMc6evRF12wqVRQ=";
|
|
};
|
|
|
|
dontBuild = true;
|
|
nativeBuildInputs = [ libarchive p7zip ];
|
|
|
|
unpackPhase = ''
|
|
7z x $src
|
|
bsdtar -xf Payload~
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin
|
|
install -Dm755 usr/local/bin/mysides -t $out/bin
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Manage macOS Finder sidebar favorites";
|
|
homepage = "https://github.com/mosen/mysides";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ tboerger ];
|
|
platforms = platforms.darwin;
|
|
};
|
|
}
|