diff --git a/.gitignore b/.gitignore index ea8c4bf..97e3b2f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ +/result /target diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..3364056 --- /dev/null +++ b/default.nix @@ -0,0 +1,21 @@ +{ pkgs ? import { } }: +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; + }; +} + diff --git a/shell.nix b/shell.nix index 6a39c58..30a357d 100644 --- a/shell.nix +++ b/shell.nix @@ -1,4 +1,4 @@ -{ pkgs ? import {} }: +{ pkgs ? import { } }: with pkgs; stdenv.mkDerivation { name = "rustybar-env";