about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/smos/default.nix
blob: 7d994a749bd4ec1ef80b4e51a80451f6da9ffc4e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, stdenv
, fetchurl
, unzip
}:

stdenv.mkDerivation rec {
  name = "smos-${version}";
  version = "0.1.0";

  src = fetchurl {
    url = "https://github.com/NorfairKing/smos/releases/download/v${version}/smos-release.zip";
    sha256 = "sha256:07yavk7xl92yjwwjdig90yq421n8ldv4fjfw7izd4hfpzw849a12";
  };

  phases = [ "unpackPhase" ];
  unpackCmd = "${unzip}/bin/unzip -d $out $curSrc";
  sourceRoot = ".";

  meta = with lib; {
    description = "A comprehensive self-management system";
    homepage = https://smos.online;
    license = licenses.mit;
    maintainers = with maintainers; [ norfair ];
    platforms = platforms.linux ++ platforms.darwin;
  };
}