about summary refs log tree commit diff
path: root/pkgs/tools/misc/sutils/default.nix
blob: f611b7adc07cfff712c78c2c14d563adc6c47f76 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, stdenv, fetchFromGitHub, alsa-lib }:

stdenv.mkDerivation rec {
   version = "0.2";
   pname = "sutils";

   src = fetchFromGitHub {
     owner = "baskerville";
     repo = "sutils";
     rev = version;
     sha256 = "0i2g6a6xdaq3w613dhq7mnsz4ymwqn6kvkyan5kgy49mzq97va6j";
   };

   hardeningDisable = [ "format" ];

   buildInputs = [ alsa-lib ];

   prePatch = ''sed -i "s@/usr/local@$out@" Makefile'';

   meta = {
     description = "Small command-line utilities";
     homepage = "https://github.com/baskerville/sutils";
     maintainers = [ lib.maintainers.meisternu ];
     license = "Custom";
     platforms = lib.platforms.linux;
   };
}