nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 44 lines 996 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 rustPlatform, 5 pkg-config, 6 alsa-lib, 7}: 8 9rustPlatform.buildRustPackage rec { 10 pname = "pwalarmctl"; 11 version = "0.1.0"; 12 13 nativeBuildInputs = [ pkg-config ]; 14 buildInputs = [ alsa-lib ]; 15 16 src = fetchFromGitHub { 17 owner = "amyipdev"; 18 repo = "pwalarmd"; 19 rev = "v${version}"; 20 hash = "sha256-xoC1PtDQjkvoWb9x8A43ITo6xyYOv9hxH2pxiZBBvKI="; 21 }; 22 23 cargoHash = "sha256-wD6djP2FQgJNL9EryRrv6NrEex0bnqDJmfYw+S2x508="; 24 25 preBuild = '' 26 cargo check 27 ''; 28 29 buildAndTestSubdir = "pwalarmctl"; 30 31 meta = { 32 description = "Controller for pwalarmd"; 33 longDescription = '' 34 pwalarmctl is a command-line controller for pwalarmd which allows 35 for live configuration changes and access to the active state 36 of pwalarmd. 37 ''; 38 mainProgram = "pwalarmctl"; 39 license = lib.licenses.gpl2Only; 40 platforms = lib.platforms.all; 41 badPlatforms = lib.platforms.darwin; 42 maintainers = with lib.maintainers; [ amyipdev ]; 43 }; 44}