package.nix (794B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 }: 6 7 stdenv.mkDerivation { 8 pname = "gpsdate"; 9 version = "0-unstable-2019-12-02"; 10 11 __structuredAttrs = true; 12 13 src = fetchFromGitHub { 14 owner = "adamheinrich"; 15 repo = "gpsdate"; 16 rev = "3e48ab58b73485d08e9f4d48054d5e7379e05805"; 17 hash = "sha256-h/XxQjjelUPYhIuJybZZm/bL07nj242utmYNCwTNw9w="; 18 }; 19 20 patches = [ ./clock_settime.patch ]; 21 22 installPhase = '' 23 install -Dm755 gpsdate -t $out/bin 24 ''; 25 26 meta = { 27 description = "Simple tool for fetching date and time from a GPS receiver and saving it as a local time"; 28 homepage = "https://github.com/adamheinrich/gpsdate"; 29 license = lib.licenses.gpl3Plus; 30 maintainers = [ lib.maintainers.sikmir ]; 31 platforms = lib.platforms.unix; 32 mainProgram = "gpsdate"; 33 }; 34 }
