mysides: new package for darwin (#155053)
This commit is contained in:
parent
330f3b60d0
commit
b00ecd5e3d
3 changed files with 45 additions and 0 deletions
|
@ -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";
|
||||
|
|
36
pkgs/os-specific/darwin/mysides/default.nix
Normal file
36
pkgs/os-specific/darwin/mysides/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue