swatch beats internet time
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- {
- description = "swatch beat internet time";
-
- inputs.nixpkgs.url = github:Nixos/nixpkgs/nixos-20.03;
-
- outputs = { self, nixpkgs }:
- let
- supportedSystems = [ "x86_64-linux" "i686-linux" "aarch64-linux" ];
- forAllSystems =
- f: nixpkgs.lib.genAttrs supportedSystems (system: f system);
- version = "1.0.0";
- in {
- overlay = final: prev: {
- swatch = with final; stdenv.mkDerivation {
- name = "swatch-${version}";
- buildInputs = [ gawk utillinux ];
- src = self;
- installPhase = ''
- mkdir -p $out/bin
- cp ./swatch.sh $out/bin/swatch
- chmod +x $out/bin/swatch
- '';
- meta = {
- description = "Display the current swatch beats";
- longDescription = ''
- Prints the current Swatch Internet Time.
- Optional short form.
- '';
- homepage = https://github.com/techieAgnostic/swatch;
- maintainers = [ "Shaun Kerr - s@p7.co.nz" ];
- platforms = lib.platforms.all;
- };
- };
- };
-
- defaultPackage =
- forAllSystems (system: (import nixpkgs {
- inherit system;
- overlays = [ self.overlay ];
- }).swatch);
- };
- }
|