nixpkgs/pkgs/development/libraries/shhopt/default.nix

24 lines
597 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
2015-07-09 15:23:25 +02:00
stdenv.mkDerivation rec {
name = "shhopt-1.1.7";
src = fetchurl {
url = "https://shh.thathost.com/pub-unix/files/${name}.tar.gz";
2015-07-09 15:23:25 +02:00
sha256 = "0yd6bl6qw675sxa81nxw6plhpjf9d2ywlm8a5z66zyjf28sl7sds";
};
2021-03-12 07:03:03 +01:00
postPatch = ''
substituteInPlace Makefile --replace "gcc" "${stdenv.cc.targetPrefix}cc"
'';
2019-11-05 02:10:31 +01:00
installFlags = [ "INSTBASEDIR=$(out)" ];
2015-07-09 15:23:25 +02:00
meta = with lib; {
2015-07-09 15:23:25 +02:00
description = "A library for parsing command line options";
homepage = "https://shh.thathost.com/pub-unix/";
2015-07-09 15:23:25 +02:00
license = licenses.artistic1;
2021-03-12 07:03:03 +01:00
platforms = platforms.all;
2015-07-09 15:23:25 +02:00
};
}