diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-10-22 19:49:40 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-10-22 19:49:40 +0000 |
commit | 20437996b9a2db0a9d32391d15fbd1e8872f3baf (patch) | |
tree | 6b3287be5160b30523675178d52ba440e4267465 /nixpkgs/pkgs/tools/misc | |
parent | 0f33cd5208992fe4992f932374a872f7687b9a6d (diff) | |
parent | a37d70e902fed9b9c0d1d4ac978e4373b86cc9bb (diff) | |
download | nixlib-20437996b9a2db0a9d32391d15fbd1e8872f3baf.tar nixlib-20437996b9a2db0a9d32391d15fbd1e8872f3baf.tar.gz nixlib-20437996b9a2db0a9d32391d15fbd1e8872f3baf.tar.bz2 nixlib-20437996b9a2db0a9d32391d15fbd1e8872f3baf.tar.lz nixlib-20437996b9a2db0a9d32391d15fbd1e8872f3baf.tar.xz nixlib-20437996b9a2db0a9d32391d15fbd1e8872f3baf.tar.zst nixlib-20437996b9a2db0a9d32391d15fbd1e8872f3baf.zip |
Merge commit 'a37d70e902fed9b9c0d1d4ac978e4373b86cc9bb'
Diffstat (limited to 'nixpkgs/pkgs/tools/misc')
-rw-r--r-- | nixpkgs/pkgs/tools/misc/rkvm/default.nix | 47 | ||||
-rw-r--r-- | nixpkgs/pkgs/tools/misc/url-parser/default.nix | 4 |
2 files changed, 49 insertions, 2 deletions
diff --git a/nixpkgs/pkgs/tools/misc/rkvm/default.nix b/nixpkgs/pkgs/tools/misc/rkvm/default.nix new file mode 100644 index 000000000000..688c774209c6 --- /dev/null +++ b/nixpkgs/pkgs/tools/misc/rkvm/default.nix @@ -0,0 +1,47 @@ +{ lib +, fetchFromGitHub +, rustPlatform +, pkg-config +, libevdev +, openssl +, makeWrapper +, nixosTests +}: + +rustPlatform.buildRustPackage rec { + pname = "rkvm"; + version = "0.5.1"; + + src = fetchFromGitHub { + owner = "htrefil"; + repo = pname; + rev = version; + hash = "sha256-3IdwBMN+VZBrcoT5vF7pF6xoNWZBn4k/jRJqADlpM7k="; + }; + + cargoHash = "sha256-/SZKJI4gMkike2m8UVzbwfMqj697A8zbJEKAnnbSx3s="; + + nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook makeWrapper ]; + buildInputs = [ libevdev ]; + + postInstall = '' + install -Dm444 -t "$out/lib/systemd/system" systemd/rkvm-*.service + install -Dm444 example/server.toml "$out/etc/rkvm/server.example.toml" + install -Dm444 example/client.toml "$out/etc/rkvm/client.example.toml" + + wrapProgram $out/bin/rkvm-certificate-gen --prefix PATH : ${lib.makeBinPath [ openssl ]} + ''; + + passthru.tests = { + inherit (nixosTests) rkvm; + }; + + meta = with lib; { + description = "Virtual KVM switch for Linux machines"; + homepage = "https://github.com/htrefil/rkvm"; + changelog = "https://github.com/htrefil/rkvm/releases/tag/${version}"; + license = licenses.mit; + platforms = platforms.linux; + maintainers = with maintainers; [ ckie ]; + }; +} diff --git a/nixpkgs/pkgs/tools/misc/url-parser/default.nix b/nixpkgs/pkgs/tools/misc/url-parser/default.nix index 27df534d8756..418e35b03a9d 100644 --- a/nixpkgs/pkgs/tools/misc/url-parser/default.nix +++ b/nixpkgs/pkgs/tools/misc/url-parser/default.nix @@ -5,13 +5,13 @@ buildGoModule rec { pname = "url-parser"; - version = "1.0.5"; + version = "1.0.6"; src = fetchFromGitHub { owner = "thegeeklab"; repo = "url-parser"; rev = "refs/tags/v${version}"; - hash = "sha256-A+uoxwPdWdy12Avl2Ci+zd9TFmQFA22pMbsxtWpNPpc="; + hash = "sha256-YZAcu1TDPTE2vLA9vQNWHhGIRQs4hkGAmz/zi27n0H0="; }; vendorHash = "sha256-8doDVHyhQKsBeN1H73KV/rxhpumDLIzjahdjtW79Bek="; |