aboutsummaryrefslogtreecommitdiffhomepage
path: root/derivation.nix
diff options
context:
space:
mode:
Diffstat (limited to 'derivation.nix')
-rwxr-xr-x[-rw-r--r--]derivation.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/derivation.nix b/derivation.nix
index 8f0364a..b40e95a 100644..100755
--- a/derivation.nix
+++ b/derivation.nix
@@ -1,3 +1,4 @@
+#!/usr/bin/env -S nix-build derivation.nix
{
pkgs ? import <nixpkgs> {},
stdenv ? pkgs.stdenv,
@@ -93,10 +94,13 @@ with (
mkDubDerivation rec {
pname = "spine";
version = "0.18.0";
- #zipfile = "spine-0.12.0-tag-0.11.2.r107.gf89a107.tar.gz";
- src = fetchTarball {
- url = "file:///home/ralph/grotto/repo/git.repo/projects/doc-reform/code/software/tarball/spine-0.12.0-tag-0.11.2.r107.gf89a107.tar.gz";
- sha256 = "sha256:03dr7dn7kq6arw4ry7qar13iqmi1caw70imfjwi8qr7g2j4mnk2q";
+ # fetched from the same upstream the flake's `inputs.spine` points at
+ # (git://git.sisudoc.org/software/sisudoc-spine). Unlike flake inputs,
+ # builtins.fetchGit is usable from a plain (non-flake) derivation.nix.
+ src = builtins.fetchGit {
+ url = "git://git.sisudoc.org/software/sisudoc-spine";
+ ref = "main";
+ shallow = true;
};
nativeBuildInputs = with pkgs; [dub ldc];
buildInputs = with pkgs; [nixVersions.latest sqlite];