mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-12-12 05:20:26 +00:00
Merge pull request #54 from chekoopa/nix-support
Add basic Nix packaging
This commit is contained in:
commit
11af79d300
5
default.nix
Normal file
5
default.nix
Normal file
@ -0,0 +1,5 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
# TODO: add shell support
|
||||
pkgs.callPackage ./release.nix { }
|
||||
|
33
release.nix
Normal file
33
release.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{ stdenv, lib, fetchFromGitHub, buildGoModule
|
||||
, git
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "mycorrhiza";
|
||||
version = "1.1.0";
|
||||
|
||||
src = ./.;
|
||||
|
||||
# That's for a nixpkgs release or something. Mind the hashes.
|
||||
# src = fetchFromGitHub {
|
||||
# owner = "bouncepaw";
|
||||
# repo = "mycorrhiza";
|
||||
# rev = "v${version}";
|
||||
# sha256 = "0di4msrl44jcnhck11k0r7974cjnwdyw45b3hf0s3dbwx6ijdkdd";
|
||||
# fetchSubmodules = true;
|
||||
# };
|
||||
|
||||
vendorSha256 = "0hxcbfh55avly9gvdysqgjzh66g7rdy2l0wmy9jnlq0skpa6j0jq";
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
propagatedBuildInputs = [ git ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Filesystem and git-based wiki engine written in Go using mycomarkup as its primary markup language";
|
||||
homepage = "https://github.com/bouncepaw/mycorrhiza";
|
||||
license = licenses.agpl3;
|
||||
# maintainers = with maintainers; [ bouncepaw ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user