mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
29 lines
774 B
Nix
29 lines
774 B
Nix
{ lib, stdenv, rustPlatform, fetchFromGitHub, openssl, pkg-config, libiconv, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "so";
|
|
version = "0.4.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "samtay";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-4IZNOclQj3ZLE6WRddn99CrV8OoyfkRBXnA4oEyMxv8=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-hHXA/n/HQeBaD4QZ2b6Okw66poBRwNTpQWF0qBhLp/o=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
|
|
libiconv Security
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A TUI interface to the StackExchange network";
|
|
mainProgram = "so";
|
|
homepage = "https://github.com/samtay/so";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ mredaelli ];
|
|
};
|
|
}
|