mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
simplenote: init at 1.0.6
simplenote package fixed issues after review added installation from source enhanced spaces
This commit is contained in:
parent
54199414e3
commit
9d69aed183
63
pkgs/applications/misc/simplenote/default.nix
Normal file
63
pkgs/applications/misc/simplenote/default.nix
Normal file
@ -0,0 +1,63 @@
|
||||
{ fetchurl, stdenv, lib, zlib, glib, alsaLib, dbus, gtk2, atk, pango, freetype, fontconfig
|
||||
, libgnome_keyring3, gdk_pixbuf, gvfs, cairo, cups, expat, libgpgerror, nspr
|
||||
, nss, xorg, libcap, systemd, libnotify ,libXScrnSaver, gnome3 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
name = "simplenote-${pkgver}";
|
||||
pkgver = "1.0.6";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/Automattic/simplenote-electron/releases/download/v${pkgver}/Simplenote-linux-x64.${pkgver}.tar.gz";
|
||||
sha256 = "18wj880iw92yd57w781dqaj7iv9j3bqhyh2cbikqrl4m5w9xkla8";
|
||||
};
|
||||
|
||||
buildCommand = let
|
||||
|
||||
packages = [
|
||||
stdenv.cc.cc zlib glib dbus gtk2 atk pango freetype libgnome_keyring3
|
||||
fontconfig gdk_pixbuf cairo cups expat libgpgerror alsaLib nspr nss
|
||||
xorg.libXrender xorg.libX11 xorg.libXext xorg.libXdamage xorg.libXtst
|
||||
xorg.libXcomposite xorg.libXi xorg.libXfixes xorg.libXrandr
|
||||
xorg.libXcursor libcap systemd libnotify libXScrnSaver gnome3.gconf
|
||||
];
|
||||
|
||||
libPathNative = lib.makeLibraryPath packages;
|
||||
libPath64 = lib.makeSearchPathOutput "lib" "lib64" packages;
|
||||
libPath = "${libPathNative}:${libPath64}";
|
||||
|
||||
in ''
|
||||
mkdir -p $out/share/
|
||||
mkdir -p $out/bin
|
||||
tar xvzf $src -C $out/share/
|
||||
mv $out/share/Simplenote-linux-x64 $out/share/simplenote
|
||||
mv $out/share/simplenote/Simplenote $out/share/simplenote/simplenote
|
||||
mkdir -p $out/share/applications
|
||||
|
||||
cat > $out/share/applications/simplenote.desktop << EOF
|
||||
[Desktop Entry]
|
||||
Name=Simplenote
|
||||
Comment=Simplenote for Linux
|
||||
Exec=$out/bin/simplenote
|
||||
Icon=$out/share/simplenote/Simplenote.png
|
||||
Type=Application
|
||||
StartupNotify=true
|
||||
Categories=Development;
|
||||
EOF
|
||||
|
||||
fixupPhase
|
||||
|
||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||
--set-rpath "${libPath}:$out/share/simplenote" \
|
||||
$out/share/simplenote/simplenote
|
||||
|
||||
ln -s $out/share/simplenote/simplenote $out/bin/simplenote
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "The simplest way to keep notes";
|
||||
homepage = https://github.com/Automattic/simplenote-electron;
|
||||
license = licenses.lgpl2;
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
@ -17506,4 +17506,6 @@ in
|
||||
nitrokey-app = callPackage ../tools/security/nitrokey-app { };
|
||||
|
||||
fpm2 = callPackage ../tools/security/fpm2 { };
|
||||
|
||||
simplenote = callPackage ../applications/misc/simplenote { };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user