Add local gurk

work
mat ess 2022-07-17 13:24:35 -04:00
parent cc2c2cfc34
commit e2fc80cdab
3 changed files with 44 additions and 13 deletions

View File

@ -23,11 +23,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1651916036, "lastModified": 1657835815,
"narHash": "sha256-UuD9keUGm4IuVEV6wdSYbuRm7CwfXE63hVkzKDjVsh4=", "narHash": "sha256-CnZszAYpNKydh6N7+xg+eRtWNVoAAGqc6bg+Lpgq1xc=",
"owner": "lnl7", "owner": "lnl7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "2f2bdf658d2b79bada78dc914af99c53cad37cba", "rev": "54a24f042f93c79f5679f133faddedec61955cf2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -76,11 +76,11 @@
"utils": "utils" "utils": "utils"
}, },
"locked": { "locked": {
"lastModified": 1657396086, "lastModified": 1657887110,
"narHash": "sha256-4cQ6hEuewWoFkTBlu211JGxPQQ1Zyli8oEq1cu7cVeA=", "narHash": "sha256-8VV0/kZed2z8fGtEc2zr+WLxTow+JTIlMjnSisyv0GQ=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "c645cc9f82c7753450d1fa4d1bc73b64960a9d7a", "rev": "4c5106ed0f3168ff2df21b646aef67e86cbfc11c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -107,11 +107,11 @@
}, },
"nixpkgs-master": { "nixpkgs-master": {
"locked": { "locked": {
"lastModified": 1657491355, "lastModified": 1658075259,
"narHash": "sha256-VQUKwiEiRMwGc2jVCH10zigyxO3LoCLYwG58y7pXSd8=", "narHash": "sha256-MJR7YRmWRJGA2PhG63kTxd7GmE5YvM3AhdN1YDyJ8jM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9130ba39bf9f09b2775aad001b63f323801b6890", "rev": "c490f57e189fdb4f19d4eb9c930caf0c3afa28e1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -123,11 +123,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1657413868, "lastModified": 1657975505,
"narHash": "sha256-qDC9kUZhGhoDtOzhd6kIMUQHRZNys6/xsJAWrJB+gqU=", "narHash": "sha256-juMbw+GY2ycTrg3QbdFfEQs6P3FJeoYEv8aMVl2EZsg=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "7802f1b6479d6f04bea5cc94e8290ea61e210ecf", "rev": "d6df226c53d46821bd4773bd7ec3375f30238edb",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -27,7 +27,7 @@
let let
inherit (darwin.lib) darwinSystem; inherit (darwin.lib) darwinSystem;
inherit (inputs.nixpkgs-unstable.lib) attrValues makeOverridable optionalAttrs singleton; inherit (inputs.nixpkgs-unstable.lib) attrValues makeOverridable optional optionalAttrs singleton;
# Configuration for `nixpkgs` # Configuration for `nixpkgs`
nixpkgsConfig = { nixpkgsConfig = {
@ -36,6 +36,7 @@
final: prev: final: prev:
{ {
dark-mode-notify = final.callPackage ./pkgs/dark-mode-notify.nix { inherit (inputs) dark-mode-notify-src; }; dark-mode-notify = final.callPackage ./pkgs/dark-mode-notify.nix { inherit (inputs) dark-mode-notify-src; };
gurk-rs = final.callPackage ./pkgs/gurk-rs.nix { };
} // optionalAttrs } // optionalAttrs
(prev.stdenv.system == "aarch64-darwin") (prev.stdenv.system == "aarch64-darwin")
{ {

30
pkgs/gurk-rs.nix Normal file
View File

@ -0,0 +1,30 @@
{ stdenv
, lib
, protobuf
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "gurk-rs";
version = "0.2.4";
src = fetchFromGitHub {
owner = "boxdot";
repo = pname;
rev = "v${version}";
sha256 = "sha256-WZUoUvu7GaiBOaRAOGRCXrLe6u3DRbI6CDTAf5jryGc=";
};
cargoHash = "sha256-81ZW61JX40W0D/cmYogR3RJH2dvEKW1K7sIsl2io/7E=";
buildInputs = [ protobuf ];
PROTOC = "${protobuf}/bin/protoc";
meta = with lib; {
description = "Signal Messenger client for terminal";
homepage = "https://github.com/boxdot/gurk-rs";
license = licenses.agpl3Only;
maintainers = with maintainers; [ devhell ];
};
}