nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

package.nix (788B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5 }:
      6 
      7 stdenv.mkDerivation (finalAttrs: {
      8   pname = "smallrx";
      9   version = "0-unstable-2018-12-18";
     10 
     11   __structuredAttrs = true;
     12 
     13   src = fetchFromGitHub {
     14     owner = "ha7ilm";
     15     repo = "smallrx";
     16     rev = "e3938a59ffea7aa8e7fa699e471557ed2dfdeed9";
     17     hash = "sha256-VcTMQAr5617CSPJbktzrKciNiBbveDWjIeE8Gzf9pa8=";
     18   };
     19 
     20   postPatch = ''
     21     substituteInPlace Makefile \
     22       --replace-fail "CC=gcc" ""
     23   '';
     24 
     25   installPhase = "install -Dm755 rx -t $out/bin";
     26 
     27   meta = {
     28     description = "amateur radio receiver in <100 code lines";
     29     homepage = "https://github.com/ha7ilm/smallrx";
     30     license = lib.licenses.agpl3Only;
     31     maintainers = [ lib.maintainers.sikmir ];
     32     platforms = lib.platforms.linux;
     33     skip.ci = stdenv.isDarwin;
     34   };
     35 })