mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
simplenote: drop
This commit is contained in:
parent
35c640b19a
commit
30822c47fa
@ -1,110 +0,0 @@
|
|||||||
{ autoPatchelfHook
|
|
||||||
, dpkg
|
|
||||||
, fetchurl
|
|
||||||
, makeDesktopItem
|
|
||||||
, makeWrapper
|
|
||||||
, lib
|
|
||||||
, stdenv
|
|
||||||
, udev
|
|
||||||
, alsa-lib
|
|
||||||
, mesa
|
|
||||||
, nss
|
|
||||||
, nspr
|
|
||||||
, systemd
|
|
||||||
, wrapGAppsHook
|
|
||||||
, xorg
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
|
||||||
inherit (stdenv.hostPlatform) system;
|
|
||||||
|
|
||||||
throwSystem = throw "Unsupported system: ${system}";
|
|
||||||
|
|
||||||
pname = "simplenote";
|
|
||||||
|
|
||||||
version = "2.9.0";
|
|
||||||
|
|
||||||
sha256 = {
|
|
||||||
x86_64-linux = "sha256-uwd9fYqZepJ/BBttprqkJhswqMepGsHDTd5Md9gjI68=";
|
|
||||||
}.${system} or throwSystem;
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "The simplest way to keep notes";
|
|
||||||
homepage = "https://github.com/Automattic/simplenote-electron";
|
|
||||||
license = licenses.gpl2;
|
|
||||||
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
||||||
maintainers = with maintainers; [
|
|
||||||
kiwi
|
|
||||||
];
|
|
||||||
platforms = [
|
|
||||||
"x86_64-linux"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
linux = stdenv.mkDerivation rec {
|
|
||||||
inherit pname version meta;
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://github.com/Automattic/simplenote-electron/releases/download/v${version}/Simplenote-linux-${version}-amd64.deb";
|
|
||||||
inherit sha256;
|
|
||||||
};
|
|
||||||
|
|
||||||
desktopItem = makeDesktopItem {
|
|
||||||
categories = [ "Development" ];
|
|
||||||
comment = "Simplenote for Linux";
|
|
||||||
desktopName = "Simplenote";
|
|
||||||
exec = "simplenote %U";
|
|
||||||
icon = "simplenote";
|
|
||||||
name = "simplenote";
|
|
||||||
startupNotify = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
dontBuild = true;
|
|
||||||
dontConfigure = true;
|
|
||||||
dontPatchELF = true;
|
|
||||||
dontWrapGApps = true;
|
|
||||||
|
|
||||||
# TODO: migrate off autoPatchelfHook and use nixpkgs' electron
|
|
||||||
nativeBuildInputs = [
|
|
||||||
autoPatchelfHook
|
|
||||||
dpkg
|
|
||||||
makeWrapper
|
|
||||||
wrapGAppsHook
|
|
||||||
];
|
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
alsa-lib
|
|
||||||
mesa
|
|
||||||
xorg.libXScrnSaver
|
|
||||||
xorg.libXtst
|
|
||||||
nss
|
|
||||||
nspr
|
|
||||||
stdenv.cc.cc
|
|
||||||
systemd
|
|
||||||
];
|
|
||||||
|
|
||||||
unpackPhase = "dpkg-deb -x $src .";
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p "$out/bin"
|
|
||||||
cp -R "opt" "$out"
|
|
||||||
cp -R "usr/share" "$out/share"
|
|
||||||
chmod -R g-w "$out"
|
|
||||||
|
|
||||||
mkdir -p "$out/share/applications"
|
|
||||||
cp "${desktopItem}/share/applications/"* "$out/share/applications"
|
|
||||||
'';
|
|
||||||
|
|
||||||
runtimeDependencies = [
|
|
||||||
(lib.getLib udev)
|
|
||||||
];
|
|
||||||
|
|
||||||
postFixup = ''
|
|
||||||
makeWrapper $out/opt/Simplenote/simplenote $out/bin/simplenote \
|
|
||||||
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ stdenv.cc.cc ] }" \
|
|
||||||
"''${gappsWrapperArgs[@]}"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
in
|
|
||||||
linux
|
|
@ -738,6 +738,7 @@ mapAliases ({
|
|||||||
shhgit = throw "shhgit is broken and is no longer maintained. See https://github.com/eth0izzle/shhgit#-shhgit-is-no-longer-maintained-" ; # Added 2023-08-08
|
shhgit = throw "shhgit is broken and is no longer maintained. See https://github.com/eth0izzle/shhgit#-shhgit-is-no-longer-maintained-" ; # Added 2023-08-08
|
||||||
shipyard = jumppad; # Added 2023-06-06
|
shipyard = jumppad; # Added 2023-06-06
|
||||||
signumone-ks = throw "signumone-ks has been removed from nixpkgs because the developers stopped offering the binaries"; # Added 2023-08-17
|
signumone-ks = throw "signumone-ks has been removed from nixpkgs because the developers stopped offering the binaries"; # Added 2023-08-17
|
||||||
|
simplenote = throw "'simplenote' has been removed because it is no longer maintained and insecure"; # Added 2023-10-09
|
||||||
slack-dark = slack; # Added 2020-03-27
|
slack-dark = slack; # Added 2020-03-27
|
||||||
slmenu = throw "slmenu has been removed (upstream is gone)"; # Added 2023-04-06
|
slmenu = throw "slmenu has been removed (upstream is gone)"; # Added 2023-04-06
|
||||||
slurm-llnl = slurm; # renamed July 2017
|
slurm-llnl = slurm; # renamed July 2017
|
||||||
|
@ -41899,8 +41899,6 @@ with pkgs;
|
|||||||
|
|
||||||
fpm2 = callPackage ../tools/security/fpm2 { };
|
fpm2 = callPackage ../tools/security/fpm2 { };
|
||||||
|
|
||||||
simplenote = callPackage ../applications/misc/simplenote { };
|
|
||||||
|
|
||||||
hy = with python3Packages; toPythonApplication hy;
|
hy = with python3Packages; toPythonApplication hy;
|
||||||
|
|
||||||
wmic-bin = callPackage ../servers/monitoring/plugins/wmic-bin.nix { };
|
wmic-bin = callPackage ../servers/monitoring/plugins/wmic-bin.nix { };
|
||||||
|
Loading…
Reference in New Issue
Block a user