nur-packages

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

default.nix (791B)


      1 {
      2   lib,
      3   fetchFromGitHub,
      4   python3Packages,
      5 }:
      6 
      7 python3Packages.buildPythonApplication {
      8   pname = "py-patcher";
      9   version = "0-unstable-2024-12-13";
     10   format = "other";
     11 
     12   src = fetchFromGitHub {
     13     owner = "slazav";
     14     repo = "py_patcher";
     15     rev = "da55892a90eefaabffcf1eae2d6fd8a15ae26e15";
     16     hash = "sha256-po4Vg1j6Q65b8+syStegordTndSxJXYXNPigOTpjaUY=";
     17   };
     18 
     19   dontUseSetuptoolsBuild = true;
     20   dontUseSetuptoolsCheck = true;
     21 
     22   installPhase = ''
     23     install -Dm755 patcher.py $out/bin/patcher
     24     install -Dm644 patches.txt -t $out/share/py-patcher
     25   '';
     26 
     27   meta = {
     28     description = "A python version of Garmin firmware patcher";
     29     homepage = "https://github.com/slazav/py_patcher";
     30     license = lib.licenses.gpl2Only;
     31     maintainers = [ lib.maintainers.sikmir ];
     32   };
     33 }