commit a72e79b31e56404b0b714410374cddb346eb165e Author: Ashelyn Dawn Date: Sun Nov 26 14:32:20 2023 -0700 Copy derivation from upstream diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b2be92b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +result diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..f4822ca --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1701034145, + "narHash": "sha256-ZwNrKJvEJg7UOKAl+oPIAsbA/yFVuCkhwziFAEQ1tB0=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "ddf0003c57fb5cbb4a9754f2f6d5ebe9cdae5151", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "master", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs", + "utils": "utils" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1694529238, + "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "ff7b65b44d01cf9ba6a71320833626af21126384", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..55db651 --- /dev/null +++ b/flake.nix @@ -0,0 +1,49 @@ +{ + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/master"; + utils.url = "github:numtide/flake-utils"; + }; + description = "A very basic flake"; + + outputs = { self, nixpkgs, utils }: + utils.lib.eachDefaultSystem(system: let + pkgs = import nixpkgs { + inherit system; + }; + + pname = "pounce"; + version = "3.1"; + in { + packages = { + default = pkgs.stdenv.mkDerivation { + inherit pname version; + + src = pkgs.fetchzip { + url = "https://git.causal.agency/pounce/snapshot/pounce-${version}.tar.gz"; + sha256 = "sha256-6PGiaU5sOwqO4V2PKJgIi3kI2jXsBOldEH51D7Sx9tg="; + }; + + buildInputs = with pkgs; + [ libressl libxcrypt curl sqlite ]; + + nativeBuildInputs = [ pkgs.pkg-config ]; + + configureFlags = [ "--enable-notify" "--enable-palaver" ]; + + buildFlags = [ "all" ]; + + makeFlags = [ + "PREFIX=$(out)" + ]; + + meta = with nixpkgs.lib; { + homepage = "https://code.causal.agency/june/pounce"; + description = "Simple multi-client TLS-only IRC bouncer"; + license = licenses.gpl3; + }; + }; + }; + }) // { + + }; +}