2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitLab
|
|
|
|
, installShellFiles
|
|
|
|
, pandoc
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "shikane";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.0.1";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "w0lff";
|
|
|
|
repo = "shikane";
|
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-Chc1+JUHXzuLl26NuBGVxSiXiaE4Ns1FXb0dBs6STVk=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
cargoHash = "sha256-uuQBTAyWczzc4Ez2Tq4Ps6NPonXqHrXAP2AZFzgsvo4=";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
pandoc
|
|
|
|
];
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
bash ./scripts/build-docs.sh man
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage ./build/shikane.*
|
|
|
|
'';
|
|
|
|
|
|
|
|
# upstream has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Dynamic output configuration tool that automatically detects and configures connected outputs based on a set of profiles";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://gitlab.com/w0lff/shikane";
|
|
|
|
changelog = "https://gitlab.com/w0lff/shikane/-/tags/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ michaelpachec0 natsukium ];
|
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "shikane";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
}
|