1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-12 13:30:26 +00:00

Merge pull request #54 from chekoopa/nix-support

Add basic Nix packaging
This commit is contained in:
Timur Ismagilov 2021-05-17 14:07:40 +05:00 committed by GitHub
commit 11af79d300
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

5
default.nix Normal file
View File

@ -0,0 +1,5 @@
{ pkgs ? import <nixpkgs> {} }:
# TODO: add shell support
pkgs.callPackage ./release.nix { }

33
release.nix Normal file
View 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;
};
}