diff options
-rw-r--r-- | Formula/sharedc-latest.rb | 13 | ||||
-rw-r--r-- | default.nix | 24 | ||||
-rw-r--r-- | paku.json | 6 | ||||
-rw-r--r-- | src/xyz/euandreh/packages.scm | 26 |
4 files changed, 69 insertions, 0 deletions
diff --git a/Formula/sharedc-latest.rb b/Formula/sharedc-latest.rb new file mode 100644 index 0000000..21d3053 --- /dev/null +++ b/Formula/sharedc-latest.rb @@ -0,0 +1,13 @@ +class SharedcLatest < Formula + desc 'Multi-purpose C data structures, algorithms and utility functions' + homepage 'https://sharedc.euandreh.xyz' + url 'https://git.euandreh.xyz/sharedc/snapshot/sharedc-2a61018b554ed5854db05c37e79da4bc409c6dd8.tar.gz' + sha256 '07402dca523779f684121bfeeb5578b418e9eeb8c786c368667275cddc03b6f4' + license 'AGPL-3.0-or-later' + + def install + system 'make' + system 'make', 'check' + system 'make', 'install', "PREFIX=#{prefix}" + end +end diff --git a/default.nix b/default.nix index 5ddb88c..b1083e6 100644 --- a/default.nix +++ b/default.nix @@ -73,6 +73,30 @@ self: super: { platforms = platforms.unix; }; }; + sharedc-latest = pkgs.stdenv.mkDerivation rec { + name = "sharedc"; + version = "2a61018b554ed5854db05c37e79da4bc409c6dd8"; + + src = fetchTarball { + url = + "https://git.euandreh.xyz/${name}/snapshot/${name}-${version}.tar.gz"; + sha256 = "1xkilwjamx2ppplk8ipb7ydys7hrvxr05b5mdvyl8hbdmrsbzwjy"; + }; + + makeFlags = [ "CC=cc" "PREFIX=$(out)" ]; + + doCheck = true; + + meta = with pkgs.lib; { + description = readFile "${src}/description"; + longDescription = readFile "${src}/long-description"; + homepage = "https://${name}.euandreh.xyz"; + changelog = "https://${name}.euandreh.xyz/CHANGELOG.html"; + downloadPage = "https://${name}.euandreh.xyz/#releases"; + license = licenses.agpl3; + platforms = platforms.unix; + }; + }; fallible-latest = pkgs.stdenv.mkDerivation rec { name = "fallible"; version = "b8515153fa2a9b57690b12c983d12c342cbf25c9"; @@ -19,6 +19,12 @@ "type": "bin" }, { + "name": "sharedc", + "suffix": "-latest", + "version": "2a61018b554ed5854db05c37e79da4bc409c6dd8", + "type": "lib" + }, + { "name": "fallible", "suffix": "-latest", "version": "b8515153fa2a9b57690b12c983d12c342cbf25c9", diff --git a/src/xyz/euandreh/packages.scm b/src/xyz/euandreh/packages.scm index bb47ec0..b769f07 100644 --- a/src/xyz/euandreh/packages.scm +++ b/src/xyz/euandreh/packages.scm @@ -87,6 +87,31 @@ (home-page (string-append "https://" name ".euandreh.xyz")) (license license:agpl3+))) +(define-public sharedc-latest + (package + (name "sharedc-latest") + (version "2a61018b554ed5854db05c37e79da4bc409c6dd8") + (source (origin + (method url-fetch) + (uri (string-append + "https://git.euandreh.xyz/sharedc/snapshot/sharedc-" + version + ".tar.gz")) + (sha256 + (base32 + "1x5n0gfcsxbjcrlc71n7p3pfj65lg1aypzhv2a2gcy9pab52sh07")))) + (build-system gnu-build-system) + (arguments `(#:make-flags + (list (string-append "CC=" ,(cc-for-target)) + (string-append "PREFIX=" %output)) + #:phases + (modify-phases %standard-phases + (delete 'configure)))) + (synopsis (file-append source "/description")) + (description (file-append source "/long-description")) + (home-page (string-append "https://" name ".euandreh.xyz")) + (license license:agpl3+))) + (define-public fallible-latest (package (name "fallible-latest") @@ -145,5 +170,6 @@ remembering-latest remembering autoqemu-latest + sharedc-latest fallible-latest fallible) |