nur-packages

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

default.nix (759B)


      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   src = fetchFromGitHub {
     12     owner = "ha7ilm";
     13     repo = "smallrx";
     14     rev = "e3938a59ffea7aa8e7fa699e471557ed2dfdeed9";
     15     hash = "sha256-VcTMQAr5617CSPJbktzrKciNiBbveDWjIeE8Gzf9pa8=";
     16   };
     17 
     18   postPatch = ''
     19     substituteInPlace Makefile \
     20       --replace-fail "CC=gcc" ""
     21   '';
     22 
     23   installPhase = "install -Dm755 rx -t $out/bin";
     24 
     25   meta = {
     26     description = "amateur radio receiver in <100 code lines";
     27     homepage = "https://github.com/ha7ilm/smallrx";
     28     license = lib.licenses.agpl3Only;
     29     maintainers = [ lib.maintainers.sikmir ];
     30     platforms = lib.platforms.linux;
     31     skip.ci = stdenv.isDarwin;
     32   };
     33 })