mysides: new package for darwin (#155053)

This commit is contained in:
Thomas Boerger 2022-02-03 22:04:31 +01:00 committed by GitHub
parent 330f3b60d0
commit b00ecd5e3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 45 additions and 0 deletions

View file

@ -11811,6 +11811,13 @@
githubId = 863327;
name = "Tyler Benster";
};
tboerger = {
email = "thomas@webhippie.de";
matrix = "@tboerger:matrix.org";
github = "tboerger";
githubId = 156964;
name = "Thomas Boerger";
};
tcbravo = {
email = "tomas.bravo@protonmail.ch";
github = "tcbravo";

View file

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

View file

@ -33344,6 +33344,8 @@ with pkgs;
mynewt-newt = callPackage ../tools/package-management/mynewt-newt { };
mysides = callPackage ../os-specific/darwin/mysides { };
nar-serve = callPackage ../tools/nix/nar-serve { };
neo = callPackage ../applications/misc/neo { };