mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
net-news-wire: make wrapper
This commit is contained in:
parent
ea305d1ef5
commit
2563b3b83d
1 changed files with 7 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
||||||
fetchurl,
|
fetchurl,
|
||||||
unzip,
|
unzip,
|
||||||
nix-update-script,
|
nix-update-script,
|
||||||
|
makeBinaryWrapper,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenvNoCC.mkDerivation rec {
|
stdenvNoCC.mkDerivation rec {
|
||||||
|
@ -17,12 +18,17 @@ stdenvNoCC.mkDerivation rec {
|
||||||
|
|
||||||
sourceRoot = ".";
|
sourceRoot = ".";
|
||||||
|
|
||||||
nativeBuildInputs = [ unzip ];
|
nativeBuildInputs = [
|
||||||
|
unzip
|
||||||
|
makeBinaryWrapper
|
||||||
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
mkdir -p $out/Applications
|
mkdir -p $out/Applications
|
||||||
cp -R NetNewsWire.app $out/Applications/
|
cp -R NetNewsWire.app $out/Applications/
|
||||||
|
mkdir -p $out/bin
|
||||||
|
makeWrapper $out/Applications/NetNewsWire.app/Contents/MacOS/NetNewsWire $out/bin/net-news-wire
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue