Skip to content

Commit

Permalink
mysides: init at 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger committed Jan 18, 2022
1 parent 952aa6f commit 0ae4dad
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
32 changes: 32 additions & 0 deletions pkgs/os-specific/darwin/mysides/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ 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 = ''
mkdir -p $out/bin
install -Dm755 usr/local/bin/mysides -t $out/bin
'';

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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32874,6 +32874,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 { };
Expand Down

0 comments on commit 0ae4dad

Please sign in to comment.