aboutsummaryrefslogblamecommitdiff
path: root/default.nix
blob: 851d767c4049a9ba6f5cb564f0b36bc804fb8204 (plain) (tree)
1
2
3
4
5
6
7
8
9
         

            
                                                          
                                  


                            
                                                                                                       






                                                                              
                             














                                                                   




                                                           


      
{ pkgs }:
self: super:
let
  default-derivation = { pname, version-prefix, version }:
    pkgs.stdenv.mkDerivation rec {
      inherit pname version;

      src = fetchTarball {
        url = "https://git.euandreh.xyz/${pname}/snapshot/${pname}-${version-prefix}${version}.tar.gz";
      };
      makeFlags = [
        # This shouldn't be necessary, but
        # the `stdenv.mkDerivation' environment doesn't provide a c99 variable
        "CC=cc"
      ];

      meta = with pkgs.lib; {
        description = readFile "${src}/description";
        longDescription = readFile "${src}/long-description";
        homepage = "https://${pname}.euandreh.xyz";
        changelog = "https://${pname}.euandreh.xyz/CHANGELOG.html";
        downloadPage = "https://${pname}.euandreh.xyz/#releases";
        license = licenses.agpl3;
        platforms = platforms.unix;
      };
    };
in {
  xyz-euandreh = {
    remembering = default-derivation {
      pname = "remembering";
      version-prefix = "";
      version = "cca66c6f53e8bce857faae88368c0b07e6ace9e1";
    };
    autoqemu = default-derivation {
      pname = "autoqemu";
      version-prefix = "";
      version = "5c44e0d0fa46ccd35c28e48849fcd5153fe41e5a";
    };
  };
}