Skip to content

Instantly share code, notes, and snippets.

@keidax
Created July 30, 2020 04:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keidax/d886e1440e2a62192597d8887868b1fd to your computer and use it in GitHub Desktop.
Save keidax/d886e1440e2a62192597d8887868b1fd to your computer and use it in GitHub Desktop.
with import <nixpkgs> {};
stdenv.mkDerivation rec {
name = "ly";
version = "0.5.2";
src = fetchFromGitHub {
owner = "keidax";
repo = "ly";
rev = "HEAD";
sha256 = "19ql6j2wqw8jh5a7cxxb474gp1jw00d532g0snx2jbf06cs7ja74";
fetchSubmodules = true;
};
buildInputs = [ pkgs.linux-pam pkgs.xorg.libxcb pkgs.systemd ];
makeFlags = [
"DESTDIR=$(out)"
];
postInstall = ''
mkdir $out/bin
mv $out/usr/bin/ly $out/bin
mkdir -p $out/lib/systemd/system
substitute $out/usr/lib/systemd/system/ly.service \
$out/lib/systemd/system/ly.service \
--replace /usr/bin/ly $out/bin/ly
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment