aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--default.nix5
-rw-r--r--src/xyz/euandreh/packages/euandreh.scm8
2 files changed, 11 insertions, 2 deletions
diff --git a/default.nix b/default.nix
index 142f048..3732bae 100644
--- a/default.nix
+++ b/default.nix
@@ -1,10 +1,13 @@
{ pkgs }:
self: super:
let
- default-derivation = { name, version-prefix, version, ... }:
+ default-derivation = { name, version-prefix, version, check-inputs, ... }:
pkgs.stdenv.mkDerivation rec {
inherit name version;
+ checkInputs = map (p: pkgs."${p}") check-inputs;
+ doCheck = true;
+
src = fetchTarball {
url =
"https://git.euandreh.xyz/${name}/snapshot/${name}-${version-prefix}${version}.tar.gz";
diff --git a/src/xyz/euandreh/packages/euandreh.scm b/src/xyz/euandreh/packages/euandreh.scm
index c573e19..542527e 100644
--- a/src/xyz/euandreh/packages/euandreh.scm
+++ b/src/xyz/euandreh/packages/euandreh.scm
@@ -2,6 +2,7 @@
#:use-module (json)
#:use-module ((ice-9 textual-ports) #:prefix textual-ports:)
#:use-module ((guix licenses) #:prefix license:)
+ #:use-module (gnu packages)
#:use-module (guix transformations)
#:use-module (guix gexp)
#:use-module (guix packages)
@@ -11,7 +12,7 @@
#:use-module (guix store)
#:use-module (guix build-system gnu))
-(define (euandreh-package name version-prefix version hash)
+(define (euandreh-package name version-prefix version check-inputs hash)
(package
(name name)
(version version)
@@ -27,6 +28,10 @@
version
".tar.gz"))
(hash hash)))
+ (inputs
+ (map (lambda (name)
+ (list name (specification->package name)))
+ (vector->list check-inputs)))
(build-system gnu-build-system)
;; This shouldn't be necessary, but
;; the `gnu-build-system' doesn't provide a c99 variable
@@ -45,5 +50,6 @@
(assoc-ref package "name")
(assoc-ref package "version-prefix")
(assoc-ref package "version")
+ (assoc-ref package "check-inputs")
(content-hash (assoc-ref package "tarbal-sha256"))))
(vector->list (assoc-ref packages "packages"))))