Unverified Commit f6c3b3e8 authored by R. RyanTM's avatar R. RyanTM Committed by Vinny Meller
Browse files

twm: 0.10.2 -> 0.11.0, move to pkgs/by-name

parent 766fda10
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
{ lib
, darwin
, fetchFromGitHub
, stdenv
, rustPlatform
, openssl
, pkg-config
, Security
, nix-update-script
, installShellFiles
}:

rustPlatform.buildRustPackage rec {
  pname = "twm";
  version = "0.10.2";
  version = "0.11.0";

  src = fetchFromGitHub {
    owner = "vinnymeller";
    repo = "twm";
    rev = "refs/tags/v${version}";
    hash = "sha256-qOOEeaxae7nYbvNzl3BEZkdjO69lgtGrrLS5Q7akN9U=";
    hash = "sha256-SiwLqUq/gC8Tr31jjblLc9YP4yBi9HL38W83kgh7eJI=";
  };

  cargoHash = "sha256-gJ5go9V8c97pQZICUD1ksLJhOyJXyVXAWssH3fhrRVQ=";
  cargoHash = "sha256-BjQ7dDXHzX+O/V328TTwl9wGtpOq+NjOMRiZwb9O7ZU=";

  nativeBuildInputs = [ pkg-config installShellFiles ];
  buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
  buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security ];

  postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
    installShellCompletion --cmd twm \
+0 −4
Original line number Diff line number Diff line
@@ -13198,10 +13198,6 @@ with pkgs;
  ttylog = callPackage ../tools/misc/ttylog { };
  twm = callPackage ../tools/misc/twm {
    inherit (darwin.apple_sdk.frameworks) Security;
  };
  ipbt = callPackage ../tools/misc/ipbt { };
  tuckr = callPackage ../applications/misc/tuckr { };