Add default.nix to make this easy to build
This commit is contained in:
parent
60004c3c8d
commit
3f69c3d2eb
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
|
/result
|
||||||
/target
|
/target
|
||||||
|
|
21
default.nix
Normal file
21
default.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{ pkgs ? import <nixpkgs> { } }:
|
||||||
|
with pkgs;
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
name = "rustybar";
|
||||||
|
version = "0.1";
|
||||||
|
src = ./.;
|
||||||
|
cargoLock.lockFile = ./Cargo.lock;
|
||||||
|
RUSTC_BOOTSTRAP = 1;
|
||||||
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
|
buildInputs = [ dbus ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/mildlyfunctionalgays/rustybar";
|
||||||
|
description = "swaybar/i3bar command in Rust";
|
||||||
|
maintainers = with maintainers; [ artemist ];
|
||||||
|
license = with licenses; [ mit ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue