mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 04:57:56 +03:00
commit
9330af3d1a
@ -1,40 +1,34 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, installShellFiles
|
||||||
, stdenv
|
, stdenv
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, fontconfig
|
, fontconfig
|
||||||
, xorg
|
, xorg
|
||||||
, libGL
|
, libGL
|
||||||
, openssl
|
, openssl
|
||||||
, AppKit
|
, darwin
|
||||||
, ApplicationServices
|
|
||||||
, CoreFoundation
|
|
||||||
, CoreGraphics
|
|
||||||
, CoreServices
|
|
||||||
, CoreText
|
|
||||||
, CoreVideo
|
|
||||||
, Foundation
|
|
||||||
, Metal
|
|
||||||
, QuartzCore
|
|
||||||
, Security
|
|
||||||
, libobjc
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "inlyne";
|
pname = "inlyne";
|
||||||
version = "0.2.1";
|
version = "0.3.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "trimental";
|
owner = "trimental";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-jFocERr2cW7zdLiYfAay5Dh1issKAHp6vRWYWR1Axcg=";
|
hash = "sha256-B+H3G4jVysqrzWIP+1hktSGnycZLizxhmBCO/lYIr0I=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-mH8tu8koprmHo6JJ9AwYMexy2SFR2yukZmFT060cuZ4=";
|
cargoHash = "sha256-LFL2DVKu/UM7effikZN/IhSD6DrlwO+CF+S60PXULa0=";
|
||||||
|
|
||||||
nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
|
nativeBuildInputs = [
|
||||||
|
installShellFiles
|
||||||
|
] ++ lib.optionals stdenv.isLinux [
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.isLinux [
|
buildInputs = lib.optionals stdenv.isLinux [
|
||||||
fontconfig
|
fontconfig
|
||||||
@ -44,20 +38,16 @@ rustPlatform.buildRustPackage rec {
|
|||||||
xorg.libxcb
|
xorg.libxcb
|
||||||
openssl
|
openssl
|
||||||
] ++ lib.optionals stdenv.isDarwin [
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
AppKit
|
darwin.apple_sdk_11_0.frameworks.AppKit
|
||||||
ApplicationServices
|
|
||||||
CoreFoundation
|
|
||||||
CoreGraphics
|
|
||||||
CoreServices
|
|
||||||
CoreText
|
|
||||||
CoreVideo
|
|
||||||
Foundation
|
|
||||||
Metal
|
|
||||||
QuartzCore
|
|
||||||
Security
|
|
||||||
libobjc
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
installShellCompletion --cmd inlyne \
|
||||||
|
--bash <($out/bin/inlyne --gen-completions bash) \
|
||||||
|
--fish <($out/bin/inlyne --gen-completions fish) \
|
||||||
|
--zsh <($out/bin/inlyne --gen-completions zsh)
|
||||||
|
'';
|
||||||
|
|
||||||
postFixup = lib.optionalString stdenv.isLinux ''
|
postFixup = lib.optionalString stdenv.isLinux ''
|
||||||
patchelf $out/bin/inlyne \
|
patchelf $out/bin/inlyne \
|
||||||
--add-rpath ${lib.makeLibraryPath [ libGL xorg.libX11 ]}
|
--add-rpath ${lib.makeLibraryPath [ libGL xorg.libX11 ]}
|
||||||
@ -66,6 +56,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A GPU powered browserless markdown viewer";
|
description = "A GPU powered browserless markdown viewer";
|
||||||
homepage = "https://github.com/trimental/inlyne";
|
homepage = "https://github.com/trimental/inlyne";
|
||||||
|
changelog = "https://github.com/trimental/inlyne/releases/tag/${src.rev}";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ figsoda ];
|
maintainers = with maintainers; [ figsoda ];
|
||||||
};
|
};
|
||||||
|
@ -31450,10 +31450,7 @@ with pkgs;
|
|||||||
|
|
||||||
inkscape-extensions = recurseIntoAttrs (callPackages ../applications/graphics/inkscape/extensions.nix {});
|
inkscape-extensions = recurseIntoAttrs (callPackages ../applications/graphics/inkscape/extensions.nix {});
|
||||||
|
|
||||||
inlyne = callPackage ../applications/misc/inlyne {
|
inlyne = darwin.apple_sdk_11_0.callPackage ../applications/misc/inlyne { };
|
||||||
inherit (darwin) libobjc;
|
|
||||||
inherit (darwin.apple_sdk.frameworks) AppKit ApplicationServices CoreFoundation CoreGraphics CoreServices CoreText CoreVideo Foundation Metal QuartzCore Security;
|
|
||||||
};
|
|
||||||
|
|
||||||
inspectrum = callPackage ../applications/radio/inspectrum { };
|
inspectrum = callPackage ../applications/radio/inspectrum { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user