aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md19
-rw-r--r--default.nix44
2 files changed, 59 insertions, 4 deletions
diff --git a/README.md b/README.md
index 7a5f91d..0a77b87 100644
--- a/README.md
+++ b/README.md
@@ -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";
+ };
+ };
+}