-
-
Save keidax/d886e1440e2a62192597d8887868b1fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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