From 0965e90d7ba21bacd9a648787e2995efbc08d60b Mon Sep 17 00:00:00 2001 From: Tasia Iso Date: Fri, 22 Mar 2024 10:12:21 +0100 Subject: [PATCH] build(nix): test nix package --- default.nix | 36 ++++++++++++++++++++++++++++++++++++ shell.nix | 12 ++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 default.nix create mode 100644 shell.nix diff --git a/default.nix b/default.nix new file mode 100644 index 00000000..83c6a8d7 --- /dev/null +++ b/default.nix @@ -0,0 +1,36 @@ +with import {}; +stdenv.mkDerivation rec { + pname = "tildefriends"; + version = "0.0.16"; + + src = fetchurl { + url = "https://dev.tildefriends.net/cory/${pname}/archive/v${version}.tar.gz"; + sha256 = "19iay794xxs3j3mhnpl4vwx65sflw5vvjaahp0jk85wlwlrc7ddw"; + }; + + nativeBuildInputs = [ + gnumake + openssl + ]; + # buildInputs = [ ] + #doCheck = true; + + + strictDeps = true; + + outputs = [ "out" ]; + + meta = with lib; { + #description = "A program that produces a familiar, friendly greeting"; + #longDescription = '' + # GNU Hello is a program that prints "Hello, world!" when you run it. + # It is fully customizable. + #''; + #homepage = "https://www.gnu.org/software/hello/manual/"; + #changelog = "https://git.savannah.gnu.org/cgit/hello.git/plain/NEWS?h=v${version}"; + + license = licenses.gpl3Plus; + maintainers = [ maintainers.tasiaiso ]; + platforms = platforms.all; + }; +} diff --git a/shell.nix b/shell.nix new file mode 100644 index 00000000..6319d093 --- /dev/null +++ b/shell.nix @@ -0,0 +1,12 @@ +with import {}; +stdenv.mkDerivation { + name = "env"; + nativeBuildInputs = [ + cmake + openssl + nodePackages.npm + ]; + buildInputs = [ + + ]; +} \ No newline at end of file