Commit 0263009d authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files
parent fb1ea0c8
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
@@ -26,6 +26,9 @@

, withWayland ? !stdenv.isDarwin
, wayland

, testers
, rio
}:
let
  rlinkLibs = if stdenv.isDarwin then [
@@ -52,16 +55,16 @@ let
in
rustPlatform.buildRustPackage rec {
  pname = "rio";
  version = "0.1.0";
  version = "0.1.1";

  src = fetchFromGitHub {
    owner = "raphamorim";
    repo = "rio";
    rev = "v${version}";
    hash = "sha256-Jp8f8u9CkY+pz6QaoWp6P6+OqsIjhzXH0eeoBiSDR0k=";
    rev = "refs/tags/v${version}";
    hash = "sha256-Hll9QpCN0/NDJ3tgJFnmNjfIotppGg5/BrHMxGmxOTo=";
  };

  cargoHash = "sha256-3FirYpHxTRvXgRQACVvmwlaCNTyJ8dLbZ258qv5vbsc=";
  cargoHash = "sha256-yyxJi0kK2d2I+9GncYHcRKbdngYSltDjsTuChqaDG/U=";

  nativeBuildInputs = [
    ncurses
@@ -108,7 +111,10 @@ rustPlatform.buildRustPackage rec {
      extraArgs = [ "--version-regex" "v([0-9.]+)" ];
    };

    tests.test = nixosTests.terminal-emulators.rio;
    tests = {
      test = nixosTests.terminal-emulators.rio;
      version = testers.testVersion { package = rio; };
    };
  };

  meta = {