kssd: refactor
This commit is contained in:
parent
fdc1ddd305
commit
847c506eae
|
@ -1,13 +1,18 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, fetchpatch, zlib, automake, autoconf, libtool }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
|
, zlib
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "kssd";
|
pname = "kssd";
|
||||||
version = "2.21";
|
version = "2.21";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "yhg926";
|
owner = "yhg926";
|
||||||
repo = "public_kssd";
|
repo = "public_kssd";
|
||||||
rev = "v${version}";
|
rev = "v${finalAttrs.version}";
|
||||||
hash = "sha256-D/s1jL2oKE0rSdRMVljskYFsw5UPOv1L95Of+K+e17w=";
|
hash = "sha256-D/s1jL2oKE0rSdRMVljskYFsw5UPOv1L95Of+K+e17w=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -20,11 +25,14 @@ stdenv.mkDerivation rec {
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ autoconf automake ];
|
buildInputs = [ zlib ];
|
||||||
buildInputs = [ zlib libtool ];
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -vD kssd $out/bin/kssd
|
runHook preInstall
|
||||||
|
|
||||||
|
install -vD kssd $out/bin/kssd
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -33,5 +41,6 @@ stdenv.mkDerivation rec {
|
||||||
homepage = "https://github.com/yhg926/public_kssd";
|
homepage = "https://github.com/yhg926/public_kssd";
|
||||||
maintainers = with maintainers; [ unode ];
|
maintainers = with maintainers; [ unode ];
|
||||||
platforms = [ "x86_64-linux" ];
|
platforms = [ "x86_64-linux" ];
|
||||||
|
mainProgram = "kssd";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user