forked from mirrors/nixpkgs
062210bdff
A recent upgrade of cargo-vendor changed its output slightly, which broke all cargoSha256 hashes in nixpkgs. See https://github.com/NixOS/nixpkgs/issues/60668 for more information. Since then, a few hashes have been fixed in master by hand, but there were a lot still to do, so I did all of the ones left over with some scripts I wrote. The one hash I wasn’t able to update was habitat's, because it’s currently broken and the build doesn’t get far enough to produce a hash anyway.
41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, udev }:
|
|
rustPlatform.buildRustPackage
|
|
{
|
|
pname = "kanshi-unstable";
|
|
version = "2019-02-02";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "emersion";
|
|
repo = "kanshi";
|
|
rev = "970267e400c21a6bb51a1c80a0aadfd1e6660a7b";
|
|
sha256 = "10lfdan86bmwazpma6ixnv46z9cnf879gxln8gx87v7a1x3ss0bh";
|
|
};
|
|
|
|
buildInputs = [ pkgconfig udev ];
|
|
|
|
cargoSha256 = "0pvkrdjrg9y38vsrqkrvsknzp78sknpmq14rskvij450a9mpihii";
|
|
|
|
meta = {
|
|
description = "Dynamic display configuration tool";
|
|
longDescription =
|
|
''
|
|
Kanshi uses a configuration file and a list of available displays to choose
|
|
the right settings for each display. It's useful if your window manager
|
|
doesn't support multiple display configurations (e.g. i3/Sway).
|
|
|
|
For now, it only supports:
|
|
- sysfs as backend
|
|
- udev as notifier (optional)
|
|
- Configuration file
|
|
- GNOME (~/.config/monitors.xml)
|
|
- Kanshi (see below)
|
|
- Sway as frontend
|
|
'';
|
|
homepage = "https://github.com/emersion/kanshi";
|
|
downloadPage = "https://github.com/emersion/kanshi";
|
|
license = stdenv.lib.licenses.mit;
|
|
maintainers = [ stdenv.lib.maintainers.balsoft ];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|