diff options
author | EuAndreh <eu@euandre.org> | 2021-02-08 16:17:02 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-02-08 16:24:23 -0300 |
commit | f8426f1be5adfd65981b49720342f0ef361b4faf (patch) | |
tree | 35f2e2da2d1ad618f6cdad857a573d2ce3276a7c | |
parent | Add README.md (diff) | |
download | package-repository-f8426f1be5adfd65981b49720342f0ef361b4faf.tar.gz package-repository-f8426f1be5adfd65981b49720342f0ef361b4faf.tar.xz |
Add default.nix, and instruction on README.md
-rw-r--r-- | README.md | 19 | ||||
-rw-r--r-- | default.nix | 44 |
2 files changed, 59 insertions, 4 deletions
@@ -6,10 +6,7 @@ packagers. ## Guix -Custom Guix channel for packages not compatible with mainline Guix, or not -packaged there yet. - -To add this channel to your `~/.config/guix/channels.scm`: +Add this channel to your `~/.config/guix/channels.scm`: ```scheme (append @@ -30,6 +27,20 @@ To add this channel to your `~/.config/guix/channels.scm`: See also the Guix manual for usage on channels: https://guix.gnu.org/manual/en/guix.html#Channels +## NixOS + +Adding the overlay to your `/etc/nixos/configuration.nix`: + +```nix + nixpkgs = { + overlays = [ + (import (fetchTarball { + url = "https://git.euandreh.xyz/euandreh-package-repository/snapshot/euandreh-package-repository-main.tar.gz"; + }) { inherit pkgs; }) + ]; + }; +``` + ## LICENSE Packaging code licensed under AGPLv3+. diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..2ba7b07 --- /dev/null +++ b/default.nix @@ -0,0 +1,44 @@ +{ pkgs, stdenv, fetchurl, lib }: +self: super: +let + default-derivation = { pname, version-prefix, version, sha256 }: + stdenv.mkDerivation rec { + inherit pname version; + + src = fetchTarball { + url = + "https://git.euandreh.xyz/${pname}/snapshot/${pname}-${version-prefix}${version}.tar.gz"; + inherit sha256; + }; + makeFlags = [ + # This shouldn't be necessary, but + # the `stdenv.mkDerivation' environment doesn't provide a c99 variable + "CC=cc" + ]; + + meta = with 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"; + sha256 = "0bpm73hvpk6x3vs2lkp0kjnfdyb5hq3spl0kzpq0wwmz2ilcvghh"; + }; + autoqemu = default-derivation { + pname = "autoqemu"; + version-prefix = ""; + version = "5c44e0d0fa46ccd35c28e48849fcd5153fe41e5a"; + sha256 = "0izyp4ck618c10hr0n3365xdfgnp8vd3pwz147hanh0h3f0wmnj9"; + }; + }; +} |