uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
42
pkgs/tools/misc/profile-sync-daemon/default.nix
Normal file
42
pkgs/tools/misc/profile-sync-daemon/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, stdenv, fetchFromGitHub, util-linux, coreutils }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "profile-sync-daemon";
|
||||
version = "6.44";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "graysky2";
|
||||
repo = "profile-sync-daemon";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-7sEC2b4mzgbDTFgpH5abZ/kiwEmGdbKkTLiD73Efdls=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
PREFIX=\"\" DESTDIR=$out make install
|
||||
substituteInPlace $out/bin/profile-sync-daemon \
|
||||
--replace "/usr/" "$out/" \
|
||||
--replace "sudo " "/run/wrappers/bin/sudo "
|
||||
# $HOME detection fails (and is unnecessary)
|
||||
sed -i '/^HOME/d' $out/bin/profile-sync-daemon
|
||||
substituteInPlace $out/bin/psd-overlay-helper \
|
||||
--replace "PATH=/usr/bin:/bin" "PATH=${util-linux.bin}/bin:${coreutils}/bin" \
|
||||
--replace "sudo " "/run/wrappers/bin/sudo "
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Syncs browser profile dirs to RAM";
|
||||
longDescription = ''
|
||||
Profile-sync-daemon (psd) is a tiny pseudo-daemon designed to manage your
|
||||
browser's profile in tmpfs and to periodically sync it back to your
|
||||
physical disc (HDD/SSD). This is accomplished via a symlinking step and
|
||||
an innovative use of rsync to maintain back-up and synchronization
|
||||
between the two. One of the major design goals of psd is a completely
|
||||
transparent user experience.
|
||||
'';
|
||||
homepage = "https://github.com/graysky2/profile-sync-daemon";
|
||||
downloadPage = "https://github.com/graysky2/profile-sync-daemon/releases";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.prikhi ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue