mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-19 20:09:01 +02:00
osh-tool: init at 0.2.0
This commit is contained in:
parent
324db8c9de
commit
d191dc4ff7
34
pkgs/development/tools/osh-tool/default.nix
Normal file
34
pkgs/development/tools/osh-tool/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ lib, nimPackages, fetchFromGitHub, nim }:
|
||||
|
||||
nimPackages.buildNimPackage rec {
|
||||
pname = "osh-tool";
|
||||
version = "0.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hoijui";
|
||||
repo = pname;
|
||||
rev = "55c736b346d438dab6e3ab652ec15ee7e10847aa";
|
||||
hash = "sha256-BDuMWpu/l+q0wJEv36LXXDOI2b0Fu6OHrf5ebV4cFt0=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
buildInputs = with nimPackages; [ unicodedb docopt regex result shell ];
|
||||
|
||||
nimBinOnly = true;
|
||||
|
||||
preBuild = ''
|
||||
mv src/main.nim src/osh.nim
|
||||
substituteInPlace osh_tool.nimble \
|
||||
--replace 'binDir = "build"' 'srcDir = "src"' \
|
||||
--replace 'namedBin["src/main"] = "osh"' 'bin = @["osh"]'
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description =
|
||||
"A Tool for managing Open Source Hardware projects, taking care of meta-data and keeping the structure clean";
|
||||
homepage = "https://github.com/hoijui/osh-tool";
|
||||
license = lib.licenses.agpl3;
|
||||
mainProgram = "osh";
|
||||
maintainers = with maintainers; [ sourceindex ];
|
||||
};
|
||||
}
|
|
@ -10028,6 +10028,8 @@ with pkgs;
|
|||
|
||||
os-prober = callPackage ../tools/misc/os-prober {};
|
||||
|
||||
osh-tool = callPackage ../development/tools/osh-tool {};
|
||||
|
||||
oshka = callPackage ../development/tools/oshka {};
|
||||
|
||||
osl = libsForQt5.callPackage ../development/compilers/osl {
|
||||
|
|
Loading…
Reference in a new issue